diff --git a/dist/chrome/background.js b/dist/chrome/background.js index 48aa0f4..d085bfb 100644 --- a/dist/chrome/background.js +++ b/dist/chrome/background.js @@ -1,4 +1,4 @@ -(()=>{var i0=Object.defineProperty;var u0=(e,t)=>{for(var a in t)i0(e,a,{get:t[a],enumerable:!0})};var v={BUILD_TIME:"2024-11-22T10:30:05.000Z",VERSION:"1.11.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var i0=Object.defineProperty;var u0=(e,t)=>{for(var a in t)i0(e,a,{get:t[a],enumerable:!0})};var v={BUILD_TIME:"2024-11-25T09:06:11.000Z",VERSION:"1.11.7",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5463,7 +5463,7 @@ select.text-gray-6 { {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:N+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:N+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:N+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function Xr(e){if(Math.abs(e)<1024)return e+" Byte";let a=["KB","MB","GB","TB","PB","EB","ZB","YB"],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n{let r=e,i=1,u=indexedDB.open(r,i);u.onsuccess=o=>{a(u.result)},u.onerror=o=>{n()},u.onupgradeneeded=o=>{let s=u.result,l=t||"cache";s.createObjectStore(l,{keyPath:"key"})}})}async function Jr(e){let t=`${ue}-${e.service}@${e.from}->${e.to}`;return await Dm(t,{...e,createAt:new Date().getTime()})}async function ei(e){let t=Lo(e.originalText),a=`${ue}-${e.service}@${e.from}->${e.to}`;return await Sm(a,t)}async function Sm(e,t){let a=await ha(e);return await new Promise((n,r)=>{if(!a)return r();let i="cache",o=a.transaction([i],"readonly").objectStore(i).get(t);o.onsuccess=s=>{a.close();let l=o.result;n(l)},o.onerror=s=>{a.close(),r()}})}async function Dm(e,t){let a=await ha(e);return(await ti()).includes(e)||await Am(e),await new Promise(r=>{if(!a)return r(!1);let i="cache",o=a.transaction([i],"readwrite").objectStore(i).put(t);o.onsuccess=s=>{a.close(),r(!0)},o.onerror=s=>{a.close(),r(!1)}})}async function Am(e){let t="cache_list",a=await ha(ue+"-cacheList",t),r=a.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=i=>{a.close(),ga.push(e)},r.onerror=i=>{a.close()}}async function ti(){if(ga&&ga.length>0)return ga;let e=await ha(ue+"-cacheList","cache_list");return ga=await new Promise(t=>{let a="cache_list",r=e.transaction([a],"readonly").objectStore(a).getAllKeys();r.onsuccess=i=>{e.close(),t(r.result)},r.onerror=i=>{e.close(),t([])}}),ga}async function jo(){try{let e=[];(await ti()).forEach(n=>{e.push(Tm(n))});let a=await Promise.all(e);return Xr(a.reduce((n,r)=>n+r,0))}catch{return Xr(0)}}async function Tm(e){let t=await ha(e),n=[...t.objectStoreNames].reduce((u,o)=>{let s=Cm(t,o);return u.push(s),u},[]),r=await Promise.all(n);return t.close(),r.reduce((u,o)=>u+o,0)}async function Cm(e,t){return await new Promise((a,n)=>{if(e==null)return n();let r=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=u=>{let o=i.result;if(o){let s=o.value,l=JSON.stringify(s);r+=l.length,o.continue()}else a(r)},i.onerror=u=>n("error in "+t+": "+u)})}async function Oo(e,t){let a=new Date().getTime(),n=await ti(),r=0;for(let o of n)await i(o),await new Promise(s=>setTimeout(s,0));return r;async function i(o){let s=await ha(o);try{let l=Array.from(s.objectStoreNames);for(let c of l)await u(s,c)}finally{s.close()}}async function u(o,s){let l=o.transaction(s,"readwrite"),c=l.objectStore(s);return await new Promise((d,m)=>{let g=c.openCursor(),y=0,F=100;g.onsuccess=async function(T){let h=T.target.result;if(h){let q=h.value,B;q.createAt?B=q.createAt:B=t,(a-B)/Em>e&&(r++,h.delete()),y++,y%F===0&&await new Promise(Y=>setTimeout(Y,0)),h.continue()}else d()},g.onerror=m}),await new Promise((d,m)=>{l.oncomplete=d,l.onerror=m}),r}}function fa(){try{let e=[le().EBOOK_BUILDER_URL,le().EBOOK_VIEWER_URL,le().SUBTITLE_BUILDER_URL,le().HTML_VIEWER_URL,le().PDF_VIEWER_URL].filter(r=>!!r),t=["app."+Pe];Lt()||t.push("localhost:38001");let a=globalThis.location.pathname;return e.find(r=>{let i=new URL(r);return a.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var km="Original";function No(){return km}var Na=new Map,Tt=class{fromType;logger;constructor(t,a=!1){this.logger=new Ma,a&&this.logger.setLevel("debug"),this.fromType=t,Na.has(t)||(Na.set(t,new Map),f.runtime.onMessage.addListener((n,r,i)=>{let u=n.from,o=n.to,s,l,c;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,l=r.tab.url,c=r.tab.active),this.logger.debug(`${n.to} received message [${n.payload.method}] from ${n.from}`,n.payload.data?n.payload.data:" ");let d=ni(o),{type:m,name:g}=d;if(m!==t)return!1;let y=ni(u),T=Na.get(m).get(g);if(!T)return this.logger.debug(`no message handler for ${m}:${o}, but it's ok`),!1;let{messageHandler:h,sync:q}=T,B={type:t,name:y.name,id:s,url:l,active:c};if(q){try{let z=h(n.payload,B);i({ok:!0,data:z})}catch(z){i({ok:!1,errorName:z.name,errorMessage:z.message,errorDetails:z.details,errorStatus:z.status})}return!1}else return h(n.payload,B).then(z=>{i({ok:!0,data:z})}).catch(z=>{i({ok:!1,errorName:z.name,errorMessage:z.message,errorDetails:z.message,errorStatus:z.status})}),!0}))}getConnection(t,a,n){let r=!1;n&&n.sync&&(r=!0);let i=this.fromType,u=Na.get(i);if(u.has(t))return u.get(t).connectionInstance;{let o=new ai(`${i}:${t}`,this.logger);return Na.get(i).set(t,{messageHandler:a,sync:r,connectionInstance:o}),o}}},ai=class{from;logger;constructor(t,a){this.from=t,this.logger=a}async sendMessage(t,a){let n=ni(t),{type:r,id:i}=n;if(r!=="content_script"){let u={to:t,from:this.from,payload:a};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let o=await f.runtime.sendMessage(u);return qo(u,o,this.logger)}catch(o){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(a)}`;return this.logger.debug(s,a,t,o),Promise.resolve({message:s})}else throw o}}else{let u={from:this.from,to:t,payload:a};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let o=await f.tabs.sendMessage(i,u);return qo(u,o,this.logger)}}};function qo(e,t,a){if(t){if(t.ok)return a.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new vt(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new vt("noResponse","Unknown error")}function ni(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let a={type:t[0],name:t[1]};if(t[0]==="content_script"){let n=parseInt(t[2]);if(!isNaN(n))a.id=n;else throw new Error("tab id not a valid number")}return a}function ri(e){return e?.id?.endsWith("pdfWebPage")||!1}function Uo(e){try{if(!e||!ri(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let n=e.pdfUrlExtractRule,{selector:r,attribute:i}=n;if(r&&i){let u=document.querySelector(r);if(!u)return"";t=u.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let a=new URL(location.href);return t.startsWith("//")?a.protocol+t:a.protocol+"//"+a.host+t}catch{return""}}var ce={},zo=async function(e,t){let{method:a,data:n}=e;if(a==="getIsDulSubtitle")return ce.getIsDulSubtitle();if(a==="getPageStatus")return No();a==="updateContextState"&&await ce.updateContextState(n);let r=await ce.updateGlobalContext(),i=Date.now();if(P.debug(`content script received message: ${a}`,n||" "),a==="translateTheWholePage")await ce.translateTheWholePage(n),we(st,i);else if(a==="translateTheMainPage")await ce.translateTheMainPage(n),we(st,i);else if(a==="translateToThePageEndImmediately")await ce.translateToThePageEndImmediately(n),we(st,i);else if(a==="toggleTranslateManga")await ce.toggleTranslateManga(),we(st,i);else if(a==="toggleTranslatePage"){let u=location.href;if(ri(r?.rule)){let o=Uo(r.rule);Ho(!0,o||u);return}await ce.toggleTranslatePage(n),we(st,i)}else if(a==="toggleTranslateTheWholePage")await ce.toggleTranslateTheWholePage(n),we(st,i);else if(a==="toggleTranslateTheMainPage")await ce.toggleTranslateTheMainPage(n),we(st,i);else if(a==="toggleOnlyTransation")await ce.ensureSwitchTranslationMode(n),we(st,i);else if(a=="toggleEnableEditTranslation")ce.toggleEnableEditTranslation();else if(a==="translatePage")await ce.translatePage(r,n),we(st,i);else if(a==="toggleTranslationMask")await ce.toggleTranslationMask(n);else if(a==="restorePage")ce.restorePage();else if(a==="retryFailedParagraphs")ce.retryFailedParagraphs();else if(a=="change_translate_service")ce.reportTranslateService(r,n);else if(a==="switchTranslationMode"){if(r.rule.isPdf)return;n&&n.mode&&(await ce.switchTranslationMode(n.mode),await ce.reloadSubtitleWithTranslationModeChanged())}else if(a==="autoEnableSubtitleChanged")ce.autoEnableSubtitleChanged(r,n);else if(a=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Xu,{detail:n}));else if(a=="toggleTranslateToThePageEndImmediately")await ce.toggleTranslateToThePageEndImmediately(n);else if(a==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Ju,{detail:n}));else if(a==="translateWithOpenAI")await ce.translatePageWithTranslationService("openai",n);else if(a==="translateWithGoogle")await ce.translatePageWithTranslationService("google",n);else if(a==="translateWithDeepL")await ce.translatePageWithTranslationService("deepl",n);else if(a==="translateWithBing")await ce.translatePageWithTranslationService("bing",n);else if(a==="translateWithTransmart")await ce.translatePageWithTranslationService("transmart",n);else if(a==="translateWithGemini")await ce.translatePageWithTranslationService("gemini",n);else if(a==="translateWithClaude")await ce.translatePageWithTranslationService("claude",n);else if(a.startsWith("translateWithCustom"))await ce.translatePageWithTranslationService(r.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[a]??"bing",n);else if(a==="translateInputBox")await ce.translateInputBoxWithShortcut(r);else if(a!=="updateGlobalCtx")if(a==="toggleVideoSubtitlePreTranslation")fa()||await ce.toggleVideoSubtitlePreTranslation();else if(a==="getAsyncContextString"){if(!fa())return JSON.stringify(r);await Kt(5e3)}else if(a==="inputSelectedTextTranslate")await ce.inputSelectedTextTranslate(r,n);else{if(a==="popupEventReport")return ce.popupEventReport(r,n);if(a==="updateFloatBallEnable")return ce.updateFloatBallEnable();a==="webReport"?document.dispatchEvent(new CustomEvent(Qu,{detail:{type:"webReport"}})):a===$t&&await ce.translateSelectImage(r,n)}};var _n;function Go(){return _n||(_n=new Tt("content_script",!1).getConnection("main",zo),_n)}var _m=new Map;function Fn(e){let t=Fm(64),a=new CustomEvent(Zu,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(a),new Promise((n,r)=>{_m.set(t,(i,u)=>{i?r(i):n(u)})})}function Fm(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;r[a,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let a={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},n=await Zt({url:Pm,method:"POST",body:JSON.stringify(a)});if(n.header.ret_code!=="succ")throw new Error(n.message||n.header.ret_code);let r=n.language,i=e.langMapReverse.get(r);return i||r}};function Rm(e,t){return Math.floor(Math.random()*(t-e+1))+e}var Lm=30,ui="RATE_LIMITER_TICKS",qa=class e{static strictTicks={};static clearStrictTicks(){ba(ui,"{}")}static async getStrictTicks(t,a){if(a)return this.strictTicks[t]||[];try{let n=await Ua(ui)||"";n&&(this.strictTicks=JSON.parse(n)||{})}catch(n){P.debug("Error setting rate limiter ticks",n),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,a){return new Promise((n,r)=>{e.getDelay(t,a).then(i=>{setTimeout(()=>{n(i)},i)})})}static async setStrictTicks(t,a,n){try{if(this.strictTicks[t]=a,n)return;await ba(ui,JSON.stringify(this.strictTicks))}catch(r){P.debug("Error setting rate limiter ticks",r)}}static async getDelay(t,a,n=!1){if(!n){let l=Rm(4,Lm);await Kt(l)}let r=await this.getStrictTicks(t,n)||[],{limit:i,interval:u}=a,o=Date.now();if(r.length=s?(r.push(o),await this.setStrictTicks(t,r,n),0):(r.push(s),await this.setStrictTicks(t,r,n),s-o)}};async function Bn(e){return await Go().sendMessage("background:main",e)}function Zt(e){return mn()?Fn({method:"request",data:e}):_e()||dn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):Bn({method:"fetch",data:e})}function oi(){return _e()?Qt():Bn({method:"getLocalConfig"})}function Wo(e){return _e()?Nt(e):Bn({method:"setLocalConfig",data:e})}function Ho(e=!1,t){return _e()?(f.extra.openPdfViewerPage(e),Promise.resolve()):Bn({method:"openPdfViewerPage",data:{url:t}})}var Ko={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:N+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:N+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function Xr(e){if(Math.abs(e)<1024)return e+" Byte";let a=["KB","MB","GB","TB","PB","EB","ZB","YB"],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n{let r=e,i=1,u=indexedDB.open(r,i);u.onsuccess=o=>{a(u.result)},u.onerror=o=>{n()},u.onupgradeneeded=o=>{let s=u.result,l=t||"cache";s.createObjectStore(l,{keyPath:"key"})}})}async function Jr(e){let t=`${ue}-${e.service}@${e.from}->${e.to}`;return await Dm(t,{...e,createAt:new Date().getTime()})}async function ei(e){let t=Lo(e.originalText),a=`${ue}-${e.service}@${e.from}->${e.to}`;return await Sm(a,t)}async function Sm(e,t){let a=await ha(e);return await new Promise((n,r)=>{if(!a)return r();let i="cache",o=a.transaction([i],"readonly").objectStore(i).get(t);o.onsuccess=s=>{a.close();let l=o.result;n(l)},o.onerror=s=>{a.close(),r()}})}async function Dm(e,t){let a=await ha(e);return(await ti()).includes(e)||await Am(e),await new Promise(r=>{if(!a)return r(!1);let i="cache",o=a.transaction([i],"readwrite").objectStore(i).put(t);o.onsuccess=s=>{a.close(),r(!0)},o.onerror=s=>{a.close(),r(!1)}})}async function Am(e){let t="cache_list",a=await ha(ue+"-cacheList",t),r=a.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=i=>{a.close(),ga.push(e)},r.onerror=i=>{a.close()}}async function ti(){if(ga&&ga.length>0)return ga;let e=await ha(ue+"-cacheList","cache_list");return ga=await new Promise(t=>{let a="cache_list",r=e.transaction([a],"readonly").objectStore(a).getAllKeys();r.onsuccess=i=>{e.close(),t(r.result)},r.onerror=i=>{e.close(),t([])}}),ga}async function jo(){try{let e=[];(await ti()).forEach(n=>{e.push(Tm(n))});let a=await Promise.all(e);return Xr(a.reduce((n,r)=>n+r,0))}catch{return Xr(0)}}async function Tm(e){let t=await ha(e),n=[...t.objectStoreNames].reduce((u,o)=>{let s=Cm(t,o);return u.push(s),u},[]),r=await Promise.all(n);return t.close(),r.reduce((u,o)=>u+o,0)}async function Cm(e,t){return await new Promise((a,n)=>{if(e==null)return n();let r=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=u=>{let o=i.result;if(o){let s=o.value,l=JSON.stringify(s);r+=l.length,o.continue()}else a(r)},i.onerror=u=>n("error in "+t+": "+u)})}async function Oo(e,t){let a=new Date().getTime(),n=await ti(),r=0;for(let o of n)await i(o),await new Promise(s=>setTimeout(s,0));return r;async function i(o){let s=await ha(o);try{let l=Array.from(s.objectStoreNames);for(let c of l)await u(s,c)}finally{s.close()}}async function u(o,s){let l=o.transaction(s,"readwrite"),c=l.objectStore(s);return await new Promise((d,m)=>{let g=c.openCursor(),y=0,F=100;g.onsuccess=async function(T){let h=T.target.result;if(h){let q=h.value,B;q.createAt?B=q.createAt:B=t,(a-B)/Em>e&&(r++,h.delete()),y++,y%F===0&&await new Promise(Y=>setTimeout(Y,0)),h.continue()}else d()},g.onerror=m}),await new Promise((d,m)=>{l.oncomplete=d,l.onerror=m}),r}}function fa(){try{let e=[le().EBOOK_BUILDER_URL,le().EBOOK_VIEWER_URL,le().SUBTITLE_BUILDER_URL,le().HTML_VIEWER_URL,le().PDF_VIEWER_URL].filter(r=>!!r),t=["app."+Pe];Lt()||t.push("localhost:38001");let a=globalThis.location.pathname;return e.find(r=>{let i=new URL(r);return a.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var km="Original";function No(){return km}var Na=new Map,Tt=class{fromType;logger;constructor(t,a=!1){this.logger=new Ma,a&&this.logger.setLevel("debug"),this.fromType=t,Na.has(t)||(Na.set(t,new Map),f.runtime.onMessage.addListener((n,r,i)=>{let u=n.from,o=n.to,s,l,c;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,l=r.tab.url,c=r.tab.active),this.logger.debug(`${n.to} received message [${n.payload.method}] from ${n.from}`,n.payload.data?n.payload.data:" ");let d=ni(o),{type:m,name:g}=d;if(m!==t)return!1;let y=ni(u),T=Na.get(m).get(g);if(!T)return this.logger.debug(`no message handler for ${m}:${o}, but it's ok`),!1;let{messageHandler:h,sync:q}=T,B={type:t,name:y.name,id:s,url:l,active:c};if(q){try{let z=h(n.payload,B);i({ok:!0,data:z})}catch(z){i({ok:!1,errorName:z.name,errorMessage:z.message,errorDetails:z.details,errorStatus:z.status})}return!1}else return h(n.payload,B).then(z=>{i({ok:!0,data:z})}).catch(z=>{i({ok:!1,errorName:z.name,errorMessage:z.message,errorDetails:z.message,errorStatus:z.status})}),!0}))}getConnection(t,a,n){let r=!1;n&&n.sync&&(r=!0);let i=this.fromType,u=Na.get(i);if(u.has(t))return u.get(t).connectionInstance;{let o=new ai(`${i}:${t}`,this.logger);return Na.get(i).set(t,{messageHandler:a,sync:r,connectionInstance:o}),o}}},ai=class{from;logger;constructor(t,a){this.from=t,this.logger=a}async sendMessage(t,a){let n=ni(t),{type:r,id:i}=n;if(r!=="content_script"){let u={to:t,from:this.from,payload:a};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let o=await f.runtime.sendMessage(u);return qo(u,o,this.logger)}catch(o){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(a)}`;return this.logger.debug(s,a,t,o),Promise.resolve({message:s})}else throw o}}else{let u={from:this.from,to:t,payload:a};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let o=await f.tabs.sendMessage(i,u);return qo(u,o,this.logger)}}};function qo(e,t,a){if(t){if(t.ok)return a.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new vt(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new vt("noResponse","Unknown error")}function ni(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let a={type:t[0],name:t[1]};if(t[0]==="content_script"){let n=parseInt(t[2]);if(!isNaN(n))a.id=n;else throw new Error("tab id not a valid number")}return a}function ri(e){return e?.id?.endsWith("pdfWebPage")||!1}function Uo(e){try{if(!e||!ri(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let n=e.pdfUrlExtractRule,{selector:r,attribute:i}=n;if(r&&i){let u=document.querySelector(r);if(!u)return"";t=u.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let a=new URL(location.href);return t.startsWith("//")?a.protocol+t:a.protocol+"//"+a.host+t}catch{return""}}var ce={},zo=async function(e,t){let{method:a,data:n}=e;if(a==="getIsDulSubtitle")return ce.getIsDulSubtitle();if(a==="getPageStatus")return No();a==="updateContextState"&&await ce.updateContextState(n);let r=await ce.updateGlobalContext(),i=Date.now();if(P.debug(`content script received message: ${a}`,n||" "),a==="translateTheWholePage")await ce.translateTheWholePage(n),we(st,i);else if(a==="translateTheMainPage")await ce.translateTheMainPage(n),we(st,i);else if(a==="translateToThePageEndImmediately")await ce.translateToThePageEndImmediately(n),we(st,i);else if(a==="toggleTranslateManga")await ce.toggleTranslateManga(),we(st,i);else if(a==="toggleTranslatePage"){let u=location.href;if(ri(r?.rule)){let o=Uo(r.rule);Ho(!0,o||u);return}await ce.toggleTranslatePage(n),we(st,i)}else if(a==="toggleTranslateTheWholePage")await ce.toggleTranslateTheWholePage(n),we(st,i);else if(a==="toggleTranslateTheMainPage")await ce.toggleTranslateTheMainPage(n),we(st,i);else if(a==="toggleOnlyTransation")await ce.ensureSwitchTranslationMode(n),we(st,i);else if(a=="toggleEnableEditTranslation")ce.toggleEnableEditTranslation();else if(a==="translatePage")await ce.translatePage(r,n),we(st,i);else if(a==="toggleTranslationMask")await ce.toggleTranslationMask(n);else if(a==="restorePage")ce.restorePage();else if(a==="retryFailedParagraphs")ce.retryFailedParagraphs();else if(a=="change_translate_service")ce.reportTranslateService(r,n);else if(a==="switchTranslationMode"){if(r.rule.isPdf)return;n&&n.mode&&(await ce.switchTranslationMode(n.mode),await ce.reloadSubtitleWithTranslationModeChanged())}else if(a==="autoEnableSubtitleChanged")ce.autoEnableSubtitleChanged(r,n);else if(a=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Xu,{detail:n}));else if(a=="toggleTranslateToThePageEndImmediately")await ce.toggleTranslateToThePageEndImmediately(n);else if(a==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Ju,{detail:n}));else if(a==="translateWithOpenAI")await ce.translatePageWithTranslationService("openai",n);else if(a==="translateWithGoogle")await ce.translatePageWithTranslationService("google",n);else if(a==="translateWithDeepL")await ce.translatePageWithTranslationService("deepl",n);else if(a==="translateWithBing")await ce.translatePageWithTranslationService("bing",n);else if(a==="translateWithTransmart")await ce.translatePageWithTranslationService("transmart",n);else if(a==="translateWithGemini")await ce.translatePageWithTranslationService("gemini",n);else if(a==="translateWithClaude")await ce.translatePageWithTranslationService("claude",n);else if(a.startsWith("translateWithCustom"))await ce.translatePageWithTranslationService(r.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[a]??"bing",n);else if(a==="translateInputBox")await ce.translateInputBoxWithShortcut(r);else if(a!=="updateGlobalCtx")if(a==="toggleVideoSubtitlePreTranslation")fa()||await ce.toggleVideoSubtitlePreTranslation();else if(a==="getAsyncContextString"){if(!fa())return JSON.stringify(r);await Kt(5e3)}else if(a==="inputSelectedTextTranslate")await ce.inputSelectedTextTranslate(r,n);else{if(a==="popupEventReport")return ce.popupEventReport(r,n);if(a==="updateFloatBallEnable")return ce.updateFloatBallEnable();a==="webReport"?document.dispatchEvent(new CustomEvent(Qu,{detail:{type:"webReport"}})):a===$t&&await ce.translateSelectImage(r,n)}};var _n;function Go(){return _n||(_n=new Tt("content_script",!1).getConnection("main",zo),_n)}var _m=new Map;function Fn(e){let t=Fm(64),a=new CustomEvent(Zu,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(a),new Promise((n,r)=>{_m.set(t,(i,u)=>{i?r(i):n(u)})})}function Fm(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;r[a,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let a={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},n=await Zt({url:Pm,method:"POST",body:JSON.stringify(a)});if(n.header.ret_code!=="succ")throw new Error(n.message||n.header.ret_code);let r=n.language,i=e.langMapReverse.get(r);return i||r}};function Rm(e,t){return Math.floor(Math.random()*(t-e+1))+e}var Lm=30,ui="RATE_LIMITER_TICKS",qa=class e{static strictTicks={};static clearStrictTicks(){ba(ui,"{}")}static async getStrictTicks(t,a){if(a)return this.strictTicks[t]||[];try{let n=await Ua(ui)||"";n&&(this.strictTicks=JSON.parse(n)||{})}catch(n){P.debug("Error setting rate limiter ticks",n),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,a){return new Promise((n,r)=>{e.getDelay(t,a).then(i=>{setTimeout(()=>{n(i)},i)})})}static async setStrictTicks(t,a,n){try{if(this.strictTicks[t]=a,n)return;await ba(ui,JSON.stringify(this.strictTicks))}catch(r){P.debug("Error setting rate limiter ticks",r)}}static async getDelay(t,a,n=!1){if(!n){let l=Rm(4,Lm);await Kt(l)}let r=await this.getStrictTicks(t,n)||[],{limit:i,interval:u}=a,o=Date.now();if(r.length=s?(r.push(o),await this.setStrictTicks(t,r,n),0):(r.push(s),await this.setStrictTicks(t,r,n),s-o)}};async function Bn(e){return await Go().sendMessage("background:main",e)}function Zt(e){return mn()?Fn({method:"request",data:e}):_e()||dn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):Bn({method:"fetch",data:e})}function oi(){return _e()?Qt():Bn({method:"getLocalConfig"})}function Wo(e){return _e()?Nt(e):Bn({method:"setLocalConfig",data:e})}function Ho(e=!1,t){return _e()?(f.extra.openPdfViewerPage(e),Promise.resolve()):Bn({method:"openPdfViewerPage",data:{url:t}})}var Ko={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5475,7 +5475,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u548C\u5BFC\u822A\u6761\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F\u4E0E\u9876\u90E8\u5BFC\u822A\u83DC\u5355"};var Vo={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F"};var Vo={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5489,7 +5489,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u548C\u5C0E\u822A\u689D\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04\u8207\u9802\u90E8\u5C0E\u822A\u83DC\u55AE"};var $o={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u958B\u555F\u5074\u908A\u6B04\u7FFB\u8B6F"};var $o={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5502,7 +5502,7 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","subtitle.ytAIAsrProTooltip":"This feature is only available to Pro users, <1>click here to upgrade to a member.","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)"};var Om=[{code:"zh-CN",messages:Ko},{code:"zh-TW",messages:Vo},{code:"en",messages:$o}],Yo=_e()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ut={};for(let e of Om)Ut[e.code]=e.messages;function Nm(e,t){let a=e;return t&&Object.keys(t).forEach(n=>{let r=t[n];if(r===void 0)return;let i=Um(n);if(typeof r=="object"||i){let u=r;i&&typeof u=="string"&&(u={tag:"a",href:u,target:"_blank",class:ue+"-link"});let o=`<${n}>`,s=a.indexOf(o);if(s!==-1){let l=u.tag||"a",c=a.indexOf(``);if(c!==-1){let d=a.substring(s+o.length,c),m=Object.keys(u).filter(g=>g!=="tag").map(g=>`${g}="${u[g]}"`).join(" ");a=a.replace(`${o}${d}`,`<${l} ${m}>${d}`)}}}else if(r){let u=new RegExp("{"+n+"}","gm");a=a.replace(u,r.toString())}}),a}function Zo(e,t,a){let n=e[t];if(!n)return a;if(!a)return"";let r=a.split("."),i="";do{i+=r.shift();let u=n[i];u!==void 0&&(typeof u=="object"||!r.length)?(n=u,i=""):r.length?i+=".":n=a}while(r.length);return n}function qm(e,t,a,n){if(!Ut.hasOwnProperty(t)&&!Ut.hasOwnProperty(a))return e;let r=Zo(Ut,t,e);return r===e&&t!==a&&(r=Zo(Ut,a,e)),Nm(r,n)}function Um(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function je(e,t,a){return qm(t,e,"en",a)}function Qo(e,t){let a=new Date(e),n=a.getFullYear().toString(),r=(a.getMonth()+1).toString().padStart(2,"0"),i=a.getDate().toString().padStart(2,"0"),u=a.getHours().toString().padStart(2,"0"),o=a.getMinutes().toString().padStart(2,"0"),s=a.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",n).replace("MM",r).replace("DD",i).replace("HH",u).replace("mm",o).replace("ss",s)}function Xo(e){return new Date(e).getTime()}var vt=class extends Error{status;constructor(t,a){if(t&&a){super(a),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let a=this.getTranslationServiceName(t);return Sn.includes(a)&&t.config.translationServices[a]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let a=null;if(a=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!a){let n=je.bind(null,t.config.interfaceLanguage),r=this.getErrorMsg();a={type:"error",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:wn,2:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}return a}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let a=je.bind(null,t.config.interfaceLanguage),n=this.message.startsWith("bingAuth"),r=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(n||r)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${a("translationServices."+this.getTranslationServiceName(t))}] `+a("networkError"),errMsg:a("error.serveUnavailable",{serverName:a("translationServices."+this.getTranslationServiceName(t)),1:wn,2:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+a("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let a=je.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:a("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+a("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let a=je.bind(null,t.config.interfaceLanguage),n="retry",r="network",i=`[${this.getCustomPrefix(t)}${a("translationServices."+this.getTranslationServiceName(t))}] `+a("networkError");if(!this.status||this.status<0)return;let u=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?u=`${a("error.googleLimitIp")}

${u}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?u=`${a("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)",disableNavTranslate:"Close sidebar translation",enableNavTranslate:"Enable sidebar translation"};var Om=[{code:"zh-CN",messages:Ko},{code:"zh-TW",messages:Vo},{code:"en",messages:$o}],Yo=_e()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ut={};for(let e of Om)Ut[e.code]=e.messages;function Nm(e,t){let a=e;return t&&Object.keys(t).forEach(n=>{let r=t[n];if(r===void 0)return;let i=Um(n);if(typeof r=="object"||i){let u=r;i&&typeof u=="string"&&(u={tag:"a",href:u,target:"_blank",class:ue+"-link"});let o=`<${n}>`,s=a.indexOf(o);if(s!==-1){let l=u.tag||"a",c=a.indexOf(``);if(c!==-1){let d=a.substring(s+o.length,c),m=Object.keys(u).filter(g=>g!=="tag").map(g=>`${g}="${u[g]}"`).join(" ");a=a.replace(`${o}${d}`,`<${l} ${m}>${d}`)}}}else if(r){let u=new RegExp("{"+n+"}","gm");a=a.replace(u,r.toString())}}),a}function Zo(e,t,a){let n=e[t];if(!n)return a;if(!a)return"";let r=a.split("."),i="";do{i+=r.shift();let u=n[i];u!==void 0&&(typeof u=="object"||!r.length)?(n=u,i=""):r.length?i+=".":n=a}while(r.length);return n}function qm(e,t,a,n){if(!Ut.hasOwnProperty(t)&&!Ut.hasOwnProperty(a))return e;let r=Zo(Ut,t,e);return r===e&&t!==a&&(r=Zo(Ut,a,e)),Nm(r,n)}function Um(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function je(e,t,a){return qm(t,e,"en",a)}function Qo(e,t){let a=new Date(e),n=a.getFullYear().toString(),r=(a.getMonth()+1).toString().padStart(2,"0"),i=a.getDate().toString().padStart(2,"0"),u=a.getHours().toString().padStart(2,"0"),o=a.getMinutes().toString().padStart(2,"0"),s=a.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",n).replace("MM",r).replace("DD",i).replace("HH",u).replace("mm",o).replace("ss",s)}function Xo(e){return new Date(e).getTime()}var vt=class extends Error{status;constructor(t,a){if(t&&a){super(a),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let a=this.getTranslationServiceName(t);return Sn.includes(a)&&t.config.translationServices[a]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let a=null;if(a=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!a){let n=je.bind(null,t.config.interfaceLanguage),r=this.getErrorMsg();a={type:"error",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:wn,2:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}return a}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let a=je.bind(null,t.config.interfaceLanguage),n=this.message.startsWith("bingAuth"),r=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(n||r)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${a("translationServices."+this.getTranslationServiceName(t))}] `+a("networkError"),errMsg:a("error.serveUnavailable",{serverName:a("translationServices."+this.getTranslationServiceName(t)),1:wn,2:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+a("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let a=je.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:a("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+a("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let a=je.bind(null,t.config.interfaceLanguage),n="retry",r="network",i=`[${this.getCustomPrefix(t)}${a("translationServices."+this.getTranslationServiceName(t))}] `+a("networkError");if(!this.status||this.status<0)return;let u=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?u=`${a("error.googleLimitIp")}

${u}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?u=`${a("error.openAIFreeLimit")}

${u}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?u=`${a("error.openAIExceededQuota")}

${u}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?u=`${a("error.gemini.429")}

${u}`:u=`${a("error.429")}

${u}`:this.status===403?this.data?.translationService=="claude"?u=`${a("error.claude.403")}

${u}`:u=`${a("error.403")}

${u}`:this.status===400?u=`${a("error.400")}

${u}`:this.status===502?u=`${a("error.502")}

${u}`:this.status===404?u.includes("User subscription not found")&&(u=`${a("error.subscriptionExpired")}

${u}`,n="setting",r="configError",i=a("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(u=`${a("error.azure.401")}

${u}`),{type:r,title:i,errMsg:u,action:n}}handleFetchError(t){let a=je.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let n=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${a("translationServices."+this.getTranslationServiceName(t))}] `+a("networkError"),errMsg:a("error.serveUnavailable",{serverName:a("translationServices."+this.getTranslationServiceName(t)),1:wn,2:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:N+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+a("errorReason",{message:n}),action:"changeService"}}handleProUser(t){let a=je.bind(null,t.config.interfaceLanguage),n=this.getTranslationServiceName(t);if(Sn.find(i=>i===n)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:a("notLoginPro"),errMsg:a("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:a("upgradeToProErrorTitle"),errMsg:a("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:a("notLoginPro"),errMsg:a("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:a("error.subscriptionExpiredTitle"),errMsg:a("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[n]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:a("error.serveProUnavailable",{serverName:a("translationServices."+n)})+"

"+a("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let a=je.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let r=[a("mangaQuotaError.package",{brandId:ue,href:ro})];si(t.user,r,a);let i=a("errorReason",{message:` ${a("mangaQuotaError.solvedTitle")}

@@ -5512,7 +5512,7 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad ${u.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return n("errorReason",{message:s})}getProQuotaError(t,a){let n=je.bind(null,t.config.interfaceLanguage),r=t.user.subscription,{subscriptionType:i,isTrial:u}=r,o=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",s=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[n("proQuotaError.toggleAnotherService",{anotherService:o})];if(i=="onetime_7day")l.push(n("proQuotaError.onetime7day",{brandId:ue,href:io}));else{let d="";s=="AI"?d=uo:d=oo,u?l.push(n("proQuotaError.trail",{brandId:ue,href:Gr})):l.push(n("proQuotaError.package",{brandId:ue,href:d,translationService:s})),si(t.user,l,n)}let c=a+`${n("proQuotaError.solvedTitle")}

${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return n("errorReason",{message:c})}};function si(e,t,a){if(!e||!e?.subscription)return;let n=e?.subscription,{isTrial:r,openAITokenUsedCountResetTime:i,subscriptionTo:u}=n;!r&&(n.cancelAtPeriodEnd==="false"||Xo(u)>i)&&t.push(a("proQuotaError.resetTime",{resetTime:Qo(i,"YYYY-MM-DD HH:mm:ss")}))}function Jo(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([a,n])=>{t.append(a,n)}),t}function es(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([a,n])=>{if(Array.isArray(n))for(let r of n)t.append(a,r);else t.append(a,n)}),t.toString()}function ts(e){let{mimeType:t,base64:a}=zm(e),n=atob(a),r=[],i=512;for(let o=0;o0)try{t=await dr(as.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(a){throw a&&a.name==="RetryError"&&a.cause?a.cause:a}else t=await as(e);return t}async function as(e){e.body;let{url:t,responseType:a,requestType:n,...r}=e;a||(a="json"),n||(n="json"),r={mode:"cors",...r},n=="formData"?r.body=Jo(e.body):n=="urlSearchParams"?r.body=es(e.body):n=="blob"&&e.body&&(r.body=ts(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let u=e.fetchPolyfill||fetch,o=3e4,s;if(e.timeout&&(o=e.timeout),i){let c=new AbortController,d=c.signal;s=setTimeout(()=>{c.abort()},o),r.signal=d}let l;try{l=await u(t,r)}catch(c){P.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new vt("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{s&&clearTimeout(s)}if(l.ok&&l.status>=200&&l.status<400){if(a=="HEAD"){if(l.url!==t)throw new vt("fetchError","redirect url:"+l.url);return l.statusText}if(a==="json")return await l.json();if(a==="text")return await l.text();if(a==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(a==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((g,y)=>{d.onload=function(){let F=d.result;g(F)},d.onerror=function(){y(d.error)}});return d.readAsDataURL(c),m}else if(a==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of Gm(l.body)){let g=new TextDecoder().decode(m);c+=g;let y;for(;(y=c.indexOf(` -`))>=0;){let F=c.slice(0,y).trim();if(c=c.slice(y+1),F.startsWith("event:")||F==="")continue;let T="";if(F.startsWith("data:")&&(T=F.slice(5).trim()),T==="[DONE]")break;let h;try{h=JSON.parse(T??"")}catch(q){P.debug("json error",q);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(F){P.error("parse response failed",F)}c&&P.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,y=new URL(t).hostname.endsWith(`.${Pe}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),y&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new vt("fetchError",m).initNetWork(l.status)}}async function*Gm(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var ns={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Wm="";function Xt(){return Wm||ns.version}function li(){return f.runtime.getManifest().version}var Km="";function Pn(){return Km||globalThis.navigator.userAgent}function ci(){return Pn().includes("ImtFxiOS")}function Rn(){return Pn().includes("ImtFxAndroid")}function di(){let t=Pn().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Jt(){let e=Pn();if(ci()||Rn()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var Ln=function(){return Ln=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Vm()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function za(e){return e.then(void 0,function(){}),e}function Ym(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function Qm(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(m,g){u[m]=u[m]||[],u[m].push(g)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function Xm(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function zt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i+l,m+=g>>>16,g&=65535,m+=r+s,d+=m>>>16,m&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function lt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i*l,m+=g>>>16,g&=65535,m+=r*l,d+=m>>>16,m&=65535,m+=i*s,d+=m>>>16,m&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function va(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function at(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];De(e,t),lt(e,Jm),t[1]=e[0]>>>1,De(e,t),lt(e,ep),t[1]=e[0]>>>1,De(e,t)}var Mn=[2277735313,289559509],In=[1291169091,658871167],os=[0,5],tp=[0,1390208809],ap=[0,944331445];function np(e,t){var a=Xm(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function rp(e){var t;return Ln({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`))>=0;){let F=c.slice(0,y).trim();if(c=c.slice(y+1),F.startsWith("event:")||F==="")continue;let T="";if(F.startsWith("data:")&&(T=F.slice(5).trim()),T==="[DONE]")break;let h;try{h=JSON.parse(T??"")}catch(q){P.debug("json error",q);continue}d=h}}return d}}else{let c;try{c=await l.text()}catch(F){P.error("parse response failed",F)}c&&P.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,y=new URL(t).hostname.endsWith(`.${Pe}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),y&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new vt("fetchError",m).initNetWork(l.status)}}async function*Gm(e){let t=e.getReader();try{for(;;){let{done:a,value:n}=await t.read();if(a)return;yield n}}finally{t.releaseLock()}}var ns={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.7",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Wm="";function Xt(){return Wm||ns.version}function li(){return f.runtime.getManifest().version}var Km="";function Pn(){return Km||globalThis.navigator.userAgent}function ci(){return Pn().includes("ImtFxiOS")}function Rn(){return Pn().includes("ImtFxAndroid")}function di(){let t=Pn().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Jt(){let e=Pn();if(ci()||Rn()){let t=e.match(/Imt[\w/.]+/);if(t){let a=t[0].split("/"),n=a[0];return a[2]&&(n+="_"+a[2]),{name:n,version:a[1]}}}return null}var Ln=function(){return Ln=Object.assign||function(e){for(var t,a=1,n=arguments.length;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=r+a?(r=u,[4,Vm()]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++i,[3,1];case 4:return[2,n]}})})}function za(e){return e.then(void 0,function(){}),e}function Ym(e,t){for(var a=0,n=e.length;a=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function Qm(e){for(var t,a,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),i=r[1]||void 0,u={},o=/([.:#][\w-]+|\[.+?\])/gi,s=function(m,g){u[m]=u[m]||[],u[m].push(g)};;){var l=o.exec(r[2]);if(!l)break;var c=l[0];switch(c[0]){case".":s("class",c.slice(1));break;case"#":s("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)s(d[1],(a=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&a!==void 0?a:"");else throw new Error(n);break}default:throw new Error(n)}}return[i,u]}function Xm(e){for(var t=new Uint8Array(e.length),a=0;a127)return new TextEncoder().encode(e);t[a]=n}return t}function zt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i+l,m+=g>>>16,g&=65535,m+=r+s,d+=m>>>16,m&=65535,d+=n+o,c+=d>>>16,d&=65535,c+=a+u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function lt(e,t){var a=e[0]>>>16,n=e[0]&65535,r=e[1]>>>16,i=e[1]&65535,u=t[0]>>>16,o=t[0]&65535,s=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,g=0;g+=i*l,m+=g>>>16,g&=65535,m+=r*l,d+=m>>>16,m&=65535,m+=i*s,d+=m>>>16,m&=65535,d+=n*l,c+=d>>>16,d&=65535,d+=r*s,c+=d>>>16,d&=65535,d+=i*o,c+=d>>>16,d&=65535,c+=a*l+n*s+r*o+i*u,c&=65535,e[0]=c<<16|d,e[1]=m<<16|g}function va(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=a<>>32-t)}function at(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];De(e,t),lt(e,Jm),t[1]=e[0]>>>1,De(e,t),lt(e,ep),t[1]=e[0]>>>1,De(e,t)}var Mn=[2277735313,289559509],In=[1291169091,658871167],os=[0,5],tp=[0,1390208809],ap=[0,944331445];function np(e,t){var a=Xm(e);t=t||0;var n=[0,a.length],r=n[1]%16,i=n[1]-r,u=[0,t],o=[0,t],s=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function rp(e){var t;return Ln({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` `)},e)}function ip(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function up(e){return typeof e!="function"}function op(e,t){var a=za(new Promise(function(n){var r=Date.now();rs(e.bind(null,t),function(){for(var i=[],u=0;u=4}function lp(){var e=window,t=navigator;return nt(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!xs()}function Nn(){var e=window,t=navigator;return nt(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function bt(){var e=window,t=navigator;return nt(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function vi(){var e=window,t=e.HTMLElement,a=e.Document;return nt(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),a&&"pointerLockElement"in a.prototype])>=4}function Ga(){var e=window;return ip(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function ws(){var e,t,a=window;return nt(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function cp(){var e=window;return nt([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function dp(){var e=window;return nt(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Ha(){var e=window,t=navigator,a=e.CSS,n=e.HTMLButtonElement;return nt([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,a.supports("font-size-adjust: ex-height 0.5"),a.supports("text-transform: full-width")])>=4}function mp(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return nt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function pp(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function gp(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function xi(){var e=Nn(),t=ws(),a=window,n=navigator,r="connection";return e?nt([!("SharedWorker"in a),n[r]&&"ontypechange"in n[r],!("sinkId"in new window.Audio)])>=2:t?nt(["onorientationchange"in a,"orientation"in a,/android/i.test(navigator.appVersion)])>=2:!1}function hp(){return yp()?-4:fp()}function fp(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(bp())return-1;var a=4500,n=5e3,r=new t(1,n,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var u=r.createDynamicsCompressor();u.threshold.value=-50,u.knee.value=40,u.ratio.value=12,u.attack.value=0,u.release.value=.25,i.connect(u),u.connect(r.destination),i.start(0);var o=vp(r),s=o[0],l=o[1],c=za(s.then(function(d){return xp(d.getChannelData(0).subarray(a))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function bp(){return bt()&&!vi()&&!dp()}function yp(){return bt()&&Ha()&&Ga()}function vp(e){var t=3,a=500,n=500,r=5e3,i=function(){},u=new Promise(function(o,s){var l=!1,c=0,d=0;e.oncomplete=function(y){return o(y.renderedBuffer)};var m=function(){setTimeout(function(){return s(ss("timeout"))},Math.min(n,d+r-Date.now()))},g=function(){try{var y=e.startRendering();switch(ys(y)&&za(y),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?s(ss("suspended")):setTimeout(g,a);break}}catch(F){s(F)}};g(),i=function(){l||(l=!0,d>0&&m())}});return[u,i]}function xp(e){for(var t=0,a=0;a=0?"+":"").concat(n)}function Qp(){var e=new Date().getFullYear();return Math.max(ft(new Date(e,0,1).getTimezoneOffset()),ft(new Date(e,6,1).getTimezoneOffset()))}function Xp(){try{return!!window.sessionStorage}catch{return!0}}function Jp(){try{return!!window.localStorage}catch{return!0}}function eg(){if(!(xs()||lp()))try{return!!window.indexedDB}catch{return!0}}function tg(){return!!window.openDatabase}function ag(){return navigator.cpuClass}function ng(){var e=navigator.platform;return e==="MacIntel"&&bt()&&!vi()?mp()?"iPad":"iPhone":e}function rg(){return navigator.vendor||""}function ig(){for(var e=[],t=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),o.sort(),[2,o]}})})}function lg(){return bt()||xi()}function cg(e){var t;return gt(this,void 0,void 0,function(){var a,n,r,i,s,u,o,s;return ht(this,function(l){switch(l.label){case 0:for(a=document,n=a.createElement("div"),r=new Array(e.length),i={},cs(n),s=0;s')}function Ag(){return navigator.pdfViewerEnabled}function Tg(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Cg(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(kg())return-3;try{return e.canMakePayments()?1:0}catch(t){return _g(t)}}var kg=Sp;function _g(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Fg(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var Ss=-1,Ds=-2,Bg=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Pg=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Rg=["FRAGMENT_SHADER","VERTEX_SHADER"],Lg=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],As="WEBGL_debug_renderer_info",Mg="WEBGL_polygon_mode";function Ig(e){var t,a,n,r,i,u,o=e.cache,s=Ts(o);if(!s)return Ss;if(!ks(s))return Ds;var l=Cs()?null:s.getExtension(As);return{version:((t=s.getParameter(s.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=s.getParameter(s.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:l?(n=s.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((r=s.getParameter(s.RENDERER))===null||r===void 0?void 0:r.toString())||"",rendererUnmasked:l?(i=s.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((u=s.getParameter(s.SHADING_LANGUAGE_VERSION))===null||u===void 0?void 0:u.toString())||""}}function jg(e){var t=e.cache,a=Ts(t);if(!a)return Ss;if(!ks(a))return Ds;var n=a.getSupportedExtensions(),r=a.getContextAttributes(),i=[],u=[],o=[],s=[],l=[];if(r)for(var c=0,d=Object.keys(r);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(bs,"/npm-monitoring"),!0),e.send()}catch{}}function e4(e){var t;return e===void 0&&(e={}),gt(this,void 0,void 0,function(){var a,n,r;return ht(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Jg(),a=e.delayFallback,n=e.debug,[4,Qg(a)];case 1:return i.sent(),r=Gg({cache:{},debug:n}),[2,Xg(r,n)]}})})}var wi={load:e4,hashComponents:_s,componentsToDebugString:Yg};async function ea(){let e=await Oe("fakeUserId","");e||(e=await ja("fakeUserId",""),e&&await we("fakeUserId",e));let t=new Date,a=await Oe("installedAt","");return a||(a=await ja("installedAt",""),a&&await we("installedAt",a)),e?a||(a=new Date(0).toISOString(),await we("installedAt",a)):(e=await n4(64),await we("fakeUserId",e)),a||(a=t.toISOString(),await we("installedAt",a)),{fakeUserId:e,installedAt:a}}var t4=10;async function Wa(){let e=await Oe("userTag","");if(e)return e;let{fakeUserId:t}=await ea(),n=t.charCodeAt(0)%t4;return e=String.fromCharCode(n+"a".charCodeAt(0)),await we("userTag",e),e}function a4(e){let t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=a.length,r=0;for(;rArray.from(new Uint8Array(u)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):r4(i,e)}catch{return a4(64)}}function r4(e,t=32){let a="";for(let r=0;r{}),qn)}async function Rs(e,t){try{let a=le(),n=a.INSTALL_FROM==="firefox_store";if(Jt()?.name?.startsWith("ImtFx")&&(n=!1),n)return;let i=_e(),u=fa(),o=a.PROD==="1",s=Xt(),l=new Date,{fakeUserId:c,installedAt:d}=await ea(),m=await Wa(),g=await Ei(),y=await Si(),F=new Date(d),T=Di(F),h=Di(l),q=T===h,B=24*60*60*1e3,z=l.getTime()-F.getTime()<7*B,Y=l.getTime()-F.getTime()<30*B,A=l.getTime()-F.getTime()<365*B,b=Dn(),x="";typeof navigator<"u"&&(x=window.navigator.userAgent);let w=un.parse(x),L=e.map(H=>{let S=H.params||{};if(w.os&&(S.os_name=w.os.name||"unknown",S.os_version=w.os.version||"unknown",S.os_version_name=w.os.versionName||"unknown"),w.browser){S.browser_name=w.browser.name||"unknown",S.browser_version=w.browser.version||"unknown";let M=Jt();M&&(S.browser_name=M.name,S.browser_version=M.version)}if(w.platform&&(S.platform_type=w.platform.type||"unknown"),w.engine&&(S.engine_name=w.engine.name||"unknown",S.engine_version=w.engine.version||"unknown"),s&&(S.version=s),a.INSTALL_FROM&&(S.install_from=a.INSTALL_FROM),T){S.install_day=Fs(F);let M=Ps(F);S.install_week=`${M.year}${M.week}`}return S.userscript=i.toString(),q?S.is_new_user_today="1":S.is_new_user_today="0",S.is_new_user_this_week=z?"1":"0",S.is_new_user_this_month=Y?"1":"0",S.is_new_user_this_year=A?"1":"0",u?S.main_frame=0:S.main_frame=1,m&&(S.ab_tag=m),g&&(S.ab_group=g),S.campaign=y||"none",{...H,params:S}});b.forEach(async H=>{let S=await Ls({responseType:"text",url:H,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:L})})}),t&&o4(c,L)}catch{}}async function u4(e){return await i4().sendMessage("background:main",e)}function Ls(e){return mn()?Fn({method:"request",data:e}):_e()||dn()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):u4({method:"fetch",data:e})}function o4(e,t){try{t.forEach(a=>{let n={...a.params,event_name:a.name,device_id:e};n?.install_day&&(n.install_day=Bs(n.install_day)),n.temp_translate_domain_minutes&&(n.temp_translate_domain_minutes=parseInt(n.temp_translate_domain_minutes.toString())),n.site_host&&delete n.site_host;let r=Date.now()+(Math.random()*100).toFixed(0);Ls({url:ho,method:"POST",responseType:"text",body:JSON.stringify({nonce:r,subject:"user_behaviour",logs:[JSON.stringify(n)]})})})}catch(a){P.debug("report self service error",a)}}var Ai={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} @@ -5758,11 +5758,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(
||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{sideHead:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{sideHead:"1","default-translate":"no"},nav:{sideHead:"1","default-translate":"no"}},navHeadEnableTranslate:!0,selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.5]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ"],translationMode:"translation"},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` `},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"}},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"im.zendesk",matches:"https://immersivetranslate.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"],"excludeSelectors.add":["blockquote"]},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{generalSetting:{startKey:"start",endKey:"end",textKey:"text",timeDivisor:1e3},attachRule:{appendSelector:".video-wrapper",injectedGlobalCSS:[".closed-captions {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 15%;}"]}}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};var l6=_e();var Ns,oe,qs,l4,Ka,Ms,Us,zs={},Gs=[],c4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Gt(e,t){for(var a in t)e[a]=t[a];return e}function Hs(e){var t=e.parentNode;t&&t.removeChild(e)}function Ti(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++qs};return r==null&&oe.vnode!=null&&oe.vnode(i),i}function ta(e){return e.children}function Un(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Ti(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null){if(g.__=a,g.__b=a.__b+1,(m=h[c])===null||m&&g.key==m.key&&g.type===m.type)h[c]=void 0;else for(d=0;dol.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(ol.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return E4(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let T=s.split("://");l=T[0],l==="*"&&T.length>1&&(l="*",s="https://"+T[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,ll),m;try{m=new URL(d)}catch{return P.debug("invalid match pattern",d,"raw match value:",c),!1}let g=m.host,y=m.pathname;y==="/"&&(c.replace("://","").includes("/")||(y="/*"));let F=w4(l+":",sl(g),sl(y));return F?F.test(e):!1}});if(o)return o}return null}catch{return null}}function sl(e){return e.replaceAll(ll,"*")}function w4(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Wn(e,t){return x4(e,t)!==null}function E4(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var S4=null;if(typeof trustedTypes<"u")try{S4=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var D4=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(D4=!0)});var G6=globalThis.document?.createElement("div");function aa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Kn(e){return Array.isArray(e)?e:e?[e]:[]}function pl(e,t){let a={...e};return hl(a,t),T4(a,t),a}function gl(e,t,a){let n={...e};return kt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),kt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function T4(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;hl(e,r)}function kt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=cl(i);if(u=="rich"){if(!r)return n(i,e[i]);let[m,g,y,F]=cl(i);u=m+"."+g,o=y,s=F}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Kn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!dl(s))return;d=Ri(c,l)}else if(o=="remove_v"){if(!dl(s))return;d=ml(c,l)}else o==="add"?d=Ri(c,l):o=="remove"&&(d=ml(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Ri(c,l):d=l,n(u,d)})}function hl(e,t){return kt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Ri(e,t){let a;if(Array.isArray(e)){let n=Kn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function cl(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function dl(e){let t=Xt();return e&&aa(t,e)}function ml(e,t){if(Array.isArray(e)){let a=Kn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var fl="userConfig",bl="userPromptPool",yl="userObjectPool";async function vl(){let e=await Dl(fl)||{},t=await Ua(bl)||{},a=await Ua(yl)||{};return k4(e,t,a)}async function xl(e){let{userConfig:t,promptPool:a,objectPool:n}=await C4(e);await Sl(fl,t),await ba(bl,a),await ba(yl,n)}function C4(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return wl(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),El(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function k4(e,t,a){return wl(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),El(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function wl(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function El(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}function _4(){if(te.PROD==="1")return{};let e={};if(te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(te.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:te.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(te.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:te.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(te.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&te.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:te.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:te.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(te.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:te.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(te.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=te.DEEPL_PROXY_ENDPOINT),te.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=te.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),te.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:te.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}te.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=te.IMMERSIVE_TRANSLATE_SERVICE);let t={};return te.DEBUG==="1"&&(t.debug=!0,t.cache=!1),te.MOCK==="1"&&(t.translationService="mock"),t}async function Qt(){let e=await f.storage.local.get(Ra);if(e[Ra]){let t=e[Ra],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await Nt(i),i}else return{}}async function Nt(e){await f.storage.local.set({[Ra]:e})}async function F4(){return te.DEBUG==="1"?void 0:(await f.storage.local.get(Ir))[Ir]}async function Ne(){let e=await F4(),t={...Ai,buildinConfigUpdatedAt:te.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let _=new Date(e.buildinConfigUpdatedAt),R=new Date(t.buildinConfigUpdatedAt);_>R&&(t=e)}let a=await L4(t);t.targetLanguage=a;let n=await ma.get(It,null),r={};if(!_e()&&f.commands&&f.commands.getAll){let _=await f.commands.getAll();for(let R of _)R.name&&R.shortcut&&(r[R.name]=R.shortcut)}let i=await P4(),u=_4(),o=await qt(),s=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Qt(),c=new Date,d=Object.assign({},s,u,o);if(!d.interfaceLanguage){let _=await B4();d.interfaceLanguage=_}let m=d.interfaceLanguage==="en",g=d.targetLanguage==="en",y=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,F=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!g&&!y&&F?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let T=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(T=!1);let h=d&&d.isChangedAlwaysTranslatedUrls,q=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(q=d.translationUrlPattern.matches||[]);let B=!1;h===void 0&&(q.length>0?h=!0:h=!1,d.isChangedAlwaysTranslatedUrls=h,o.isChangedAlwaysTranslatedUrls=h,B=!0);let z=(d?.translationLanguagePattern?.matches?.length||0)>0,Y=await Oe("installedAt",""),A=Number(await ja("translage_page_daily",0)),b=Number(await Oe(st,0)),x;b>0&&(Date.now()-b0&&(Date.now()-A0){let _=l.tempTranslationUrlMatches.filter(R=>new Date(R.expiredAt)>c);if(_.length>0){let R=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],he=Array.isArray(R)?R:[R],Z=Array.from(new Set(he.concat(_.map(re=>re.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:Z}}}let S=Object.assign(i,t);kt({rule:t,valueIsArray:_=>Array.isArray(i[_]),getMergedValue:_=>i[_],onMergedResult:(_,R)=>{_!="generalRule"&&(S[_]=R)}}),kt({rule:t.generalRule,valueIsArray:_=>Array.isArray(i.generalRule[_]),getMergedValue:_=>i.generalRule[_],onMergedResult:(_,R)=>{S.generalRule[_]=R}}),j4(S,Y),M4(n,d,S);let M=Object.keys(S),V=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let _ of M){let R=_;if(R==="generalRule")typeof d[R]=="object"&&(S[R]=pl(S[R],d[R]));else if(R==="translationServices")I4(d,S);else if(typeof d[R]!="string"&&typeof d[R]!="boolean"&&typeof d[R]!="number"&&V.includes(R))d[R]&&(S[R]=Object.assign(S[R],d[R])),R==="shortcuts"&&(_e()||ot()?S[R]={...S[R],...r}:S[R]={...r});else if(R==="rules"){if(Array.isArray(d[R])){let he=S.rules||[],Z={};for(let Ee of he)Ee.id&&(Z[Ee.id]=Ee);let re=d[R].map(Ee=>Ee.id&&Z[Ee.id]?gl(S.generalRule,Z[Ee.id],Ee):Ee);S[R]=[...re,...S[R]]}if(te.PROD==="0"&&te.DEV_RULES){let he=JSON.parse(te.DEV_RULES);S[R]=[...he,...S[R]]}}else d[R]!==void 0&&(S[R]=d[R])}return S.donateUrl=t.donateUrl,S.minVersion=t.minVersion,S.feedbackUrl=t.feedbackUrl,S.rawUserConfig=o,S}function qt(){return vl()}function xt(e){return xl(e)}async function Sl(e,t){await f.storage.sync.set({[e]:t})}async function Dl(e){return(await f.storage.sync.get(e))[e]}async function ba(e,t){await f.storage.local.set({[e]:t})}async function Ua(e){return(await f.storage.local.get(e))[e]}var B4=async()=>{let e=["zh-CN"];try{e=await f.i18n.getAcceptLanguages()}catch(n){P.warn("get browser language error:",n)}let a=e.map(n=>jt(n)).find(n=>Yo.find(r=>r===n));return a||"en"},P4=async()=>{let e={...Ai,buildinConfigUpdatedAt:te.BUILD_TIME};return{...e,targetLanguage:Mt,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function R4(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function L4(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Mt;let a=await Oe("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=Al(l,n[o]))}),kt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=Al(l,a[o]))}),kt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}function j4(e,t){try{let a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(a){P.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",a)}}function Al(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}function Vn(e){let t=f.runtime.getURL(Vu),a=new URL(t);return e&&(e.startsWith("http")||!Vr())&&a.searchParams.set("file",e),a.href}function Tl(){return le().PDF_VIEWER_URL}function Cl(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var $n=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],a="";do{let{nextPageToken:n,files:r}=await this.list(a).catch(i=>{throw i});t.push(...r),a=n||""}while(a);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){return P.error("get config error, use default",a),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,a=vn){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:a,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,a){let n=new Blob([JSON.stringify(a,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,a){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",a);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return r.ok?await r.json():Promise.reject(r.text())}async list(t,a){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),a&&n.searchParams.append("q",a),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return P.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw P.error("fetch google ip error",r),r}}async updateContent(t,a){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:a})).text()}};function kl(e,t){let a=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${yn}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(a.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function _l(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Fl(e,t,a,n,r,i,u){if(P.debug(`autoSyncStrategy accessToken: ${e}`),t===null){P.debug("autoSyncStrategy settings is null");return}let o=new $n(e);try{let s=(await o.findByName(vn)).files;P.debug("files",s);let l=s[0]?.id,c=null;if(l&&(c=await o.getConfig(l).then(d=>({fileId:l,config:d}))),c){let{config:d,fileId:m}=c,g=d.updatedAt?new Date(d.updatedAt):new Date(0),y=t.updatedAt?new Date(t.updatedAt):new Date(0);if(P.debug("remoteUpdatedAt",g,"localUpdatedAt",y),g>y)P.debug("remote is newer, update local config",d),a(d),i&&i(!0);else if(g.getTime()===y.getTime())P.debug("remote and local are the same, do nothing"),i&&i(!1);else if(g(await e.removeAuthInfo(),Lr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await f.storage.local.get(la);if(t[la])return t[la]}static async removeAuthInfo(){return await f.storage.local.remove(la)}static setAuthInfo(t){return f.storage.local.set({[la]:t})}async auth(t=!1){let a=await e.getAuthInfo();if(P.debug(this.CLASSNAME,"token from cache:",a),a&&a.access_token&&await Bl(a.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(a);let n=kl(this._state,this._redirectUrl);return P.debug(this.CLASSNAME,"auth url: "+n),Lr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,a){return a&&await f.storage.local.set({[Yu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let a,n=!1;return new Promise((r,i)=>{let u=()=>{f.tabs.onUpdated.removeListener(o),f.tabs.onRemoved.removeListener(s)},o=(m,g,y)=>{if(P.debug(this.CLASSNAME,"create tab onUpdated: "+y.url),a===m){let F=new URL(y.url||""),T=_l(y.url);F.pathname.startsWith("/auth-done")&&T?.access_token&&(P.debug(this.CLASSNAME,"auth done: "+y.url),r({access_token:T.access_token}),n=!0,f.tabs.remove(m),u())}},s=(m,g)=>{P.debug(this.CLASSNAME,"create tab onRemoved: "+m),(m===a||!n)&&(u(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),d;f.windows===void 0?d=f.tabs.create({url:t}).then(m=>{a=m.id}):d=f.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(m=>{a=m.tabs[0].id}),d.then(()=>{f.tabs.onUpdated.addListener(o),f.tabs.onRemoved.addListener(s)}).catch(m=>{P.debug(this.CLASSNAME,"create tab failed: "+m),i(m)})})}};var N4="https://www.googleapis.com/oauth2/v3/tokeninfo",q4=yn,U4=le().REDIRECT_URL;function Bl(e){if(!e)throw"Authorization failure";let t=`${N4}?access_token=${e}`,a=new Request(t,{method:"GET"});function n(r){return new Promise((i,u)=>{r.status!=200&&u("Token validation error"),r.json().then(o=>{o.aud&&o.aud===q4?i(e):u("Token validation error")})})}return fetch(a).then(n)}function Pl(e,t=!1){let a=U4;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,i=window.location.port;a=`${window.location.protocol}//${r}${i?`:${i}`:""}/auth-done/`}return new Yn(e,a).auth(t)}async function Rl(){}function Ll(e,t){let a=new Map;for(let i of t)a.set(i.header.toLowerCase(),i);let n=[],r=e.filter(i=>{let u=a.get(i.name.toLowerCase());if(u){if(u.operation==="remove")return!1;if(u.operation==="set")return!1}return!0});for(let i of t)i.operation==="set"&&n.push({name:i.header,value:i.value||""});return r.concat(n)}var Zn=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:5,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://edge.microsoft.com/translate/auth",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:6,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://api-edge.cognitive.microsofttranslator.com/translate",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:301,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.pixiv.net/"}]},condition:{urlFilter:"https://i.pximg.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:302,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21*.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:303,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:304,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://2.bp.blogspot.com"}]},condition:{urlFilter:"https://2.bp.blogspot.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:305,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://japanreader.com"}]},condition:{urlFilter:"https://japanreader.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:306,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://mangabuddy.com/"}]},condition:{urlFilter:"https://s*.mbbcdn.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:307,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://sl.mangafuna.xyz/"}]},condition:{urlFilter:"https://sl.mangafuna.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:308,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://toonily.me"}]},condition:{urlFilter:"https://s*.toonilycdnv2.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:309,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://readcomiconline.li"}]},condition:{urlFilter:"https://*.whatsnew*.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:310,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://yymanhua.com"}]},condition:{urlFilter:"https://image.yymanhua.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:311,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://klz9.com"}]},condition:{urlFilter:"https://h1.klimv1.xyz/images*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:312,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://manhwato.com"}]},condition:{urlFilter:"https://stcdn.manhwato.com/images/manga/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}}];var G4="https://www.google-analytics.com/mp/collect",H4=30,W4=100;async function K4(){let{sessionData:e}=await f.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>H4?e=null:(e.timestamp=t,await f.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await f.storage.session.set({sessionData:e})),e.session_id}function Ml(e){go().forEach(({measurementId:t,apiSecret:a})=>{Il({measurement_id:t,api_secret:a,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Sa(e,t,a){return Il({measurement_id:mo,api_secret:po,page_title:e,page_location:t,time:a})}async function Il(e){try{let t=le(),a=Jt(),n=t.INSTALL_FROM==="firefox_store";if(a?.name?.startsWith("ImtFx")&&(n=!1),n)return;let{fakeUserId:r}=await ea(),i=`${G4}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,u={method:"POST",body:JSON.stringify({client_id:r,events:[{name:"page_view",params:{session_id:await K4(),engagement_time_msec:e.time||W4,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,u)}catch(t){P.error(t)}}var _t=new Map;function jl(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function Xn(e){let t=await Nl(),a=Date.now();if(t){if(_t.has(e))return;let n=await f.tabs.get(e),r=jl(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Li(e)}async function Ol(e){let t=await Nl(),a=Date.now();for(let[n,r]of _t)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t){if(_t.has(e)){let i=_t.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=jl(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Li(e){if(_t.has(e)){let t=_t.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),_t.delete(e),$4(t.hostname,a)}}async function V4(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function $4(e,t){Sa(`${e}(video)`,e,t),Y4(t)}var Qn="videoWatchTimeDay";async function Y4(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Oe(Qn,null);if(!r){await we(Qn,{day:n,time:e});return}if(r.day!==n){Sa("day-video."+Pe,"day-video."+Pe,r.time),await we(Qn,{day:n,time:e});return}let i={day:n,time:r.time+e};await we(Qn,i)}catch(t){P.error(t)}}async function Nl(){try{return await V4({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Mi=(e,t,a,n)=>{let r=bo[e]||e,i=fo[e]||e,u=yo[e],o=vo[e],s={"zh-CN":u,"zh-TW":o,en:i};if(a)return s[e]?s[e]:i;let l=e!==t&&r!=="All Languages";if(s[t]){let c=s[t];return n||e==="auto"||e==="placeholder"?c:l?`${c} (${r})`:`${c}`}else return l?`${i} (${r})`:i};function Z4(){return navigator.userAgent.indexOf("Mac")!==-1}var ql={Alt:"\u2325"};function Ii(e=""){return Z4()?Object.keys(ql).reduce((t,a)=>t.replace(a,ql[a]),e):e}function Q4(e,t){let a=e.generalRule.imageRule.enableImageTranslation,n=e.beta;return a=="all"||a=="beta"&&n||a=="pro"&&t||a=="pro_beta"&&n&&t?!0:a?!1:n&&!!t}async function ji(){if(_e())return!1;let e=await Ne(),t=await Do();return Q4(e,t)}function X4(){return Kr()&&!ot()}var Va=X4()?["action"]:["browser_action","page_action"],$a="",Ul=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Va]},{id:$t,contexts:["image"]},{id:jr,contexts:Va},{id:Nr,contexts:Va},{id:qr,contexts:Va},{id:Or,contexts:Va}];async function Oi(e){P.debug("createContextMenu",Ul);for(let t of Ul){let a=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(a=!1);try{let n=je(e.interfaceLanguage,`browser.${t.id}`);if(t.id===$t&&(a=await ji()),t.id==="toggleTranslatePage"){n=je(e.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e.targetLanguage,e.interfaceLanguage,!1,!0)});let r=Ii(e.shortcuts.toggleTranslatePage);r&&(n+=`(${r})`)}f.contextMenus.create({id:t.id,title:n,contexts:t.contexts,visible:a},()=>f.runtime.lastError)}catch(n){P.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}async function Za({targetLanguage:e,text:t}){let a=await Ne(),n="toggleTranslatePage",r=!0;a.isShowContextMenu===!1&&n==="toggleTranslatePage"&&(r=!1);let i;if(t)$a=t,i=je(a.interfaceLanguage,"browser.translateText",{text:t});else{let u=await Jn(),o=u&&u!=="Original";i=je(a.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e??a.targetLanguage,a.interfaceLanguage,!1,!0)}),o&&(i=`${je(a.interfaceLanguage,"show-original")}`);let s=Ii(a.shortcuts.toggleTranslatePage);s&&(i+=`(${s})`),$a=""}f.contextMenus.update(n,{title:i,visible:r})}function zl(){f.contextMenus.onClicked.addListener(async e=>{if(e.menuItemId===jr)f.runtime.openOptionsPage();else if(e.menuItemId===Or){let t=Tl();f.tabs.create({url:t})}else if(e.menuItemId===qr){let a=le().EBOOK_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Nr){let a=le().EBOOK_VIEWER_URL;f.tabs.create({url:a})}else if(e.menuItemId===eo){let a=le().SUBTITLE_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===$t)Ya({method:e.menuItemId,data:{srcUrl:e.srcUrl,trigger:"right_menu"}});else{if(e.selectionText&&e.editable){Ya({method:"inputSelectedTextTranslate",data:{text:$a,trigger:"right_menu"}});return}if(e.selectionText&&$a){let t=le(),a=await Ne(),n=encodeURIComponent($a),r=`${t.TEXT_TRANSLATE_URL}#auto/${a.targetLanguage}/${n}`;f.tabs.create({url:r}),J4([{name:"translate_select_text",params:{trigger:"right_menu",targetLanguage:a.targetLanguage}}]);return}Ya({method:e.menuItemId,data:{trigger:"right_menu"}})}})}async function J4(e){try{let t=Dn(),a=le(),n=Jt(),r=a.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:i}=await ea(),u={method:"POST",body:JSON.stringify({client_id:i,user_id:i,events:e})};t.forEach(o=>{fetch(o,u)})}catch(t){P.error(t)}}async function Gl(){try{let e=await ji();f.contextMenus.update($t,{visible:e})}catch{}}function Hl(){f.tabs.onActivated.addListener(function(e){Za({}),eh(e.tabId),Ol(e.tabId)}),f.tabs.onRemoved.addListener(function(e){Kl(e),Li(e)}),f.tabs.onUpdated.addListener(function(e){Ni(e),Xn(e)})}var Ft=new Map;async function Ni(e){let t=await Jn(),a=Date.now();if(t=="Translated"){if(Ft.has(e))return;let n=await f.tabs.get(e),r=Wl(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Kl(e)}function Wl(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function eh(e){let t=await Jn(),a=Date.now();for(let[n,r]of Ft)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t=="Translated"){if(Ft.has(e)){let i=Ft.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=Wl(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Kl(e){if(Ft.has(e)){let t=Ft.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),Ft.delete(e),ah(t.hostname,a)}}async function th(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function ah(e,t){Sa(e,e,t),nh(t)}async function Jn(){try{return await th({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var er="readTimeDay";async function nh(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Oe(er,null);if(!r){await we(er,{day:n,time:e});return}if(r.day!==n){Sa("day."+Pe,"day."+Pe,r.time),await we(er,{day:n,time:e});return}let i={day:n,time:r.time+e};await we(er,i)}catch(t){P.error(t)}}var tr,rh=async function(e,t){let{method:a,data:n}=e;if(P.debug("background received message",a,n||" "),a==="mock")await Kt(150);else{if(a==="queryParagraphCache")return ei(n);if(a==="setParagraphCache")return Jr(n);if(a==="calculateSize")return jo();if(a==="fetch")return ya(n);if(a==="getConfig")return Ne();if(a==="getLocalConfig")return Qt();if(a==="openOptionsPage"){let r="";n&&n.pageRoute&&(r=n.pageRoute);let i=f.runtime.getURL("options.html");f.tabs.create({url:i+r})}else if(a==="openAboutPage")f.tabs.create({url:f.runtime.getURL("options.html#about")});else if(a==="openInTab")n&&f.tabs.create({url:n});else if(a==="openEbookViewerPage"){let i=le().EBOOK_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openSubtitleBuilderPage"){let i=le().SUBTITLE_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openEbookBuilderPage"){let i=le().EBOOK_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openHtmlViewerPage"){let i=le().HTML_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openPdfViewerPage"){let r=n?.url,i=Vn(r);(ot()||!r)&&(i=le().PDF_VIEWER_URL),f.tabs.create({url:i})}else{if(a==="setLocalConfig")return Nt(n);if(a=="getUserConfig")return qt();if(a=="setUserConfig")return xt(n);if(a==="detectLanguage"){let{text:r,pageLangs:i}=n;if(f.i18n&&f.i18n.detectLanguage)try{let u=await Vl(f.i18n.detectLanguage(r),1500,{isReliable:!1,languages:[]});if(u.languages.length>0){if(u.isReliable)return jt(u.languages[0].language);for(let o of u.languages){let s=jt(o.language);if(i.includes(s)&&o.percentage>50)return s}}return"auto"}catch(u){return P.debug("detect language error",u),"auto"}else return"auto"}else if(a==="detectTabLanguage")try{let r=await Vl(f.tabs.detectLanguage(t.id),1500,"auto");return jt(r)}catch(r){return P.debug("detect tab language error, use auto ",r),"auto"}else if(a==="autoSyncLatestConfig"){try{await Rl()}catch(r){P.debug("auto sync latest config error",r)}return""}else if(a!=="updateCommands")if(a==="setBadge"){let r=t.id,i=n&&n.text?n.text:"";r&&(Za({}),ih(r,i)),r&&Ni(r)}else if(a=="getDelay"){let{key:r,options:i}=n||{};return qa.getDelay(r,i,!0)}else if(a==="getIsSupportIsOnToolbar")try{return f?.action?.getUserSettings?(await f.action.getUserSettings(),!0):!1}catch{return!1}else if(a==="getIsOnToolbar")try{return(await f.action.getUserSettings()).isOnToolbar}catch{return!1}else if(a=="reportOptionsPageView")Ml(n);else if(a==="updateVideoSubtitleStatus"){let r=t.id;r&&Xn(r)}else a==="updateToggleTranslateContextMenu"?Za(n):a==="updateImageMenu"&&Gl()}}};function $l(){na();let e=f.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&f.webRequest&&f.webRequest.onBeforeSendHeaders){let t=Zn.map(n=>n.condition.urlFilter),a=Zn.reduce((n,r)=>(r.condition.resourceTypes.forEach(i=>{n.includes(i)||n.push(i)}),n),[]);f.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let r=0;r{let i=setTimeout(()=>{n(a)},t);e.then(u=>{clearTimeout(i),n(u)}).catch(u=>{clearTimeout(i),r(u)})})}function Yl(){typeof f.commands<"u"&&f.commands.onCommand.addListener(async e=>{if(P.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await f.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Cl(n)){f.tabs.create({url:Vn(n)});return}}await Ya({method:e,data:{trigger:"shortcut"}})})}async function Ya(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;na().sendMessage(`content_script:main:${a}`,e).catch(r=>{P.error("send content message request failed",e,r)})}function nr(){Ne().then(e=>{e.uninstallUrl&&f.runtime.setUninstallURL&&f.runtime.setUninstallURL(e.uninstallUrl),qi(e)}).catch(e=>{P.error("create menu error",e)})}function qi(e){e?Oi(e):Ne().then(t=>{Oi(t)}).catch(t=>{P.error("create menu error",t)})}function Zl(){f.runtime.onInstalled.addListener(e=>{P.debug(`onInstalled reason: ${e.reason}`),P.debug(e),e.reason=="install"?(async()=>{let t=Pa,n=f.runtime.getURL("").startsWith("safari"),r=!1,i=!1;try{let c=await f.runtime.getPlatformInfo();if(n)c.os==="mac"?r=!0:c.os==="ios"&&(i=!0);else if(c.os==="android"){if(Rn()){let d=di();if(d&&aa(d,"1.0.2")){nr();return}}t=Pa+"mobile/"}}catch{}r?t=Pa+"safari/step-1/":i&&(t=Pa+"ios/step-2/");let u=await Oe("onboardingDisplayTime",""),o=await Wa(),s=await Xt(),l=new URL(t);l.searchParams.set("t",o),l.searchParams.set("v",s),n?u||(await we("onboardingDisplayTime",new Date().toISOString()),f.tabs.create({url:l.toString()})):f.tabs.create({url:l.toString()}),nr()})():(e.reason=="update"&&f.runtime.getManifest().version!=e.previousVersion,nr())})}var oh=ki(null);async function lh(e,t,a){a=a||await oi();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&Ql(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&Ql(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await qt();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Wo(a),await xt(i)}catch{return!1}return r}async function ch(e,t){(await Promise.allSettled(e.map(n=>Zt({url:`${v.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&lh("add",r,t)}})}async function dh(e,t,a=!0){e||(e=await Ne()),t||(t=await oi());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await hh();i=await gh(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&ch(u,t)}var mh=Ta(dh,1500);function Ql(e){return aa(li(),e.extensionVersion)}function ph(e,t){return t?!aa(e.version,t):!1}function gh(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{ph(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function hh(){return(await Zt({url:`${v.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var fh=1e3*3600*24;async function Xl(e){try{let t=e?.cacheCleanIntervalDay??1,a=e?.cacheMaxAgeDay??30,n=new Date,r=await f.storage.local.get(null),i=r[xn],u=r[Ur];if(u||(u=n.getTime(),await f.storage.local.set({[Ur]:u})),i||(i=n.getTime(),await f.storage.local.set({[xn]:i})),n.getTime()-i>=t*fh){let o=await Oo(a,u);await f.storage.local.set({[xn]:n.getTime()})}}catch{}}async function Jl(){try{if(_e())return;let e=f.runtime.getURL("locales.json"),a=await(await fetch(e)).json();Object.assign(Ut,a)}catch{}}$l();Zl();Yl();f.contextMenus&&zl();async function bh(){await Jl(),f.contextMenus&&qi();let e=await Ne();Xl(e),Hl(),e.debug&&P.setLevel("debug")}bh().catch(e=>{});})(); +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};var l6=_e();var Ns,oe,qs,l4,Ka,Ms,Us,zs={},Gs=[],c4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Gt(e,t){for(var a in t)e[a]=t[a];return e}function Hs(e){var t=e.parentNode;t&&t.removeChild(e)}function Ti(e,t,a,n,r){var i={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++qs};return r==null&&oe.vnode!=null&&oe.vnode(i),i}function ta(e){return e.children}function Un(e,t){this.props=e,this.context=t}function Ea(e,t){if(t==null)return e.__?Ea(e.__,e.__.__k.indexOf(e)+1):null;for(var a;t0?Ti(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null){if(g.__=a,g.__b=a.__b+1,(m=h[c])===null||m&&g.key==m.key&&g.type===m.type)h[c]=void 0;else for(d=0;dol.includes(o)))return e;let n=new URL(e);n.hash="",n.search="";let r=n.href,i=n.hostname,u=n.port;if(a&&a.length>0){let o=a.find(s=>{if(!s)return!1;if(s===i)return!0;if(ol.includes(s))return!0;if(!s.includes("*")&&s.includes("://")){try{let l=new URL(s);if(l.pathname==="/"&&!s.endsWith("/")){let c=l.hostname===i,d=l.port===u;return l.port?c&&d:c}else return E4(r,s)}catch{}return!1}else{let l,c=s;if(s.includes("://")){let T=s.split("://");l=T[0],l==="*"&&T.length>1&&(l="*",s="https://"+T[1])}else l="*",s="https://"+s;let d=s.replace(/\*/g,ll),m;try{m=new URL(d)}catch{return P.debug("invalid match pattern",d,"raw match value:",c),!1}let g=m.host,y=m.pathname;y==="/"&&(c.replace("://","").includes("/")||(y="/*"));let F=w4(l+":",sl(g),sl(y));return F?F.test(e):!1}});if(o)return o}return null}catch{return null}}function sl(e){return e.replaceAll(ll,"*")}function w4(e,t,a){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(1)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),a?a==="*"||a==="/*"?n+="(/.*)?":a.includes("*")?(n+=a.replace(/\*/g,".*?"),n+="/?"):n+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Wn(e,t){return x4(e,t)!==null}function E4(e,t){let a=new URL(e),n=new URL(t);return a.hostname===n.hostname&&a.pathname===n.pathname&&a.protocol===n.protocol&&a.port===n.port}var S4=null;if(typeof trustedTypes<"u")try{S4=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var D4=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(D4=!0)});var G6=globalThis.document?.createElement("div");function aa(e,t){let a=e.split(".").reverse(),n=t.split(".").reverse(),r=0,i=0,u=1;for(let o=0;o<3;o++)r+=u*Number(n[o]||"0"),i+=u*Number(a[o]||"0"),u*=100;return i>=r}function Kn(e){return Array.isArray(e)?e:e?[e]:[]}function pl(e,t){let a={...e};return hl(a,t),T4(a,t),a}function gl(e,t,a){let n={...e};return kt({rule:t,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>e[r],onMergedResult:(r,i)=>n[r]=i}),kt({rule:a,valueIsArray:r=>Array.isArray(e[r]),getMergedValue:r=>n[r],onMergedResult:(r,i)=>n[r]=i}),n}function T4(e,t){if(!t.condition)return;let a=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?a:n;hl(e,r)}function kt({rule:e,getMergedValue:t,valueIsArray:a,onMergedResult:n},r){Object.keys(e).sort().forEach(i=>{let[u,o,s]=cl(i);if(u=="rich"){if(!r)return n(i,e[i]);let[m,g,y,F]=cl(i);u=m+"."+g,o=y,s=F}if(!u||e[i]===void 0)return;let l=e[i];a(u)&&(l=Kn(e[i]));let c=t(u);if(c==null){n(u,l);return}let d;if(o=="add_v"){if(!dl(s))return;d=Ri(c,l)}else if(o=="remove_v"){if(!dl(s))return;d=ml(c,l)}else o==="add"?d=Ri(c,l):o=="remove"&&(d=ml(c,l));if(d){n(u,d);return}Array.isArray(e[u])&&u.startsWith("additional")?d=Ri(c,l):d=l,n(u,d)})}function hl(e,t){return kt({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,n)=>{e[a]=n}}),e}function Ri(e,t){let a;if(Array.isArray(e)){let n=Kn(t);a=[...e,...n],a=Array.from(new Set(a))}else typeof e=="object"&&typeof t=="object"?a={...e,...t}:a=t;return a}function cl(e){let t=e.lastIndexOf("["),a="",n=e;return t>0&&(a=e.slice(t+1,e.length-1),n=e.slice(0,t-1)),[...n.split("."),a]}function dl(e){let t=Xt();return e&&aa(t,e)}function ml(e,t){if(Array.isArray(e)){let a=Kn(t);return e=e.filter(n=>!a.includes(n)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(a=>{delete e[a]});else return t;return e}var fl="userConfig",bl="userPromptPool",yl="userObjectPool";async function vl(){let e=await Dl(fl)||{},t=await Ua(bl)||{},a=await Ua(yl)||{};return k4(e,t,a)}async function xl(e){let{userConfig:t,promptPool:a,objectPool:n}=await C4(e);await Sl(fl,t),await ba(bl,a),await ba(yl,n)}function C4(e){let t=JSON.parse(JSON.stringify(e)),a=e.promptPool||{},n=e.objectPool||{};return wl(t,(r,i,u)=>{let o=r[i]||"";o==u||!o||(a[u]=o,r[i]=u)}),El(t,(r,i,u,o)=>{u!=o&&(n[o]=u,r[i]=o)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:a,objectPool:n}}function k4(e,t,a){return wl(e,(n,r,i)=>{(n[r]||"")==i&&(t[i]?n[r]=t[i]:delete n[r])}),El(e,(n,r,i,u)=>{i==u&&(a[u]?n[r]=a[u]:delete n[r])}),e}function wl(e,t){Object.entries(e.translationServices||{}).forEach(([a,n])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(r=>{let i=`@imt_${a}.${r}`;t(n,r,i)})})}function El(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(n=>{let r=n.split("."),i=e,u="",o=i;r.forEach(s=>{i&&(u=s,o=i,i=i[s])}),i&&t(o,u,i,`@imt_${n}`)})}function _4(){if(te.PROD==="1")return{};let e={};if(te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let a={secretId:te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:te.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=a}if(te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let a={appid:te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:te.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=a}if(te.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let a={token:te.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=a}if(te.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let a={apikey:te.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=a}if(te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let a={appId:te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:te.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=a}if(te.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&te.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let a={accessKeyId:te.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:te.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=a}if(te.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let a={authKey:te.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=a}if(te.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=te.DEEPL_PROXY_ENDPOINT),te.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=te.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),te.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let a={APIKEY:te.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=a}te.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=te.IMMERSIVE_TRANSLATE_SERVICE);let t={};return te.DEBUG==="1"&&(t.debug=!0,t.cache=!1),te.MOCK==="1"&&(t.translationService="mock"),t}async function Qt(){let e=await f.storage.local.get(Ra);if(e[Ra]){let t=e[Ra],a=t.tempTranslationUrlMatches||[],n=a.filter(u=>u.expiredAt>Date.now()),r=!1;n.length!==a.length&&(a=n,r=!0);let i={...t,tempTranslationUrlMatches:[...a]};return r&&await Nt(i),i}else return{}}async function Nt(e){await f.storage.local.set({[Ra]:e})}async function F4(){return te.DEBUG==="1"?void 0:(await f.storage.local.get(Ir))[Ir]}async function Ne(){let e=await F4(),t={...Ai,buildinConfigUpdatedAt:te.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let _=new Date(e.buildinConfigUpdatedAt),R=new Date(t.buildinConfigUpdatedAt);_>R&&(t=e)}let a=await L4(t);t.targetLanguage=a;let n=await ma.get(It,null),r={};if(!_e()&&f.commands&&f.commands.getAll){let _=await f.commands.getAll();for(let R of _)R.name&&R.shortcut&&(r[R.name]=R.shortcut)}let i=await P4(),u=_4(),o=await qt(),s=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Qt(),c=new Date,d=Object.assign({},s,u,o);if(!d.interfaceLanguage){let _=await B4();d.interfaceLanguage=_}let m=d.interfaceLanguage==="en",g=d.targetLanguage==="en",y=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,F=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!g&&!y&&F?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let T=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(T=!1);let h=d&&d.isChangedAlwaysTranslatedUrls,q=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(q=d.translationUrlPattern.matches||[]);let B=!1;h===void 0&&(q.length>0?h=!0:h=!1,d.isChangedAlwaysTranslatedUrls=h,o.isChangedAlwaysTranslatedUrls=h,B=!0);let z=(d?.translationLanguagePattern?.matches?.length||0)>0,Y=await Oe("installedAt",""),A=Number(await ja("translage_page_daily",0)),b=Number(await Oe(st,0)),x;b>0&&(Date.now()-b0&&(Date.now()-A0){let _=l.tempTranslationUrlMatches.filter(R=>new Date(R.expiredAt)>c);if(_.length>0){let R=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],he=Array.isArray(R)?R:[R],Z=Array.from(new Set(he.concat(_.map(re=>re.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:Z}}}let S=Object.assign(i,t);kt({rule:t,valueIsArray:_=>Array.isArray(i[_]),getMergedValue:_=>i[_],onMergedResult:(_,R)=>{_!="generalRule"&&(S[_]=R)}}),kt({rule:t.generalRule,valueIsArray:_=>Array.isArray(i.generalRule[_]),getMergedValue:_=>i.generalRule[_],onMergedResult:(_,R)=>{S.generalRule[_]=R}}),j4(S,Y),M4(n,d,S);let M=Object.keys(S),V=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let _ of M){let R=_;if(R==="generalRule")typeof d[R]=="object"&&(S[R]=pl(S[R],d[R]));else if(R==="translationServices")I4(d,S);else if(typeof d[R]!="string"&&typeof d[R]!="boolean"&&typeof d[R]!="number"&&V.includes(R))d[R]&&(S[R]=Object.assign(S[R],d[R])),R==="shortcuts"&&(_e()||ot()?S[R]={...S[R],...r}:S[R]={...r});else if(R==="rules"){if(Array.isArray(d[R])){let he=S.rules||[],Z={};for(let Ee of he)Ee.id&&(Z[Ee.id]=Ee);let re=d[R].map(Ee=>Ee.id&&Z[Ee.id]?gl(S.generalRule,Z[Ee.id],Ee):Ee);S[R]=[...re,...S[R]]}if(te.PROD==="0"&&te.DEV_RULES){let he=JSON.parse(te.DEV_RULES);S[R]=[...he,...S[R]]}}else d[R]!==void 0&&(S[R]=d[R])}return S.donateUrl=t.donateUrl,S.minVersion=t.minVersion,S.feedbackUrl=t.feedbackUrl,S.rawUserConfig=o,S}function qt(){return vl()}function xt(e){return xl(e)}async function Sl(e,t){await f.storage.sync.set({[e]:t})}async function Dl(e){return(await f.storage.sync.get(e))[e]}async function ba(e,t){await f.storage.local.set({[e]:t})}async function Ua(e){return(await f.storage.local.get(e))[e]}var B4=async()=>{let e=["zh-CN"];try{e=await f.i18n.getAcceptLanguages()}catch(n){P.warn("get browser language error:",n)}let a=e.map(n=>jt(n)).find(n=>Yo.find(r=>r===n));return a||"en"},P4=async()=>{let e={...Ai,buildinConfigUpdatedAt:te.BUILD_TIME};return{...e,targetLanguage:Mt,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function R4(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}async function L4(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Mt;let a=await Oe("installedAt","");if(a&&new Date(a){let s=n[o],l=n[s.extends];!l||s.extends==o||(n[o]=Al(l,n[o]))}),kt({rule:{...n},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{n[o]={...n[o],...s}}}),Object.keys(a).forEach(o=>{let s=a[o];if(!s.extends)return;let l=n[s.extends];!l||s.extends==o||(a[o]=Al(l,a[o]))}),kt({rule:{...a},valueIsArray:o=>Array.isArray(n[o]),getMergedValue:o=>n[o],onMergedResult:(o,s)=>{let l=n[o]?.env||{},c=s.env||{};l={...l,...c},n[o]={...n[o],...s,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(a).forEach(o=>{["openai","gemini"].includes(o)&&a[o].prompt!=null&&(a[o].maxTextGroupLengthPerRequest==null&&(n[o].maxTextGroupLengthPerRequest=1),a[o].multiplePrompt==null&&(n[o].multiplePrompt=a[o].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],u=(o,s)=>{!o||!o[s]||!o?.env||(o[s]=o[s].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:o?.env[c]||l))};Object.values(n).forEach(o=>{u(o,"prompt"),u(o,"multiplePrompt"),u(o,"subtitlePrompt")}),t.translationServices=n}function j4(e,t){try{let a=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!a||new Date(a)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(a){P.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",a)}}function Al(e,t){let a={...e};return["provider","visible"].forEach(r=>{a[r]&&delete a[r]}),{...a,...t}}function Vn(e){let t=f.runtime.getURL(Vu),a=new URL(t);return e&&(e.startsWith("http")||!Vr())&&a.searchParams.set("file",e),a.href}function Tl(){return le().PDF_VIEWER_URL}function Cl(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var $n=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],a="";do{let{nextPageToken:n,files:r}=await this.list(a).catch(i=>{throw i});t.push(...r),a=n||""}while(a);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){return P.error("get config error, use default",a),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,a=vn){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:a,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,a){let n=new Blob([JSON.stringify(a,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,a){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",a);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return r.ok?await r.json():Promise.reject(r.text())}async list(t,a){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),a&&n.searchParams.append("q",a),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return P.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw P.error("fetch google ip error",r),r}}async updateContent(t,a){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:a})).text()}};function kl(e,t){let a=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${yn}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(a.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function _l(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Fl(e,t,a,n,r,i,u){if(P.debug(`autoSyncStrategy accessToken: ${e}`),t===null){P.debug("autoSyncStrategy settings is null");return}let o=new $n(e);try{let s=(await o.findByName(vn)).files;P.debug("files",s);let l=s[0]?.id,c=null;if(l&&(c=await o.getConfig(l).then(d=>({fileId:l,config:d}))),c){let{config:d,fileId:m}=c,g=d.updatedAt?new Date(d.updatedAt):new Date(0),y=t.updatedAt?new Date(t.updatedAt):new Date(0);if(P.debug("remoteUpdatedAt",g,"localUpdatedAt",y),g>y)P.debug("remote is newer, update local config",d),a(d),i&&i(!0);else if(g.getTime()===y.getTime())P.debug("remote and local are the same, do nothing"),i&&i(!1);else if(g(await e.removeAuthInfo(),Lr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await f.storage.local.get(la);if(t[la])return t[la]}static async removeAuthInfo(){return await f.storage.local.remove(la)}static setAuthInfo(t){return f.storage.local.set({[la]:t})}async auth(t=!1){let a=await e.getAuthInfo();if(P.debug(this.CLASSNAME,"token from cache:",a),a&&a.access_token&&await Bl(a.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(a);let n=kl(this._state,this._redirectUrl);return P.debug(this.CLASSNAME,"auth url: "+n),Lr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,a){return a&&await f.storage.local.set({[Yu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let a,n=!1;return new Promise((r,i)=>{let u=()=>{f.tabs.onUpdated.removeListener(o),f.tabs.onRemoved.removeListener(s)},o=(m,g,y)=>{if(P.debug(this.CLASSNAME,"create tab onUpdated: "+y.url),a===m){let F=new URL(y.url||""),T=_l(y.url);F.pathname.startsWith("/auth-done")&&T?.access_token&&(P.debug(this.CLASSNAME,"auth done: "+y.url),r({access_token:T.access_token}),n=!0,f.tabs.remove(m),u())}},s=(m,g)=>{P.debug(this.CLASSNAME,"create tab onRemoved: "+m),(m===a||!n)&&(u(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),d;f.windows===void 0?d=f.tabs.create({url:t}).then(m=>{a=m.id}):d=f.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(m=>{a=m.tabs[0].id}),d.then(()=>{f.tabs.onUpdated.addListener(o),f.tabs.onRemoved.addListener(s)}).catch(m=>{P.debug(this.CLASSNAME,"create tab failed: "+m),i(m)})})}};var N4="https://www.googleapis.com/oauth2/v3/tokeninfo",q4=yn,U4=le().REDIRECT_URL;function Bl(e){if(!e)throw"Authorization failure";let t=`${N4}?access_token=${e}`,a=new Request(t,{method:"GET"});function n(r){return new Promise((i,u)=>{r.status!=200&&u("Token validation error"),r.json().then(o=>{o.aud&&o.aud===q4?i(e):u("Token validation error")})})}return fetch(a).then(n)}function Pl(e,t=!1){let a=U4;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,i=window.location.port;a=`${window.location.protocol}//${r}${i?`:${i}`:""}/auth-done/`}return new Yn(e,a).auth(t)}async function Rl(){}function Ll(e,t){let a=new Map;for(let i of t)a.set(i.header.toLowerCase(),i);let n=[],r=e.filter(i=>{let u=a.get(i.name.toLowerCase());if(u){if(u.operation==="remove")return!1;if(u.operation==="set")return!1}return!0});for(let i of t)i.operation==="set"&&n.push({name:i.header,value:i.value||""});return r.concat(n)}var Zn=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:5,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://edge.microsoft.com/translate/auth",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:6,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"User-Agent",operation:"set",value:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"}]},condition:{urlFilter:"https://api-edge.cognitive.microsofttranslator.com/translate",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:301,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://www.pixiv.net/"}]},condition:{urlFilter:"https://i.pximg.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:302,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21*.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:303,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://newtoki341.com/"}]},condition:{urlFilter:"https://img1.newtoki21.org/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:304,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://2.bp.blogspot.com"}]},condition:{urlFilter:"https://2.bp.blogspot.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:305,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://japanreader.com"}]},condition:{urlFilter:"https://japanreader.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:306,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://mangabuddy.com/"}]},condition:{urlFilter:"https://s*.mbbcdn.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:307,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://sl.mangafuna.xyz/"}]},condition:{urlFilter:"https://sl.mangafuna.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:308,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://toonily.me"}]},condition:{urlFilter:"https://s*.toonilycdnv2.xyz/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:309,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://readcomiconline.li"}]},condition:{urlFilter:"https://*.whatsnew*.net/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:310,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://yymanhua.com"}]},condition:{urlFilter:"https://image.yymanhua.com/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:311,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://klz9.com"}]},condition:{urlFilter:"https://h1.klimv1.xyz/images*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}},{id:312,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"referer",operation:"set",value:"https://manhwato.com"}]},condition:{urlFilter:"https://stcdn.manhwato.com/images/manga/*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh","amkbmndfnliijdhojkpoglbnaaahippg"]}}];var G4="https://www.google-analytics.com/mp/collect",H4=30,W4=100;async function K4(){let{sessionData:e}=await f.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>H4?e=null:(e.timestamp=t,await f.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await f.storage.session.set({sessionData:e})),e.session_id}function Ml(e){go().forEach(({measurementId:t,apiSecret:a})=>{Il({measurement_id:t,api_secret:a,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Sa(e,t,a){return Il({measurement_id:mo,api_secret:po,page_title:e,page_location:t,time:a})}async function Il(e){try{let t=le(),a=Jt(),n=t.INSTALL_FROM==="firefox_store";if(a?.name?.startsWith("ImtFx")&&(n=!1),n)return;let{fakeUserId:r}=await ea(),i=`${G4}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,u={method:"POST",body:JSON.stringify({client_id:r,events:[{name:"page_view",params:{session_id:await K4(),engagement_time_msec:e.time||W4,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,u)}catch(t){P.error(t)}}var _t=new Map;function jl(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function Xn(e){let t=await Nl(),a=Date.now();if(t){if(_t.has(e))return;let n=await f.tabs.get(e),r=jl(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Li(e)}async function Ol(e){let t=await Nl(),a=Date.now();for(let[n,r]of _t)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t){if(_t.has(e)){let i=_t.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=jl(n.url);if(!r)return;_t.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Li(e){if(_t.has(e)){let t=_t.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),_t.delete(e),$4(t.hostname,a)}}async function V4(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function $4(e,t){Sa(`${e}(video)`,e,t),Y4(t)}var Qn="videoWatchTimeDay";async function Y4(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Oe(Qn,null);if(!r){await we(Qn,{day:n,time:e});return}if(r.day!==n){Sa("day-video."+Pe,"day-video."+Pe,r.time),await we(Qn,{day:n,time:e});return}let i={day:n,time:r.time+e};await we(Qn,i)}catch(t){P.error(t)}}async function Nl(){try{return await V4({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Mi=(e,t,a,n)=>{let r=bo[e]||e,i=fo[e]||e,u=yo[e],o=vo[e],s={"zh-CN":u,"zh-TW":o,en:i};if(a)return s[e]?s[e]:i;let l=e!==t&&r!=="All Languages";if(s[t]){let c=s[t];return n||e==="auto"||e==="placeholder"?c:l?`${c} (${r})`:`${c}`}else return l?`${i} (${r})`:i};function Z4(){return navigator.userAgent.indexOf("Mac")!==-1}var ql={Alt:"\u2325"};function Ii(e=""){return Z4()?Object.keys(ql).reduce((t,a)=>t.replace(a,ql[a]),e):e}function Q4(e,t){let a=e.generalRule.imageRule.enableImageTranslation,n=e.beta;return a=="all"||a=="beta"&&n||a=="pro"&&t||a=="pro_beta"&&n&&t?!0:a?!1:n&&!!t}async function ji(){if(_e())return!1;let e=await Ne(),t=await Do();return Q4(e,t)}function X4(){return Kr()&&!ot()}var Va=X4()?["action"]:["browser_action","page_action"],$a="",Ul=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Va]},{id:$t,contexts:["image"]},{id:jr,contexts:Va},{id:Nr,contexts:Va},{id:qr,contexts:Va},{id:Or,contexts:Va}];async function Oi(e){P.debug("createContextMenu",Ul);for(let t of Ul){let a=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(a=!1);try{let n=je(e.interfaceLanguage,`browser.${t.id}`);if(t.id===$t&&(a=await ji()),t.id==="toggleTranslatePage"){n=je(e.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e.targetLanguage,e.interfaceLanguage,!1,!0)});let r=Ii(e.shortcuts.toggleTranslatePage);r&&(n+=`(${r})`)}f.contextMenus.create({id:t.id,title:n,contexts:t.contexts,visible:a},()=>f.runtime.lastError)}catch(n){P.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}async function Za({targetLanguage:e,text:t}){let a=await Ne(),n="toggleTranslatePage",r=!0;a.isShowContextMenu===!1&&n==="toggleTranslatePage"&&(r=!1);let i;if(t)$a=t,i=je(a.interfaceLanguage,"browser.translateText",{text:t});else{let u=await Jn(),o=u&&u!=="Original";i=je(a.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Mi(e??a.targetLanguage,a.interfaceLanguage,!1,!0)}),o&&(i=`${je(a.interfaceLanguage,"show-original")}`);let s=Ii(a.shortcuts.toggleTranslatePage);s&&(i+=`(${s})`),$a=""}f.contextMenus.update(n,{title:i,visible:r})}function zl(){f.contextMenus.onClicked.addListener(async e=>{if(e.menuItemId===jr)f.runtime.openOptionsPage();else if(e.menuItemId===Or){let t=Tl();f.tabs.create({url:t})}else if(e.menuItemId===qr){let a=le().EBOOK_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===Nr){let a=le().EBOOK_VIEWER_URL;f.tabs.create({url:a})}else if(e.menuItemId===eo){let a=le().SUBTITLE_BUILDER_URL;f.tabs.create({url:a})}else if(e.menuItemId===$t)Ya({method:e.menuItemId,data:{srcUrl:e.srcUrl,trigger:"right_menu"}});else{if(e.selectionText&&e.editable){Ya({method:"inputSelectedTextTranslate",data:{text:$a,trigger:"right_menu"}});return}if(e.selectionText&&$a){let t=le(),a=await Ne(),n=encodeURIComponent($a),r=`${t.TEXT_TRANSLATE_URL}#auto/${a.targetLanguage}/${n}`;f.tabs.create({url:r}),J4([{name:"translate_select_text",params:{trigger:"right_menu",targetLanguage:a.targetLanguage}}]);return}Ya({method:e.menuItemId,data:{trigger:"right_menu"}})}})}async function J4(e){try{let t=Dn(),a=le(),n=Jt(),r=a.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:i}=await ea(),u={method:"POST",body:JSON.stringify({client_id:i,user_id:i,events:e})};t.forEach(o=>{fetch(o,u)})}catch(t){P.error(t)}}async function Gl(){try{let e=await ji();f.contextMenus.update($t,{visible:e})}catch{}}function Hl(){f.tabs.onActivated.addListener(function(e){Za({}),eh(e.tabId),Ol(e.tabId)}),f.tabs.onRemoved.addListener(function(e){Kl(e),Li(e)}),f.tabs.onUpdated.addListener(function(e){Ni(e),Xn(e)})}var Ft=new Map;async function Ni(e){let t=await Jn(),a=Date.now();if(t=="Translated"){if(Ft.has(e))return;let n=await f.tabs.get(e),r=Wl(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}Kl(e)}function Wl(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function eh(e){let t=await Jn(),a=Date.now();for(let[n,r]of Ft)!(await f.tabs.get(n)).active&&r.lastActiveTime&&(r.duration+=a-r.lastActiveTime,r.lastActiveTime=null);if(t=="Translated"){if(Ft.has(e)){let i=Ft.get(e);i.lastActiveTime=a;return}let n=await f.tabs.get(e),r=Wl(n.url);if(!r)return;Ft.set(e,{duration:0,lastActiveTime:a,hostname:r});return}}function Kl(e){if(Ft.has(e)){let t=Ft.get(e),a=t.duration;t.lastActiveTime&&(a+=Date.now()-t.lastActiveTime),Ft.delete(e),ah(t.hostname,a)}}async function th(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;return na().sendMessage(`content_script:main:${a}`,e)}function ah(e,t){Sa(e,e,t),nh(t)}async function Jn(){try{return await th({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var er="readTimeDay";async function nh(e){try{let t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),r=await Oe(er,null);if(!r){await we(er,{day:n,time:e});return}if(r.day!==n){Sa("day."+Pe,"day."+Pe,r.time),await we(er,{day:n,time:e});return}let i={day:n,time:r.time+e};await we(er,i)}catch(t){P.error(t)}}var tr,rh=async function(e,t){let{method:a,data:n}=e;if(P.debug("background received message",a,n||" "),a==="mock")await Kt(150);else{if(a==="queryParagraphCache")return ei(n);if(a==="setParagraphCache")return Jr(n);if(a==="calculateSize")return jo();if(a==="fetch")return ya(n);if(a==="getConfig")return Ne();if(a==="getLocalConfig")return Qt();if(a==="openOptionsPage"){let r="";n&&n.pageRoute&&(r=n.pageRoute);let i=f.runtime.getURL("options.html");f.tabs.create({url:i+r})}else if(a==="openAboutPage")f.tabs.create({url:f.runtime.getURL("options.html#about")});else if(a==="openInTab")n&&f.tabs.create({url:n});else if(a==="openEbookViewerPage"){let i=le().EBOOK_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openSubtitleBuilderPage"){let i=le().SUBTITLE_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openEbookBuilderPage"){let i=le().EBOOK_BUILDER_URL;f.tabs.create({url:i})}else if(a==="openHtmlViewerPage"){let i=le().HTML_VIEWER_URL;f.tabs.create({url:i})}else if(a==="openPdfViewerPage"){let r=n?.url,i=Vn(r);(ot()||!r)&&(i=le().PDF_VIEWER_URL),f.tabs.create({url:i})}else{if(a==="setLocalConfig")return Nt(n);if(a=="getUserConfig")return qt();if(a=="setUserConfig")return xt(n);if(a==="detectLanguage"){let{text:r,pageLangs:i}=n;if(f.i18n&&f.i18n.detectLanguage)try{let u=await Vl(f.i18n.detectLanguage(r),1500,{isReliable:!1,languages:[]});if(u.languages.length>0){if(u.isReliable)return jt(u.languages[0].language);for(let o of u.languages){let s=jt(o.language);if(i.includes(s)&&o.percentage>50)return s}}return"auto"}catch(u){return P.debug("detect language error",u),"auto"}else return"auto"}else if(a==="detectTabLanguage")try{let r=await Vl(f.tabs.detectLanguage(t.id),1500,"auto");return jt(r)}catch(r){return P.debug("detect tab language error, use auto ",r),"auto"}else if(a==="autoSyncLatestConfig"){try{await Rl()}catch(r){P.debug("auto sync latest config error",r)}return""}else if(a!=="updateCommands")if(a==="setBadge"){let r=t.id,i=n&&n.text?n.text:"";r&&(Za({}),ih(r,i)),r&&Ni(r)}else if(a=="getDelay"){let{key:r,options:i}=n||{};return qa.getDelay(r,i,!0)}else if(a==="getIsSupportIsOnToolbar")try{return f?.action?.getUserSettings?(await f.action.getUserSettings(),!0):!1}catch{return!1}else if(a==="getIsOnToolbar")try{return(await f.action.getUserSettings()).isOnToolbar}catch{return!1}else if(a=="reportOptionsPageView")Ml(n);else if(a==="updateVideoSubtitleStatus"){let r=t.id;r&&Xn(r)}else a==="updateToggleTranslateContextMenu"?Za(n):a==="updateImageMenu"&&Gl()}}};function $l(){na();let e=f.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&f.webRequest&&f.webRequest.onBeforeSendHeaders){let t=Zn.map(n=>n.condition.urlFilter),a=Zn.reduce((n,r)=>(r.condition.resourceTypes.forEach(i=>{n.includes(i)||n.push(i)}),n),[]);f.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let r=0;r{let i=setTimeout(()=>{n(a)},t);e.then(u=>{clearTimeout(i),n(u)}).catch(u=>{clearTimeout(i),r(u)})})}function Yl(){typeof f.commands<"u"&&f.commands.onCommand.addListener(async e=>{if(P.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await f.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Cl(n)){f.tabs.create({url:Vn(n)});return}}await Ya({method:e,data:{trigger:"shortcut"}})})}async function Ya(e){let a=(await f.tabs.query({currentWindow:!0,active:!0}))[0].id;na().sendMessage(`content_script:main:${a}`,e).catch(r=>{P.error("send content message request failed",e,r)})}function nr(){Ne().then(e=>{e.uninstallUrl&&f.runtime.setUninstallURL&&f.runtime.setUninstallURL(e.uninstallUrl),qi(e)}).catch(e=>{P.error("create menu error",e)})}function qi(e){e?Oi(e):Ne().then(t=>{Oi(t)}).catch(t=>{P.error("create menu error",t)})}function Zl(){f.runtime.onInstalled.addListener(e=>{P.debug(`onInstalled reason: ${e.reason}`),P.debug(e),e.reason=="install"?(async()=>{let t=Pa,n=f.runtime.getURL("").startsWith("safari"),r=!1,i=!1;try{let c=await f.runtime.getPlatformInfo();if(n)c.os==="mac"?r=!0:c.os==="ios"&&(i=!0);else if(c.os==="android"){if(Rn()){let d=di();if(d&&aa(d,"1.0.2")){nr();return}}t=Pa+"mobile/"}}catch{}r?t=Pa+"safari/step-1/":i&&(t=Pa+"ios/step-2/");let u=await Oe("onboardingDisplayTime",""),o=await Wa(),s=await Xt(),l=new URL(t);l.searchParams.set("t",o),l.searchParams.set("v",s),n?u||(await we("onboardingDisplayTime",new Date().toISOString()),f.tabs.create({url:l.toString()})):f.tabs.create({url:l.toString()}),nr()})():(e.reason=="update"&&f.runtime.getManifest().version!=e.previousVersion,nr())})}var oh=ki(null);async function lh(e,t,a){a=a||await oi();let n=a.aiAssistants||[],r=!1;if(e=="edit"&&Ql(t))for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&(n[u]=t,r=!0);else if(e==="add"&&Ql(t)){for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);n.push(t),r=!0}else{for(let u=n.length-1;u>=0;u--)n[u].id===t.id&&n.splice(u,1);r=!0}a.aiAssistants=n.sort((u,o)=>u.priority-o.priority);let i=await qt();i.aiAssistantIds=[...new Set(n.map(u=>u.id))];try{await Wo(a),await xt(i)}catch{return!1}return r}async function ch(e,t){(await Promise.allSettled(e.map(n=>Zt({url:`${v.AI_BASE_URL}/api/plugins/${n}.json`})))).forEach(n=>{if(n.status==="fulfilled"){let r=n.value;r&&lh("add",r,t)}})}async function dh(e,t,a=!0){e||(e=await Ne()),t||(t=await oi());let n=t.aiAssistants||[],r=(e.aiAssistantIds||[]).filter(o=>!n.find(s=>s.id===o)),i=[];if(a){let o=await hh();i=await gh(t,o)}let u=[...new Set([...r,...i])].filter(o=>!o.startsWith("custom"));u.length!==0&&ch(u,t)}var mh=Ta(dh,1500);function Ql(e){return aa(li(),e.extensionVersion)}function ph(e,t){return t?!aa(e.version,t):!1}function gh(e,t){let a=[];return(e.aiAssistants||[]).forEach(n=>{ph(n,t[n.id]?.version)&&a.push(n.id)}),[...new Set(a)]}async function hh(){return(await Zt({url:`${v.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var fh=1e3*3600*24;async function Xl(e){try{let t=e?.cacheCleanIntervalDay??1,a=e?.cacheMaxAgeDay??30,n=new Date,r=await f.storage.local.get(null),i=r[xn],u=r[Ur];if(u||(u=n.getTime(),await f.storage.local.set({[Ur]:u})),i||(i=n.getTime(),await f.storage.local.set({[xn]:i})),n.getTime()-i>=t*fh){let o=await Oo(a,u);await f.storage.local.set({[xn]:n.getTime()})}}catch{}}async function Jl(){try{if(_e())return;let e=f.runtime.getURL("locales.json"),a=await(await fetch(e)).json();Object.assign(Ut,a)}catch{}}$l();Zl();Yl();f.contextMenus&&zl();async function bh(){await Jl(),f.contextMenus&&qi();let e=await Ne();Xl(e),Hl(),e.debug&&P.setLevel("debug")}bh().catch(e=>{});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/chrome/content_script.js b/dist/chrome/content_script.js index aa23374..213480d 100644 --- a/dist/chrome/content_script.js +++ b/dist/chrome/content_script.js @@ -1,4 +1,4 @@ -(()=>{var mC=Object.defineProperty;var pC=(e,t)=>{for(var n in t)mC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-11-22T10:30:05.000Z",VERSION:"1.11.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var mC=Object.defineProperty;var pC=(e,t)=>{for(var n in t)mC(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-11-25T09:06:11.000Z",VERSION:"1.11.7",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5530,7 +5530,7 @@ select.text-gray-6 { max-width: fit-content; } } -`,qd="immersive-translate-toastify-shadow-root",zd=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(qd)){let t=document.getElementById(qd);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=qd,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=wC,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function il(e){e=e||{},new zd({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function Le(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var de=Le();function te(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):de.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function sa(){return de.PROD==="1"}function Wd(){return de.PROD_API==="1"}function A4(){return de.HAS_CSP_ERROR=="1"}function at(){if(de.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ol(){return typeof Deno<"u"}var UO=Le().PROD==="1",Ji=Le().PROD!=="1";function sl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function ul(){return de.IMMERSIVE_TRANSLATE_JSSDK==="1"}function Zi(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Gd=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function ll(e,t){let n=Zi(),r=setTimeout(()=>n.reject(new Gd),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function pt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var k4=class{#e=0;#t=[];#n=[];#r=Zi();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tZC,bgBlue:()=>tw,bgBrightBlack:()=>iw,bgBrightBlue:()=>lw,bgBrightCyan:()=>dw,bgBrightGreen:()=>sw,bgBrightMagenta:()=>cw,bgBrightRed:()=>ow,bgBrightWhite:()=>mw,bgBrightYellow:()=>uw,bgCyan:()=>rw,bgGreen:()=>$C,bgMagenta:()=>nw,bgRed:()=>XC,bgRgb24:()=>hw,bgRgb8:()=>gw,bgWhite:()=>aw,bgYellow:()=>ew,black:()=>IC,blue:()=>jC,bold:()=>DC,brightBlack:()=>M4,brightBlue:()=>VC,brightCyan:()=>QC,brightGreen:()=>GC,brightMagenta:()=>YC,brightRed:()=>WC,brightWhite:()=>JC,brightYellow:()=>KC,cyan:()=>HC,dim:()=>LC,getColorEnabled:()=>AC,gray:()=>zC,green:()=>OC,hidden:()=>FC,inverse:()=>RC,italic:()=>MC,magenta:()=>UC,red:()=>_C,reset:()=>kC,rgb24:()=>fw,rgb8:()=>pw,setColorEnabled:()=>EC,strikethrough:()=>BC,stripColor:()=>yw,underline:()=>PC,white:()=>qC,yellow:()=>NC});var{Deno:D4}=globalThis,L4=typeof D4?.noColor=="boolean"?D4.noColor:!0,Kd=!L4;function EC(e){L4||(Kd=e)}function AC(){return Kd}function Pe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Re(e,t){return Kd?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function kC(e){return Re(e,Pe([0],0))}function DC(e){return Re(e,Pe([1],22))}function LC(e){return Re(e,Pe([2],22))}function MC(e){return Re(e,Pe([3],23))}function PC(e){return Re(e,Pe([4],24))}function RC(e){return Re(e,Pe([7],27))}function FC(e){return Re(e,Pe([8],28))}function BC(e){return Re(e,Pe([9],29))}function IC(e){return Re(e,Pe([30],39))}function _C(e){return Re(e,Pe([31],39))}function OC(e){return Re(e,Pe([32],39))}function NC(e){return Re(e,Pe([33],39))}function jC(e){return Re(e,Pe([34],39))}function UC(e){return Re(e,Pe([35],39))}function HC(e){return Re(e,Pe([36],39))}function qC(e){return Re(e,Pe([37],39))}function zC(e){return M4(e)}function M4(e){return Re(e,Pe([90],39))}function WC(e){return Re(e,Pe([91],39))}function GC(e){return Re(e,Pe([92],39))}function KC(e){return Re(e,Pe([93],39))}function VC(e){return Re(e,Pe([94],39))}function YC(e){return Re(e,Pe([95],39))}function QC(e){return Re(e,Pe([96],39))}function JC(e){return Re(e,Pe([97],39))}function ZC(e){return Re(e,Pe([40],49))}function XC(e){return Re(e,Pe([41],49))}function $C(e){return Re(e,Pe([42],49))}function ew(e){return Re(e,Pe([43],49))}function tw(e){return Re(e,Pe([44],49))}function nw(e){return Re(e,Pe([45],49))}function rw(e){return Re(e,Pe([46],49))}function aw(e){return Re(e,Pe([47],49))}function iw(e){return Re(e,Pe([100],49))}function ow(e){return Re(e,Pe([101],49))}function sw(e){return Re(e,Pe([102],49))}function uw(e){return Re(e,Pe([103],49))}function lw(e){return Re(e,Pe([104],49))}function cw(e){return Re(e,Pe([105],49))}function dw(e){return Re(e,Pe([106],49))}function mw(e){return Re(e,Pe([107],49))}function Da(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function pw(e,t){return Re(e,Pe([38,5,Da(t)],39))}function gw(e,t){return Re(e,Pe([48,5,Da(t)],49))}function fw(e,t){return typeof t=="number"?Re(e,Pe([38,2,t>>16&255,t>>8&255,t&255],39)):Re(e,Pe([38,2,Da(t.r),Da(t.g),Da(t.b)],39))}function hw(e,t){return typeof t=="number"?Re(e,Pe([48,2,t>>16&255,t>>8&255,t&255],49)):Re(e,Pe([48,2,Da(t.r),Da(t.g),Da(t.b)],49))}var bw=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function yw(e){return e.replace(bw,"")}var Vd=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},vw={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Yd(e,t){let n={...vw,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Vd(a,n.maxAttempts)}var ua=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function bs(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ua[(t[r-2]&3)<<4|t[r-1]>>4],n+=ua[(t[r-1]&15)<<2|t[r]>>6],n+=ua[t[r]&63];return r===a+1&&(n+=ua[t[r-2]>>2],n+=ua[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ua[t[r-2]>>2],n+=ua[(t[r-2]&3)<<4|t[r-1]>>4],n+=ua[(t[r-1]&15)<<2],n+="="),n}var xw=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Sw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uF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00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Tw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-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0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\u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DDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Qd={Space_Separator:xw,ID_Start:Sw,ID_Continue:Tw},It={isSpaceSeparator(e){return typeof e=="string"&&Qd.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Qd.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Qd.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Zd,Dn,ca,dl,La,fr,en,em,vs,Cw=function(e,t){Zd=String(e),Dn="start",ca=[],dl=0,La=1,fr=0,en=void 0,em=void 0,vs=void 0;do en=ww(),kw[Dn]();while(en.type!=="eof");return typeof t=="function"?Xd({"":vs},"",t):vs};function Xd(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function il(e){e=e||{},new zd({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function Le(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var de=Le();function te(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):de.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function sa(){return de.PROD==="1"}function Wd(){return de.PROD_API==="1"}function A4(){return de.HAS_CSP_ERROR=="1"}function at(){if(de.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ol(){return typeof Deno<"u"}var UO=Le().PROD==="1",Ji=Le().PROD!=="1";function sl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function ul(){return de.IMMERSIVE_TRANSLATE_JSSDK==="1"}function Zi(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Gd=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function ll(e,t){let n=Zi(),r=setTimeout(()=>n.reject(new Gd),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function pt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var k4=class{#e=0;#t=[];#n=[];#r=Zi();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tZC,bgBlue:()=>tw,bgBrightBlack:()=>iw,bgBrightBlue:()=>lw,bgBrightCyan:()=>dw,bgBrightGreen:()=>sw,bgBrightMagenta:()=>cw,bgBrightRed:()=>ow,bgBrightWhite:()=>mw,bgBrightYellow:()=>uw,bgCyan:()=>rw,bgGreen:()=>$C,bgMagenta:()=>nw,bgRed:()=>XC,bgRgb24:()=>hw,bgRgb8:()=>gw,bgWhite:()=>aw,bgYellow:()=>ew,black:()=>IC,blue:()=>jC,bold:()=>DC,brightBlack:()=>M4,brightBlue:()=>KC,brightCyan:()=>QC,brightGreen:()=>GC,brightMagenta:()=>YC,brightRed:()=>WC,brightWhite:()=>JC,brightYellow:()=>VC,cyan:()=>HC,dim:()=>LC,getColorEnabled:()=>AC,gray:()=>zC,green:()=>OC,hidden:()=>FC,inverse:()=>RC,italic:()=>MC,magenta:()=>UC,red:()=>_C,reset:()=>kC,rgb24:()=>fw,rgb8:()=>pw,setColorEnabled:()=>EC,strikethrough:()=>BC,stripColor:()=>yw,underline:()=>PC,white:()=>qC,yellow:()=>NC});var{Deno:D4}=globalThis,L4=typeof D4?.noColor=="boolean"?D4.noColor:!0,Vd=!L4;function EC(e){L4||(Vd=e)}function AC(){return Vd}function Pe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Re(e,t){return Vd?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function kC(e){return Re(e,Pe([0],0))}function DC(e){return Re(e,Pe([1],22))}function LC(e){return Re(e,Pe([2],22))}function MC(e){return Re(e,Pe([3],23))}function PC(e){return Re(e,Pe([4],24))}function RC(e){return Re(e,Pe([7],27))}function FC(e){return Re(e,Pe([8],28))}function BC(e){return Re(e,Pe([9],29))}function IC(e){return Re(e,Pe([30],39))}function _C(e){return Re(e,Pe([31],39))}function OC(e){return Re(e,Pe([32],39))}function NC(e){return Re(e,Pe([33],39))}function jC(e){return Re(e,Pe([34],39))}function UC(e){return Re(e,Pe([35],39))}function HC(e){return Re(e,Pe([36],39))}function qC(e){return Re(e,Pe([37],39))}function zC(e){return M4(e)}function M4(e){return Re(e,Pe([90],39))}function WC(e){return Re(e,Pe([91],39))}function GC(e){return Re(e,Pe([92],39))}function VC(e){return Re(e,Pe([93],39))}function KC(e){return Re(e,Pe([94],39))}function YC(e){return Re(e,Pe([95],39))}function QC(e){return Re(e,Pe([96],39))}function JC(e){return Re(e,Pe([97],39))}function ZC(e){return Re(e,Pe([40],49))}function XC(e){return Re(e,Pe([41],49))}function $C(e){return Re(e,Pe([42],49))}function ew(e){return Re(e,Pe([43],49))}function tw(e){return Re(e,Pe([44],49))}function nw(e){return Re(e,Pe([45],49))}function rw(e){return Re(e,Pe([46],49))}function aw(e){return Re(e,Pe([47],49))}function iw(e){return Re(e,Pe([100],49))}function ow(e){return Re(e,Pe([101],49))}function sw(e){return Re(e,Pe([102],49))}function uw(e){return Re(e,Pe([103],49))}function lw(e){return Re(e,Pe([104],49))}function cw(e){return Re(e,Pe([105],49))}function dw(e){return Re(e,Pe([106],49))}function mw(e){return Re(e,Pe([107],49))}function Da(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function pw(e,t){return Re(e,Pe([38,5,Da(t)],39))}function gw(e,t){return Re(e,Pe([48,5,Da(t)],49))}function fw(e,t){return typeof t=="number"?Re(e,Pe([38,2,t>>16&255,t>>8&255,t&255],39)):Re(e,Pe([38,2,Da(t.r),Da(t.g),Da(t.b)],39))}function hw(e,t){return typeof t=="number"?Re(e,Pe([48,2,t>>16&255,t>>8&255,t&255],49)):Re(e,Pe([48,2,Da(t.r),Da(t.g),Da(t.b)],49))}var bw=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function yw(e){return e.replace(bw,"")}var Kd=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},vw={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Yd(e,t){let n={...vw,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Kd(a,n.maxAttempts)}var ua=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function bs(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ua[(t[r-2]&3)<<4|t[r-1]>>4],n+=ua[(t[r-1]&15)<<2|t[r]>>6],n+=ua[t[r]&63];return r===a+1&&(n+=ua[t[r-2]>>2],n+=ua[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ua[t[r-2]>>2],n+=ua[(t[r-2]&3)<<4|t[r-1]>>4],n+=ua[(t[r-1]&15)<<2],n+="="),n}var xw=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Sw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uA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C7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|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\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B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0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\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DD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8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\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Qd={Space_Separator:xw,ID_Start:Sw,ID_Continue:Tw},It={isSpaceSeparator(e){return typeof e=="string"&&Qd.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Qd.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Qd.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Zd,Dn,ca,dl,La,fr,en,em,vs,Cw=function(e,t){Zd=String(e),Dn="start",ca=[],dl=0,La=1,fr=0,en=void 0,em=void 0,vs=void 0;do en=ww(),kw[Dn]();while(en.type!=="eof");return typeof t=="function"?Xd({"":vs},"",t):vs};function Xd(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),Uw=(e,t)=>{for(var n in t)rm(e,n,{get:t[n],enumerable:!0})},nm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _w(t))!Nw.call(e,a)&&a!==n&&rm(e,a,{get:()=>t[a],enumerable:!(r=Iw(t,a))||r.enumerable});return e},Hw=(e,t,n)=>(nm(e,t,"default"),n&&nm(n,t,"default")),I4=(e,t,n)=>(n=e!=null?Bw(Ow(e)):{},nm(t||!e||!e.__esModule?rm(n,"default",{value:e,enumerable:!0}):n,e)),_4=jw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof pl=="object"&&pl&&pl.Object===Object&&pl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(A,D,M){var B,P,_,L,O,I,j=0,W=!1,ne=!1,Ee=!0;if(typeof A!="function")throw new TypeError(n);D=w(D)||0,S(M)&&(W=!!M.leading,ne="maxWait"in M,_=ne?h(w(M.maxWait)||0,D):_,Ee="trailing"in M?!!M.trailing:Ee);function ve(ge){var fe=B,Ce=P;return B=P=void 0,j=ge,L=A.apply(Ce,fe),L}function N(ge){return j=ge,O=setTimeout(De,D),W?ve(ge):L}function z(ge){var fe=ge-I,Ce=ge-j,Ue=D-fe;return ne?b(Ue,_-Ce):Ue}function Y(ge){var fe=ge-I,Ce=ge-j;return I===void 0||fe>=D||fe<0||ne&&Ce>=_}function De(){var ge=f();if(Y(ge))return me(ge);O=setTimeout(De,z(ge))}function me(ge){return O=void 0,Ee&&B?ve(ge):(B=P=void 0,L)}function He(){O!==void 0&&clearTimeout(O),j=0,B=I=P=O=void 0}function pe(){return O===void 0?L:me(f())}function ce(){var ge=f(),fe=Y(ge);if(B=arguments,P=this,I=ge,fe){if(O===void 0)return N(I);if(ne)return O=setTimeout(De,D),ve(I)}return O===void 0&&(O=setTimeout(De,D)),L}return ce.cancel=He,ce.flush=pe,ce}function x(A,D,M){var B=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return S(M)&&(B="leading"in M?!!M.leading:B,P="trailing"in M?!!M.trailing:P),y(A,D,{leading:B,maxWait:D,trailing:P})}function S(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function T(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||T(A)&&g.call(A)==a}function w(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=S(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=x}),O4={};Uw(O4,{default:()=>Vn});var qw=I4(_4());Hw(O4,I4(_4()));var{default:B4,...zw}=qw,Vn=B4!==void 0?B4:zw;var gl=globalThis||(typeof window<"u"?window:self),Ww=Object.create,im=Object.defineProperty,Gw=Object.getOwnPropertyDescriptor,Kw=Object.getOwnPropertyNames,Vw=Object.getPrototypeOf,Yw=Object.prototype.hasOwnProperty,Qw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jw=(e,t)=>{for(var n in t)im(e,n,{get:t[n],enumerable:!0})},am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kw(t))!Yw.call(e,a)&&a!==n&&im(e,a,{get:()=>t[a],enumerable:!(r=Gw(t,a))||r.enumerable});return e},Zw=(e,t,n)=>(am(e,t,"default"),n&&am(n,t,"default")),j4=(e,t,n)=>(n=e!=null?Ww(Vw(e)):{},am(t||!e||!e.__esModule?im(n,"default",{value:e,enumerable:!0}):n,e)),U4=Qw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof gl=="object"&&gl&&gl.Object===Object&&gl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,A,D){var M,B,P,_,L,O,I=0,j=!1,W=!1,ne=!0;if(typeof w!="function")throw new TypeError(n);A=C(A)||0,x(D)&&(j=!!D.leading,W="maxWait"in D,P=W?h(C(D.maxWait)||0,A):P,ne="trailing"in D?!!D.trailing:ne);function Ee(ce){var ge=M,fe=B;return M=B=void 0,I=ce,_=w.apply(fe,ge),_}function ve(ce){return I=ce,L=setTimeout(Y,A),j?Ee(ce):_}function N(ce){var ge=ce-O,fe=ce-I,Ce=A-ge;return W?b(Ce,P-fe):Ce}function z(ce){var ge=ce-O,fe=ce-I;return O===void 0||ge>=A||ge<0||W&&fe>=P}function Y(){var ce=f();if(z(ce))return De(ce);L=setTimeout(Y,N(ce))}function De(ce){return L=void 0,ne&&M?Ee(ce):(M=B=void 0,_)}function me(){L!==void 0&&clearTimeout(L),I=0,M=O=B=L=void 0}function He(){return L===void 0?_:De(f())}function pe(){var ce=f(),ge=z(ce);if(M=arguments,B=this,O=ce,ge){if(L===void 0)return ve(O);if(W)return L=setTimeout(Y,A),Ee(O)}return L===void 0&&(L=setTimeout(Y,A)),_}return pe.cancel=me,pe.flush=He,pe}function x(w){var A=typeof w;return!!w&&(A=="object"||A=="function")}function S(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||S(w)&&g.call(w)==a}function C(w){if(typeof w=="number")return w;if(T(w))return r;if(x(w)){var A=typeof w.valueOf=="function"?w.valueOf():w;w=x(A)?A+"":A}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var D=s.test(w);return D||u.test(w)?l(w.slice(2),D?2:8):o.test(w)?r:+w}t.exports=y}),H4={};Jw(H4,{default:()=>Ln});var Xw=j4(U4());Zw(H4,j4(U4()));var{default:N4,...$w}=Xw,Ln=N4!==void 0?N4:$w;var eE=Object.create,sm=Object.defineProperty,tE=Object.getOwnPropertyDescriptor,nE=Object.getOwnPropertyNames,rE=Object.getPrototypeOf,aE=Object.prototype.hasOwnProperty,iE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oE=(e,t)=>{for(var n in t)sm(e,n,{get:t[n],enumerable:!0})},om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of nE(t))!aE.call(e,a)&&a!==n&&sm(e,a,{get:()=>t[a],enumerable:!(r=tE(t,a))||r.enumerable});return e},sE=(e,t,n)=>(om(e,t,"default"),n&&om(n,t,"default")),z4=(e,t,n)=>(n=e!=null?eE(rE(e)):{},om(t||!e||!e.__esModule?sm(n,"default",{value:e,enumerable:!0}):n,e)),W4=iE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,z){var Y={};for(var De in N)z.indexOf(De)>=0||Object.prototype.hasOwnProperty.call(N,De)&&(Y[De]=N[De]);return Y}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var z=1;z'+De+"",Ce.onclick=function(){return P(Ue,fe)},Ce.listener=function(K){(D(K)||M(K))&&O()},B(Ce,fe),He&&He<1&&(He=1),!ce&&He&&S(He).then(function(){return P(Ue,fe)})},j=d.force=function(N,z){var Y=N.type,De=Y===void 0?5:Y,me=N.text,He=N.buttonText,pe=He===void 0?"OK":He,ce=N.callback,ge=N.position,fe=ge===void 0?f.positions.force||fe.top:ge;T(),O();var Ce=document.createElement("div"),Ue=C();Ce.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+me+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(w[De]),be.innerHTML=pe,be.onclick=function(){P(Ue,fe),L(),ce?ce():z&&z()},Ce.appendChild(K),Ce.appendChild(be),Ce.listener=function(rt){D(rt)&&be.click()},B(Ce,fe),_()},W=d.confirm=function(N,z,Y){var De=N.text,me=N.submitText,He=me===void 0?"Yes":me,pe=N.cancelText,ce=pe===void 0?"Cancel":pe,ge=N.submitCallback,fe=N.cancelCallback,Ce=N.position,Ue=Ce===void 0?f.positions.confirm||Ue.top:Ce;T(),O();var K=document.createElement("div"),be=C();K.id=be;var rt=document.createElement("div");rt.classList.add(f.classes.textbox),rt.classList.add(f.classes.backgroundInfo),rt.innerHTML='
'+De+"
";var Je=document.createElement("div");Je.classList.add(f.classes.button),Je.classList.add(f.classes.elementHalf),Je.classList.add(f.classes.backgroundSuccess),Je.innerHTML=He,Je.onclick=function(){P(be,Ue),L(),ge?ge():z&&z()};var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(f.classes.elementHalf),xe.classList.add(f.classes.backgroundError),xe.innerHTML=ce,xe.onclick=function(){P(be,Ue),L(),fe?fe():Y&&Y()},K.appendChild(rt),K.appendChild(Je),K.appendChild(xe),K.listener=function(xt){D(xt)?Je.click():M(xt)&&xe.click()},B(K,Ue),_(K,Ue)},ne=function(N,z,Y){var De=N.text,me=N.submitText,He=me===void 0?"Submit":me,pe=N.cancelText,ce=pe===void 0?"Cancel":pe,ge=N.submitCallback,fe=N.cancelCallback,Ce=N.position,Ue=Ce===void 0?f.positions.input||Ue.top:Ce,K=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),O();var be=document.createElement("div"),rt=C();be.id=rt;var Je=document.createElement("div");Je.classList.add(f.classes.textbox),Je.classList.add(f.classes.backgroundInfo),Je.innerHTML='
'+De+"
";var xe=document.createElement("input");xe.classList.add(f.classes.inputField),xe.setAttribute("autocapitalize",K.autocapitalize||"none"),xe.setAttribute("autocomplete",K.autocomplete||"off"),xe.setAttribute("autocorrect",K.autocorrect||"off"),xe.setAttribute("autofocus",K.autofocus||"true"),xe.setAttribute("inputmode",K.inputmode||"verbatim"),xe.setAttribute("max",K.max||""),xe.setAttribute("maxlength",K.maxlength||""),xe.setAttribute("min",K.min||""),xe.setAttribute("minlength",K.minlength||""),xe.setAttribute("placeholder",K.placeholder||""),xe.setAttribute("spellcheck",K.spellcheck||"default"),xe.setAttribute("step",K.step||"any"),xe.setAttribute("type",K.type||"text"),xe.value=K.value||"",K.allowed&&(xe.oninput=function(){var kt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",En=K.allowed,or=0;or'+Y+"",fe.appendChild(Ue),pe.forEach(function(be,rt){var Je=be.type,xe=Je===void 0?1:Je,xt=be.text,Kt=be.handler,kt=document.createElement("div");kt.classList.add(w[xe]),kt.classList.add(f.classes.button),kt.classList.add(f.classes.selectChoice);var Bt=pe[rt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===xe&&kt.classList.add(f.classes.selectChoiceRepeated),kt.innerHTML=xt,kt.onclick=function(){P(Ce,ge),L(),Kt()},fe.appendChild(kt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=me,K.onclick=function(){P(Ce,ge),L(),He?He():z&&z()},fe.appendChild(K),fe.listener=function(be){M(be)&&K.click()},B(fe,ge),_(fe,ge)},ve=d.date=function(N,z,Y){var De=N.value,me=De===void 0?new Date:De,He=N.submitText,pe=He===void 0?"OK":He,ce=N.cancelText,ge=ce===void 0?"Cancel":ce,fe=N.submitCallback,Ce=N.cancelCallback,Ue=N.position,K=Ue===void 0?f.positions.date||K.top:Ue;T(),O();var be="▾",rt=document.createElement("div"),Je=document.createElement("div"),xe=document.createElement("div"),xt=function(St){rt.innerHTML=f.dateMonths[St.getMonth()],Je.innerHTML=St.getDate(),xe.innerHTML=St.getFullYear()},Kt=function(St){var nt=new Date(me.getFullYear(),me.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>nt&&(Kn=nt.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),me.setDate(Number(Kn))},kt=function(St){var nt=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=nt,me.setFullYear(Number(nt))},Bt=function(St){xt(me)},En=function(St){var nt=new Date(me.getFullYear(),me.getMonth()+St+1,0).getDate();me.getDate()>nt&&me.setDate(nt),me.setMonth(me.getMonth()+St),xt(me)},or=function(St){me.setDate(me.getDate()+St),xt(me)},hs=function(St){var nt=me.getFullYear()+St;nt<0?me.setFullYear(0):me.setFullYear(me.getFullYear()+St),xt(me)},Nr=document.createElement("div"),mi=C();Nr.id=mi;var Vi=document.createElement("div");Vi.classList.add(f.classes.backgroundInfo);var mn=document.createElement("div");mn.classList.add(f.classes.dateSelectorInner);var gr=document.createElement("div");gr.classList.add(f.classes.button),gr.classList.add(f.classes.elementThird),gr.classList.add(f.classes.dateSelectorUp),gr.innerHTML=be;var pn=document.createElement("div");pn.classList.add(f.classes.button),pn.classList.add(f.classes.elementThird),pn.classList.add(f.classes.dateSelectorUp),pn.innerHTML=be;var Gn=document.createElement("div");Gn.classList.add(f.classes.button),Gn.classList.add(f.classes.elementThird),Gn.classList.add(f.classes.dateSelectorUp),Gn.innerHTML=be,rt.classList.add(f.classes.element),rt.classList.add(f.classes.elementThird),rt.innerHTML=f.dateMonths[me.getMonth()],Je.classList.add(f.classes.element),Je.classList.add(f.classes.elementThird),Je.setAttribute("contentEditable",!0),Je.addEventListener("input",Kt),Je.addEventListener("blur",Bt),Je.innerHTML=me.getDate(),xe.classList.add(f.classes.element),xe.classList.add(f.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",kt),xe.addEventListener("blur",Bt),xe.innerHTML=me.getFullYear();var ra=document.createElement("div");ra.classList.add(f.classes.button),ra.classList.add(f.classes.elementThird),ra.innerHTML=be;var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementThird),aa.innerHTML=be;var pi=document.createElement("div");pi.classList.add(f.classes.button),pi.classList.add(f.classes.elementThird),pi.innerHTML=be,gr.onclick=function(){return En(1)},pn.onclick=function(){return or(1)},Gn.onclick=function(){return hs(1)},ra.onclick=function(){return En(-1)},aa.onclick=function(){return or(-1)},pi.onclick=function(){return hs(-1)};var An=document.createElement("div");An.classList.add(f.classes.button),An.classList.add(f.classes.elementHalf),An.classList.add(f.classes.backgroundSuccess),An.innerHTML=pe,An.onclick=function(){P(mi,K),L(),fe?fe(me):z&&z(me)};var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementHalf),ia.classList.add(f.classes.backgroundError),ia.innerHTML=ge,ia.onclick=function(){P(mi,K),L(),Ce?Ce(me):Y&&Y(me)},mn.appendChild(gr),mn.appendChild(pn),mn.appendChild(Gn),mn.appendChild(rt),mn.appendChild(Je),mn.appendChild(xe),mn.appendChild(ra),mn.appendChild(aa),mn.appendChild(pi),Vi.appendChild(mn),Nr.appendChild(Vi),Nr.appendChild(An),Nr.appendChild(ia),Nr.listener=function(St){D(St)?An.click():M(St)&&ia.click()},B(Nr,K),_(Nr,K)};d.default={alert:I,force:j,confirm:W,input:ne,select:Ee,date:ve,setOptions:y,hideAlerts:O}}])})}).call(r,a(0)(n))}])})}),G4={};oE(G4,{default:()=>fl});var uE=z4(W4());sE(G4,z4(W4()));var{default:q4,...lE}=uE,fl=q4!==void 0?q4:lE;var hl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function xs(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function um(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function K4(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;iXi[e.toLowerCase()]||br[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),cE=e=>Object.keys(Xi).find(t=>Xi[t]===e),dE=e=>Object.keys(br).find(t=>br[t]===e);function X4(e){J4=e||"all"}function Ss(){return J4||"all"}function mE(){return ot.slice(0)}function pE(){return ot.map(e=>cE(e)||dE(e)||String.fromCharCode(e))}function gE(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Ts(o))})})}),e}function fE(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function hE(e){return typeof e=="string"&&(e=Ts(e)),ot.indexOf(e)!==-1}function bE(e,t){let n,r;e||(e=Ss());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in br)br[r]===t&&(ma[r]=!1)}}function $4(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&cm(n)});else if(typeof e=="object")e.key&&cm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),cm({key:e,scope:n,method:r,splitKey:"+"})}}var cm=({key:e,scope:t,method:n,splitKey:r="+"})=>{lm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Ts(u);if(!Tt[l])return;t||(t=Ss());let c=s>1?um(br,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&K4(d.mods,c)))})};function Y4(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Q4(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ma.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=bl[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in br)br[i]===r&&(ma[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[bl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=Ss();if(n)for(let i=0;i-1}function ma(e,t,n){ot=[];let r=lm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&$4(e,i);s1&&(a=um(br,e)),e=e[e.length-1],e=e==="*"?"*":Ts(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!vE(o)&&window&&(Z4.push(o),xs(o,"keydown",p=>{Q4(p,o)},d),V4||(V4=!0,xs(window,"focus",()=>{ot=[]},d),xs(window,"click",()=>{ot=[]},!1)),xs(o,"keyup",p=>{Q4(p,o),yE(p)},d))}function xE(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var dm={getPressedKeyString:pE,setScope:X4,getScope:Ss,deleteScope:bE,getPressedKeyCodes:mE,getAllKeyCodes:gE,isPressed:hE,filter:fE,trigger:xE,unbind:$4,keyMap:Xi,modifier:br,modifierMap:bl};for(let e in dm)Object.prototype.hasOwnProperty.call(dm,e)&&(ma[e]=dm[e]);if(typeof window<"u"){let e=window.hotkeys;ma.noConflict=t=>(t&&window.hotkeys===ma&&(window.hotkeys=e),ma),window.hotkeys=ma}var Nn=ma;var SE={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_t={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Mn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ma={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},q=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=q.getVersionPrecision(e),a=q.getVersionPrecision(t),i=Math.max(r,a),o=0,s=q.map([e,t],u=>{let l=i-q.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return q.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return SE[e]}static getBrowserTypeByAlias(e){return t3[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,TE=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=q.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=q.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=q.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=q.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=q.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=q.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=q.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=q.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=q.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=q.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=q.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=q.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=q.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=q.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=q.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=q.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=q.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=q.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=q.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=q.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=q.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=q.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=q.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=q.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=q.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=q.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:q.getFirstMatch(r,e),version:q.getSecondMatch(r,e)}}}],CE=TE,wE=[{test:[/Roku\/DVP/],describe(e){let t=q.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Mn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=q.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Mn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=q.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=q.getWindowsVersionName(t);return{name:Mn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Mn.iOS},n=q.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=q.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=q.getMacOSVersionName(t),r={name:Mn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=q.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Mn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=q.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=q.getAndroidVersionName(t),r={name:Mn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=q.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Mn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=q.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||q.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||q.getFirstMatch(/\bbb(\d+)/i,e);return{name:Mn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=q.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Mn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=q.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Mn.Linux}}},{test:[/CrOS/],describe(){return{name:Mn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=q.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.PlayStation4,version:t}}}],EE=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=q.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:_t.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:_t.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:_t.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:_t.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:_t.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=q.getFirstMatch(/(ipod|iphone)/i,e);return{type:_t.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:_t.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:_t.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:_t.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:_t.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:_t.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:_t.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:_t.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:_t.tv}}}],AE=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ma.Blink};let t=q.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ma.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ma.Trident},n=q.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ma.Presto},n=q.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ma.Gecko},n=q.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ma.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ma.WebKit},n=q.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],kE=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=q.find(CE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=q.find(wE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=q.find(EE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=q.find(AE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return q.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=q.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=q.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=q.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=q.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(q.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},e3=kE,DE=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new e3(e,t)}static parse(e){return new e3(e).getResult()}static get BROWSER_MAP(){return t3}static get ENGINE_MAP(){return Ma}static get OS_MAP(){return Mn}static get PLATFORMS_MAP(){return _t}},$i=DE;var{entries:l3,setPrototypeOf:n3,isFrozen:LE,getPrototypeOf:ME,getOwnPropertyDescriptor:PE}=Object,{freeze:Pn,seal:vr,create:RE}=Object,{apply:bm,construct:ym}=typeof Reflect<"u"&&Reflect;bm||(bm=function(e,t,n){return e.apply(t,n)});Pn||(Pn=function(e){return e});vr||(vr=function(e){return e});ym||(ym=function(e,t){return new e(...t)});var FE=ur(Array.prototype.forEach),r3=ur(Array.prototype.pop),Cs=ur(Array.prototype.push),xl=ur(String.prototype.toLowerCase),mm=ur(String.prototype.toString),BE=ur(String.prototype.match),yr=ur(String.prototype.replace),IE=ur(String.prototype.indexOf),_E=ur(String.prototype.trim),Yn=ur(RegExp.prototype.test),ws=OE(TypeError);function ur(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),qE=vr(/\${[\w\W]*}/gm),zE=vr(/^data-[\-\w.\u00B7-\uFFFF]/),WE=vr(/^aria-[\-\w]+$/),c3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),GE=vr(/^(?:\w+script|data):/i),KE=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d3=vr(/^html$/i),u3=Object.freeze({__proto__:null,MUSTACHE_EXPR:UE,ERB_EXPR:HE,TMPLIT_EXPR:qE,DATA_ATTR:zE,ARIA_ATTR:WE,IS_ALLOWED_URI:c3,IS_SCRIPT_OR_DATA:GE,ATTR_WHITESPACE:KE,DOCTYPE_NAME:d3}),VE=()=>typeof window>"u"?null:window,YE=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function m3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:VE(),t=F=>m3(F);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=yl(g,"cloneNode"),b=yl(g,"nextSibling"),f=yl(g,"childNodes"),y=yl(g,"parentNode");if(typeof o=="function"){let F=a.createElement("template");F.content&&F.content.ownerDocument&&(a=F.content.ownerDocument)}let x,S="",{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof l3=="function"&&typeof y=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:P,TMPLIT_EXPR:_,DATA_ATTR:L,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:j}=u3,{IS_ALLOWED_URI:W}=u3,ne=null,Ee=je({},[...a3,...pm,...gm,...fm,...i3]),ve=null,N=je({},[...o3,...hm,...s3,...vl]),z=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,De=null,me=!0,He=!0,pe=!1,ce=!0,ge=!1,fe=!1,Ce=!1,Ue=!1,K=!1,be=!1,rt=!1,Je=!0,xe=!1,xt="user-content-",Kt=!0,kt=!1,Bt={},En=null,or=je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),hs=null,Nr=je({},["audio","video","img","source","image","track"]),mi=null,Vi=je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mn="http://www.w3.org/1998/Math/MathML",gr="http://www.w3.org/2000/svg",pn="http://www.w3.org/1999/xhtml",Gn=pn,ra=!1,aa=null,pi=je({},[mn,gr,pn],mm),An,ia=["application/xhtml+xml","text/html"],St="text/html",nt,Kn=null,sC=a.createElement("form"),d4=function(F){return F instanceof RegExp||F instanceof Function},Od=function(F){if(!(Kn&&Kn===F)){if((!F||typeof F!="object")&&(F={}),F=eo(F),An=ia.indexOf(F.PARSER_MEDIA_TYPE)===-1?An=St:An=F.PARSER_MEDIA_TYPE,nt=An==="application/xhtml+xml"?mm:xl,ne="ALLOWED_TAGS"in F?je({},F.ALLOWED_TAGS,nt):Ee,ve="ALLOWED_ATTR"in F?je({},F.ALLOWED_ATTR,nt):N,aa="ALLOWED_NAMESPACES"in F?je({},F.ALLOWED_NAMESPACES,mm):pi,mi="ADD_URI_SAFE_ATTR"in F?je(eo(Vi),F.ADD_URI_SAFE_ATTR,nt):Vi,hs="ADD_DATA_URI_TAGS"in F?je(eo(Nr),F.ADD_DATA_URI_TAGS,nt):Nr,En="FORBID_CONTENTS"in F?je({},F.FORBID_CONTENTS,nt):or,Y="FORBID_TAGS"in F?je({},F.FORBID_TAGS,nt):{},De="FORBID_ATTR"in F?je({},F.FORBID_ATTR,nt):{},Bt="USE_PROFILES"in F?F.USE_PROFILES:!1,me=F.ALLOW_ARIA_ATTR!==!1,He=F.ALLOW_DATA_ATTR!==!1,pe=F.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=F.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=F.SAFE_FOR_TEMPLATES||!1,fe=F.WHOLE_DOCUMENT||!1,K=F.RETURN_DOM||!1,be=F.RETURN_DOM_FRAGMENT||!1,rt=F.RETURN_TRUSTED_TYPE||!1,Ue=F.FORCE_BODY||!1,Je=F.SANITIZE_DOM!==!1,xe=F.SANITIZE_NAMED_PROPS||!1,Kt=F.KEEP_CONTENT!==!1,kt=F.IN_PLACE||!1,W=F.ALLOWED_URI_REGEXP||c3,Gn=F.NAMESPACE||pn,z=F.CUSTOM_ELEMENT_HANDLING||{},F.CUSTOM_ELEMENT_HANDLING&&d4(F.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=F.CUSTOM_ELEMENT_HANDLING.tagNameCheck),F.CUSTOM_ELEMENT_HANDLING&&d4(F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),F.CUSTOM_ELEMENT_HANDLING&&typeof F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(He=!1),be&&(K=!0),Bt&&(ne=je({},[...i3]),ve=[],Bt.html===!0&&(je(ne,a3),je(ve,o3)),Bt.svg===!0&&(je(ne,pm),je(ve,hm),je(ve,vl)),Bt.svgFilters===!0&&(je(ne,gm),je(ve,hm),je(ve,vl)),Bt.mathMl===!0&&(je(ne,fm),je(ve,s3),je(ve,vl))),F.ADD_TAGS&&(ne===Ee&&(ne=eo(ne)),je(ne,F.ADD_TAGS,nt)),F.ADD_ATTR&&(ve===N&&(ve=eo(ve)),je(ve,F.ADD_ATTR,nt)),F.ADD_URI_SAFE_ATTR&&je(mi,F.ADD_URI_SAFE_ATTR,nt),F.FORBID_CONTENTS&&(En===or&&(En=eo(En)),je(En,F.FORBID_CONTENTS,nt)),Kt&&(ne["#text"]=!0),fe&&je(ne,["html","head","body"]),ne.table&&(je(ne,["tbody"]),delete Y.tbody),F.TRUSTED_TYPES_POLICY){if(typeof F.TRUSTED_TYPES_POLICY.createHTML!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof F.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=F.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else x===void 0&&(x=YE(p,r)),x!==null&&typeof S=="string"&&(S=x.createHTML(""));Pn&&Pn(F),Kn=F}},m4=je({},["mi","mo","mn","ms","mtext"]),p4=je({},["foreignobject","desc","title","annotation-xml"]),uC=je({},["title","style","font","a","script"]),nl=je({},pm);je(nl,gm),je(nl,NE);let Nd=je({},fm);je(Nd,jE);let lC=function(F){let oe=y(F);(!oe||!oe.tagName)&&(oe={namespaceURI:Gn,tagName:"template"});let Q=xl(F.tagName),$e=xl(oe.tagName);return aa[F.namespaceURI]?F.namespaceURI===gr?oe.namespaceURI===pn?Q==="svg":oe.namespaceURI===mn?Q==="svg"&&($e==="annotation-xml"||m4[$e]):!!nl[Q]:F.namespaceURI===mn?oe.namespaceURI===pn?Q==="math":oe.namespaceURI===gr?Q==="math"&&p4[$e]:!!Nd[Q]:F.namespaceURI===pn?oe.namespaceURI===gr&&!p4[$e]||oe.namespaceURI===mn&&!m4[$e]?!1:!Nd[Q]&&(uC[Q]||!nl[Q]):!!(An==="application/xhtml+xml"&&aa[F.namespaceURI]):!1},Yi=function(F){Cs(t.removed,{element:F});try{F.parentNode.removeChild(F)}catch{F.remove()}},jd=function(F,oe){try{Cs(t.removed,{attribute:oe.getAttributeNode(F),from:oe})}catch{Cs(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(F),F==="is"&&!ve[F])if(K||be)try{Yi(oe)}catch{}else try{oe.setAttribute(F,"")}catch{}},g4=function(F){let oe,Q;if(Ue)F=""+F;else{let kn=BE(F,/^[\r\n\t ]+/);Q=kn&&kn[0]}An==="application/xhtml+xml"&&Gn===pn&&(F=''+F+"");let $e=x?x.createHTML(F):F;if(Gn===pn)try{oe=new m().parseFromString($e,An)}catch{}if(!oe||!oe.documentElement){oe=T.createDocument(Gn,"template",null);try{oe.documentElement.innerHTML=ra?S:$e}catch{}}let Vt=oe.body||oe.documentElement;return F&&Q&&Vt.insertBefore(a.createTextNode(Q),Vt.childNodes[0]||null),Gn===pn?A.call(oe,fe?"html":"body")[0]:fe?oe.documentElement:Vt},f4=function(F){return C.call(F.ownerDocument||F,F,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},cC=function(F){return F instanceof d&&(typeof F.nodeName!="string"||typeof F.textContent!="string"||typeof F.removeChild!="function"||!(F.attributes instanceof c)||typeof F.removeAttribute!="function"||typeof F.setAttribute!="function"||typeof F.namespaceURI!="string"||typeof F.insertBefore!="function"||typeof F.hasChildNodes!="function")},rl=function(F){return typeof s=="object"?F instanceof s:F&&typeof F=="object"&&typeof F.nodeType=="number"&&typeof F.nodeName=="string"},oa=function(F,oe,Q){M[F]&&FE(M[F],$e=>{$e.call(t,oe,Q,Kn)})},h4=function(F){let oe;if(oa("beforeSanitizeElements",F,null),cC(F))return Yi(F),!0;let Q=nt(F.nodeName);if(oa("uponSanitizeElement",F,{tagName:Q,allowedTags:ne}),F.hasChildNodes()&&!rl(F.firstElementChild)&&(!rl(F.content)||!rl(F.content.firstElementChild))&&Yn(/<[/\w]/g,F.innerHTML)&&Yn(/<[/\w]/g,F.textContent))return Yi(F),!0;if(!ne[Q]||Y[Q]){if(!Y[Q]&&y4(Q)&&(z.tagNameCheck instanceof RegExp&&Yn(z.tagNameCheck,Q)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Q)))return!1;if(Kt&&!En[Q]){let $e=y(F)||F.parentNode,Vt=f(F)||F.childNodes;if(Vt&&$e){let kn=Vt.length;for(let On=kn-1;On>=0;--On)$e.insertBefore(h(Vt[On],!0),b(F))}}return Yi(F),!0}return F instanceof u&&!lC(F)||(Q==="noscript"||Q==="noembed")&&Yn(/<\/no(script|embed)/i,F.innerHTML)?(Yi(F),!0):(ge&&F.nodeType===3&&(oe=F.textContent,oe=yr(oe,B," "),oe=yr(oe,P," "),oe=yr(oe,_," "),F.textContent!==oe&&(Cs(t.removed,{element:F.cloneNode()}),F.textContent=oe)),oa("afterSanitizeElements",F,null),!1)},b4=function(F,oe,Q){if(Je&&(oe==="id"||oe==="name")&&(Q in a||Q in sC))return!1;if(!(He&&!De[oe]&&Yn(L,oe))&&!(me&&Yn(O,oe))){if(!ve[oe]||De[oe]){if(!(y4(F)&&(z.tagNameCheck instanceof RegExp&&Yn(z.tagNameCheck,F)||z.tagNameCheck instanceof Function&&z.tagNameCheck(F))&&(z.attributeNameCheck instanceof RegExp&&Yn(z.attributeNameCheck,oe)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(oe))||oe==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Yn(z.tagNameCheck,Q)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Q))))return!1}else if(!mi[oe]&&!Yn(W,yr(Q,j,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&F!=="script"&&IE(Q,"data:")===0&&hs[F])&&!(pe&&!Yn(I,yr(Q,j,"")))&&Q)return!1}return!0},y4=function(F){return F.indexOf("-")>0},v4=function(F){let oe,Q,$e,Vt;oa("beforeSanitizeAttributes",F,null);let{attributes:kn}=F;if(!kn)return;let On={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve};for(Vt=kn.length;Vt--;){oe=kn[Vt];let{name:$t,namespaceURI:Qi}=oe;if(Q=$t==="value"?oe.value:_E(oe.value),$e=nt($t),On.attrName=$e,On.attrValue=Q,On.keepAttr=!0,On.forceKeepAttr=void 0,oa("uponSanitizeAttribute",F,On),Q=On.attrValue,On.forceKeepAttr||(jd($t,F),!On.keepAttr))continue;if(!ce&&Yn(/\/>/i,Q)){jd($t,F);continue}ge&&(Q=yr(Q,B," "),Q=yr(Q,P," "),Q=yr(Q,_," "));let x4=nt(F.nodeName);if(b4(x4,$e,Q)){if(xe&&($e==="id"||$e==="name")&&(jd($t,F),Q=xt+Q),x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Qi)switch(p.getAttributeType(x4,$e)){case"TrustedHTML":{Q=x.createHTML(Q);break}case"TrustedScriptURL":{Q=x.createScriptURL(Q);break}}try{Qi?F.setAttributeNS(Qi,$t,Q):F.setAttribute($t,Q),r3(t.removed)}catch{}}}oa("afterSanitizeAttributes",F,null)},dC=function F(oe){let Q,$e=f4(oe);for(oa("beforeSanitizeShadowDOM",oe,null);Q=$e.nextNode();)oa("uponSanitizeShadowNode",Q,null),!h4(Q)&&(Q.content instanceof i&&F(Q.content),v4(Q));oa("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(F){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,$e,Vt,kn;if(ra=!F,ra&&(F=""),typeof F!="string"&&!rl(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw ws("dirty is not a string, aborting")}else throw ws("toString is not a function");if(!t.isSupported)return F;if(Ce||Od(oe),t.removed=[],typeof F=="string"&&(kt=!1),kt){if(F.nodeName){let Qi=nt(F.nodeName);if(!ne[Qi]||Y[Qi])throw ws("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof s)Q=g4(""),$e=Q.ownerDocument.importNode(F,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?Q=$e:Q.appendChild($e);else{if(!K&&!ge&&!fe&&F.indexOf("<")===-1)return x&&rt?x.createHTML(F):F;if(Q=g4(F),!Q)return K?null:rt?S:""}Q&&Ue&&Yi(Q.firstChild);let On=f4(kt?F:Q);for(;Vt=On.nextNode();)h4(Vt)||(Vt.content instanceof i&&dC(Vt.content),v4(Vt));if(kt)return F;if(K){if(be)for(kn=w.call(Q.ownerDocument);Q.firstChild;)kn.appendChild(Q.firstChild);else kn=Q;return(ve.shadowroot||ve.shadowrootmod)&&(kn=D.call(n,kn,!0)),kn}let $t=fe?Q.outerHTML:Q.innerHTML;return fe&&ne["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Yn(d3,Q.ownerDocument.doctype.name)&&($t=" -`+$t),ge&&($t=yr($t,B," "),$t=yr($t,P," "),$t=yr($t,_," ")),x&&rt?x.createHTML($t):$t},t.setConfig=function(F){Od(F),Ce=!0},t.clearConfig=function(){Kn=null,Ce=!1},t.isValidAttribute=function(F,oe,Q){Kn||Od({});let $e=nt(F),Vt=nt(oe);return b4($e,Vt,Q)},t.addHook=function(F,oe){typeof oe=="function"&&(M[F]=M[F]||[],Cs(M[F],oe))},t.removeHook=function(F){if(M[F])return r3(M[F])},t.removeHooks=function(F){M[F]&&(M[F]=[])},t.removeAllHooks=function(){M={}},t}var Ze=m3();var QE=Object.create,xm=Object.defineProperty,JE=Object.getOwnPropertyDescriptor,ZE=Object.getOwnPropertyNames,XE=Object.getPrototypeOf,$E=Object.prototype.hasOwnProperty,Sm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),e8=(e,t)=>{for(var n in t)xm(e,n,{get:t[n],enumerable:!0})},vm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ZE(t))!$E.call(e,a)&&a!==n&&xm(e,a,{get:()=>t[a],enumerable:!(r=JE(t,a))||r.enumerable});return e},t8=(e,t,n)=>(vm(e,t,"default"),n&&vm(n,t,"default")),g3=(e,t,n)=>(n=e!=null?QE(XE(e)):{},vm(t||!e||!e.__esModule?xm(n,"default",{value:e,enumerable:!0}):n,e)),n8=Sm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var be=this._getInnerText(K);if(!(be.length<25)){var rt=this._getNodeAncestors(K,5);if(rt.length!==0){var Je=0;Je+=1,Je+=be.split(",").length,Je+=Math.min(Math.floor(be.length/100),3),this._forEachNode(rt,function(xe,xt){if(!(!xe.tagName||!xe.parentNode||typeof xe.parentNode.tagName>"u")){if(typeof xe.readability>"u"&&(this._initializeNode(xe),h.push(xe)),xt===0)var Kt=1;else xt===1?Kt=2:Kt=xt*3;xe.readability.contentScore+=Je/Kt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(T,0,x),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,A=!1,D;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var M=[],B=1;B=.75&&M.push(this._getNodeAncestors(b[B]));var P=3;if(M.length>=P)for(D=w.parentNode;D.tagName!=="BODY";){for(var _=0,L=0;L=P){w=D;break}D=D.parentNode}w.readability||this._initializeNode(w),D=w.parentNode;for(var O=w.readability.contentScore,I=O/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var j=D.readability.contentScore;if(jO){w=D;break}O=D.readability.contentScore,D=D.parentNode}for(D=w.parentNode;D.tagName!="BODY"&&D.children.length==1;)w=D,D=w.parentNode;w.readability||this._initializeNode(w)}var W=a.createElement("DIV");i&&(W.id="readability-content");var ne=Math.max(10,w.readability.contentScore*.2);D=w.parentNode;for(var Ee=D.children,ve=0,N=Ee.length;ve=ne)Y=!0;else if(z.nodeName==="P"){var me=this._getLinkDensity(z),He=this._getInnerText(z),pe=He.length;(pe>80&&me<.25||pe<80&&pe>0&&me===0&&He.search(/\.( |$)/)!==-1)&&(Y=!0)}}Y&&(this.log("Appending node:",z),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(z.nodeName)===-1&&(this.log("Altering sibling:",z,"to div."),z=this._setNodeTag(z,"DIV")),W.appendChild(z),Ee=D.children,ve-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+W.innerHTML),this._prepArticle(W),this._debug&&this.log("Article content post-prep: "+W.innerHTML),A)w.id="readability-page-1",w.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";W.firstChild;)ce.appendChild(W.firstChild);W.appendChild(ce)}this._debug&&this.log("Article content after paging: "+W.innerHTML);var ge=!0,fe=this._getInnerText(W,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),x=0;x1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||f===1&&C<75||f>1;if(s&&w){for(var A=0;A1)return w;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),r8=Sm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),f3=Sm((e,t)=>{var n=n8(),r=r8();t.exports={Readability:n,isProbablyReaderable:r}}),h3={};e8(h3,{Readability:()=>Sl,default:()=>v3,isProbablyReaderable:()=>y3});var b3=g3(f3());t8(h3,g3(f3()));var{Readability:Sl,isProbablyReaderable:y3}=b3,{default:p3,...a8}=b3,v3=p3!==void 0?p3:a8;var i8=fl.alert;var J="immersiveTranslate",hi="Immersive Translate",R="immersive-translate";var nn="immersivetranslate.com",o8=`https://config.${nn}/`,tU=`https://app.${nn}/`,ie=sa()||Wd()?`https://${nn}/`:`https://test.${nn}/`,Tl=`https://dash.${nn}/`,ut=sa()||Wd()?`https://api2.${nn}/`:`https://test-api2.${nn}/`,w3=`https://github.com/${R}/${R}/`,E3=`https://s.${nn}/`,nU=`https://onboarding.${nn}/`,A3=J+"DeeplGlobalState",Tm=J+"BingGlobalState",Cm=J+"YandexGlobalState",wm=J+"BaiduQianfanGlobalConfigStorageKey",k3=J+"SiliconCloudGlobalConfigStorageKey",D3=J+"ZhipuGlobalConfigStorageKey";var Em=J+"GoogleAccessToken",L3=J+"AuthFlow",M3=R+"-config-latest.json",s8=J+"AuthState",Cl=J+"IframeMessage",rU=J+"WaitForRateLimit",wl=J+"DocumentMessageAsk",Ot=J+"DocumentMessageTellThirdParty",gn=J+"showError",bi=J+"showModal",El=J+"showToast",P3=J+"DocumentMessageThirdPartyTell",R3=J+"DocumentMessageEventUpload",F3=J+"DocumentMessageTypeStopJsSDK",Al=J+"DocumentMessageHandler",kl=J+"DocumentSetFloatBallActive",Dl=`${J}Share`,Ll=`${J}ShowFloatBallGuide`,to=J+"DocumentMessageTempEnableSubtitleChanged",Es=`${J}ToggleMouseHoverTranslateDirectly`,B3=`${J}ReqDraft`,I3=`${J}ResDraft`,u8=`${J}Container`,_3=`${J}SpecifiedContainer`,Ml="buildinConfig",As="localConfig",Am="openOptionsPage",O3="translateMangaMenuId",km="openAboutPage";var Dm="openEbookViewer",Lm="openEbookBuilder";var yi=`${J}PageTranslatedStatus`,ks=`${J}MangaTranslatedStatus`,aU=`${J}PageUrlChanged`,xr=`${J}ReceiveCommand`,N3=J+"LastUseMouseHoverTime",Ds=J+"LastUseInputTime",lr=J+"LastUseManualTranslatePageTime",iU=`${J}PopupReceiveMessage`,vi=J+"DocumentMessageEventTogglePopup",Ls=`${o8}default_config.json`,oU=`${J}Mark`,Qn=`${J}Root`,j3=`${J}Walked`,sU=`data-${R}-walked`,U3=`${J}Paragraph`,H3=`data-${R}-paragraph`,no=`data-${R}-translation-element-mark`,q3=`${J}TranslationElementMark`,uU=`${J}TranslatedMark`,Pl=`${R}-input-injected-css`,z3=`${J}LoadingId`,Mm=`data-${R}-loading-id`,W3=`${J}ErrorId`,Rl=`data-${R}-error-id`,l8=`${J}AtomicBlockMark`,G3=`${J}ExcludeMark`,lU=`data-${R}-exclude-mark`,c8=`${J}StayOriginalMark`,cU=`${J}PreWhitespaceMark`,Fl=`${J}InlineMark`,K3=`${J}BlockMark`,dU=`${J}Left`,mU=`${J}Right`,pU=`${J}Width`,gU=`${J}Height`,fU=`${J}Top`,hU=`${J}FontSize`,Ms="lastRunTime";var bU=`${J}GlobalStyleMark`,ro=["@","#"],Bl=" --- ",V3=` -`,Dt=`${R}-target-wrapper`,yU=`${R}-pdf-target-container`,Il=`${R}-target-inner`,vU=`${R}-source-wrapper`,Pm=`${R}-target-translation-block-wrapper`,xU=`${R}-root-translation-theme`,ao=`${J}RootTranslationTheme`,Y3=`${R}-target-translation-vertical-block-wrapper`,SU=`${R}-target-translation-pdf-block-wrapper`,Q3=`${R}-target-translation-pre-whitespace`,Rm=`${R}-target-translation-inline-wrapper`;var J3={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var Z3=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],X3=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Tl,Tl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Pa="zh-CN",TU=ie+"docs/communities/",CU=w3+"issues/1809",wU=w3+"issues/1179",_l={type:J+"ChildFrameToRootFrameIdentifier"},Fm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ps=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],$3=["ctrl","alt","shift","cmd","command","option","control"];var Ol=sa()?Tl+"#general":"http://localhost:8000/dist/userscript/options/#general",Bm="user_from_plugin",ct="user_info",Nl=ie+"accounts/login?from=plugin",e1=Tl+"#general",EU=ie+"accounts/login?from=plugin&return_url="+encodeURIComponent(e1),t1=Nl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",n1=Nl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Rs=ie+"profile/",jl=ie+"auth/pricing/",Rn=ie+"pricing/",d8=ie+"download/",m8=ie+"topup?type=open_ai&",p8=ie+"topup?type=deepl&",r1=ie+"topup?type=comics&",AU=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",a1=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",kU=d8+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",DU=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Ul=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Im=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",LU=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",i1=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",o1=m8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",s1=p8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",u1=ie+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",g8=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",_m=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",MU=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",PU=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",RU=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",l1=ie+"docs/usage/",FU=ie+"docs/communities/",Fs=Le().TRANSLATE_FILE_URL,BU=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",c1=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",d1=`${Fs}download-subtitle/`,m1=`${Fs}pdf-pro/`,p1=`${Fs}text/`,xi=["deepl","openai","gemini","claude"],f8="G-BHWL0KMJB8",h8="7pr-olTJR6GKAjIW48UD0Q",x3="G-MKMD9LWFTR",S3="sitc4WmvShWYwfU0dANM3Q",T3="G-V5H2F5MJFJ",C3="UBjpGOLISEaY5LVXNj3WvQ";function Hl(){return ul()?[`https://www.google-analytics.com/mp/collect?measurement_id=${f8}&api_secret=${h8}`]:sa?[`https://www.google-analytics.com/mp/collect?measurement_id=${x3}&api_secret=${S3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${T3}&api_secret=${C3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${x3}&api_secret=${S3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${T3}&api_secret=${C3}`]}var Bs=`https://analytics.${nn}/collect`,b8=`${ie}activities/components/image-pro`;function Om(e,t){return`${b8}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var g1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",f1="0VmM83i2D1ICuYBf";var io=console,Nm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=sr.green;r>1e4?a=sr.red:r>1e3&&(a=sr.yellow),io.debug(sr.dim(hi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Is=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&io.log(sr.dim(hi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&io.log(sr.green(hi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&io.warn(sr.yellow(hi+" WARN:"),...t)}error(...t){this.#e<=3&&io.error(sr.red(hi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&io.error(sr.red(hi+" FATAL:"),...t)}timing(){return this.level===0?new Nm:{reset:()=>{},stop:()=>{}}}},k=new Is;var jm=/iPhone/i,h1=/iPod/i,b1=/iPad/i,y1=/\biOS-universal(?:.+)Mac\b/i,Um=/\bAndroid(?:.+)Mobile\b/i,v1=/Android/i,oo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ql=/Silk/i,pa=/Windows Phone/i,x1=/\bWindows(?:.+)ARM\b/i,S1=/BlackBerry/i,T1=/BB10/i,C1=/Opera Mini/i,w1=/\b(CriOS|Chrome)(?:.+)Mobile/i,E1=/Mobile(?:.+)Firefox\b/i,A1=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function y8(e){return t=>t.test(e)}function Ke(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=y8(n),i={apple:{phone:a(jm)&&!a(pa),ipod:a(h1),tablet:!a(jm)&&(a(b1)||A1(t))&&!a(pa),universal:a(y1),device:(a(jm)||a(h1)||a(b1)||a(y1)||A1(t))&&!a(pa)},amazon:{phone:a(oo),tablet:!a(oo)&&a(ql),device:a(oo)||a(ql)},android:{phone:!a(pa)&&a(oo)||!a(pa)&&a(Um),tablet:!a(pa)&&!a(oo)&&!a(Um)&&(a(ql)||a(v1)),device:!a(pa)&&(a(oo)||a(ql)||a(Um)||a(v1))||a(/\bokhttp\b/i)},windows:{phone:a(pa),tablet:a(x1),device:a(pa)||a(x1)},other:{blackberry:a(S1),blackberry10:a(T1),opera:a(C1),firefox:a(E1),chrome:a(w1),device:a(S1)||a(T1)||a(C1)||a(E1)||a(w1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var Hm="DENO",zl="CHROME",Wl="FIREFOX";function k1(e){let t=zl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Wl:/deno/i.test(n)&&(t=Hm)}catch{}return e===zl&&t===zl||e===Wl&&t===Wl||e===Hm&&t===Hm}function D1(){return k1(zl)}function L1(){return typeof Deno<"u"}function Sr(){return Le().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:k1(Wl)}function Jn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function _s(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var M1={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},P1={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:M1,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:M1,query:()=>{},sendMessage:()=>{}}};var ae;L1()?ae=P1:ae=globalThis.immersiveTranslateBrowserAPI;var aH=F1(2),R1=F1(3);function F1(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var v8=/\s+/g,x8=/[\t\n\v\f\r ]+/g;function B1(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?S8:T8;return String(e).replace(t.style==="html"?x8:v8,t.trim?C8(n):n)}function S8(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function T8(){return" "}function C8(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var I1={}.hasOwnProperty;function w8(e){return e==null?"":B1(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function E8(e){return R1(" "+w8(e)+" ")}function A8(e){let t=E8(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function F8(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function B8(e,t,n,r){t=_8(t,n,r);let a=[],i;if(t)for(i in t)Gl.call(t,i)&&a.push([i,I8(e,t[i])]);return a.length===0?zm():a.sort(O8)}function I8(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of V8){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?z1(e)?"zh-TW":"zh-CN":t:"auto"}var G1=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Wm=new Map(G1),Y8=new Map(G1.map(([e,t])=>[t,e]));function K1(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>Y8.get(s));!t&&t!==0&&(t=25);let a=Vl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Wm.keys()]},o=N1(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Wm.get(d)}}let[s,u]=o[0],l=Wm.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}var Zn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Gm={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},V1={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Km={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Vm={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function X(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Zn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Zn[a]}else return"auto";else return Zn[r]}function Ct(){return X(document?.documentElement?.lang||"en")}var Si=J+"CacheKey_";function Ti(e,t){let n=Si+e;return ae.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Q8(){let e=ae.storage.local.refresh;e&&e()}function Ym(e,t){let n=Si+e;return ae.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Si)).filter(r=>r!==Si+ct);if(n.length>0)return ae.storage.local.remove(n)}}var dt={get:Ti,set:Ci,getExpired:Ym,setExpired:Qm,remove:Jm,clear:Zm,refresh:Q8};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Y1(e){if(e){let t=new Date(e.createTime),n=J8(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function J8(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ns(e){if(e?.isPro)return!0;let t=await dt.get(ct,null);return ft(t)}var Q1=J+"SyncStoreKey_";function Ut(e,t){let n=Q1+e;return ae.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function it(e,t){let n=Q1+e;return ae.storage.sync.set({[n]:t})}var J1=J+"StoreKey_";function wi(e,t){let n=J1+e;return ae.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Z1(e,t){let n=J1+e;return ae.storage.local.set({[n]:t})}var X1={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`+h+"]"}return r.pop(),a=h,f}},Mw={parse:Cw,stringify:Lw},Pw=Mw,ml=Pw;var F4=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Rw(e,t){return!!(e===t||F4(e)&&F4(t))}function Fw(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),Uw=(e,t)=>{for(var n in t)rm(e,n,{get:t[n],enumerable:!0})},nm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _w(t))!Nw.call(e,a)&&a!==n&&rm(e,a,{get:()=>t[a],enumerable:!(r=Iw(t,a))||r.enumerable});return e},Hw=(e,t,n)=>(nm(e,t,"default"),n&&nm(n,t,"default")),I4=(e,t,n)=>(n=e!=null?Bw(Ow(e)):{},nm(t||!e||!e.__esModule?rm(n,"default",{value:e,enumerable:!0}):n,e)),_4=jw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof pl=="object"&&pl&&pl.Object===Object&&pl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(A,D,M){var B,P,_,L,O,I,j=0,W=!1,ne=!1,Ee=!0;if(typeof A!="function")throw new TypeError(n);D=w(D)||0,S(M)&&(W=!!M.leading,ne="maxWait"in M,_=ne?h(w(M.maxWait)||0,D):_,Ee="trailing"in M?!!M.trailing:Ee);function ve(ge){var fe=B,Ce=P;return B=P=void 0,j=ge,L=A.apply(Ce,fe),L}function N(ge){return j=ge,O=setTimeout(De,D),W?ve(ge):L}function z(ge){var fe=ge-I,Ce=ge-j,Ue=D-fe;return ne?b(Ue,_-Ce):Ue}function Y(ge){var fe=ge-I,Ce=ge-j;return I===void 0||fe>=D||fe<0||ne&&Ce>=_}function De(){var ge=f();if(Y(ge))return me(ge);O=setTimeout(De,z(ge))}function me(ge){return O=void 0,Ee&&B?ve(ge):(B=P=void 0,L)}function He(){O!==void 0&&clearTimeout(O),j=0,B=I=P=O=void 0}function pe(){return O===void 0?L:me(f())}function ce(){var ge=f(),fe=Y(ge);if(B=arguments,P=this,I=ge,fe){if(O===void 0)return N(I);if(ne)return O=setTimeout(De,D),ve(I)}return O===void 0&&(O=setTimeout(De,D)),L}return ce.cancel=He,ce.flush=pe,ce}function x(A,D,M){var B=!0,P=!0;if(typeof A!="function")throw new TypeError(n);return S(M)&&(B="leading"in M?!!M.leading:B,P="trailing"in M?!!M.trailing:P),y(A,D,{leading:B,maxWait:D,trailing:P})}function S(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function T(A){return!!A&&typeof A=="object"}function C(A){return typeof A=="symbol"||T(A)&&g.call(A)==a}function w(A){if(typeof A=="number")return A;if(C(A))return r;if(S(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=S(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=x}),O4={};Uw(O4,{default:()=>Yn});var qw=I4(_4());Hw(O4,I4(_4()));var{default:B4,...zw}=qw,Yn=B4!==void 0?B4:zw;var gl=globalThis||(typeof window<"u"?window:self),Ww=Object.create,im=Object.defineProperty,Gw=Object.getOwnPropertyDescriptor,Vw=Object.getOwnPropertyNames,Kw=Object.getPrototypeOf,Yw=Object.prototype.hasOwnProperty,Qw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jw=(e,t)=>{for(var n in t)im(e,n,{get:t[n],enumerable:!0})},am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Vw(t))!Yw.call(e,a)&&a!==n&&im(e,a,{get:()=>t[a],enumerable:!(r=Gw(t,a))||r.enumerable});return e},Zw=(e,t,n)=>(am(e,t,"default"),n&&am(n,t,"default")),j4=(e,t,n)=>(n=e!=null?Ww(Kw(e)):{},am(t||!e||!e.__esModule?im(n,"default",{value:e,enumerable:!0}):n,e)),U4=Qw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof gl=="object"&&gl&&gl.Object===Object&&gl,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,A,D){var M,B,P,_,L,O,I=0,j=!1,W=!1,ne=!0;if(typeof w!="function")throw new TypeError(n);A=C(A)||0,x(D)&&(j=!!D.leading,W="maxWait"in D,P=W?h(C(D.maxWait)||0,A):P,ne="trailing"in D?!!D.trailing:ne);function Ee(ce){var ge=M,fe=B;return M=B=void 0,I=ce,_=w.apply(fe,ge),_}function ve(ce){return I=ce,L=setTimeout(Y,A),j?Ee(ce):_}function N(ce){var ge=ce-O,fe=ce-I,Ce=A-ge;return W?b(Ce,P-fe):Ce}function z(ce){var ge=ce-O,fe=ce-I;return O===void 0||ge>=A||ge<0||W&&fe>=P}function Y(){var ce=f();if(z(ce))return De(ce);L=setTimeout(Y,N(ce))}function De(ce){return L=void 0,ne&&M?Ee(ce):(M=B=void 0,_)}function me(){L!==void 0&&clearTimeout(L),I=0,M=O=B=L=void 0}function He(){return L===void 0?_:De(f())}function pe(){var ce=f(),ge=z(ce);if(M=arguments,B=this,O=ce,ge){if(L===void 0)return ve(O);if(W)return L=setTimeout(Y,A),Ee(O)}return L===void 0&&(L=setTimeout(Y,A)),_}return pe.cancel=me,pe.flush=He,pe}function x(w){var A=typeof w;return!!w&&(A=="object"||A=="function")}function S(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||S(w)&&g.call(w)==a}function C(w){if(typeof w=="number")return w;if(T(w))return r;if(x(w)){var A=typeof w.valueOf=="function"?w.valueOf():w;w=x(A)?A+"":A}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var D=s.test(w);return D||u.test(w)?l(w.slice(2),D?2:8):o.test(w)?r:+w}t.exports=y}),H4={};Jw(H4,{default:()=>Ln});var Xw=j4(U4());Zw(H4,j4(U4()));var{default:N4,...$w}=Xw,Ln=N4!==void 0?N4:$w;var eE=Object.create,sm=Object.defineProperty,tE=Object.getOwnPropertyDescriptor,nE=Object.getOwnPropertyNames,rE=Object.getPrototypeOf,aE=Object.prototype.hasOwnProperty,iE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oE=(e,t)=>{for(var n in t)sm(e,n,{get:t[n],enumerable:!0})},om=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of nE(t))!aE.call(e,a)&&a!==n&&sm(e,a,{get:()=>t[a],enumerable:!(r=tE(t,a))||r.enumerable});return e},sE=(e,t,n)=>(om(e,t,"default"),n&&om(n,t,"default")),z4=(e,t,n)=>(n=e!=null?eE(rE(e)):{},om(t||!e||!e.__esModule?sm(n,"default",{value:e,enumerable:!0}):n,e)),W4=iE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(N,z){var Y={};for(var De in N)z.indexOf(De)>=0||Object.prototype.hasOwnProperty.call(N,De)&&(Y[De]=N[De]);return Y}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(N){return typeof N>"u"?"undefined":l(N)}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N>"u"?"undefined":l(N)},h=Object.assign||function(N){for(var z=1;z'+De+"",Ce.onclick=function(){return P(Ue,fe)},Ce.listener=function(V){(D(V)||M(V))&&O()},B(Ce,fe),He&&He<1&&(He=1),!ce&&He&&S(He).then(function(){return P(Ue,fe)})},j=d.force=function(N,z){var Y=N.type,De=Y===void 0?5:Y,me=N.text,He=N.buttonText,pe=He===void 0?"OK":He,ce=N.callback,ge=N.position,fe=ge===void 0?f.positions.force||fe.top:ge;T(),O();var Ce=document.createElement("div"),Ue=C();Ce.id=Ue;var V=document.createElement("div");V.classList.add(f.classes.textbox),V.classList.add(f.classes.backgroundInfo),V.innerHTML='
'+me+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(w[De]),be.innerHTML=pe,be.onclick=function(){P(Ue,fe),L(),ce?ce():z&&z()},Ce.appendChild(V),Ce.appendChild(be),Ce.listener=function(rt){D(rt)&&be.click()},B(Ce,fe),_()},W=d.confirm=function(N,z,Y){var De=N.text,me=N.submitText,He=me===void 0?"Yes":me,pe=N.cancelText,ce=pe===void 0?"Cancel":pe,ge=N.submitCallback,fe=N.cancelCallback,Ce=N.position,Ue=Ce===void 0?f.positions.confirm||Ue.top:Ce;T(),O();var V=document.createElement("div"),be=C();V.id=be;var rt=document.createElement("div");rt.classList.add(f.classes.textbox),rt.classList.add(f.classes.backgroundInfo),rt.innerHTML='
'+De+"
";var Je=document.createElement("div");Je.classList.add(f.classes.button),Je.classList.add(f.classes.elementHalf),Je.classList.add(f.classes.backgroundSuccess),Je.innerHTML=He,Je.onclick=function(){P(be,Ue),L(),ge?ge():z&&z()};var xe=document.createElement("div");xe.classList.add(f.classes.button),xe.classList.add(f.classes.elementHalf),xe.classList.add(f.classes.backgroundError),xe.innerHTML=ce,xe.onclick=function(){P(be,Ue),L(),fe?fe():Y&&Y()},V.appendChild(rt),V.appendChild(Je),V.appendChild(xe),V.listener=function(xt){D(xt)?Je.click():M(xt)&&xe.click()},B(V,Ue),_(V,Ue)},ne=function(N,z,Y){var De=N.text,me=N.submitText,He=me===void 0?"Submit":me,pe=N.cancelText,ce=pe===void 0?"Cancel":pe,ge=N.submitCallback,fe=N.cancelCallback,Ce=N.position,Ue=Ce===void 0?f.positions.input||Ue.top:Ce,V=p(N,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),O();var be=document.createElement("div"),rt=C();be.id=rt;var Je=document.createElement("div");Je.classList.add(f.classes.textbox),Je.classList.add(f.classes.backgroundInfo),Je.innerHTML='
'+De+"
";var xe=document.createElement("input");xe.classList.add(f.classes.inputField),xe.setAttribute("autocapitalize",V.autocapitalize||"none"),xe.setAttribute("autocomplete",V.autocomplete||"off"),xe.setAttribute("autocorrect",V.autocorrect||"off"),xe.setAttribute("autofocus",V.autofocus||"true"),xe.setAttribute("inputmode",V.inputmode||"verbatim"),xe.setAttribute("max",V.max||""),xe.setAttribute("maxlength",V.maxlength||""),xe.setAttribute("min",V.min||""),xe.setAttribute("minlength",V.minlength||""),xe.setAttribute("placeholder",V.placeholder||""),xe.setAttribute("spellcheck",V.spellcheck||"default"),xe.setAttribute("step",V.step||"any"),xe.setAttribute("type",V.type||"text"),xe.value=V.value||"",V.allowed&&(xe.oninput=function(){var kt=void 0;if(Array.isArray(V.allowed)){for(var Bt="",En=V.allowed,sr=0;sr'+Y+"",fe.appendChild(Ue),pe.forEach(function(be,rt){var Je=be.type,xe=Je===void 0?1:Je,xt=be.text,Vt=be.handler,kt=document.createElement("div");kt.classList.add(w[xe]),kt.classList.add(f.classes.button),kt.classList.add(f.classes.selectChoice);var Bt=pe[rt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===xe&&kt.classList.add(f.classes.selectChoiceRepeated),kt.innerHTML=xt,kt.onclick=function(){P(Ce,ge),L(),Vt()},fe.appendChild(kt)});var V=document.createElement("div");V.classList.add(f.classes.backgroundNeutral),V.classList.add(f.classes.button),V.innerHTML=me,V.onclick=function(){P(Ce,ge),L(),He?He():z&&z()},fe.appendChild(V),fe.listener=function(be){M(be)&&V.click()},B(fe,ge),_(fe,ge)},ve=d.date=function(N,z,Y){var De=N.value,me=De===void 0?new Date:De,He=N.submitText,pe=He===void 0?"OK":He,ce=N.cancelText,ge=ce===void 0?"Cancel":ce,fe=N.submitCallback,Ce=N.cancelCallback,Ue=N.position,V=Ue===void 0?f.positions.date||V.top:Ue;T(),O();var be="▾",rt=document.createElement("div"),Je=document.createElement("div"),xe=document.createElement("div"),xt=function(St){rt.innerHTML=f.dateMonths[St.getMonth()],Je.innerHTML=St.getDate(),xe.innerHTML=St.getFullYear()},Vt=function(St){var nt=new Date(me.getFullYear(),me.getMonth()+1,0).getDate(),Kn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Kn)>nt&&(Kn=nt.toString()),St.target.textContent=Kn,Number(Kn)<1&&(Kn="1"),me.setDate(Number(Kn))},kt=function(St){var nt=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=nt,me.setFullYear(Number(nt))},Bt=function(St){xt(me)},En=function(St){var nt=new Date(me.getFullYear(),me.getMonth()+St+1,0).getDate();me.getDate()>nt&&me.setDate(nt),me.setMonth(me.getMonth()+St),xt(me)},sr=function(St){me.setDate(me.getDate()+St),xt(me)},hs=function(St){var nt=me.getFullYear()+St;nt<0?me.setFullYear(0):me.setFullYear(me.getFullYear()+St),xt(me)},Nr=document.createElement("div"),mi=C();Nr.id=mi;var Ki=document.createElement("div");Ki.classList.add(f.classes.backgroundInfo);var mn=document.createElement("div");mn.classList.add(f.classes.dateSelectorInner);var gr=document.createElement("div");gr.classList.add(f.classes.button),gr.classList.add(f.classes.elementThird),gr.classList.add(f.classes.dateSelectorUp),gr.innerHTML=be;var pn=document.createElement("div");pn.classList.add(f.classes.button),pn.classList.add(f.classes.elementThird),pn.classList.add(f.classes.dateSelectorUp),pn.innerHTML=be;var Vn=document.createElement("div");Vn.classList.add(f.classes.button),Vn.classList.add(f.classes.elementThird),Vn.classList.add(f.classes.dateSelectorUp),Vn.innerHTML=be,rt.classList.add(f.classes.element),rt.classList.add(f.classes.elementThird),rt.innerHTML=f.dateMonths[me.getMonth()],Je.classList.add(f.classes.element),Je.classList.add(f.classes.elementThird),Je.setAttribute("contentEditable",!0),Je.addEventListener("input",Vt),Je.addEventListener("blur",Bt),Je.innerHTML=me.getDate(),xe.classList.add(f.classes.element),xe.classList.add(f.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",kt),xe.addEventListener("blur",Bt),xe.innerHTML=me.getFullYear();var ra=document.createElement("div");ra.classList.add(f.classes.button),ra.classList.add(f.classes.elementThird),ra.innerHTML=be;var aa=document.createElement("div");aa.classList.add(f.classes.button),aa.classList.add(f.classes.elementThird),aa.innerHTML=be;var pi=document.createElement("div");pi.classList.add(f.classes.button),pi.classList.add(f.classes.elementThird),pi.innerHTML=be,gr.onclick=function(){return En(1)},pn.onclick=function(){return sr(1)},Vn.onclick=function(){return hs(1)},ra.onclick=function(){return En(-1)},aa.onclick=function(){return sr(-1)},pi.onclick=function(){return hs(-1)};var An=document.createElement("div");An.classList.add(f.classes.button),An.classList.add(f.classes.elementHalf),An.classList.add(f.classes.backgroundSuccess),An.innerHTML=pe,An.onclick=function(){P(mi,V),L(),fe?fe(me):z&&z(me)};var ia=document.createElement("div");ia.classList.add(f.classes.button),ia.classList.add(f.classes.elementHalf),ia.classList.add(f.classes.backgroundError),ia.innerHTML=ge,ia.onclick=function(){P(mi,V),L(),Ce?Ce(me):Y&&Y(me)},mn.appendChild(gr),mn.appendChild(pn),mn.appendChild(Vn),mn.appendChild(rt),mn.appendChild(Je),mn.appendChild(xe),mn.appendChild(ra),mn.appendChild(aa),mn.appendChild(pi),Ki.appendChild(mn),Nr.appendChild(Ki),Nr.appendChild(An),Nr.appendChild(ia),Nr.listener=function(St){D(St)?An.click():M(St)&&ia.click()},B(Nr,V),_(Nr,V)};d.default={alert:I,force:j,confirm:W,input:ne,select:Ee,date:ve,setOptions:y,hideAlerts:O}}])})}).call(r,a(0)(n))}])})}),G4={};oE(G4,{default:()=>fl});var uE=z4(W4());sE(G4,z4(W4()));var{default:q4,...lE}=uE,fl=q4!==void 0?q4:lE;var hl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function xs(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function um(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function V4(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;iXi[e.toLowerCase()]||br[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),cE=e=>Object.keys(Xi).find(t=>Xi[t]===e),dE=e=>Object.keys(br).find(t=>br[t]===e);function X4(e){J4=e||"all"}function Ss(){return J4||"all"}function mE(){return ot.slice(0)}function pE(){return ot.map(e=>cE(e)||dE(e)||String.fromCharCode(e))}function gE(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Ts(o))})})}),e}function fE(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function hE(e){return typeof e=="string"&&(e=Ts(e)),ot.indexOf(e)!==-1}function bE(e,t){let n,r;e||(e=Ss());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in br)br[r]===t&&(ma[r]=!1)}}function $4(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&cm(n)});else if(typeof e=="object")e.key&&cm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),cm({key:e,scope:n,method:r,splitKey:"+"})}}var cm=({key:e,scope:t,method:n,splitKey:r="+"})=>{lm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Ts(u);if(!Tt[l])return;t||(t=Ss());let c=s>1?um(br,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&V4(d.mods,c)))})};function Y4(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Q4(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ma.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=bl[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in br)br[i]===r&&(ma[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[bl[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=Ss();if(n)for(let i=0;i-1}function ma(e,t,n){ot=[];let r=lm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&$4(e,i);s1&&(a=um(br,e)),e=e[e.length-1],e=e==="*"?"*":Ts(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!vE(o)&&window&&(Z4.push(o),xs(o,"keydown",p=>{Q4(p,o)},d),K4||(K4=!0,xs(window,"focus",()=>{ot=[]},d),xs(window,"click",()=>{ot=[]},!1)),xs(o,"keyup",p=>{Q4(p,o),yE(p)},d))}function xE(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var dm={getPressedKeyString:pE,setScope:X4,getScope:Ss,deleteScope:bE,getPressedKeyCodes:mE,getAllKeyCodes:gE,isPressed:hE,filter:fE,trigger:xE,unbind:$4,keyMap:Xi,modifier:br,modifierMap:bl};for(let e in dm)Object.prototype.hasOwnProperty.call(dm,e)&&(ma[e]=dm[e]);if(typeof window<"u"){let e=window.hotkeys;ma.noConflict=t=>(t&&window.hotkeys===ma&&(window.hotkeys=e),ma),window.hotkeys=ma}var Nn=ma;var SE={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t3={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_t={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Mn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ma={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},q=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=q.getVersionPrecision(e),a=q.getVersionPrecision(t),i=Math.max(r,a),o=0,s=q.map([e,t],u=>{let l=i-q.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return q.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return SE[e]}static getBrowserTypeByAlias(e){return t3[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,TE=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=q.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=q.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=q.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=q.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=q.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=q.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=q.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=q.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=q.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=q.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=q.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=q.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=q.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=q.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=q.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=q.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=q.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=q.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=q.getFirstMatch(st,e)||q.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=q.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=q.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=q.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=q.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=q.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=q.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=q.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=q.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=q.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=q.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:q.getFirstMatch(r,e),version:q.getSecondMatch(r,e)}}}],CE=TE,wE=[{test:[/Roku\/DVP/],describe(e){let t=q.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Mn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=q.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Mn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=q.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=q.getWindowsVersionName(t);return{name:Mn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Mn.iOS},n=q.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=q.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=q.getMacOSVersionName(t),r={name:Mn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=q.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Mn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=q.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=q.getAndroidVersionName(t),r={name:Mn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=q.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Mn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=q.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||q.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||q.getFirstMatch(/\bbb(\d+)/i,e);return{name:Mn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=q.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Mn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=q.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Mn.Linux}}},{test:[/CrOS/],describe(){return{name:Mn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=q.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Mn.PlayStation4,version:t}}}],EE=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=q.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:_t.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:_t.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:_t.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:_t.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:_t.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:_t.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=q.getFirstMatch(/(ipod|iphone)/i,e);return{type:_t.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:_t.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:_t.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:_t.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:_t.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:_t.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:_t.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:_t.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:_t.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:_t.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:_t.tv}}}],AE=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ma.Blink};let t=q.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ma.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ma.Trident},n=q.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ma.Presto},n=q.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ma.Gecko},n=q.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ma.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ma.WebKit},n=q.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],kE=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=q.find(CE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=q.find(wE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=q.find(EE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=q.find(AE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return q.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=q.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=q.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=q.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=q.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(q.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},e3=kE,DE=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new e3(e,t)}static parse(e){return new e3(e).getResult()}static get BROWSER_MAP(){return t3}static get ENGINE_MAP(){return Ma}static get OS_MAP(){return Mn}static get PLATFORMS_MAP(){return _t}},$i=DE;var{entries:l3,setPrototypeOf:n3,isFrozen:LE,getPrototypeOf:ME,getOwnPropertyDescriptor:PE}=Object,{freeze:Pn,seal:vr,create:RE}=Object,{apply:bm,construct:ym}=typeof Reflect<"u"&&Reflect;bm||(bm=function(e,t,n){return e.apply(t,n)});Pn||(Pn=function(e){return e});vr||(vr=function(e){return e});ym||(ym=function(e,t){return new e(...t)});var FE=lr(Array.prototype.forEach),r3=lr(Array.prototype.pop),Cs=lr(Array.prototype.push),xl=lr(String.prototype.toLowerCase),mm=lr(String.prototype.toString),BE=lr(String.prototype.match),yr=lr(String.prototype.replace),IE=lr(String.prototype.indexOf),_E=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),ws=OE(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),qE=vr(/\${[\w\W]*}/gm),zE=vr(/^data-[\-\w.\u00B7-\uFFFF]/),WE=vr(/^aria-[\-\w]+$/),c3=vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),GE=vr(/^(?:\w+script|data):/i),VE=vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d3=vr(/^html$/i),u3=Object.freeze({__proto__:null,MUSTACHE_EXPR:UE,ERB_EXPR:HE,TMPLIT_EXPR:qE,DATA_ATTR:zE,ARIA_ATTR:WE,IS_ALLOWED_URI:c3,IS_SCRIPT_OR_DATA:GE,ATTR_WHITESPACE:VE,DOCTYPE_NAME:d3}),KE=()=>typeof window>"u"?null:window,YE=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function m3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KE(),t=F=>m3(F);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=yl(g,"cloneNode"),b=yl(g,"nextSibling"),f=yl(g,"childNodes"),y=yl(g,"parentNode");if(typeof o=="function"){let F=a.createElement("template");F.content&&F.content.ownerDocument&&(a=F.content.ownerDocument)}let x,S="",{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof l3=="function"&&typeof y=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:P,TMPLIT_EXPR:_,DATA_ATTR:L,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:j}=u3,{IS_ALLOWED_URI:W}=u3,ne=null,Ee=je({},[...a3,...pm,...gm,...fm,...i3]),ve=null,N=je({},[...o3,...hm,...s3,...vl]),z=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,De=null,me=!0,He=!0,pe=!1,ce=!0,ge=!1,fe=!1,Ce=!1,Ue=!1,V=!1,be=!1,rt=!1,Je=!0,xe=!1,xt="user-content-",Vt=!0,kt=!1,Bt={},En=null,sr=je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),hs=null,Nr=je({},["audio","video","img","source","image","track"]),mi=null,Ki=je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mn="http://www.w3.org/1998/Math/MathML",gr="http://www.w3.org/2000/svg",pn="http://www.w3.org/1999/xhtml",Vn=pn,ra=!1,aa=null,pi=je({},[mn,gr,pn],mm),An,ia=["application/xhtml+xml","text/html"],St="text/html",nt,Kn=null,sC=a.createElement("form"),d4=function(F){return F instanceof RegExp||F instanceof Function},Od=function(F){if(!(Kn&&Kn===F)){if((!F||typeof F!="object")&&(F={}),F=eo(F),An=ia.indexOf(F.PARSER_MEDIA_TYPE)===-1?An=St:An=F.PARSER_MEDIA_TYPE,nt=An==="application/xhtml+xml"?mm:xl,ne="ALLOWED_TAGS"in F?je({},F.ALLOWED_TAGS,nt):Ee,ve="ALLOWED_ATTR"in F?je({},F.ALLOWED_ATTR,nt):N,aa="ALLOWED_NAMESPACES"in F?je({},F.ALLOWED_NAMESPACES,mm):pi,mi="ADD_URI_SAFE_ATTR"in F?je(eo(Ki),F.ADD_URI_SAFE_ATTR,nt):Ki,hs="ADD_DATA_URI_TAGS"in F?je(eo(Nr),F.ADD_DATA_URI_TAGS,nt):Nr,En="FORBID_CONTENTS"in F?je({},F.FORBID_CONTENTS,nt):sr,Y="FORBID_TAGS"in F?je({},F.FORBID_TAGS,nt):{},De="FORBID_ATTR"in F?je({},F.FORBID_ATTR,nt):{},Bt="USE_PROFILES"in F?F.USE_PROFILES:!1,me=F.ALLOW_ARIA_ATTR!==!1,He=F.ALLOW_DATA_ATTR!==!1,pe=F.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=F.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=F.SAFE_FOR_TEMPLATES||!1,fe=F.WHOLE_DOCUMENT||!1,V=F.RETURN_DOM||!1,be=F.RETURN_DOM_FRAGMENT||!1,rt=F.RETURN_TRUSTED_TYPE||!1,Ue=F.FORCE_BODY||!1,Je=F.SANITIZE_DOM!==!1,xe=F.SANITIZE_NAMED_PROPS||!1,Vt=F.KEEP_CONTENT!==!1,kt=F.IN_PLACE||!1,W=F.ALLOWED_URI_REGEXP||c3,Vn=F.NAMESPACE||pn,z=F.CUSTOM_ELEMENT_HANDLING||{},F.CUSTOM_ELEMENT_HANDLING&&d4(F.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=F.CUSTOM_ELEMENT_HANDLING.tagNameCheck),F.CUSTOM_ELEMENT_HANDLING&&d4(F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),F.CUSTOM_ELEMENT_HANDLING&&typeof F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(He=!1),be&&(V=!0),Bt&&(ne=je({},[...i3]),ve=[],Bt.html===!0&&(je(ne,a3),je(ve,o3)),Bt.svg===!0&&(je(ne,pm),je(ve,hm),je(ve,vl)),Bt.svgFilters===!0&&(je(ne,gm),je(ve,hm),je(ve,vl)),Bt.mathMl===!0&&(je(ne,fm),je(ve,s3),je(ve,vl))),F.ADD_TAGS&&(ne===Ee&&(ne=eo(ne)),je(ne,F.ADD_TAGS,nt)),F.ADD_ATTR&&(ve===N&&(ve=eo(ve)),je(ve,F.ADD_ATTR,nt)),F.ADD_URI_SAFE_ATTR&&je(mi,F.ADD_URI_SAFE_ATTR,nt),F.FORBID_CONTENTS&&(En===sr&&(En=eo(En)),je(En,F.FORBID_CONTENTS,nt)),Vt&&(ne["#text"]=!0),fe&&je(ne,["html","head","body"]),ne.table&&(je(ne,["tbody"]),delete Y.tbody),F.TRUSTED_TYPES_POLICY){if(typeof F.TRUSTED_TYPES_POLICY.createHTML!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof F.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=F.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else x===void 0&&(x=YE(p,r)),x!==null&&typeof S=="string"&&(S=x.createHTML(""));Pn&&Pn(F),Kn=F}},m4=je({},["mi","mo","mn","ms","mtext"]),p4=je({},["foreignobject","desc","title","annotation-xml"]),uC=je({},["title","style","font","a","script"]),nl=je({},pm);je(nl,gm),je(nl,NE);let Nd=je({},fm);je(Nd,jE);let lC=function(F){let oe=y(F);(!oe||!oe.tagName)&&(oe={namespaceURI:Vn,tagName:"template"});let Q=xl(F.tagName),$e=xl(oe.tagName);return aa[F.namespaceURI]?F.namespaceURI===gr?oe.namespaceURI===pn?Q==="svg":oe.namespaceURI===mn?Q==="svg"&&($e==="annotation-xml"||m4[$e]):!!nl[Q]:F.namespaceURI===mn?oe.namespaceURI===pn?Q==="math":oe.namespaceURI===gr?Q==="math"&&p4[$e]:!!Nd[Q]:F.namespaceURI===pn?oe.namespaceURI===gr&&!p4[$e]||oe.namespaceURI===mn&&!m4[$e]?!1:!Nd[Q]&&(uC[Q]||!nl[Q]):!!(An==="application/xhtml+xml"&&aa[F.namespaceURI]):!1},Yi=function(F){Cs(t.removed,{element:F});try{F.parentNode.removeChild(F)}catch{F.remove()}},jd=function(F,oe){try{Cs(t.removed,{attribute:oe.getAttributeNode(F),from:oe})}catch{Cs(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(F),F==="is"&&!ve[F])if(V||be)try{Yi(oe)}catch{}else try{oe.setAttribute(F,"")}catch{}},g4=function(F){let oe,Q;if(Ue)F=""+F;else{let kn=BE(F,/^[\r\n\t ]+/);Q=kn&&kn[0]}An==="application/xhtml+xml"&&Vn===pn&&(F=''+F+"");let $e=x?x.createHTML(F):F;if(Vn===pn)try{oe=new m().parseFromString($e,An)}catch{}if(!oe||!oe.documentElement){oe=T.createDocument(Vn,"template",null);try{oe.documentElement.innerHTML=ra?S:$e}catch{}}let Kt=oe.body||oe.documentElement;return F&&Q&&Kt.insertBefore(a.createTextNode(Q),Kt.childNodes[0]||null),Vn===pn?A.call(oe,fe?"html":"body")[0]:fe?oe.documentElement:Kt},f4=function(F){return C.call(F.ownerDocument||F,F,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},cC=function(F){return F instanceof d&&(typeof F.nodeName!="string"||typeof F.textContent!="string"||typeof F.removeChild!="function"||!(F.attributes instanceof c)||typeof F.removeAttribute!="function"||typeof F.setAttribute!="function"||typeof F.namespaceURI!="string"||typeof F.insertBefore!="function"||typeof F.hasChildNodes!="function")},rl=function(F){return typeof s=="object"?F instanceof s:F&&typeof F=="object"&&typeof F.nodeType=="number"&&typeof F.nodeName=="string"},oa=function(F,oe,Q){M[F]&&FE(M[F],$e=>{$e.call(t,oe,Q,Kn)})},h4=function(F){let oe;if(oa("beforeSanitizeElements",F,null),cC(F))return Yi(F),!0;let Q=nt(F.nodeName);if(oa("uponSanitizeElement",F,{tagName:Q,allowedTags:ne}),F.hasChildNodes()&&!rl(F.firstElementChild)&&(!rl(F.content)||!rl(F.content.firstElementChild))&&Qn(/<[/\w]/g,F.innerHTML)&&Qn(/<[/\w]/g,F.textContent))return Yi(F),!0;if(!ne[Q]||Y[Q]){if(!Y[Q]&&y4(Q)&&(z.tagNameCheck instanceof RegExp&&Qn(z.tagNameCheck,Q)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Q)))return!1;if(Vt&&!En[Q]){let $e=y(F)||F.parentNode,Kt=f(F)||F.childNodes;if(Kt&&$e){let kn=Kt.length;for(let On=kn-1;On>=0;--On)$e.insertBefore(h(Kt[On],!0),b(F))}}return Yi(F),!0}return F instanceof u&&!lC(F)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,F.innerHTML)?(Yi(F),!0):(ge&&F.nodeType===3&&(oe=F.textContent,oe=yr(oe,B," "),oe=yr(oe,P," "),oe=yr(oe,_," "),F.textContent!==oe&&(Cs(t.removed,{element:F.cloneNode()}),F.textContent=oe)),oa("afterSanitizeElements",F,null),!1)},b4=function(F,oe,Q){if(Je&&(oe==="id"||oe==="name")&&(Q in a||Q in sC))return!1;if(!(He&&!De[oe]&&Qn(L,oe))&&!(me&&Qn(O,oe))){if(!ve[oe]||De[oe]){if(!(y4(F)&&(z.tagNameCheck instanceof RegExp&&Qn(z.tagNameCheck,F)||z.tagNameCheck instanceof Function&&z.tagNameCheck(F))&&(z.attributeNameCheck instanceof RegExp&&Qn(z.attributeNameCheck,oe)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(oe))||oe==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Qn(z.tagNameCheck,Q)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Q))))return!1}else if(!mi[oe]&&!Qn(W,yr(Q,j,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&F!=="script"&&IE(Q,"data:")===0&&hs[F])&&!(pe&&!Qn(I,yr(Q,j,"")))&&Q)return!1}return!0},y4=function(F){return F.indexOf("-")>0},v4=function(F){let oe,Q,$e,Kt;oa("beforeSanitizeAttributes",F,null);let{attributes:kn}=F;if(!kn)return;let On={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve};for(Kt=kn.length;Kt--;){oe=kn[Kt];let{name:$t,namespaceURI:Qi}=oe;if(Q=$t==="value"?oe.value:_E(oe.value),$e=nt($t),On.attrName=$e,On.attrValue=Q,On.keepAttr=!0,On.forceKeepAttr=void 0,oa("uponSanitizeAttribute",F,On),Q=On.attrValue,On.forceKeepAttr||(jd($t,F),!On.keepAttr))continue;if(!ce&&Qn(/\/>/i,Q)){jd($t,F);continue}ge&&(Q=yr(Q,B," "),Q=yr(Q,P," "),Q=yr(Q,_," "));let x4=nt(F.nodeName);if(b4(x4,$e,Q)){if(xe&&($e==="id"||$e==="name")&&(jd($t,F),Q=xt+Q),x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Qi)switch(p.getAttributeType(x4,$e)){case"TrustedHTML":{Q=x.createHTML(Q);break}case"TrustedScriptURL":{Q=x.createScriptURL(Q);break}}try{Qi?F.setAttributeNS(Qi,$t,Q):F.setAttribute($t,Q),r3(t.removed)}catch{}}}oa("afterSanitizeAttributes",F,null)},dC=function F(oe){let Q,$e=f4(oe);for(oa("beforeSanitizeShadowDOM",oe,null);Q=$e.nextNode();)oa("uponSanitizeShadowNode",Q,null),!h4(Q)&&(Q.content instanceof i&&F(Q.content),v4(Q));oa("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(F){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,$e,Kt,kn;if(ra=!F,ra&&(F=""),typeof F!="string"&&!rl(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw ws("dirty is not a string, aborting")}else throw ws("toString is not a function");if(!t.isSupported)return F;if(Ce||Od(oe),t.removed=[],typeof F=="string"&&(kt=!1),kt){if(F.nodeName){let Qi=nt(F.nodeName);if(!ne[Qi]||Y[Qi])throw ws("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof s)Q=g4(""),$e=Q.ownerDocument.importNode(F,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?Q=$e:Q.appendChild($e);else{if(!V&&!ge&&!fe&&F.indexOf("<")===-1)return x&&rt?x.createHTML(F):F;if(Q=g4(F),!Q)return V?null:rt?S:""}Q&&Ue&&Yi(Q.firstChild);let On=f4(kt?F:Q);for(;Kt=On.nextNode();)h4(Kt)||(Kt.content instanceof i&&dC(Kt.content),v4(Kt));if(kt)return F;if(V){if(be)for(kn=w.call(Q.ownerDocument);Q.firstChild;)kn.appendChild(Q.firstChild);else kn=Q;return(ve.shadowroot||ve.shadowrootmod)&&(kn=D.call(n,kn,!0)),kn}let $t=fe?Q.outerHTML:Q.innerHTML;return fe&&ne["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(d3,Q.ownerDocument.doctype.name)&&($t=" +`+$t),ge&&($t=yr($t,B," "),$t=yr($t,P," "),$t=yr($t,_," ")),x&&rt?x.createHTML($t):$t},t.setConfig=function(F){Od(F),Ce=!0},t.clearConfig=function(){Kn=null,Ce=!1},t.isValidAttribute=function(F,oe,Q){Kn||Od({});let $e=nt(F),Kt=nt(oe);return b4($e,Kt,Q)},t.addHook=function(F,oe){typeof oe=="function"&&(M[F]=M[F]||[],Cs(M[F],oe))},t.removeHook=function(F){if(M[F])return r3(M[F])},t.removeHooks=function(F){M[F]&&(M[F]=[])},t.removeAllHooks=function(){M={}},t}var Ze=m3();var QE=Object.create,xm=Object.defineProperty,JE=Object.getOwnPropertyDescriptor,ZE=Object.getOwnPropertyNames,XE=Object.getPrototypeOf,$E=Object.prototype.hasOwnProperty,Sm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),e8=(e,t)=>{for(var n in t)xm(e,n,{get:t[n],enumerable:!0})},vm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ZE(t))!$E.call(e,a)&&a!==n&&xm(e,a,{get:()=>t[a],enumerable:!(r=JE(t,a))||r.enumerable});return e},t8=(e,t,n)=>(vm(e,t,"default"),n&&vm(n,t,"default")),g3=(e,t,n)=>(n=e!=null?QE(XE(e)):{},vm(t||!e||!e.__esModule?xm(n,"default",{value:e,enumerable:!0}):n,e)),n8=Sm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(V){if(!(!V.parentNode||typeof V.parentNode.tagName>"u")){var be=this._getInnerText(V);if(!(be.length<25)){var rt=this._getNodeAncestors(V,5);if(rt.length!==0){var Je=0;Je+=1,Je+=be.split(",").length,Je+=Math.min(Math.floor(be.length/100),3),this._forEachNode(rt,function(xe,xt){if(!(!xe.tagName||!xe.parentNode||typeof xe.parentNode.tagName>"u")){if(typeof xe.readability>"u"&&(this._initializeNode(xe),h.push(xe)),xt===0)var Vt=1;else xt===1?Vt=2:Vt=xt*3;xe.readability.contentScore+=Je/Vt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(T,0,x),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,A=!1,D;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var M=[],B=1;B=.75&&M.push(this._getNodeAncestors(b[B]));var P=3;if(M.length>=P)for(D=w.parentNode;D.tagName!=="BODY";){for(var _=0,L=0;L=P){w=D;break}D=D.parentNode}w.readability||this._initializeNode(w),D=w.parentNode;for(var O=w.readability.contentScore,I=O/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var j=D.readability.contentScore;if(jO){w=D;break}O=D.readability.contentScore,D=D.parentNode}for(D=w.parentNode;D.tagName!="BODY"&&D.children.length==1;)w=D,D=w.parentNode;w.readability||this._initializeNode(w)}var W=a.createElement("DIV");i&&(W.id="readability-content");var ne=Math.max(10,w.readability.contentScore*.2);D=w.parentNode;for(var Ee=D.children,ve=0,N=Ee.length;ve=ne)Y=!0;else if(z.nodeName==="P"){var me=this._getLinkDensity(z),He=this._getInnerText(z),pe=He.length;(pe>80&&me<.25||pe<80&&pe>0&&me===0&&He.search(/\.( |$)/)!==-1)&&(Y=!0)}}Y&&(this.log("Appending node:",z),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(z.nodeName)===-1&&(this.log("Altering sibling:",z,"to div."),z=this._setNodeTag(z,"DIV")),W.appendChild(z),Ee=D.children,ve-=1,N-=1)}if(this._debug&&this.log("Article content pre-prep: "+W.innerHTML),this._prepArticle(W),this._debug&&this.log("Article content post-prep: "+W.innerHTML),A)w.id="readability-page-1",w.className="page";else{var ce=a.createElement("DIV");for(ce.id="readability-page-1",ce.className="page";W.firstChild;)ce.appendChild(W.firstChild);W.appendChild(ce)}this._debug&&this.log("Article content after paging: "+W.innerHTML);var ge=!0,fe=this._getInnerText(W,!0).length;if(fe0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),x=0;x1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||f===1&&C<75||f>1;if(s&&w){for(var A=0;A1)return w;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),r8=Sm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),f3=Sm((e,t)=>{var n=n8(),r=r8();t.exports={Readability:n,isProbablyReaderable:r}}),h3={};e8(h3,{Readability:()=>Sl,default:()=>v3,isProbablyReaderable:()=>y3});var b3=g3(f3());t8(h3,g3(f3()));var{Readability:Sl,isProbablyReaderable:y3}=b3,{default:p3,...a8}=b3,v3=p3!==void 0?p3:a8;var i8=fl.alert;var J="immersiveTranslate",hi="Immersive Translate",R="immersive-translate";var nn="immersivetranslate.com",o8=`https://config.${nn}/`,tU=`https://app.${nn}/`,ie=sa()||Wd()?`https://${nn}/`:`https://test.${nn}/`,Tl=`https://dash.${nn}/`,ut=sa()||Wd()?`https://api2.${nn}/`:`https://test-api2.${nn}/`,w3=`https://github.com/${R}/${R}/`,E3=`https://s.${nn}/`,nU=`https://onboarding.${nn}/`,A3=J+"DeeplGlobalState",Tm=J+"BingGlobalState",Cm=J+"YandexGlobalState",wm=J+"BaiduQianfanGlobalConfigStorageKey",k3=J+"SiliconCloudGlobalConfigStorageKey",D3=J+"ZhipuGlobalConfigStorageKey";var Em=J+"GoogleAccessToken",L3=J+"AuthFlow",M3=R+"-config-latest.json",s8=J+"AuthState",Cl=J+"IframeMessage",rU=J+"WaitForRateLimit",wl=J+"DocumentMessageAsk",Ot=J+"DocumentMessageTellThirdParty",gn=J+"showError",bi=J+"showModal",El=J+"showToast",P3=J+"DocumentMessageThirdPartyTell",R3=J+"DocumentMessageEventUpload",F3=J+"DocumentMessageTypeStopJsSDK",Al=J+"DocumentMessageHandler",kl=J+"DocumentSetFloatBallActive",Dl=`${J}Share`,Ll=`${J}ShowFloatBallGuide`,to=J+"DocumentMessageTempEnableSubtitleChanged",Es=`${J}ToggleMouseHoverTranslateDirectly`,B3=`${J}ReqDraft`,I3=`${J}ResDraft`,u8=`${J}Container`,_3=`${J}SpecifiedContainer`,Ml="buildinConfig",As="localConfig",Am="openOptionsPage",O3="translateMangaMenuId",km="openAboutPage";var Dm="openEbookViewer",Lm="openEbookBuilder";var yi=`${J}PageTranslatedStatus`,ks=`${J}MangaTranslatedStatus`,aU=`${J}PageUrlChanged`,xr=`${J}ReceiveCommand`,N3=J+"LastUseMouseHoverTime",Ds=J+"LastUseInputTime",cr=J+"LastUseManualTranslatePageTime",iU=`${J}PopupReceiveMessage`,vi=J+"DocumentMessageEventTogglePopup",Ls=`${o8}default_config.json`,oU=`${J}Mark`,Jn=`${J}Root`,j3=`${J}Walked`,sU=`data-${R}-walked`,U3=`${J}Paragraph`,H3=`data-${R}-paragraph`,no=`data-${R}-translation-element-mark`,q3=`${J}TranslationElementMark`,uU=`${J}TranslatedMark`,Pl=`${R}-input-injected-css`,z3=`${J}LoadingId`,Mm=`data-${R}-loading-id`,W3=`${J}ErrorId`,Rl=`data-${R}-error-id`,l8=`${J}AtomicBlockMark`,G3=`${J}ExcludeMark`,lU=`data-${R}-exclude-mark`,c8=`${J}StayOriginalMark`,cU=`${J}PreWhitespaceMark`,Fl=`${J}InlineMark`,V3=`${J}BlockMark`,dU=`${J}Left`,mU=`${J}Right`,pU=`${J}Width`,gU=`${J}Height`,fU=`${J}Top`,hU=`${J}FontSize`,Ms="lastRunTime";var bU=`${J}GlobalStyleMark`,ro=["@","#"],Bl=" --- ",K3=` +`,Dt=`${R}-target-wrapper`,yU=`${R}-pdf-target-container`,Il=`${R}-target-inner`,vU=`${R}-source-wrapper`,Pm=`${R}-target-translation-block-wrapper`,xU=`${R}-root-translation-theme`,ao=`${J}RootTranslationTheme`,Y3=`${R}-target-translation-vertical-block-wrapper`,SU=`${R}-target-translation-pdf-block-wrapper`,Q3=`${R}-target-translation-pre-whitespace`,Rm=`${R}-target-translation-inline-wrapper`;var J3={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var Z3=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],X3=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Tl,Tl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Pa="zh-CN",TU=ie+"docs/communities/",CU=w3+"issues/1809",wU=w3+"issues/1179",_l={type:J+"ChildFrameToRootFrameIdentifier"},Fm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ps=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],$3=["ctrl","alt","shift","cmd","command","option","control"];var Ol=sa()?Tl+"#general":"http://localhost:8000/dist/userscript/options/#general",Bm="user_from_plugin",ct="user_info",Nl=ie+"accounts/login?from=plugin",e1=Tl+"#general",EU=ie+"accounts/login?from=plugin&return_url="+encodeURIComponent(e1),t1=Nl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",n1=Nl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",Rs=ie+"profile/",jl=ie+"auth/pricing/",Rn=ie+"pricing/",d8=ie+"download/",m8=ie+"topup?type=open_ai&",p8=ie+"topup?type=deepl&",r1=ie+"topup?type=comics&",AU=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",a1=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",kU=d8+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",DU=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Ul=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Im=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",LU=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",i1=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",o1=m8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",s1=p8+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",u1=ie+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",g8=Rn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",_m=Rs+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",MU=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",PU=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",RU=jl+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",l1=ie+"docs/usage/",FU=ie+"docs/communities/",Fs=Le().TRANSLATE_FILE_URL,BU=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",c1=Fs+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",d1=`${Fs}download-subtitle/`,m1=`${Fs}pdf-pro/`,p1=`${Fs}text/`,xi=["deepl","openai","gemini","claude"],f8="G-BHWL0KMJB8",h8="7pr-olTJR6GKAjIW48UD0Q",x3="G-MKMD9LWFTR",S3="sitc4WmvShWYwfU0dANM3Q",T3="G-V5H2F5MJFJ",C3="UBjpGOLISEaY5LVXNj3WvQ";function Hl(){return ul()?[`https://www.google-analytics.com/mp/collect?measurement_id=${f8}&api_secret=${h8}`]:sa?[`https://www.google-analytics.com/mp/collect?measurement_id=${x3}&api_secret=${S3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${T3}&api_secret=${C3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${x3}&api_secret=${S3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${T3}&api_secret=${C3}`]}var Bs=`https://analytics.${nn}/collect`,b8=`${ie}activities/components/image-pro`;function Om(e,t){return`${b8}?utm_source=extension&utm_medium=extension&utm_campaign=${e}&lang=${t}`}var g1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",f1="0VmM83i2D1ICuYBf";var io=console,Nm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),io.debug(ur.dim(hi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Is=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&io.log(ur.dim(hi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&io.log(ur.green(hi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&io.warn(ur.yellow(hi+" WARN:"),...t)}error(...t){this.#e<=3&&io.error(ur.red(hi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&io.error(ur.red(hi+" FATAL:"),...t)}timing(){return this.level===0?new Nm:{reset:()=>{},stop:()=>{}}}},k=new Is;var jm=/iPhone/i,h1=/iPod/i,b1=/iPad/i,y1=/\biOS-universal(?:.+)Mac\b/i,Um=/\bAndroid(?:.+)Mobile\b/i,v1=/Android/i,oo=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ql=/Silk/i,pa=/Windows Phone/i,x1=/\bWindows(?:.+)ARM\b/i,S1=/BlackBerry/i,T1=/BB10/i,C1=/Opera Mini/i,w1=/\b(CriOS|Chrome)(?:.+)Mobile/i,E1=/Mobile(?:.+)Firefox\b/i,A1=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function y8(e){return t=>t.test(e)}function Ve(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=y8(n),i={apple:{phone:a(jm)&&!a(pa),ipod:a(h1),tablet:!a(jm)&&(a(b1)||A1(t))&&!a(pa),universal:a(y1),device:(a(jm)||a(h1)||a(b1)||a(y1)||A1(t))&&!a(pa)},amazon:{phone:a(oo),tablet:!a(oo)&&a(ql),device:a(oo)||a(ql)},android:{phone:!a(pa)&&a(oo)||!a(pa)&&a(Um),tablet:!a(pa)&&!a(oo)&&!a(Um)&&(a(ql)||a(v1)),device:!a(pa)&&(a(oo)||a(ql)||a(Um)||a(v1))||a(/\bokhttp\b/i)},windows:{phone:a(pa),tablet:a(x1),device:a(pa)||a(x1)},other:{blackberry:a(S1),blackberry10:a(T1),opera:a(C1),firefox:a(E1),chrome:a(w1),device:a(S1)||a(T1)||a(C1)||a(E1)||a(w1)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var Hm="DENO",zl="CHROME",Wl="FIREFOX";function k1(e){let t=zl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Wl:/deno/i.test(n)&&(t=Hm)}catch{}return e===zl&&t===zl||e===Wl&&t===Wl||e===Hm&&t===Hm}function D1(){return k1(zl)}function L1(){return typeof Deno<"u"}function Sr(){return Le().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:k1(Wl)}function Zn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function _s(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var M1={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},P1={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:M1,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:M1,query:()=>{},sendMessage:()=>{}}};var ae;L1()?ae=P1:ae=globalThis.immersiveTranslateBrowserAPI;var aH=F1(2),R1=F1(3);function F1(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var v8=/\s+/g,x8=/[\t\n\v\f\r ]+/g;function B1(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?S8:T8;return String(e).replace(t.style==="html"?x8:v8,t.trim?C8(n):n)}function S8(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function T8(){return" "}function C8(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var I1={}.hasOwnProperty;function w8(e){return e==null?"":B1(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function E8(e){return R1(" "+w8(e)+" ")}function A8(e){let t=E8(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function F8(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function B8(e,t,n,r){t=_8(t,n,r);let a=[],i;if(t)for(i in t)Gl.call(t,i)&&a.push([i,I8(e,t[i])]);return a.length===0?zm():a.sort(O8)}function I8(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of K8){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?z1(e)?"zh-TW":"zh-CN":t:"auto"}var G1=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Wm=new Map(G1),Y8=new Map(G1.map(([e,t])=>[t,e]));function V1(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>Y8.get(s));!t&&t!==0&&(t=25);let a=Kl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Wm.keys()]},o=N1(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Wm.get(d)}}let[s,u]=o[0],l=Wm.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}var Xn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Gm={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},K1={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Vm={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Km={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function X(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Xn[a]}else return"auto";else return Xn[r]}function Ct(){return X(document?.documentElement?.lang||"en")}var Si=J+"CacheKey_";function Ti(e,t){let n=Si+e;return ae.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Q8(){let e=ae.storage.local.refresh;e&&e()}function Ym(e,t){let n=Si+e;return ae.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Si)).filter(r=>r!==Si+ct);if(n.length>0)return ae.storage.local.remove(n)}}var dt={get:Ti,set:Ci,getExpired:Ym,setExpired:Qm,remove:Jm,clear:Zm,refresh:Q8};function ft(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Y1(e){if(e){let t=new Date(e.createTime),n=J8(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function J8(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ns(e){if(e?.isPro)return!0;let t=await dt.get(ct,null);return ft(t)}var Q1=J+"SyncStoreKey_";function Ut(e,t){let n=Q1+e;return ae.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function it(e,t){let n=Q1+e;return ae.storage.sync.set({[n]:t})}var J1=J+"StoreKey_";function wi(e,t){let n=J1+e;return ae.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Z1(e,t){let n=J1+e;return ae.storage.local.set({[n]:t})}var X1={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5558,7 +5558,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u548C\u5BFC\u822A\u6761\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F\u4E0E\u9876\u90E8\u5BFC\u822A\u83DC\u5355"};var $1={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F"};var $1={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5572,7 +5572,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u548C\u5C0E\u822A\u689D\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04\u8207\u9802\u90E8\u5C0E\u822A\u83DC\u55AE"};var e2={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u958B\u555F\u5074\u908A\u6B04\u7FFB\u8B6F"};var e2={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5585,7 +5585,7 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","subtitle.ytAIAsrProTooltip":"This feature is only available to Pro users, <1>click here to upgrade to a member.","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)"};var eA=[{code:"zh-CN",messages:X1},{code:"zh-TW",messages:$1},{code:"en",messages:e2}],t2=te()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ei={};for(let e of eA)Ei[e.code]=e.messages;async function n2(){try{if(te())return;let e=ae.runtime.getURL("locales.json"),t=await V({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(Ei,t)}catch{}}function tA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=rA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:R+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function r2(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function nA(e,t,n,r){if(!Ei.hasOwnProperty(t)&&!Ei.hasOwnProperty(n))return e;let a=r2(Ei,t,e);return a===e&&t!==n&&(a=r2(Ei,n,e)),tA(a,r)}function rA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Me(e,t,n){return nA(t,e,"en",n)}function a2(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function i2(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return xi.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Me.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Ol,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Me.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Ol,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Me.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Me.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)",disableNavTranslate:"Close sidebar translation",enableNavTranslate:"Enable sidebar translation"};var eA=[{code:"zh-CN",messages:X1},{code:"zh-TW",messages:$1},{code:"en",messages:e2}],t2=te()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ei={};for(let e of eA)Ei[e.code]=e.messages;async function n2(){try{if(te())return;let e=ae.runtime.getURL("locales.json"),t=await K({url:e,responseType:"json",method:"GET",headers:{"Content-Type":"application/json"}});Object.assign(Ei,t)}catch{}}function tA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=rA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:R+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function r2(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function nA(e,t,n,r){if(!Ei.hasOwnProperty(t)&&!Ei.hasOwnProperty(n))return e;let a=r2(Ei,t,e);return a===e&&t!==n&&(a=r2(Ei,n,e)),tA(a,r)}function rA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Me(e,t,n){return nA(t,e,"en",n)}function a2(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function i2(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return xi.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Me.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Ol,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Me.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Ol,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Me.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Me.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Me.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Ol,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Me.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(xi.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Me.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:R,href:r1})];Xm(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

@@ -5595,10 +5595,10 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Me.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:R,href:Ul}));else{let d="";u=="AI"?d=o1:d=s1,o?l.push(r("proQuotaError.trail",{brandId:R,href:_m})):l.push(r("proQuotaError.package",{brandId:R,href:d,translationService:u})),Xm(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function Xm(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||i2(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:a2(i,"YYYY-MM-DD HH:mm:ss")}))}function Yl(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function o2(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function s2(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function Ql(e){let{mimeType:t,base64:n}=aA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Yd(u2.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await u2(e);return t}async function u2(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=Yl(e.body):r=="urlSearchParams"?a.body=o2(e.body):r=="blob"&&e.body&&(a.body=Ql(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of iA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){k.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${nn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*iA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var oA=new Map;function Jl(e){let t=sA(64),n=new CustomEvent(wl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{oA.set(t,(i,o)=>{i?a(i):r(o)})})}function sA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var lA="";function Ht(){return lA||Zl.version}function js(){return ae.runtime.getManifest().version}function Ve(){try{let e=[Le().EBOOK_BUILDER_URL,Le().EBOOK_VIEWER_URL,Le().SUBTITLE_BUILDER_URL,Le().HTML_VIEWER_URL,Le().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+nn];sa()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var Us=new Map,Ra=class{fromType;logger;constructor(t,n=!1){this.logger=new Is,n&&this.logger.setLevel("debug"),this.fromType=t,Us.has(t)||(Us.set(t,new Map),ae.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=ep(s),{type:m,name:p}=d;if(m!==t)return!1;let g=ep(o),b=Us.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,x={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,x);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,x).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Us.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new $m(`${i}:${t}`,this.logger);return Us.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},$m=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=ep(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ae.runtime.sendMessage(o);return l2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ae.tabs.sendMessage(i,o);return l2(o,s,this.logger)}}};function l2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function ep(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}var cA="";function so(){return cA||globalThis.navigator.userAgent}function Hs(){return so().includes("ImtFxiOS")}function c2(){let t=so().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function tp(){return so().includes("ImtFxAndroid")}function d2(){let e=so();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function m2(){let t=so().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function qs(){let e=so();if(Hs()||tp()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Xl=function(){return Xl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,dA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function zs(e){return e.then(void 0,function(){}),e}function pA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function fA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function hA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Fa(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function cr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function uo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function Xn(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];yt(e,t),cr(e,bA),t[1]=e[0]>>>1,yt(e,t),cr(e,yA),t[1]=e[0]>>>1,yt(e,t)}var $l=[2277735313,289559509],ec=[1291169091,658871167],h2=[0,5],vA=[0,1390208809],xA=[0,944331445];function SA(e,t){var n=hA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function TA(e){var t;return Xl({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function CA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function wA(e){return typeof e!="function"}function EA(e,t){var n=zs(new Promise(function(r){var a=Date.now();p2(e.bind(null,t),function(){for(var i=[],o=0;o=4}function kA(){var e=window,t=navigator;return $n(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!L2()}function rc(){var e=window,t=navigator;return $n(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Er(){var e=window,t=navigator;return $n(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function lp(){var e=window,t=e.HTMLElement,n=e.Document;return $n(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Ws(){var e=window;return CA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function M2(){var e,t,n=window;return $n(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function DA(){var e=window;return $n([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function LA(){var e=window;return $n(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Gs(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return $n([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function MA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return $n(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function PA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function RA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function cp(){var e=rc(),t=M2(),n=window,r=navigator,a="connection";return e?$n([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?$n(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function FA(){return _A()?-4:BA()}function BA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(IA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=OA(a),u=s[0],l=s[1],c=zs(u.then(function(d){return NA(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function IA(){return Er()&&!lp()&&!LA()}function _A(){return Er()&&Gs()&&Ws()}function OA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(b2("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(k2(g)&&zs(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(b2("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function NA(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function f7(){var e=new Date().getFullYear();return Math.max(wr(new Date(e,0,1).getTimezoneOffset()),wr(new Date(e,6,1).getTimezoneOffset()))}function h7(){try{return!!window.sessionStorage}catch{return!0}}function b7(){try{return!!window.localStorage}catch{return!0}}function y7(){if(!(L2()||kA()))try{return!!window.indexedDB}catch{return!0}}function v7(){return!!window.openDatabase}function x7(){return navigator.cpuClass}function S7(){var e=navigator.platform;return e==="MacIntel"&&Er()&&!lp()?MA()?"iPad":"iPhone":e}function T7(){return navigator.vendor||""}function C7(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function k7(){return Er()||cp()}function D7(e){var t;return Tr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Cr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},v2(r),u=0;u=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){k.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){k.error("parse response failed",h)}c&&k.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${nn}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*iA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var oA=new Map;function Jl(e){let t=sA(64),n=new CustomEvent(wl,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{oA.set(t,(i,o)=>{i?a(i):r(o)})})}function sA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var lA="";function Ht(){return lA||Zl.version}function js(){return ae.runtime.getManifest().version}function Ke(){try{let e=[Le().EBOOK_BUILDER_URL,Le().EBOOK_VIEWER_URL,Le().SUBTITLE_BUILDER_URL,Le().HTML_VIEWER_URL,Le().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+nn];sa()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var Us=new Map,Ra=class{fromType;logger;constructor(t,n=!1){this.logger=new Is,n&&this.logger.setLevel("debug"),this.fromType=t,Us.has(t)||(Us.set(t,new Map),ae.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=ep(s),{type:m,name:p}=d;if(m!==t)return!1;let g=ep(o),b=Us.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,x={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,x);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,x).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Us.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new $m(`${i}:${t}`,this.logger);return Us.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},$m=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=ep(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ae.runtime.sendMessage(o);return l2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ae.tabs.sendMessage(i,o);return l2(o,s,this.logger)}}};function l2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function ep(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}var cA="";function so(){return cA||globalThis.navigator.userAgent}function Hs(){return so().includes("ImtFxiOS")}function c2(){let t=so().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function tp(){return so().includes("ImtFxAndroid")}function d2(){let e=so();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function m2(){let t=so().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function qs(){let e=so();if(Hs()||tp()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Xl=function(){return Xl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,dA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function zs(e){return e.then(void 0,function(){}),e}function pA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function fA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function hA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Fa(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function dr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function uo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];yt(e,t),dr(e,bA),t[1]=e[0]>>>1,yt(e,t),dr(e,yA),t[1]=e[0]>>>1,yt(e,t)}var $l=[2277735313,289559509],ec=[1291169091,658871167],h2=[0,5],vA=[0,1390208809],xA=[0,944331445];function SA(e,t){var n=hA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function TA(e){var t;return Xl({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function CA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function wA(e){return typeof e!="function"}function EA(e,t){var n=zs(new Promise(function(r){var a=Date.now();p2(e.bind(null,t),function(){for(var i=[],o=0;o=4}function kA(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!L2()}function rc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Er(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function lp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Ws(){var e=window;return CA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function M2(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function DA(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function LA(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Gs(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function MA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function PA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function RA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function cp(){var e=rc(),t=M2(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function FA(){return _A()?-4:BA()}function BA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(IA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=OA(a),u=s[0],l=s[1],c=zs(u.then(function(d){return NA(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function IA(){return Er()&&!lp()&&!LA()}function _A(){return Er()&&Gs()&&Ws()}function OA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(b2("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(k2(g)&&zs(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(b2("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function NA(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function f7(){var e=new Date().getFullYear();return Math.max(wr(new Date(e,0,1).getTimezoneOffset()),wr(new Date(e,6,1).getTimezoneOffset()))}function h7(){try{return!!window.sessionStorage}catch{return!0}}function b7(){try{return!!window.localStorage}catch{return!0}}function y7(){if(!(L2()||kA()))try{return!!window.indexedDB}catch{return!0}}function v7(){return!!window.openDatabase}function x7(){return navigator.cpuClass}function S7(){var e=navigator.platform;return e==="MacIntel"&&Er()&&!lp()?MA()?"iPad":"iPhone":e}function T7(){return navigator.vendor||""}function C7(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function k7(){return Er()||cp()}function D7(e){var t;return Tr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Cr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},v2(r),u=0;u')}function z7(){return navigator.pdfViewerEnabled}function W7(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function G7(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(K7())return-3;try{return e.canMakePayments()?1:0}catch(t){return V7(t)}}var K7=HA;function V7(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Y7(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var R2=-1,F2=-2,Q7=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),J7=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Z7=["FRAGMENT_SHADER","VERTEX_SHADER"],X7=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],B2="WEBGL_debug_renderer_info",$7="WEBGL_polygon_mode";function ek(e){var t,n,r,a,i,o,s=e.cache,u=I2(s);if(!u)return R2;if(!O2(u))return F2;var l=_2()?null:u.getExtension(B2);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function tk(e){var t=e.cache,n=I2(t);if(!n)return R2;if(!O2(n))return F2;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(A2,"/npm-monitoring"),!0),e.send()}catch{}}function yk(e){var t;return e===void 0&&(e={}),Tr(this,void 0,void 0,function(){var n,r,a;return Cr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&bk(),n=e.delayFallback,r=e.debug,[4,fk(n)];case 1:return i.sent(),a=sk({cache:{},debug:r}),[2,hk(a,r)]}})})}var dp={load:yk,hashComponents:N2,componentsToDebugString:pk};async function Ks(){let e=await Ut("fakeUserId","");e||(e=await wi("fakeUserId",""),e&&await it("fakeUserId",e));let t=new Date,n=await Ut("installedAt","");return n||(n=await wi("installedAt",""),n&&await it("installedAt",n)),e?n||(n=new Date(0).toISOString(),await it("installedAt",n)):(e=await Sk(64),await it("fakeUserId",e)),n||(n=t.toISOString(),await it("installedAt",n)),{fakeUserId:e,installedAt:n}}var vk=10;async function mo(){let e=await Ut("userTag","");if(e)return e;let{fakeUserId:t}=await Ks(),r=t.charCodeAt(0)%vk;return e=String.fromCharCode(r+"a".charCodeAt(0)),await it("userTag",e),e}function xk(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Tk(i,e)}catch{return xk(64)}}function Tk(e,t=32){let n="";for(let a=0;a{}),sc)}async function Vs(e,t){try{let n=Le(),r=n.INSTALL_FROM==="firefox_store";if(qs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=te(),o=Ve(),s=n.PROD==="1",u=Ht(),l=new Date,{fakeUserId:c,installedAt:d}=await Ks(),m=await mo(),p=await po(),g=await go(),h=new Date(d),b=Ba(h),f=Ba(l),y=b===f,x=24*60*60*1e3,S=l.getTime()-h.getTime()<7*x,T=l.getTime()-h.getTime()<30*x,C=l.getTime()-h.getTime()<365*x,w=Hl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=$i.parse(A),M=e.map(B=>{let P=B.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let _=qs();_&&(P.browser_name=_.name,P.browser_version=_.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),b){P.install_day=ac(h);let _=oc(h);P.install_week=`${_.year}${_.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=S?"1":"0",P.is_new_user_this_month=T?"1":"0",P.is_new_user_this_year=C?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...B,params:P}});w.forEach(async B=>{let P=await Ys({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&Ek(c,M)}catch{}}async function wk(e){return await Ck().sendMessage("background:main",e)}function Ys(e){return sl()?Jl({method:"request",data:e}):te()||ol()?(e.fetchPolyfill=globalThis.GM_fetch,Ai(e)):wk({method:"fetch",data:e})}function Ek(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=ic(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Ys({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var uc={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function M7(){for(var e=0,t=["rec2020","p3","srgb"];e')}function z7(){return navigator.pdfViewerEnabled}function W7(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function G7(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(V7())return-3;try{return e.canMakePayments()?1:0}catch(t){return K7(t)}}var V7=HA;function K7(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Y7(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var R2=-1,F2=-2,Q7=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),J7=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Z7=["FRAGMENT_SHADER","VERTEX_SHADER"],X7=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],B2="WEBGL_debug_renderer_info",$7="WEBGL_polygon_mode";function ek(e){var t,n,r,a,i,o,s=e.cache,u=I2(s);if(!u)return R2;if(!O2(u))return F2;var l=_2()?null:u.getExtension(B2);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function tk(e){var t=e.cache,n=I2(t);if(!n)return R2;if(!O2(n))return F2;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(A2,"/npm-monitoring"),!0),e.send()}catch{}}function yk(e){var t;return e===void 0&&(e={}),Tr(this,void 0,void 0,function(){var n,r,a;return Cr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&bk(),n=e.delayFallback,r=e.debug,[4,fk(n)];case 1:return i.sent(),a=sk({cache:{},debug:r}),[2,hk(a,r)]}})})}var dp={load:yk,hashComponents:N2,componentsToDebugString:pk};async function Vs(){let e=await Ut("fakeUserId","");e||(e=await wi("fakeUserId",""),e&&await it("fakeUserId",e));let t=new Date,n=await Ut("installedAt","");return n||(n=await wi("installedAt",""),n&&await it("installedAt",n)),e?n||(n=new Date(0).toISOString(),await it("installedAt",n)):(e=await Sk(64),await it("fakeUserId",e)),n||(n=t.toISOString(),await it("installedAt",n)),{fakeUserId:e,installedAt:n}}var vk=10;async function mo(){let e=await Ut("userTag","");if(e)return e;let{fakeUserId:t}=await Vs(),r=t.charCodeAt(0)%vk;return e=String.fromCharCode(r+"a".charCodeAt(0)),await it("userTag",e),e}function xk(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Tk(i,e)}catch{return xk(64)}}function Tk(e,t=32){let n="";for(let a=0;a{}),sc)}async function Ks(e,t){try{let n=Le(),r=n.INSTALL_FROM==="firefox_store";if(qs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=te(),o=Ke(),s=n.PROD==="1",u=Ht(),l=new Date,{fakeUserId:c,installedAt:d}=await Vs(),m=await mo(),p=await po(),g=await go(),h=new Date(d),b=Ba(h),f=Ba(l),y=b===f,x=24*60*60*1e3,S=l.getTime()-h.getTime()<7*x,T=l.getTime()-h.getTime()<30*x,C=l.getTime()-h.getTime()<365*x,w=Hl(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=$i.parse(A),M=e.map(B=>{let P=B.params||{};if(D.os&&(P.os_name=D.os.name||"unknown",P.os_version=D.os.version||"unknown",P.os_version_name=D.os.versionName||"unknown"),D.browser){P.browser_name=D.browser.name||"unknown",P.browser_version=D.browser.version||"unknown";let _=qs();_&&(P.browser_name=_.name,P.browser_version=_.version)}if(D.platform&&(P.platform_type=D.platform.type||"unknown"),D.engine&&(P.engine_name=D.engine.name||"unknown",P.engine_version=D.engine.version||"unknown"),u&&(P.version=u),n.INSTALL_FROM&&(P.install_from=n.INSTALL_FROM),b){P.install_day=ac(h);let _=oc(h);P.install_week=`${_.year}${_.week}`}return P.userscript=i.toString(),y?P.is_new_user_today="1":P.is_new_user_today="0",P.is_new_user_this_week=S?"1":"0",P.is_new_user_this_month=T?"1":"0",P.is_new_user_this_year=C?"1":"0",o?P.main_frame=0:P.main_frame=1,m&&(P.ab_tag=m),p&&(P.ab_group=p),P.campaign=g||"none",{...B,params:P}});w.forEach(async B=>{let P=await Ys({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&Ek(c,M)}catch{}}async function wk(e){return await Ck().sendMessage("background:main",e)}function Ys(e){return sl()?Jl({method:"request",data:e}):te()||ol()?(e.fetchPolyfill=globalThis.GM_fetch,Ai(e)):wk({method:"fetch",data:e})}function Ek(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=ic(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Ys({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var uc={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5841,11 +5841,11 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{sideHead:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{sideHead:"1","default-translate":"no"},nav:{sideHead:"1","default-translate":"no"}},navHeadEnableTranslate:!0,selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.5]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ"],translationMode:"translation"},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` `},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"}},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"im.zendesk",matches:"https://immersivetranslate.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"],"excludeSelectors.add":["blockquote"]},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{generalSetting:{startKey:"start",endKey:"end",textKey:"text",timeDivisor:1e3},attachRule:{appendSelector:".video-wrapper",injectedGlobalCSS:[".closed-captions {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 15%;}"]}}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};function mp(e){return e.replace(//g,">")}var lc=!1,kk=te();function H2(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function Dk(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&q2(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Ia(i,Fl)){if(a===!0)return!0;continue}if(Qs(i.nodeName,t.inlineTags))return!0;if(!pp(i,t))return!1}}return!0}function gp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Qs(e.nodeName,n)||pp(e,t)){if(Ia(e,K3)||Qs(e.nodeName,["BR"]))return!1;if(Ia(e,Fl))return!0;if(pp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return Dk(e,t)}else return Ia(e,Fl);return!1}function q2(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Ia(e,G3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Ia(e,_3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Qs(e.nodeName,i))}function fo(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!W2(r)&&r.length>=n}function z2(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(W2(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function W2(e){for(let t=0;t127)return!1;return!0}function G2(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function K2(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function V2(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Y2(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function Q2(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Ia(e,t,n=!1){return fp(e,t,"1",n)}function fp(e,t,n,r=!1){return lc&&!r?e[Qn]?e[Qn]?.[t]===n:!1:e.dataset?.[t]===n}function ho(e){return(e.innerText||e.textContent||"").trim()}function hp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function cc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(lc&&!r?(e[Qn]||(e[Qn]={}),e[Qn][t]||(e[Qn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function J2(e,t,n=!1){if(lc&&!n){if(!e[Qn]||!e[Qn][t])return;delete e[Qn][t]}else delete e.dataset[t]}function Z2(e,t,n=!1){return lc&&!n?!e[Qn]||!e[Qn][t]?void 0:e[Qn][t]:e.dataset[t]}function pp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Qs(e.nodeName,n)}function Se(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ve())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function fn(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}function _a(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(kk){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${R}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Qs(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function X2(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function $2(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||q2(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function eb(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function tb(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};function mp(e){return e.replace(//g,">")}var lc=!1,kk=te();function H2(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function Dk(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&q2(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Ia(i,Fl)){if(a===!0)return!0;continue}if(Qs(i.nodeName,t.inlineTags))return!0;if(!pp(i,t))return!1}}return!0}function gp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Qs(e.nodeName,n)||pp(e,t)){if(Ia(e,V3)||Qs(e.nodeName,["BR"]))return!1;if(Ia(e,Fl))return!0;if(pp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return Dk(e,t)}else return Ia(e,Fl);return!1}function q2(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Ia(e,G3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Ia(e,_3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Qs(e.nodeName,i))}function fo(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!W2(r)&&r.length>=n}function z2(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(W2(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function W2(e){for(let t=0;t127)return!1;return!0}function G2(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function V2(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function K2(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Y2(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function Q2(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Ia(e,t,n=!1){return fp(e,t,"1",n)}function fp(e,t,n,r=!1){return lc&&!r?e[Jn]?e[Jn]?.[t]===n:!1:e.dataset?.[t]===n}function ho(e){return(e.innerText||e.textContent||"").trim()}function hp(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function cc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function wt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(lc&&!r?(e[Jn]||(e[Jn]={}),e[Jn][t]||(e[Jn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function J2(e,t,n=!1){if(lc&&!n){if(!e[Jn]||!e[Jn][t])return;delete e[Jn][t]}else delete e.dataset[t]}function Z2(e,t,n=!1){return lc&&!n?!e[Jn]||!e[Jn][t]?void 0:e[Jn][t]:e.dataset[t]}function pp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Qs(e.nodeName,n)}function Se(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Ke())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function fn(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}function _a(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(kk){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${R}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Qs(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function X2(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function $2(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||q2(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function eb(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function tb(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthu+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function Lk(e,t){let n=[],r=[];for(let a=0;a0?ht){let y=[];bp(b,t,y);for(let x=0;x0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&bp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:Pk([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var mc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(Ar);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&at()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Ar[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=bo);let h=yp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function ab(e,t,n){return mc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:Mk(r.config,n))}function Mk(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function ib(e,t,n="en",r){return mc(e,t,n).find(o=>o.id===r)}function Js(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function ob(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function sb(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=xi.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function Pk(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var bc,Fe,mb,Rk,Zs,ub,pb,gc={},gb=[],Fk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Na(e,t){for(var n in t)e[n]=t[n];return e}function fb(e){var t=e.parentNode;t&&t.removeChild(e)}function Xs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?bc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return pc(e,o,r,a,null)}function pc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++mb};return a==null&&Fe.vnode!=null&&Fe.vnode(i),i}function Lt(e){return e.children}function yo(e,t){this.props=e,this.context=t}function vo(e,t){if(t==null)return e.__?vo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?pc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:yc}),n.__[e]}function G(e){return $s=1,Ok(Pb,e)}function Ok(e,t,n){var r=eu(So++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Mt,!Mt.u)){Mt.u=!0;var a=Mt.shouldComponentUpdate;Mt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function $(e,t){var n=eu(So++,3);!Fe.__s&&Cp(n.__H,t)&&(n.__=e,n.i=t,Mt.__H.__h.push(n))}function tu(e,t){var n=eu(So++,4);!Fe.__s&&Cp(n.__H,t)&&(n.__=e,n.i=t,Mt.__h.push(n))}function we(e){return $s=5,he(function(){return{current:e}},[])}function he(e,t){var n=eu(So++,7);return Cp(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return $s=8,he(function(){return e},t)}function xc(e){var t=Mt.context[e.__c],n=eu(So++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Mt)),t.props.value):e.__}function Nk(){for(var e;e=Mb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(vc),e.__H.__h.forEach(Tp),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){typeof e.type!="function"||e.o||e.type===Lt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Mt=null,wb&&wb(e)},Fe.__r=function(e){Eb&&Eb(e),So=0;var t=(Mt=e.__c).__H;t&&(Sp===Mt?(t.__h=[],Mt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=yc,n.__N=n.i=void 0})):(t.__h.forEach(vc),t.__h.forEach(Tp),t.__h=[])),Sp=Mt},Fe.diffed=function(e){Ab&&Ab(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Mb.push(t)!==1&&Cb===Fe.requestAnimationFrame||((Cb=Fe.requestAnimationFrame)||jk)(Nk)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==yc&&(n.__=n.__V),n.i=void 0,n.__V=yc})),Sp=Mt=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(vc),n.__h=n.__h.filter(function(r){return!r.__||Tp(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Fe.__e(r,n.__v)}}),kb&&kb(e,t)},Fe.unmount=function(e){Db&&Db(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{vc(r)}catch(a){t=a}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var Lb=typeof requestAnimationFrame=="function";function jk(e){var t,n=function(){clearTimeout(r),Lb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Lb&&(t=requestAnimationFrame(n))}function vc(e){var t=Mt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Mt=t}function Tp(e){var t=Mt;e.__c=e.__(),Mt=t}function Cp(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Pb(e,t){return typeof t=="function"?t(e):t}var Rb=["*://*/*","*","*://*"],Bb="immersive-translate-wildcard-placeholder.com";function wp(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>Rb.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(Rb.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return Hk(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,Bb),m;try{m=new URL(d)}catch{return k.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=Uk(l+":",Fb(p),Fb(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function Fb(e){return e.replaceAll(Bb,"*")}function Uk(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function We(e,t){return wp(e,t)!==null}function Hk(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Ib=null;if(typeof trustedTypes<"u")try{Ib=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var _b=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(_b=!0)});function Sc(){return _b}var dr=Ib;function Nb(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(zk(t,o))return"";i=Ob(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(b=>{let f=Ob(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";return}u=f,l+=g(b)||""}),h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`)}n.push(...p)}for(let a=0;a{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&bp(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:Pk([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var mc=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ft(u),c=Object.keys(Ar);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&at()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Ar[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=bo);let h=yp(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function ab(e,t,n){return mc(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:Mk(r.config,n))}function Mk(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function ib(e,t,n="en",r){return mc(e,t,n).find(o=>o.id===r)}function Js(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function ob(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function sb(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=xi.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function Pk(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var bc,Fe,mb,Rk,Zs,ub,pb,gc={},gb=[],Fk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Na(e,t){for(var n in t)e[n]=t[n];return e}function fb(e){var t=e.parentNode;t&&t.removeChild(e)}function Xs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?bc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return pc(e,o,r,a,null)}function pc(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++mb};return a==null&&Fe.vnode!=null&&Fe.vnode(i),i}function Lt(e){return e.children}function yo(e,t){this.props=e,this.context=t}function vo(e,t){if(t==null)return e.__?vo(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?pc(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:yc}),n.__[e]}function G(e){return $s=1,Ok(Pb,e)}function Ok(e,t,n){var r=eu(So++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Mt,!Mt.u)){Mt.u=!0;var a=Mt.shouldComponentUpdate;Mt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function $(e,t){var n=eu(So++,3);!Fe.__s&&Cp(n.__H,t)&&(n.__=e,n.i=t,Mt.__H.__h.push(n))}function tu(e,t){var n=eu(So++,4);!Fe.__s&&Cp(n.__H,t)&&(n.__=e,n.i=t,Mt.__h.push(n))}function we(e){return $s=5,he(function(){return{current:e}},[])}function he(e,t){var n=eu(So++,7);return Cp(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return $s=8,he(function(){return e},t)}function xc(e){var t=Mt.context[e.__c],n=eu(So++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Mt)),t.props.value):e.__}function Nk(){for(var e;e=Mb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(vc),e.__H.__h.forEach(Tp),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){typeof e.type!="function"||e.o||e.type===Lt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Mt=null,wb&&wb(e)},Fe.__r=function(e){Eb&&Eb(e),So=0;var t=(Mt=e.__c).__H;t&&(Sp===Mt?(t.__h=[],Mt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=yc,n.__N=n.i=void 0})):(t.__h.forEach(vc),t.__h.forEach(Tp),t.__h=[])),Sp=Mt},Fe.diffed=function(e){Ab&&Ab(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Mb.push(t)!==1&&Cb===Fe.requestAnimationFrame||((Cb=Fe.requestAnimationFrame)||jk)(Nk)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==yc&&(n.__=n.__V),n.i=void 0,n.__V=yc})),Sp=Mt=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(vc),n.__h=n.__h.filter(function(r){return!r.__||Tp(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Fe.__e(r,n.__v)}}),kb&&kb(e,t)},Fe.unmount=function(e){Db&&Db(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{vc(r)}catch(a){t=a}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var Lb=typeof requestAnimationFrame=="function";function jk(e){var t,n=function(){clearTimeout(r),Lb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Lb&&(t=requestAnimationFrame(n))}function vc(e){var t=Mt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Mt=t}function Tp(e){var t=Mt;e.__c=e.__(),Mt=t}function Cp(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Pb(e,t){return typeof t=="function"?t(e):t}var Rb=["*://*/*","*","*://*"],Bb="immersive-translate-wildcard-placeholder.com";function wp(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>Rb.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(Rb.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return Hk(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,Bb),m;try{m=new URL(d)}catch{return k.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=Uk(l+":",Fb(p),Fb(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function Fb(e){return e.replaceAll(Bb,"*")}function Uk(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function We(e,t){return wp(e,t)!==null}function Hk(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Ib=null;if(typeof trustedTypes<"u")try{Ib=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var _b=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(_b=!0)});function Sc(){return _b}var jn=Ib;function Nb(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(zk(t,o))return"";i=Ob(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(b=>{let f=Ob(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";return}u=f,l+=g(b)||""}),h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` `).filter(b=>!!b.trim()).length>1)return t.innerHTML;return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=Gb(u,a)}else s+=l}}function jb(e,t,n,r,a){return!e||!t?"":t.replace(Gb(n,a)||"",r)}var Ep=globalThis.document?.createElement("div");function qk(e){return Ep?(Ep.innerHTML=dr?.createHTML(e)||e,Ep?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Ub(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||qk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Hb(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function qb(e,t,n,r){let a="";return n?a=zb(e,t,n):a=Wb(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function zb(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?zb(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Wb(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Wb(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Gb(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=Gb(u,a)}else s+=l}}function jb(e,t,n,r,a){return!e||!t?"":t.replace(Gb(n,a)||"",r)}var Ep=globalThis.document?.createElement("div");function qk(e){return Ep?(Ep.innerHTML=jn?.createHTML(e)||e,Ep?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Ub(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||qk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Hb(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function qb(e,t,n,r){let a="";return n?a=zb(e,t,n):a=Wb(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function zb(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?zb(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Wb(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Wb(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Gb(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` `)<0?r=Ze.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=Ze.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function zk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ob(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Tc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Ap(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),jr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function To(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Kb(e,t){let n=t||e.translationService;return To(e,n,e.config.translationServices)?Ap(e.rule):e.rule}function Cc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var Wk=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ur(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(er(e,i))return!1;if(er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!er(e,o)),c;function d(){return n&&n.display?!!Wk.includes(n.display):er(e,r)}}var Et=er;function Di(e){return!!e.shadowRoot}function Ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function nu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Hr(e,t=!1){let n=ro;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function ki(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Hr(n,t)}function Co(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function kp(e){let{rule:t}=e,n=Gk(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function Gk(e){let t=e.config.loadingTheme;return`${R}-loading-${t}`}function ru(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Dt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,z3,t.toString());let i=kp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function wo(e,t){return e.querySelector(`[${Mm}='${t}']`)}function Vb(){document.querySelectorAll(`[${Mm}]`).forEach(t=>{t.remove()})}function Yb(){document.querySelectorAll(`.${Dt}-error`).forEach(t=>{t.remove()})}function Qb(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{_a(n)&&t.push(n)}),t}function Dp(e,t){return t?Kk(e):Vk(e)}function Kk(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Jb(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=mp(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function Vk(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Jb(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=mp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Lp(e,t){return t?Yk(e):Qk(e)}function Yk(e){let{text:t,variables:n}=e,r=Cc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function Qk(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Jb(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Eo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Q2(l)||G2(l)||Y2(l)||K2(l)||V2(l)||Zk(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:fo(i?.trim(),n,r)}function Li(e){return e.nodeType===Node.ELEMENT_NODE}function Zb(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function kr(){return await Ut("fakeUserId","")}async function Jk(){return await Ut("installedAt","")}async function Ao(e,t){let r=Le().INSTALL_FROM,a=Ht(),i=await Jk(),o=await kr(),s=await qt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await mo(),m=await go(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await po();return g&&(p.abGroup=g),p}function au(e,t){let[n,r]=G();return $(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!at()&&te()||Ke().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=Xk(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function Xk(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function $b(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function ey(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{wc[e]=setTimeout(()=>{n("")},t)})}function ny(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ha(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Ac(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Mi(){return tp()?"imtAndroid":Hs()?"imtIOS":te()?"userscript":at()?"safari":Sr()?"firefox":D1()?"chrome":"other"}function qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function kc(e){return e?.getAttribute("imt-state")||""}function zr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Dc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function ry(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function za(e){if(e.beta)return!1;if(at()&&e.spVersion)return qa(js(),e.spVersion);if(d2()&&e.gspVersion){let t=m2();if(t)return qa(t,e.gspVersion)}if(Hs()&&e.ispVersion){let t=c2();if(t)return qa(t,e.ispVersion)}return!1}function qa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Rp(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),iu())}async function ay(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),$k(a.toString())}function $k(e){try{at()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function iy(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function oy(e){return ft(e)}function Lc(e){return Array.isArray(e)?e:e?[e]:[]}function Mc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Pc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function sy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Rc(e,t){let n={...e};return my(n,t),eD(n,t),n}function dy(e,t,n){let r={...e};return jr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),jr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function eD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;my(e,a)}function jr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=uy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=uy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Lc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!ly(u))return;d=Fp(c,l)}else if(s=="remove_v"){if(!ly(u))return;d=cy(c,l)}else s==="add"?d=Fp(c,l):s=="remove"&&(d=cy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Fp(c,l):d=l,r(o,d)})}function my(e,t){return jr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Fp(e,t){let n;if(Array.isArray(e)){let r=Lc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function uy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function ly(e){let t=Ht();return e&&qa(t,e)}function cy(e,t){if(Array.isArray(e)){let n=Lc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var py="userConfig",Fc="userPromptPool",Bc="userObjectPool";async function Ic(){let e=await vy(py)||{},t=await Pi(Fc)||{},n=await Pi(Bc)||{};return tD(e,t,n)}async function gy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Bp(e);await yy(py,t),await Dr(Fc,n),await Dr(Bc,r)}function Bp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return fy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),hy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function tD(e,t,n){return fy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),hy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function fy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function hy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Wa(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=by(r);for(let o of i)delete a[o]}),n}function Ip(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=by(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function by(e){let t=Ar[e]?.allProps||[];e.startsWith("custom-ai")&&(t=bo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Sy(){if(de.PROD==="1")return{};let e={};if(de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(de.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=de.DEEPL_PROXY_ENDPOINT),de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}de.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=de.IMMERSIVE_TRANSLATE_SERVICE);let t={};return de.DEBUG==="1"&&(t.debug=!0,t.cache=!1),de.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await ae.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ae.storage.local.set({[As]:e})}async function Ty(e){await ae.storage.local.set({[Ml]:e})}async function Cy(){return de.DEBUG==="1"?void 0:(await ae.storage.local.get(Ml))[Ml]}async function _c(){let e=await Cy(),n={...await _p(),...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function qt(){let e=await Cy(),t={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let O=new Date(e.buildinConfigUpdatedAt),I=new Date(t.buildinConfigUpdatedAt);O>I&&(t=e)}let n=await aD(t);t.targetLanguage=n;let r=await dt.get(ct,null),a={};if(!te()&&ae.commands&&ae.commands.getAll){let O=await ae.commands.getAll();for(let I of O)I.name&&I.shortcut&&(a[I.name]=I.shortcut)}let i=await _p(),o=Sy(),s=await un(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Yt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let O=await nD();d.interfaceLanguage=O}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await wi("translage_page_daily",0)),w=Number(await Ut(lr,0)),A;w>0&&(Date.now()-w0&&(Date.now()-C0){let O=l.tempTranslationUrlMatches.filter(I=>new Date(I.expiredAt)>c);if(O.length>0){let I=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(I)?I:[I],W=Array.from(new Set(j.concat(O.map(ne=>ne.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:W}}}let P=Object.assign(i,t);jr({rule:t,valueIsArray:O=>Array.isArray(i[O]),getMergedValue:O=>i[O],onMergedResult:(O,I)=>{O!="generalRule"&&(P[O]=I)}}),jr({rule:t.generalRule,valueIsArray:O=>Array.isArray(i.generalRule[O]),getMergedValue:O=>i.generalRule[O],onMergedResult:(O,I)=>{P.generalRule[O]=I}}),sD(P,T),iD(r,d,P);let _=Object.keys(P),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let O of _){let I=O;if(I==="generalRule")typeof d[I]=="object"&&(P[I]=Rc(P[I],d[I]));else if(I==="translationServices")oD(d,P);else if(typeof d[I]!="string"&&typeof d[I]!="boolean"&&typeof d[I]!="number"&&L.includes(I))d[I]&&(P[I]=Object.assign(P[I],d[I])),I==="shortcuts"&&(te()||at()?P[I]={...P[I],...a}:P[I]={...a});else if(I==="rules"){if(Array.isArray(d[I])){let j=P.rules||[],W={};for(let Ee of j)Ee.id&&(W[Ee.id]=Ee);let ne=d[I].map(Ee=>Ee.id&&W[Ee.id]?dy(P.generalRule,W[Ee.id],Ee):Ee);P[I]=[...ne,...P[I]]}if(de.PROD==="0"&&de.DEV_RULES){let j=JSON.parse(de.DEV_RULES);P[I]=[...j,...P[I]]}}else d[I]!==void 0&&(P[I]=d[I])}return P.donateUrl=t.donateUrl,P.minVersion=t.minVersion,P.feedbackUrl=t.feedbackUrl,P.rawUserConfig=s,P}function un(){return Ic()}function Gr(e){return gy(e)}async function yy(e,t){await ae.storage.sync.set({[e]:t})}async function vy(e){return(await ae.storage.sync.get(e))[e]}async function Dr(e,t){await ae.storage.local.set({[e]:t})}async function Pi(e){return(await ae.storage.local.get(e))[e]}var wy={};function Oc(e){return wy[e]}function Ey(e,t){wy[e]=t}var nD=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>t2.find(a=>a===r));return n||"en"},_p=async()=>{let e={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};return{...e,targetLanguage:Pa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function rD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function aD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Pa;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=xy(l,r[s]))}),jr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=xy(l,n[s]))}),jr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function sD(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function xy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Ga(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function uD(e,t){return e<>>32-t}function jc(e,t,n,r,a,i){return Ga(uD(Ga(Ga(t,e),Ga(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return jc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return jc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return jc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return jc(n^(t|~r),e,t,a,i,o)}function Nc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Op(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Nc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Nc(a.concat(Op(t)),512+t.length*8),Ay(Nc(i.concat(o),512+128))}function ky(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Np(e){return unescape(encodeURIComponent(e))}function Dy(e){return lD(Np(e))}function dD(e){return ky(Dy(e))}function Ly(e,t){return cD(Np(e),Np(t))}function mD(e,t){return ky(Ly(e,t))}function tr(e,t,n){return t?n?Ly(t,e):mD(t,e):n?Dy(e):dD(e)}var Do=[],KG=1e3*3600*24;async function Uc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function My(e){let t=`${R}-${e.service}@${e.from}->${e.to}`;return await fD(t,{...e,createAt:new Date().getTime()})}async function Py(e){let t=tr(e.originalText),n=`${R}-${e.service}@${e.from}->${e.to}`;return await gD(n,t)}async function gD(e,t){let n=await Uc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function fD(e,t){let n=await Uc(e);return(await Ry()).includes(e)||await hD(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function hD(e){let t="cache_list",n=await Uc(R+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Do.push(e)},a.onerror=i=>{n.close()}}async function Ry(){if(Do&&Do.length>0)return Do;let e=await Uc(R+"-cacheList","cache_list");return Do=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Do}async function Fy(){try{let t=(await Ry()).map(r=>bD(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function bD(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Hc="Original";function Ye(){return Hc}function Bn(e){Hc=e,Iy(Hc);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:Hc})});document.dispatchEvent(t)}var By="Original";function Lo(){return By}function mr(e,t){if(t)return;By=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var Oy="auto",qc="auto",_y="auto";function Ny(e){Oy=e}function nr(e){qc=e}function mt(){return qc!=="auto"?qc:_y!=="auto"?_y:Oy}function zc(){return qc}function Ri(e){return e?.id?.endsWith("pdfWebPage")||!1}function Fi(e){try{if(!e||!Ri(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var Oe={},Kr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Oe.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await Oe.updateContextState(r);let a=await Oe.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Oe.translateTheWholePage(r),it(lr,i);else if(n==="translateTheMainPage")await Oe.translateTheMainPage(r),it(lr,i);else if(n==="translateToThePageEndImmediately")await Oe.translateToThePageEndImmediately(r),it(lr,i);else if(n==="toggleTranslateManga")await Oe.toggleTranslateManga(),it(lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ri(a?.rule)){let s=Fi(a.rule);Mo(!0,s||o);return}await Oe.toggleTranslatePage(r),it(lr,i)}else if(n==="toggleTranslateTheWholePage")await Oe.toggleTranslateTheWholePage(r),it(lr,i);else if(n==="toggleTranslateTheMainPage")await Oe.toggleTranslateTheMainPage(r),it(lr,i);else if(n==="toggleOnlyTransation")await Oe.ensureSwitchTranslationMode(r),it(lr,i);else if(n=="toggleEnableEditTranslation")Oe.toggleEnableEditTranslation();else if(n==="translatePage")await Oe.translatePage(a,r),it(lr,i);else if(n==="toggleTranslationMask")await Oe.toggleTranslationMask(r);else if(n==="restorePage")Oe.restorePage();else if(n==="retryFailedParagraphs")Oe.retryFailedParagraphs();else if(n=="change_translate_service")Oe.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Oe.switchTranslationMode(r.mode),await Oe.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Oe.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Dl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Oe.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await Oe.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Oe.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Oe.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Oe.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Oe.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Oe.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Oe.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Oe.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Oe.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ve()||await Oe.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ve())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await Oe.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Oe.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Oe.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(bi,{detail:{type:"webReport"}})):n===O3&&await Oe.translateSelectImage(a,r)}};function jy(e){Object.assign(Oe,e)}function Uy(e){Object.assign(Oe,e)}function Hy(e){Object.assign(Oe,e)}var yD=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=mt();return Oe.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return nr(r),mt();if(n==="getContextString"){let a=Oe.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Oe.getPureGlobalContext();return Fi(a?.rule)}}},Wc,Gc;function qy(){let e=Kc();Ve()||vD(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Kc(){return Wc||(Wc=new Ra("content_script",!1).getConnection("main",Kr),Wc)}function vD(){return Gc||(Gc=new Ra("content_script",!1).getConnection("main_sync",yD,{sync:!0}),Gc)}var jp=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Vc="https://transmart.qq.com/api/imt",fa=class e{static langMapReverse=new Map(jp.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await V({url:Vc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function xD(e,t){return Math.floor(Math.random()*(t-e+1))+e}var SD=30,Up="RATE_LIMITER_TICKS",Po=class e{static strictTicks={};static clearStrictTicks(){Dr(Up,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Pi(Up)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Dr(Up,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=xD(4,SD);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await Kc().sendMessage("background:main",e)}function V(e){return sl()?Jl({method:"request",data:e}):te()||ol()?(e.fetchPolyfill=globalThis.GM_fetch,Ai(e)):lt({method:"fetch",data:e})}function xn(){return te()?qt():lt({method:"getConfig"})}function Wt(e){return te()?Gr(e):lt({method:"setUserConfig",data:e})}function Pt(){return te()?un():lt({method:"getUserConfig"})}function In(){return te()?Yt():lt({method:"getLocalConfig"})}function ha(e){return te()?zt(e):lt({method:"setLocalConfig",data:e})}function zy(e){return te()?Ty(e):lt({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Vl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||at()){if(e.translateService&&!dc.includes(e.translateService))return Promise.resolve("auto");let r=K1(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function Wy(){return lt({method:"detectTabLanguage"})}async function Yc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(te()||at()){let n=e.substring(0,200);t=await fa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function Iy(e){let t=new CustomEvent(yi,{detail:e});if(document.dispatchEvent(t),te())return;Kc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Gy(e){return te()?Py(e):lt({method:"queryParagraphCache",data:e})}async function Ky(e){if(te()){await My(e);return}return lt({method:"setParagraphCache",data:e})}async function Vy(){if(te())return Promise.resolve();await lt({method:"mockRequest"})}function Ka(e=!1,t=""){return document.querySelector(`meta[name=${R}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(ae.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Va(e=""){return te()||at()?Le().OPTIONS_URL:ae.runtime.getURL("options.html")}function Yy(e=""){return ae&&ae.runtime&&ae.runtime.getURL?ae.runtime.getURL("options.html"):""}function Qc(e=!1){return te()?(ae.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Wr(e){return te()?(ae.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function Qy(e=!1){return te()?(ae.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Jy(e=!1){return te()?(ae.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Jc(e){at()}function Mo(e=!1,t){return te()?(ae.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function Zy(e=!1){return te()?(ae.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function ou(e){return te()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function Xy(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function Zc(e,t=!1){return te()?ae.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function $y(e,t){return te()||de.MOCK==="1"?Po.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function e9(){return te()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function t9(){return te()?!1:lt({method:"getIsOnToolbar"})}async function Hp(){if(!te())return lt({method:"updateVideoSubtitleStatus"})}function Bi({targetLanguage:e,text:t}){te()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function iu(){te()||lt({method:"updateImageMenu"})}async function n9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",qp(t),"AES-GCM",!0,["encrypt","decrypt"]),a=qp(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:qp(n)},r,a);return TD(i)}catch{return Promise.reject("Encryption failed")}}function TD(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=_.params||{};if(B.os&&(L.os_name=B.os.name||"unknown",L.os_version=B.os.version||"unknown",L.os_version_name=B.os.versionName||"unknown"),B.browser&&(L.browser_name=B.browser.name||"unknown",L.browser_version=B.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),B.platform&&(L.platform_type=B.platform.type||"unknown"),B.engine&&(L.engine_name=B.engine.name||"unknown",L.engine_version=B.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let I=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),I&&(I.provider&&(L.translation_service_provider=I.provider),n.translationService==="openai"&&I.provider==="custom"&&(I.apiUrl?I.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),I.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=ac(y);let I=oc(y);L.install_week=`${I.year}${I.week}`}if(n.user){let I=Y1(n.user);I&&Object.keys(I).forEach(j=>{L[j]=I[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let O="html";if(n.rule.pageType&&(O=n.rule.pageType),L.page_type=O,s?L.main_frame=0:L.main_frame=1,!c){let I=n.url;try{let j=new URL(I);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{..._,params:L}});if(i)return;M.forEach(async _=>{let L=await V({responseType:"text",url:_,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&CD(p,P),n.config.enablePerformanceReport&&AD(n,P)}catch(r){k.debug("report error",r)}}function CD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r9(r);let a=Date.now()+(Math.random()*100).toFixed(0);V({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var wD=Date.now(),ED=["translate_page","translate_video_subtitle"];function AD(e,t){try{t.forEach(async n=>{if(!ED.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};r9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-wD},s=await n9(JSON.stringify(o),g1,f1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);V({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function r9(e){return e?.install_day&&(e.install_day=ic(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ya(e){return e!=null}function o9(e,t,n){return`${e.type}#${t}#${n}`}function s9(e,t,n,r,a){return{body:a,id:r,type:o9(e,t,n)}}function kD(e,t,n,r){return{id:n,response:r,type:o9(e,"ask",t)}}function u9(e,t,n,r){if(Ya(r)){let a=r.type;if(Ya(a)&&Ya(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function DD(e,t,n){if(Ya(n)){let r=n.type;if(Ya(r)&&Ya(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function LD(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function MD(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;DD(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function PD(e,t,n,r){let a=i=>{let o=i.data;u9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function a9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(u9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(kD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function RD(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(s9(t,"tell",n,i,r),a)}async function i9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await MD(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(s9(n,"ask",r,s,a),i),u}var Qa=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;a9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ya(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await i9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(PD(this.thisWindow,this.protocol,t,n))}tell(t,n){RD(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(a9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return i9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){LD(this.listeners)}};var l9;async function c9(){if(Ve()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qa.iframe(_l,"*",{targetWindow:t});l9=n,await Qa.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function d9(){return l9}function m9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=rb(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=V3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Hr(this.serviceConfig);if(f.tempSentences.forEach((I,j)=>{let W=Dp({text:I.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);I.force!==!0&&(W&&W.text&&W.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:I,from:T,to:f.to})}let M="";w&&w.length>=2?M=A.map((I,j)=>{let{item:W}=I;return j===A.length-1?W.text:W.text+w[0]+(j+1)+w[1]}).join(""):M=A.map(({item:I})=>I.text).join(C);let B=await this.translate({text:M,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:P}=B,_=[];if(w&&w.length>=2){let I=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(I=w[2]);let j=new RegExp(I,"g");_=P.split(j)}else _=P.split(C);let L=[];if(_.length>A.length){for(let I=0;II.text);return D=Hr(this.serviceConfig,!0),L.forEach((I,j)=>{let W=A[j],ne=W.index,Ee=W.variables||{};Object.keys(Ee).length>0&&(I=Lp({text:I,delimiters:D,variables:Ee},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),O[ne]=I}),{sourceTempSentences:f.tempSentences,text:O,from:B.from,to:B.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let A=0;A{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Hr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Dp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Hr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Lp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[mt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Ro="input is invalid type",zp=typeof window=="object",Ja=zp?window:{};Ja.JS_SHA256_NO_WINDOW&&(zp=!1);var FD=!zp&&typeof self=="object",BD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;BD?Ja=global:FD&&(Ja=self);var zV=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,WV=typeof define=="function"&&define.amd,su=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),ID=[-2147483648,8388608,32768,128],Lr=[24,16,8,0],Xc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$c=["hex","array","digest","arrayBuffer"],rn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});su&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var p9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},f9=function(e){var t=p9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=p9(r,e)}return t},g9=function(e,t){return function(n,r){return new e0(n,t,!0).update(r)[e]()}},h9=function(e){var t=g9("hex",e);t.create=function(a){return new e0(a,e)},t.update=function(a,i){return t.create(a).update(i)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=g9(r,e)}return t};function an(e,t){t?(rn[0]=rn[16]=rn[1]=rn[2]=rn[3]=rn[4]=rn[5]=rn[6]=rn[7]=rn[8]=rn[9]=rn[10]=rn[11]=rn[12]=rn[13]=rn[14]=rn[15]=0,this.blocks=rn):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}an.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);t=!0}for(var r,a=0,i,o=e.length,s=this.blocks;a>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=ID[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+Xc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Xc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Xc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+Xc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(u+=le[s>>28&15]+le[s>>24&15]+le[s>>20&15]+le[s>>16&15]+le[s>>12&15]+le[s>>8&15]+le[s>>4&15]+le[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function e0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}e0.prototype=new an;e0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var Fo=f9();Fo.sha256=Fo;Fo.sha224=f9(!0);Fo.sha256.hmac=h9();Fo.sha224.hmac=h9(!0);var b9=Fo;var y9=b9.sha256;function jn(e){return Promise.resolve(y9(e))}function Bo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rr(e,t){let n=y9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function v9(e,t){let n=await rr(e,t);return Bo(n)}async function t0(e,t){let n=_D(t),r=await rr(e,n);return Bo(r)}function _D(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var x9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],uu=class e extends Ae{static langMap=new Map(x9);maxTextGroupLength=50;static langMapReverse=new Map(x9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await jn(a)].join(` -`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await jn(c)].join(` -`),p=await v9(d,`TC3${n}`),g=await t0(i,p),h=await t0("tc3_request",g),b=await t0(m,h),f=await V({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var S9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],OD={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},lu=class e extends Ae{static langMap=new Map(S9);static langMapReverse=new Map(S9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await V({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:OD,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var T9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],cu=class e extends Ae{static langMap=new Map(T9);static langMapReverse=new Map(T9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await V({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function ND(e,t){return t?e+(t-e%t):e}function jD(e,t){return e.split(t).length-1}function Wp(e){let t=Date.now(),n=1;for(let r of e)n+=jD(r,"i");return ND(t,n)}function UD(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Gp(){return UD(1e6,1e8)}var Kp="https://www2.deepl.com/jsonrpc",Vp="auto",C9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function HD(e=C9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Yp(e){return HD()[e.toLowerCase()]}var qD={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function zD(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function WD(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function GD(e,t,n,r,a,i,o){let s=Gp(),u=WD(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Wp(t);let c=await V({retry:2,method:"POST",url:e,body:zD(u),headers:qD}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function w9(e,t,n,r=Vp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:GD(e,t,Yp(n),Yp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var E9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Io=class e extends Ae{static langMap=new Map(E9);static langMapReverse=new Map(E9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Kp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=vt(Kp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await w9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var du=class e extends Ae{static langMap=new Map(jp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=fa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Le(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=A9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await V({url:Vc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Le(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=A9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await V({url:Vc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function A9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Qp(){return Math.random()>=.001}var _o=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Vy(),!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var D9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Jp=new Map(D9),k9=new Map(D9.map(([e,t])=>[t,e])),Zp=class e extends Ae{static langMap=Jp;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await V({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Jp.get(r)||"auto",target_lang:Jp.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:k9.get(o.source_lang),to:k9.get(o.target_lang)}}else throw new U(i.msg)}},n0=Zp;var Xp="https://{s}bing.com",F9=Xp+"/translator",KD=Xp+"/ttranslatev3",VD=Xp+"/tspellcheckv3",r0="bingGlobalConfig",B9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],L9=new Map(B9),M9=new Map(B9.map(([e,t])=>[t,e])),P9=1e3,Mr,Oo;function $p(e,t){return e.replace("{s}",t?t+".":"")}async function YD(){if(!Mr){let n=await ae.storage.local.get(r0);return n&&(Mr=n[r0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Mr;return Date.now()-e>t}async function R9(){let e,t,n,r,a,i,o,s,u,l;try{let c=$p(F9,e),d=await V({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Mr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ae.storage.local.set({[r0]:Mr}),Mr}function QD(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Mr;return $p(e?VD:KD,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Mr.count++:"")}function JD(e,t,n,r){let{token:a,key:i}=Mr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function I9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>P9)throw new Error(`The supported maximum length of text is ${P9}. Please shorten the text.`);Oo||(Oo=R9()),await Oo,await YD()&&(Oo=R9(),await Oo),t=t||"auto",n=n||"zh-CN",t=L9.get(t)||t,n=L9.get(n)||n;let a=QD(!1),i=JD(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:$p(F9,Mr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await V({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Mr=null,Oo=null,await ae.storage.local.remove(r0),c.ShowCaptcha)throw new Error(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function zk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ob(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Tc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Ap(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),jr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function To(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Vb(e,t){let n=t||e.translationService;return To(e,n,e.config.translationServices)?Ap(e.rule):e.rule}function Cc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var Wk=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ur(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!Wk.includes(n.display):tr(e,r)}}var Et=tr;function Di(e){return!!e.shadowRoot}function Ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function nu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Hr(e,t=!1){let n=ro;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function ki(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Hr(n,t)}function Co(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function kp(e){let{rule:t}=e,n=Gk(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function Gk(e){let t=e.config.loadingTheme;return`${R}-loading-${t}`}function ru(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Dt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,z3,t.toString());let i=kp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function wo(e,t){return e.querySelector(`[${Mm}='${t}']`)}function Kb(){document.querySelectorAll(`[${Mm}]`).forEach(t=>{t.remove()})}function Yb(){document.querySelectorAll(`.${Dt}-error`).forEach(t=>{t.remove()})}function Qb(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{_a(n)&&t.push(n)}),t}function Dp(e,t){return t?Vk(e):Kk(e)}function Vk(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Jb(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=mp(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function Kk(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Jb(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=mp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Lp(e,t){return t?Yk(e):Qk(e)}function Yk(e){let{text:t,variables:n}=e,r=Cc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function Qk(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Jb(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Eo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Q2(l)||G2(l)||Y2(l)||V2(l)||K2(l)||Zk(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:fo(i?.trim(),n,r)}function Li(e){return e.nodeType===Node.ELEMENT_NODE}function Zb(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function kr(){return await Ut("fakeUserId","")}async function Jk(){return await Ut("installedAt","")}async function Ao(e,t){let r=Le().INSTALL_FROM,a=Ht(),i=await Jk(),o=await kr(),s=await qt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await mo(),m=await go(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await po();return g&&(p.abGroup=g),p}function au(e,t){let[n,r]=G();return $(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!at()&&te()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=Xk(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function Xk(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function $b(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function ey(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{wc[e]=setTimeout(()=>{n("")},t)})}function ny(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ha(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Ac(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Mi(){return tp()?"imtAndroid":Hs()?"imtIOS":te()?"userscript":at()?"safari":Sr()?"firefox":D1()?"chrome":"other"}function qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function kc(e){return e?.getAttribute("imt-state")||""}function zr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Dc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function ry(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function za(e){if(e.beta)return!1;if(at()&&e.spVersion)return qa(js(),e.spVersion);if(d2()&&e.gspVersion){let t=m2();if(t)return qa(t,e.gspVersion)}if(Hs()&&e.ispVersion){let t=c2();if(t)return qa(t,e.ispVersion)}return!1}function qa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Rp(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),iu())}async function ay(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),$k(a.toString())}function $k(e){try{at()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function iy(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function oy(e){return ft(e)}function Lc(e){return Array.isArray(e)?e:e?[e]:[]}function Mc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Pc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function sy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Rc(e,t){let n={...e};return my(n,t),eD(n,t),n}function dy(e,t,n){let r={...e};return jr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),jr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function eD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;my(e,a)}function jr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=uy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=uy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Lc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!ly(u))return;d=Fp(c,l)}else if(s=="remove_v"){if(!ly(u))return;d=cy(c,l)}else s==="add"?d=Fp(c,l):s=="remove"&&(d=cy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Fp(c,l):d=l,r(o,d)})}function my(e,t){return jr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Fp(e,t){let n;if(Array.isArray(e)){let r=Lc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function uy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function ly(e){let t=Ht();return e&&qa(t,e)}function cy(e,t){if(Array.isArray(e)){let n=Lc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var py="userConfig",Fc="userPromptPool",Bc="userObjectPool";async function Ic(){let e=await vy(py)||{},t=await Pi(Fc)||{},n=await Pi(Bc)||{};return tD(e,t,n)}async function gy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Bp(e);await yy(py,t),await Dr(Fc,n),await Dr(Bc,r)}function Bp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return fy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),hy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function tD(e,t,n){return fy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),hy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function fy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function hy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Wa(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=by(r);for(let o of i)delete a[o]}),n}function Ip(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=by(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function by(e){let t=Ar[e]?.allProps||[];e.startsWith("custom-ai")&&(t=bo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Sy(){if(de.PROD==="1")return{};let e={};if(de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(de.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=de.DEEPL_PROXY_ENDPOINT),de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}de.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=de.IMMERSIVE_TRANSLATE_SERVICE);let t={};return de.DEBUG==="1"&&(t.debug=!0,t.cache=!1),de.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await ae.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ae.storage.local.set({[As]:e})}async function Ty(e){await ae.storage.local.set({[Ml]:e})}async function Cy(){return de.DEBUG==="1"?void 0:(await ae.storage.local.get(Ml))[Ml]}async function _c(){let e=await Cy(),n={...await _p(),...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function qt(){let e=await Cy(),t={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let O=new Date(e.buildinConfigUpdatedAt),I=new Date(t.buildinConfigUpdatedAt);O>I&&(t=e)}let n=await aD(t);t.targetLanguage=n;let r=await dt.get(ct,null),a={};if(!te()&&ae.commands&&ae.commands.getAll){let O=await ae.commands.getAll();for(let I of O)I.name&&I.shortcut&&(a[I.name]=I.shortcut)}let i=await _p(),o=Sy(),s=await un(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Yt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let O=await nD();d.interfaceLanguage=O}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await wi("translage_page_daily",0)),w=Number(await Ut(cr,0)),A;w>0&&(Date.now()-w0&&(Date.now()-C0){let O=l.tempTranslationUrlMatches.filter(I=>new Date(I.expiredAt)>c);if(O.length>0){let I=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(I)?I:[I],W=Array.from(new Set(j.concat(O.map(ne=>ne.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:W}}}let P=Object.assign(i,t);jr({rule:t,valueIsArray:O=>Array.isArray(i[O]),getMergedValue:O=>i[O],onMergedResult:(O,I)=>{O!="generalRule"&&(P[O]=I)}}),jr({rule:t.generalRule,valueIsArray:O=>Array.isArray(i.generalRule[O]),getMergedValue:O=>i.generalRule[O],onMergedResult:(O,I)=>{P.generalRule[O]=I}}),sD(P,T),iD(r,d,P);let _=Object.keys(P),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let O of _){let I=O;if(I==="generalRule")typeof d[I]=="object"&&(P[I]=Rc(P[I],d[I]));else if(I==="translationServices")oD(d,P);else if(typeof d[I]!="string"&&typeof d[I]!="boolean"&&typeof d[I]!="number"&&L.includes(I))d[I]&&(P[I]=Object.assign(P[I],d[I])),I==="shortcuts"&&(te()||at()?P[I]={...P[I],...a}:P[I]={...a});else if(I==="rules"){if(Array.isArray(d[I])){let j=P.rules||[],W={};for(let Ee of j)Ee.id&&(W[Ee.id]=Ee);let ne=d[I].map(Ee=>Ee.id&&W[Ee.id]?dy(P.generalRule,W[Ee.id],Ee):Ee);P[I]=[...ne,...P[I]]}if(de.PROD==="0"&&de.DEV_RULES){let j=JSON.parse(de.DEV_RULES);P[I]=[...j,...P[I]]}}else d[I]!==void 0&&(P[I]=d[I])}return P.donateUrl=t.donateUrl,P.minVersion=t.minVersion,P.feedbackUrl=t.feedbackUrl,P.rawUserConfig=s,P}function un(){return Ic()}function Gr(e){return gy(e)}async function yy(e,t){await ae.storage.sync.set({[e]:t})}async function vy(e){return(await ae.storage.sync.get(e))[e]}async function Dr(e,t){await ae.storage.local.set({[e]:t})}async function Pi(e){return(await ae.storage.local.get(e))[e]}var wy={};function Oc(e){return wy[e]}function Ey(e,t){wy[e]=t}var nD=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>t2.find(a=>a===r));return n||"en"},_p=async()=>{let e={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};return{...e,targetLanguage:Pa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function rD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function aD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Pa;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=xy(l,r[s]))}),jr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=xy(l,n[s]))}),jr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function sD(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function xy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Ga(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function uD(e,t){return e<>>32-t}function jc(e,t,n,r,a,i){return Ga(uD(Ga(Ga(t,e),Ga(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return jc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return jc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return jc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return jc(n^(t|~r),e,t,a,i,o)}function Nc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Op(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Nc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Nc(a.concat(Op(t)),512+t.length*8),Ay(Nc(i.concat(o),512+128))}function ky(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Np(e){return unescape(encodeURIComponent(e))}function Dy(e){return lD(Np(e))}function dD(e){return ky(Dy(e))}function Ly(e,t){return cD(Np(e),Np(t))}function mD(e,t){return ky(Ly(e,t))}function nr(e,t,n){return t?n?Ly(t,e):mD(t,e):n?Dy(e):dD(e)}var Do=[],VG=1e3*3600*24;async function Uc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function My(e){let t=`${R}-${e.service}@${e.from}->${e.to}`;return await fD(t,{...e,createAt:new Date().getTime()})}async function Py(e){let t=nr(e.originalText),n=`${R}-${e.service}@${e.from}->${e.to}`;return await gD(n,t)}async function gD(e,t){let n=await Uc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function fD(e,t){let n=await Uc(e);return(await Ry()).includes(e)||await hD(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function hD(e){let t="cache_list",n=await Uc(R+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Do.push(e)},a.onerror=i=>{n.close()}}async function Ry(){if(Do&&Do.length>0)return Do;let e=await Uc(R+"-cacheList","cache_list");return Do=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Do}async function Fy(){try{let t=(await Ry()).map(r=>bD(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function bD(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Hc="Original";function Ye(){return Hc}function Bn(e){Hc=e,Iy(Hc);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:Hc})});document.dispatchEvent(t)}var By="Original";function Lo(){return By}function mr(e,t){if(t)return;By=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var Oy="auto",qc="auto",_y="auto";function Ny(e){Oy=e}function rr(e){qc=e}function mt(){return qc!=="auto"?qc:_y!=="auto"?_y:Oy}function zc(){return qc}function Ri(e){return e?.id?.endsWith("pdfWebPage")||!1}function Fi(e){try{if(!e||!Ri(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var Oe={},Vr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Oe.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await Oe.updateContextState(r);let a=await Oe.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Oe.translateTheWholePage(r),it(cr,i);else if(n==="translateTheMainPage")await Oe.translateTheMainPage(r),it(cr,i);else if(n==="translateToThePageEndImmediately")await Oe.translateToThePageEndImmediately(r),it(cr,i);else if(n==="toggleTranslateManga")await Oe.toggleTranslateManga(),it(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ri(a?.rule)){let s=Fi(a.rule);Mo(!0,s||o);return}await Oe.toggleTranslatePage(r),it(cr,i)}else if(n==="toggleTranslateTheWholePage")await Oe.toggleTranslateTheWholePage(r),it(cr,i);else if(n==="toggleTranslateTheMainPage")await Oe.toggleTranslateTheMainPage(r),it(cr,i);else if(n==="toggleOnlyTransation")await Oe.ensureSwitchTranslationMode(r),it(cr,i);else if(n=="toggleEnableEditTranslation")Oe.toggleEnableEditTranslation();else if(n==="translatePage")await Oe.translatePage(a,r),it(cr,i);else if(n==="toggleTranslationMask")await Oe.toggleTranslationMask(r);else if(n==="restorePage")Oe.restorePage();else if(n==="retryFailedParagraphs")Oe.retryFailedParagraphs();else if(n=="change_translate_service")Oe.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Oe.switchTranslationMode(r.mode),await Oe.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Oe.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Dl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Oe.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await Oe.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Oe.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Oe.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Oe.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Oe.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Oe.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Oe.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Oe.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Oe.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ke()||await Oe.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ke())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await Oe.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Oe.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Oe.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(bi,{detail:{type:"webReport"}})):n===O3&&await Oe.translateSelectImage(a,r)}};function jy(e){Object.assign(Oe,e)}function Uy(e){Object.assign(Oe,e)}function Hy(e){Object.assign(Oe,e)}var yD=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=mt();return Oe.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return rr(r),mt();if(n==="getContextString"){let a=Oe.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Oe.getPureGlobalContext();return Fi(a?.rule)}}},Wc,Gc;function qy(){let e=Vc();Ke()||vD(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Vc(){return Wc||(Wc=new Ra("content_script",!1).getConnection("main",Vr),Wc)}function vD(){return Gc||(Gc=new Ra("content_script",!1).getConnection("main_sync",yD,{sync:!0}),Gc)}var jp=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Kc="https://transmart.qq.com/api/imt",fa=class e{static langMapReverse=new Map(jp.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await K({url:Kc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function xD(e,t){return Math.floor(Math.random()*(t-e+1))+e}var SD=30,Up="RATE_LIMITER_TICKS",Po=class e{static strictTicks={};static clearStrictTicks(){Dr(Up,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Pi(Up)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Dr(Up,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=xD(4,SD);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await Vc().sendMessage("background:main",e)}function K(e){return sl()?Jl({method:"request",data:e}):te()||ol()?(e.fetchPolyfill=globalThis.GM_fetch,Ai(e)):lt({method:"fetch",data:e})}function xn(){return te()?qt():lt({method:"getConfig"})}function Wt(e){return te()?Gr(e):lt({method:"setUserConfig",data:e})}function Pt(){return te()?un():lt({method:"getUserConfig"})}function In(){return te()?Yt():lt({method:"getLocalConfig"})}function ha(e){return te()?zt(e):lt({method:"setLocalConfig",data:e})}function zy(e){return te()?Ty(e):lt({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Kl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||at()){if(e.translateService&&!dc.includes(e.translateService))return Promise.resolve("auto");let r=V1(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function Wy(){return lt({method:"detectTabLanguage"})}async function Yc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(te()||at()){let n=e.substring(0,200);t=await fa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function Iy(e){let t=new CustomEvent(yi,{detail:e});if(document.dispatchEvent(t),te())return;Vc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Gy(e){return te()?Py(e):lt({method:"queryParagraphCache",data:e})}async function Vy(e){if(te()){await My(e);return}return lt({method:"setParagraphCache",data:e})}async function Ky(){if(te())return Promise.resolve();await lt({method:"mockRequest"})}function Va(e=!1,t=""){return document.querySelector(`meta[name=${R}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(ae.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Ka(e=""){return te()||at()?Le().OPTIONS_URL:ae.runtime.getURL("options.html")}function Yy(e=""){return ae&&ae.runtime&&ae.runtime.getURL?ae.runtime.getURL("options.html"):""}function Qc(e=!1){return te()?(ae.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Wr(e){return te()?(ae.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function Qy(e=!1){return te()?(ae.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Jy(e=!1){return te()?(ae.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Jc(e){at()}function Mo(e=!1,t){return te()?(ae.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function Zy(e=!1){return te()?(ae.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function ou(e){return te()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function Xy(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function Zc(e,t=!1){return te()?ae.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function $y(e,t){return te()||de.MOCK==="1"?Po.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function e9(){return te()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function t9(){return te()?!1:lt({method:"getIsOnToolbar"})}async function Hp(){if(!te())return lt({method:"updateVideoSubtitleStatus"})}function Bi({targetLanguage:e,text:t}){te()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function iu(){te()||lt({method:"updateImageMenu"})}async function n9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",qp(t),"AES-GCM",!0,["encrypt","decrypt"]),a=qp(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:qp(n)},r,a);return TD(i)}catch{return Promise.reject("Encryption failed")}}function TD(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=_.params||{};if(B.os&&(L.os_name=B.os.name||"unknown",L.os_version=B.os.version||"unknown",L.os_version_name=B.os.versionName||"unknown"),B.browser&&(L.browser_name=B.browser.name||"unknown",L.browser_version=B.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),B.platform&&(L.platform_type=B.platform.type||"unknown"),B.engine&&(L.engine_name=B.engine.name||"unknown",L.engine_version=B.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let I=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),I&&(I.provider&&(L.translation_service_provider=I.provider),n.translationService==="openai"&&I.provider==="custom"&&(I.apiUrl?I.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),I.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=ac(y);let I=oc(y);L.install_week=`${I.year}${I.week}`}if(n.user){let I=Y1(n.user);I&&Object.keys(I).forEach(j=>{L[j]=I[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let O="html";if(n.rule.pageType&&(O=n.rule.pageType),L.page_type=O,s?L.main_frame=0:L.main_frame=1,!c){let I=n.url;try{let j=new URL(I);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{..._,params:L}});if(i)return;M.forEach(async _=>{let L=await K({responseType:"text",url:_,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&CD(p,P),n.config.enablePerformanceReport&&AD(n,P)}catch(r){k.debug("report error",r)}}function CD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var wD=Date.now(),ED=["translate_page","translate_video_subtitle"];function AD(e,t){try{t.forEach(async n=>{if(!ED.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};r9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-wD},s=await n9(JSON.stringify(o),g1,f1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function r9(e){return e?.install_day&&(e.install_day=ic(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ya(e){return e!=null}function o9(e,t,n){return`${e.type}#${t}#${n}`}function s9(e,t,n,r,a){return{body:a,id:r,type:o9(e,t,n)}}function kD(e,t,n,r){return{id:n,response:r,type:o9(e,"ask",t)}}function u9(e,t,n,r){if(Ya(r)){let a=r.type;if(Ya(a)&&Ya(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function DD(e,t,n){if(Ya(n)){let r=n.type;if(Ya(r)&&Ya(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function LD(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function MD(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;DD(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function PD(e,t,n,r){let a=i=>{let o=i.data;u9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function a9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(u9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(kD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function RD(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(s9(t,"tell",n,i,r),a)}async function i9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await MD(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(s9(n,"ask",r,s,a),i),u}var Qa=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;a9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ya(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await i9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(PD(this.thisWindow,this.protocol,t,n))}tell(t,n){RD(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(a9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return i9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){LD(this.listeners)}};var l9;async function c9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qa.iframe(_l,"*",{targetWindow:t});l9=n,await Qa.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function d9(){return l9}function m9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=rb(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=K3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Hr(this.serviceConfig);if(f.tempSentences.forEach((I,j)=>{let W=Dp({text:I.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);I.force!==!0&&(W&&W.text&&W.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:I,from:T,to:f.to})}let M="";w&&w.length>=2?M=A.map((I,j)=>{let{item:W}=I;return j===A.length-1?W.text:W.text+w[0]+(j+1)+w[1]}).join(""):M=A.map(({item:I})=>I.text).join(C);let B=await this.translate({text:M,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:P}=B,_=[];if(w&&w.length>=2){let I=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(I=w[2]);let j=new RegExp(I,"g");_=P.split(j)}else _=P.split(C);let L=[];if(_.length>A.length){for(let I=0;II.text);return D=Hr(this.serviceConfig,!0),L.forEach((I,j)=>{let W=A[j],ne=W.index,Ee=W.variables||{};Object.keys(Ee).length>0&&(I=Lp({text:I,delimiters:D,variables:Ee},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),O[ne]=I}),{sourceTempSentences:f.tempSentences,text:O,from:B.from,to:B.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let A=0;A{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Hr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Dp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Hr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Lp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[mt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Ro="input is invalid type",zp=typeof window=="object",Ja=zp?window:{};Ja.JS_SHA256_NO_WINDOW&&(zp=!1);var FD=!zp&&typeof self=="object",BD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;BD?Ja=global:FD&&(Ja=self);var zK=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,WK=typeof define=="function"&&define.amd,su=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),ID=[-2147483648,8388608,32768,128],Lr=[24,16,8,0],Xc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$c=["hex","array","digest","arrayBuffer"],rn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});su&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var p9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},f9=function(e){var t=p9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=p9(r,e)}return t},g9=function(e,t){return function(n,r){return new e0(n,t,!0).update(r)[e]()}},h9=function(e){var t=g9("hex",e);t.create=function(a){return new e0(a,e)},t.update=function(a,i){return t.create(a).update(i)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=g9(r,e)}return t};function an(e,t){t?(rn[0]=rn[16]=rn[1]=rn[2]=rn[3]=rn[4]=rn[5]=rn[6]=rn[7]=rn[8]=rn[9]=rn[10]=rn[11]=rn[12]=rn[13]=rn[14]=rn[15]=0,this.blocks=rn):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}an.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);t=!0}for(var r,a=0,i,o=e.length,s=this.blocks;a>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=ID[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+Xc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Xc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Xc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+Xc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(u+=le[s>>28&15]+le[s>>24&15]+le[s>>20&15]+le[s>>16&15]+le[s>>12&15]+le[s>>8&15]+le[s>>4&15]+le[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function e0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}e0.prototype=new an;e0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var Fo=f9();Fo.sha256=Fo;Fo.sha224=f9(!0);Fo.sha256.hmac=h9();Fo.sha224.hmac=h9(!0);var b9=Fo;var y9=b9.sha256;function Un(e){return Promise.resolve(y9(e))}function Bo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=y9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function v9(e,t){let n=await ar(e,t);return Bo(n)}async function t0(e,t){let n=_D(t),r=await ar(e,n);return Bo(r)}function _D(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var x9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],uu=class e extends Ae{static langMap=new Map(x9);maxTextGroupLength=50;static langMapReverse=new Map(x9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Un(a)].join(` +`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Un(c)].join(` +`),p=await v9(d,`TC3${n}`),g=await t0(i,p),h=await t0("tc3_request",g),b=await t0(m,h),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var S9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],OD={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},lu=class e extends Ae{static langMap=new Map(S9);static langMapReverse=new Map(S9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:OD,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var T9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],cu=class e extends Ae{static langMap=new Map(T9);static langMapReverse=new Map(T9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function ND(e,t){return t?e+(t-e%t):e}function jD(e,t){return e.split(t).length-1}function Wp(e){let t=Date.now(),n=1;for(let r of e)n+=jD(r,"i");return ND(t,n)}function UD(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Gp(){return UD(1e6,1e8)}var Vp="https://www2.deepl.com/jsonrpc",Kp="auto",C9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function HD(e=C9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Yp(e){return HD()[e.toLowerCase()]}var qD={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function zD(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function WD(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function GD(e,t,n,r,a,i,o){let s=Gp(),u=WD(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Wp(t);let c=await K({retry:2,method:"POST",url:e,body:zD(u),headers:qD}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function w9(e,t,n,r=Kp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:GD(e,t,Yp(n),Yp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var E9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Io=class e extends Ae{static langMap=new Map(E9);static langMapReverse=new Map(E9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Vp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=vt(Vp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await w9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var du=class e extends Ae{static langMap=new Map(jp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=fa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Le(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=A9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:Kc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Le(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=A9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:Kc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function A9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Qp(){return Math.random()>=.001}var _o=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Ky(),!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var D9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Jp=new Map(D9),k9=new Map(D9.map(([e,t])=>[t,e])),Zp=class e extends Ae{static langMap=Jp;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Jp.get(r)||"auto",target_lang:Jp.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:k9.get(o.source_lang),to:k9.get(o.target_lang)}}else throw new U(i.msg)}},n0=Zp;var Xp="https://{s}bing.com",F9=Xp+"/translator",VD=Xp+"/ttranslatev3",KD=Xp+"/tspellcheckv3",r0="bingGlobalConfig",B9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],L9=new Map(B9),M9=new Map(B9.map(([e,t])=>[t,e])),P9=1e3,Mr,Oo;function $p(e,t){return e.replace("{s}",t?t+".":"")}async function YD(){if(!Mr){let n=await ae.storage.local.get(r0);return n&&(Mr=n[r0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Mr;return Date.now()-e>t}async function R9(){let e,t,n,r,a,i,o,s,u,l;try{let c=$p(F9,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Mr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ae.storage.local.set({[r0]:Mr}),Mr}function QD(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Mr;return $p(e?KD:VD,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Mr.count++:"")}function JD(e,t,n,r){let{token:a,key:i}=Mr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function I9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>P9)throw new Error(`The supported maximum length of text is ${P9}. Please shorten the text.`);Oo||(Oo=R9()),await Oo,await YD()&&(Oo=R9(),await Oo),t=t||"auto",n=n||"zh-CN",t=L9.get(t)||t,n=L9.get(n)||n;let a=QD(!1),i=JD(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:$p(F9,Mr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Mr=null,Oo=null,await ae.storage.local.remove(r0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:M9.get(m.language),to:M9.get(d.to)}}var a0=new Map;async function eg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=tr(e.body)),a0.has(t))return a0.get(t);let n=V(e);a0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{a0.delete(t)},3e3)}}async function _9(e){return eg(e)}async function Vr(e){if(Ve()){let n=d9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return eg(e)}else return eg(e)}function O9(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function o0(e){await Jm(e)}async function Yr(e,t){let n=await Ym(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return i0(e,t)}return i0(e,t)}async function i0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Qm(e,n,i-1e3),n}var ZD=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],tg=new Map(ZD),Pr=class extends Ae{static langMap=tg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await o0(Tm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await I9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Tm,async()=>{let t=await Vr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return O9(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=tg.get(n)||"auto",o=tg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await V({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var XD=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},s0=e=>Qr.chinese.test(e),$D=e=>Qr.english.test(e),eL=e=>Qr.japanese.test(e),tL=e=>Qr.korean.test(e),nL=e=>Qr.french.test(e),rL=e=>Qr.deutsch.test(e),aL=e=>Qr.spanish.test(e),ZQ={chinese:hr(s0),english:hr($D),japanese:hr(eL),korean:hr(tL),french:hr(nL),spanish:hr(aL),deutsch:hr(rL)},N9=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,XQ=new RegExp(`^(\\d|\\s|${N9.source})+$`),iL=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),$Q=hr(e=>(e.replace(new RegExp(N9,"g")," ").replace(new RegExp(iL,"g")," x ").match(/\S+/g)||"").length),eJ=[...XD,"others","matchAll"];var U9=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],mu=new Map(U9),oL=new Map(U9.map(([e,t])=>[t,e])),ng=class extends Ae{static langMap=mu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=ut;immersiveTranslateDeeplProApiUrl=ut+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=vt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=vt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=vt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=vt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=vt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:mu.get(n)||"",target_lang:mu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:mu.get(n)||"auto",target_lang:mu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await V({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>rg(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Pr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&oL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!sa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},No=ng;function rg(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&s0(e[0])&&j9(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&s0(e[e.length-1])&&j9(e,"\u300A")==1?e+"\u300B":e}function j9(e,t){return e.split(t).length-1}var sL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],ag=new Map(sL),ig=class extends Ae{static langMap=ag;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:ag.get(r)||r,to:ag.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await V(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},H9=ig;var uL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],og=new Map(uL),sg=class extends Ae{static langMap=og;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:og.get(a)||a};r!=="auto"&&(i.from=og.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await V(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},q9=sg;var lL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],jo=new Map(lL),ug=class extends Ae{static langMap=jo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:M9.get(m.language),to:M9.get(d.to)}}var a0=new Map;async function eg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=nr(e.body)),a0.has(t))return a0.get(t);let n=K(e);a0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{a0.delete(t)},3e3)}}async function _9(e){return eg(e)}async function Kr(e){if(Ke()){let n=d9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return eg(e)}else return eg(e)}function O9(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function o0(e){await Jm(e)}async function Yr(e,t){let n=await Ym(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return i0(e,t)}return i0(e,t)}async function i0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Qm(e,n,i-1e3),n}var ZD=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],tg=new Map(ZD),Pr=class extends Ae{static langMap=tg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await o0(Tm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await I9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Tm,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return O9(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=tg.get(n)||"auto",o=tg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var XD=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},s0=e=>Qr.chinese.test(e),$D=e=>Qr.english.test(e),eL=e=>Qr.japanese.test(e),tL=e=>Qr.korean.test(e),nL=e=>Qr.french.test(e),rL=e=>Qr.deutsch.test(e),aL=e=>Qr.spanish.test(e),ZQ={chinese:hr(s0),english:hr($D),japanese:hr(eL),korean:hr(tL),french:hr(nL),spanish:hr(aL),deutsch:hr(rL)},N9=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,XQ=new RegExp(`^(\\d|\\s|${N9.source})+$`),iL=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),$Q=hr(e=>(e.replace(new RegExp(N9,"g")," ").replace(new RegExp(iL,"g")," x ").match(/\S+/g)||"").length),eJ=[...XD,"others","matchAll"];var U9=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],mu=new Map(U9),oL=new Map(U9.map(([e,t])=>[t,e])),ng=class extends Ae{static langMap=mu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=ut;immersiveTranslateDeeplProApiUrl=ut+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=vt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=vt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=vt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=vt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=vt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:mu.get(n)||"",target_lang:mu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:mu.get(n)||"auto",target_lang:mu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>rg(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Pr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&oL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!sa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},No=ng;function rg(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&s0(e[0])&&j9(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&s0(e[e.length-1])&&j9(e,"\u300A")==1?e+"\u300B":e}function j9(e,t){return e.split(t).length-1}var sL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],ag=new Map(sL),ig=class extends Ae{static langMap=ag;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:ag.get(r)||r,to:ag.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},H9=ig;var uL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],og=new Map(uL),sg=class extends Ae{static langMap=og;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:og.get(a)||a};r!=="auto"&&(i.from=og.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},q9=sg;var lL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],jo=new Map(lL),ug=class extends Ae{static langMap=jo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!jo.get(r)?(i=(await V({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||jo.get(r)||r,target:jo.get(a)||a})):u.body=JSON.stringify({text:s,source:jo.get(r),target:jo.get(a)||a});let l=await V(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},z9=ug;var cL={lang:"en"};function lg(e){let t=Object.assign({},cL,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Me(n,i,o)}}var dL=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--dL,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var cg=xo(null),Uo=e=>{let{t,setLang:n,lang:r}=lg({lang:e.lang});return v(cg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return xc(cg)}function K9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Rr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=mL(e,a)),i||(i=pL(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function mL(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function pL(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function V9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function u0(e,t,n){n=n||await In();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&W9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&W9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await un();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ha(n),await Gr(i)}catch{return!1}return a}async function Y9(){return(await In()).aiAssistants||[]}async function gL(e,t){(await Promise.allSettled(e.map(r=>V({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&u0("add",a,t)}})}async function fL(e,t,n=!0){e||(e=await qt()),t||(t=await In());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await yL();i=await bL(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&gL(o,t)}var ba=Ln(fL,1500);function W9(e){return qa(js(),e.extensionVersion)}function hL(e,t){return t?!qa(e.version,t):!1}function bL(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{hL(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function yL(){return(await V({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var vL=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function J9(e,t,n,r,a){let i={...t},o=mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,V9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=K9(i,i.langOverrides,n),o||vL.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function Sn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Ho(t,o),f=Ho(t,g),y=s,x=Object.keys(u);for(let K of x){let be=u[K];if(Ho(t,be)){y=K;break}}let S=l,T=Object.keys(c);for(let K of T){let be=c[K];if(be&&Ho(t,be)){S=K;break}}let C=Ho(t,d),w=Q9(t,d);w||(w=We(t,X3)),w||(w=We(t,n.blockUrls));let A=Q9(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),M=Object.keys(p),B={};for(let K of M){let be=p[K];if(be&&be.matches)for(let rt of be.matches)B[rt]=K}let P=Object.keys(B),_=wp(t,P);_&&(i=B[_]??"auto",B[_]&&B[_]!=="auto"&&nr(B[_]));let L=a.hostname,O=await jn(L),I=a.pathname+a.search+a.hash,j=await jn(I),W=`https://${O}.com/${j}`,ne=await Yt(),Ee=await _c(),ve=n.translationStartMode,N=SL(ne,n);ne.aiAssistants=TL(N,n),ve==="dynamic"&&f&&(ve="immediate");let z=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let De=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(De=n.subtitleTranslateService);let me=await dt.get(ct,null),He=!1;me&&(He=ft(me));let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:z,mouseHoverTranslationService:Y,subtitleTranslateService:De,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ne};me&&(pe.user=me,He?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(K=>!pe.config.generalRule.bodyTranslateTags.includes(K)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let ce=n.translationServices[pe.translationService]||{};ce.immediateTranslationTextCount!==void 0&&xL(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),pe.translationService==="deepl"&&(ce&&ce.authKey&&ce.authKey.startsWith("immersive_")||ce&&ce.provider==="pro"&&pe.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(pe.state.translationDebounce=ce.translationDebounce);let ge=Ee.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Ce;globalThis.PDFViewerApplication?Ce=fe.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Ce=fe.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Ce=fe.find(K=>K.pageType=="ebookBuilder"):Ce=fe.find(K=>Ho(t,K)),Ce&&Ce.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Ce&&(pe.rule=Rc(Ue,Ce)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(K=>!pe.rule.bodyTranslateTags.includes(K)&&!pe.rule.forceTranslateTags.includes(K))),pe.rule.mainFrameSelector){let K=document.querySelector(pe.rule.mainFrameSelector);K&&(pe.mainFrame=K)}return pe}function Ho(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&cc(i)?!1:!!(a&&a.length>0&&cc(a))}function Q9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&cc(r))}function xL(e){return typeof e=="number"}function SL(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function TL(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=sy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function Z9(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!jo.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||jo.get(r)||r,target:jo.get(a)||a})):u.body=JSON.stringify({text:s,source:jo.get(r),target:jo.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},z9=ug;var cL={lang:"en"};function lg(e){let t=Object.assign({},cL,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Me(n,i,o)}}var dL=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--dL,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var cg=xo(null),Uo=e=>{let{t,setLang:n,lang:r}=lg({lang:e.lang});return v(cg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return xc(cg)}function V9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Rr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=mL(e,a)),i||(i=pL(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function mL(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function pL(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function K9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function u0(e,t,n){n=n||await In();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&W9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&W9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await un();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ha(n),await Gr(i)}catch{return!1}return a}async function Y9(){return(await In()).aiAssistants||[]}async function gL(e,t){(await Promise.allSettled(e.map(r=>K({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&u0("add",a,t)}})}async function fL(e,t,n=!0){e||(e=await qt()),t||(t=await In());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await yL();i=await bL(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&gL(o,t)}var ba=Ln(fL,1500);function W9(e){return qa(js(),e.extensionVersion)}function hL(e,t){return t?!qa(e.version,t):!1}function bL(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{hL(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function yL(){return(await K({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var vL=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function J9(e,t,n,r,a){let i={...t},o=mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,K9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=V9(i,i.langOverrides,n),o||vL.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function Sn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Ho(t,o),f=Ho(t,g),y=s,x=Object.keys(u);for(let V of x){let be=u[V];if(Ho(t,be)){y=V;break}}let S=l,T=Object.keys(c);for(let V of T){let be=c[V];if(be&&Ho(t,be)){S=V;break}}let C=Ho(t,d),w=Q9(t,d);w||(w=We(t,X3)),w||(w=We(t,n.blockUrls));let A=Q9(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),M=Object.keys(p),B={};for(let V of M){let be=p[V];if(be&&be.matches)for(let rt of be.matches)B[rt]=V}let P=Object.keys(B),_=wp(t,P);_&&(i=B[_]??"auto",B[_]&&B[_]!=="auto"&&rr(B[_]));let L=a.hostname,O=await Un(L),I=a.pathname+a.search+a.hash,j=await Un(I),W=`https://${O}.com/${j}`,ne=await Yt(),Ee=await _c(),ve=n.translationStartMode,N=SL(ne,n);ne.aiAssistants=TL(N,n),ve==="dynamic"&&f&&(ve="immediate");let z=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let De=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(De=n.subtitleTranslateService);let me=await dt.get(ct,null),He=!1;me&&(He=ft(me));let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:z,mouseHoverTranslationService:Y,subtitleTranslateService:De,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ne};me&&(pe.user=me,He?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(V=>!pe.config.generalRule.bodyTranslateTags.includes(V)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(V=>V!==".btn"));let ce=n.translationServices[pe.translationService]||{};ce.immediateTranslationTextCount!==void 0&&xL(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),pe.translationService==="deepl"&&(ce&&ce.authKey&&ce.authKey.startsWith("immersive_")||ce&&ce.provider==="pro"&&pe.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(pe.state.translationDebounce=ce.translationDebounce);let ge=Ee.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Ce;globalThis.PDFViewerApplication?Ce=fe.find(V=>V.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Ce=fe.find(V=>V.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Ce=fe.find(V=>V.pageType=="ebookBuilder"):Ce=fe.find(V=>Ho(t,V)),Ce&&Ce.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Ce&&(pe.rule=Rc(Ue,Ce)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(V=>!pe.rule.bodyTranslateTags.includes(V)&&!pe.rule.forceTranslateTags.includes(V))),pe.rule.mainFrameSelector){let V=document.querySelector(pe.rule.mainFrameSelector);V&&(pe.mainFrame=V)}return pe}function Ho(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&cc(i)?!1:!!(a&&a.length>0&&cc(a))}function Q9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&cc(r))}function xL(e){return typeof e=="number"}function SL(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function TL(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=sy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function Z9(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var pg=class extends Ae{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` @@ -5890,20 +5890,20 @@ Translate the content to {{to}} Language: %% `;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let d=i?.sourceProgram,m=["subtitle","videoSubtitle"].includes(d),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),m&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let g="",h="",b=s.includes("{{json}}"),f=s.includes("{{yaml}}");if(Tc(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",b){let A=[],D=c.imt_json_item||"";m&&(D=c.imt_subtitle_json_item||D);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?g:M=="yaml"?h:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await V(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`)}s=w(s);let y=w(this.systemPrompt),x=await this.handleOptions(y,s,t);k.debug("request options",x),k.debug("request body",x.body);let S=await this.rawRequest(x),T=this.parseResponse(S),C=await this.interceptResponse(T,{...t,text:p});if(C.handled)return{from:r,to:a,text:C.result||""};if(T=this.filterContent(n,T,s,p),k.debug("filterContent after",T),T&&(T=CL(n,T),T=ob(T)),!b&&!f||!T)return{from:r,to:a,text:T||n};try{let A={};if(b){k.debug("extractValidJson before",T);let B=this.extractValidJson(T);k.debug("parse before",T),A=ml.parse(B)}else if(f){k.debug("parseYAML before",T);let B=this.extractValidYaml(T);A=Z9(B)}let D=c.imt_trans_field;m&&(D=c.imt_sub_trans_field||D);let M=c.imt_source_field;return m&&(M=c.imt_sub_source_field||M),T=this.restoreText(p,A,D,this.translationTextSeparator,M),{from:r,to:a,text:T}}catch(A){return k.error("parse response failed",T,A),{from:r,to:a,text:T}}function w(A){return A.replace(/{{(.+?)}}/g,(D,M)=>M==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?g:M=="yaml"?h:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return tr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Za=pg;function CL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var wL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],X9=new Map(wL),gg=class extends Za{static langMap=X9;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=ut+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=vt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return X9}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return tr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!No.langMap.has(n.to)||!No.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new No(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},$9=gg;function ln(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function EL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xa(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function e6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function zo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var t6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?ln(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?ln(m):m,e6(o(zo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?ln(m):m,p=r?ln(p):p,g=zo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(zo(p)),512+p.length*8),e6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(ya(c)),512+c.length*8),qo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=x(A,S.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return C=x(D.concat(ya(T)),512+T.length*8),qo(x(M.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,B,P,_,L,O,I,j,W,ne;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,I=0;I32&&(S=s(S,b.length*8));x<32;x+=1)T[x]=S[x]^909522486,C[x]=S[x]^1549556828;return y=s(T.concat(ya(f)),1024+f.length*8),qo(s(C.concat(y),1024+512))}function s(b,f){var y,x,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),B=new u(0,0),P=new u(0,0),_=new u(0,0),L=new u(0,0),O=new u(0,0),I=new u(0,0),j=new u(0,0),W=new u(0,0),ne=new u(0,0),Ee=new u(0,0),ve=new u(0,0),N=new u(0,0),z=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)T[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(x>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=x&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,x,S){var T=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|A<<16}function h(b,f,y,x,S,T){var C=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),D=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(T.h>>>16)+(A>>>16);b.l=C&65535|w<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Jr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Zr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Jr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Zr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?ln(h):h,c(d(zo(h),h.length*8))}function l(h,b){h=r?ln(h):h,b=r?ln(b):b;var f,y,x=zo(h),S=Array(16),T=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)S[f]=x[f]^909522486,T[f]=x[f]^1549556828;return y=d(S.concat(zo(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,S,T=1732584193,C=4023233417,w=2562383102,A=271733878,D=3285377520,M,B,P,_,L,O,I,j,W,ne;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new t6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await V({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var AL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},hg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(fg).sort().join(`&${r}=`)}`:`${r}=${fg(n)}`}).filter(t=>t).join("&"),Wo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,hg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await jn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Bo(await rr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Za=pg;function CL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var wL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],X9=new Map(wL),gg=class extends Za{static langMap=X9;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=ut+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=vt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return X9}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!No.langMap.has(n.to)||!No.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new No(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},$9=gg;function ln(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function EL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xa(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function e6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function zo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var t6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?ln(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?ln(m):m,e6(o(zo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?ln(m):m,p=r?ln(p):p,g=zo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(zo(p)),512+p.length*8),e6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(ya(c)),512+c.length*8),qo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=x(A,S.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return C=x(D.concat(ya(T)),512+T.length*8),qo(x(M.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,B,P,_,L,O,I,j,W,ne;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,I=0;I32&&(S=s(S,b.length*8));x<32;x+=1)T[x]=S[x]^909522486,C[x]=S[x]^1549556828;return y=s(T.concat(ya(f)),1024+f.length*8),qo(s(C.concat(y),1024+512))}function s(b,f){var y,x,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),B=new u(0,0),P=new u(0,0),_=new u(0,0),L=new u(0,0),O=new u(0,0),I=new u(0,0),j=new u(0,0),W=new u(0,0),ne=new u(0,0),Ee=new u(0,0),ve=new u(0,0),N=new u(0,0),z=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)T[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(x>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=x&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,x,S){var T=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|A<<16}function h(b,f,y,x,S,T){var C=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),D=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(T.h>>>16)+(A>>>16);b.l=C&65535|w<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Jr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Zr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Jr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Zr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?ln(h):h,c(d(zo(h),h.length*8))}function l(h,b){h=r?ln(h):h,b=r?ln(b):b;var f,y,x=zo(h),S=Array(16),T=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)S[f]=x[f]^909522486,T[f]=x[f]^1549556828;return y=d(S.concat(zo(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,S,T=1732584193,C=4023233417,w=2562383102,A=271733878,D=3285377520,M,B,P,_,L,O,I,j,W,ne;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new t6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var AL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},hg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(fg).sort().join(`&${r}=`)}`:`${r}=${fg(n)}`}).filter(t=>t).join("&"),Wo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,hg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await Un(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Bo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=hg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new U(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await jn(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(hg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return AL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await rr(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await rr(r,i),s=await rr(a,o);return rr(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var r6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],bg=new Map(r6),kL=new Map(r6.map(([e,t])=>[t,e])),yg=class extends Ae{static langMap=bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Wo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await V({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=bg.get(r),o={TargetLanguage:bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Wo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await V({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=kL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},a6=yg;var i6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],vg=new Map(i6),DL=new Map(i6.map(([e,t])=>[t,e])),gu=class extends Ae{static langMap=vg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=vg.get(r)||"detect",o=vg.get(a)||a,u=await V({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=DL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var LL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],xg=new Map(LL),fu=class extends Ae{static langMap=xg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:xg.get(r)||r,target_lang:xg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await V({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:rg(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var o6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Sg=new Map(o6),ML=new Map(o6.map(([e,t])=>[t,e])),Tg=class extends Ae{static langMap=Sg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=tr(a+o+n+i);this.domain&&(l=tr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Sg.get(s)||"auto",to:Sg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await V({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:ML.get(g)||g,to:u,text:h.join(` -`)}}},s6=Tg;var Ii=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?PL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function PL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var u6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Cg=class extends Ii{static langMap=new Map(u6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:u6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},l6=Cg;var RL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(RL),wg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await V({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},c6=wg;var d6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Eg=new Map(d6),FL=new Map(d6.map(([e,t])=>[t,e]));function BL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Ag=class extends Ae{static langMap=Eg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=IL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+BL(n)+i+o+this.appSecret,u=await jn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Eg.get(r)||"auto",to:Eg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await V({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:FL.get(g),to:a}}};function IL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Dg=class extends Ae{static langMap=kg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:kg.get(r)||"auto",to:kg.get(a)||a},o=new URLSearchParams(i),s=await V({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},g6=Dg;var hu=class extends Ii{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ro,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Lg=class extends Za{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Lg;var f6=R+"-gemini-fake-user-key",_L=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],h6=new Map(_L),Mg=class extends c0{static langMap=h6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ut+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return h6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ti(f6,""),this.fakeId||(this.fakeId=OL(10),await Ci(f6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function OL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Vr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Rg.get(r)+"-"}${Rg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await V({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var UL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],x6=new Map(UL),yu=class extends Za{static langMap=x6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(wm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Vr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return x6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(i0(wm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var HL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],S6=new Map(HL),Un=class extends Za{static langMap=S6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return S6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends Un{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await rr(t,"TC3"+this.secret_key),a=await rr(this.service,r),i=await rr("tc3_request",a),o=await rr(n,i);return Bo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await jn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Un(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(hg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return AL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var r6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],bg=new Map(r6),kL=new Map(r6.map(([e,t])=>[t,e])),yg=class extends Ae{static langMap=bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Wo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=bg.get(r),o={TargetLanguage:bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Wo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=kL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},a6=yg;var i6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],vg=new Map(i6),DL=new Map(i6.map(([e,t])=>[t,e])),gu=class extends Ae{static langMap=vg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=vg.get(r)||"detect",o=vg.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=DL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var LL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],xg=new Map(LL),fu=class extends Ae{static langMap=xg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:xg.get(r)||r,target_lang:xg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:rg(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var o6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Sg=new Map(o6),ML=new Map(o6.map(([e,t])=>[t,e])),Tg=class extends Ae{static langMap=Sg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=nr(a+o+n+i);this.domain&&(l=nr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Sg.get(s)||"auto",to:Sg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:ML.get(g)||g,to:u,text:h.join(` +`)}}},s6=Tg;var Ii=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?PL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function PL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var u6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Cg=class extends Ii{static langMap=new Map(u6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:u6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},l6=Cg;var RL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(RL),wg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},c6=wg;var d6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Eg=new Map(d6),FL=new Map(d6.map(([e,t])=>[t,e]));function BL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Ag=class extends Ae{static langMap=Eg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=IL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+BL(n)+i+o+this.appSecret,u=await Un(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Eg.get(r)||"auto",to:Eg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` +`),from:FL.get(g),to:a}}};function IL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Dg=class extends Ae{static langMap=kg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:kg.get(r)||"auto",to:kg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},g6=Dg;var hu=class extends Ii{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ro,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Lg=class extends Za{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Lg;var f6=R+"-gemini-fake-user-key",_L=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],h6=new Map(_L),Mg=class extends c0{static langMap=h6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ut+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return h6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ti(f6,""),this.fakeId||(this.fakeId=OL(10),await Ci(f6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function OL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Rg.get(r)+"-"}${Rg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var UL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],x6=new Map(UL),yu=class extends Za{static langMap=x6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(wm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return x6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(i0(wm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var HL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],S6=new Map(HL),Hn=class extends Za{static langMap=S6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return S6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends Hn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return Bo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Un(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await jn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await Un(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5911,7 +5911,7 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var m0=class extends Un{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(k3,async()=>{let t=await Vr({responseType:"json",url:`${ut}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Fg=["glm-4-flash"],p0=class extends Un{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Fg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Fg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(D3,async()=>{let t=await Vr({responseType:"json",url:`${ut}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Pr.langMap.has(n.to)||!Pr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Pr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Fg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:_o,mock2:_o,custom:hu,google:cu,transmart:du,deepl:No,volc:a6,volcAlpha:gu,bing:Pr,tencent:uu,tenAlpha:lu,baidu:s6,caiyun:l6,cai:c6,openl:n0,youdao:m6,you:g6,d:Io,dpro:Io,deeplx:fu,niu:H9,azure:q9,openai:$9,gemini:b6,claude:v6,papago:z9,aliyun:pu,yandex:bu,qianfan:yu,"custom-ai":Un,deepseek:Un,"aliyun-bailian":Un,doubao:Un,hunyuan:d0,siliconcloud:m0,lingyiwanwu:Un,zhipu:p0};globalThis.TranslationServicesClass=g0;var $a={};Object.keys(Ar).forEach(e=>{$a[e]={...Ar[e],class:g0[e]}});function f0(e,t){let n=Zn;if($a[e]&&$a[e].class&&$a[e].class.langMap&&$a[e].class.langMap.size>0){let r=$a[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Zn}async function $r(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function T6(e,t){for(let n of e)try{return await $r({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Bg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new $a[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function qL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),ba(a,t.localConfig,!1),d=J9(m,d,{sourceLanguage:qL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=zL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,S=ft(t.user),T;try{T=new $a[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of b){let B=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(B,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){x++;let D=l;l==="openl"&&(D=l+"-"+d.codename||n0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let B=null;try{B=await ll(Gy({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(B){let P={...A,text:B.translatedText};f.sentences[x]=P,n&&n(null,P,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let B=l;l==="openl"&&(B=l+"-"+d.codename||n0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(B=P+"-"+B),o.cache&&ll(Ky({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:tr(M.text),service:B}),3e3).catch(_=>{k.warn("set cache DB error",_)})}});for(let A of w?.sentences||[]){let D=f.sentences.findIndex(M=>!M);if(D===-1)throw new U("translateFailed","can not match the result");f.sentences[D]=A}return f}function zL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var WL=1e5;async function va(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GL(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:A,onFrame:D,onIgnoreElement:M,id:B,isLongHtml:P}=w,_=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let j=O(I);return j==NodeFilter.FILTER_ACCEPT?ht.mark(I,B,p):$L(I,j,r)&&x(),j}),L=A;if(O(L)===NodeFilter.FILTER_REJECT)return;for(ht.mark(L,B,p);L;){if(i?.interruptEffectDOM)return;let I=Date.now()-t;if(I>50&&(k.debug("taskTime",I),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:W}=y(_,L,u);if(j)L=j;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){D&&D(j),x(),Ig(g,!0),L=_.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&_g(j,s),d&&Ng(j,d));let W=Ur(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),Et(j,o)&&!W){S(j);let ve=null;for(;!(ve=_.nextSibling())&&_.parentNode(););L=ve;continue}let ne=Di(j);if(!C6(g,j)||W){x(j);let ve=W?j:j.parentElement;ve&&ve.childNodes.length>0&&T(g,ve,ve.immersiveTranslateComputedStyle||null)}ne&&j.shadowRoot?.mode==="open"&&(W?D?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&Et(j,r.likePreSelectors)&&l&&(P||QL(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=_.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function O(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Li(I)){if(d){let Ee=Object.keys(d);if(Ee.length>0&&Et(I,Ee))for(let N of Ee){let z=d[N];if(I.matches(N)){let Y=d[N],De=Object.keys(Y);for(let me of De){let He=Y[me];I.getAttribute(me)!==He&&(He===null?I.removeAttribute(me):I.setAttribute(me,He))}break}}}if(!w.force&&ht.isMarked(I,B)||Zb(I,B)||h0(I,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||I.nodeName==="IFRAME"&&!_a(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let Ee=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=Ee,Og(Ee))return M&&M(I),NodeFilter.FILTER_REJECT;let ve=Ur(I,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Ee||null);if(I.isBlock=ve,Et(I,o)&&ve)return NodeFilter.FILTER_REJECT}let j=I.getBoundingClientRect(),{width:W,height:ne}=j;return I.nodeName==="IMG"&&(W>48&&ne>48?I.immersiveTranslateComputedStyle={display:"block"}:W>0&&ne>0&&m!==!1&&(I.setAttribute("width",W),I.setAttribute("height",ne))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(W>0&&W<4||ne>0&&ne<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let j=I.textContent?.trim();if(!j)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=I.parentNode;if(W.getBoundingClientRect){let{width:ne,height:Ee}=W.getBoundingClientRect();if(ne>0&&ne<4||Ee>0&&Ee<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JL(I,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){k.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(w,A,D){let M=A.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(A))if(h=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};return{currentNode:A,isMatchedSelection:!0}}function x(w){let A=g.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let P=g.flatNodes[M]?.textContent?.trim()||"";if(!P||new RegExp(r.skipTrailTextRegex).test(P)){g.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eM(w,r);let M=[...g.flatNodes],B=g.flatNodes.filter(P=>w.parentNode?.contains(P));B.length>0&&M.length!=B.length&&(g.flatNodes=B,g.flatNodes.original=M)}let D=YL(g,a,r);D&&n&&n(D),Ig(g)}function S(w){if(!C6(g,w)){x(),Ig(g);let A=w.parentNode;A&&T(g,A,A.computedStyle)}g.flatNodes.push(w)}function T(w,A,D){w.commonAncestorContainer=A;let M=C(D);w.isPreWhitespace=M}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function C6(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Di(t));let r=VL(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GL(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function KL(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _g(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function VL(e){return e&&e._currentStacks?e._currentStacks.some(t=>Di(t)):!1}function YL(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Dc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=KL(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WL){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:ny(o)}}else return null}function Ig(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function Og(e){return e.display==="none"}var ht={_marked_key:j3,isMarked(e,t){return fp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return J2(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Di(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QL(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function JL(e,t,n){let r=e.textContent||"",a=ey(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=H2(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function E6(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),d=e.querySelector(u);if(d)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let h=d.innerText||d.textContent||"";if(!h.trim()||XL(d,a,i,o)||!z2(h,n,r))continue}d.getAttribute(m)!==p&&(p===null?d.removeAttribute(m):d.setAttribute(m,p))}}}function Ng(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function h0(e,t){return ZL(e,t.excludeSelectorsRegexes)?!0:Et(e,t.excludeSelectors||[])?Et(e,t.selectors||[])?!1:!Et(e,t.stayOriginalSelectors||[]):!1}function ZL(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!Et(e,[r]))continue;if(Ac(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function vu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return Et(e,t.concat(n))}function XL(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&h0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(fo(o,t,n))return!0}}return!1}function $L(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ur(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eM(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ur(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function A6(e,t,n,r,a){let i=t,o=J3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${R}-theme-${i}-${d}: ${m}; +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var m0=class extends Hn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(k3,async()=>{let t=await Kr({responseType:"json",url:`${ut}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Fg=["glm-4-flash"],p0=class extends Hn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Fg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Fg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(D3,async()=>{let t=await Kr({responseType:"json",url:`${ut}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Pr.langMap.has(n.to)||!Pr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Pr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Fg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:_o,mock2:_o,custom:hu,google:cu,transmart:du,deepl:No,volc:a6,volcAlpha:gu,bing:Pr,tencent:uu,tenAlpha:lu,baidu:s6,caiyun:l6,cai:c6,openl:n0,youdao:m6,you:g6,d:Io,dpro:Io,deeplx:fu,niu:H9,azure:q9,openai:$9,gemini:b6,claude:v6,papago:z9,aliyun:pu,yandex:bu,qianfan:yu,"custom-ai":Hn,deepseek:Hn,"aliyun-bailian":Hn,doubao:Hn,hunyuan:d0,siliconcloud:m0,lingyiwanwu:Hn,zhipu:p0};globalThis.TranslationServicesClass=g0;var $a={};Object.keys(Ar).forEach(e=>{$a[e]={...Ar[e],class:g0[e]}});function f0(e,t){let n=Xn;if($a[e]&&$a[e].class&&$a[e].class.langMap&&$a[e].class.langMap.size>0){let r=$a[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function $r(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function T6(e,t){for(let n of e)try{return await $r({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Bg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new $a[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function qL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),ba(a,t.localConfig,!1),d=J9(m,d,{sourceLanguage:qL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=zL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,S=ft(t.user),T;try{T=new $a[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of b){let B=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(B,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){x++;let D=l;l==="openl"&&(D=l+"-"+d.codename||n0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let B=null;try{B=await ll(Gy({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(B){let P={...A,text:B.translatedText};f.sentences[x]=P,n&&n(null,P,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let B=l;l==="openl"&&(B=l+"-"+d.codename||n0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(B=P+"-"+B),o.cache&&ll(Vy({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:nr(M.text),service:B}),3e3).catch(_=>{k.warn("set cache DB error",_)})}});for(let A of w?.sentences||[]){let D=f.sentences.findIndex(M=>!M);if(D===-1)throw new U("translateFailed","can not match the result");f.sentences[D]=A}return f}function zL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var WL=1e5;async function va(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GL(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:A,onFrame:D,onIgnoreElement:M,id:B,isLongHtml:P}=w,_=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let j=O(I);return j==NodeFilter.FILTER_ACCEPT?ht.mark(I,B,p):$L(I,j,r)&&x(),j}),L=A;if(O(L)===NodeFilter.FILTER_REJECT)return;for(ht.mark(L,B,p);L;){if(i?.interruptEffectDOM)return;let I=Date.now()-t;if(I>50&&(k.debug("taskTime",I),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:W}=y(_,L,u);if(j)L=j;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){D&&D(j),x(),Ig(g,!0),L=_.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&_g(j,s),d&&Ng(j,d));let W=Ur(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),Et(j,o)&&!W){S(j);let ve=null;for(;!(ve=_.nextSibling())&&_.parentNode(););L=ve;continue}let ne=Di(j);if(!C6(g,j)||W){x(j);let ve=W?j:j.parentElement;ve&&ve.childNodes.length>0&&T(g,ve,ve.immersiveTranslateComputedStyle||null)}ne&&j.shadowRoot?.mode==="open"&&(W?D?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&Et(j,r.likePreSelectors)&&l&&(P||QL(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=_.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function O(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Li(I)){if(d){let Ee=Object.keys(d);if(Ee.length>0&&Et(I,Ee))for(let N of Ee){let z=d[N];if(I.matches(N)){let Y=d[N],De=Object.keys(Y);for(let me of De){let He=Y[me];I.getAttribute(me)!==He&&(He===null?I.removeAttribute(me):I.setAttribute(me,He))}break}}}if(!w.force&&ht.isMarked(I,B)||Zb(I,B)||h0(I,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||I.nodeName==="IFRAME"&&!_a(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let Ee=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=Ee,Og(Ee))return M&&M(I),NodeFilter.FILTER_REJECT;let ve=Ur(I,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Ee||null);if(I.isBlock=ve,Et(I,o)&&ve)return NodeFilter.FILTER_REJECT}let j=I.getBoundingClientRect(),{width:W,height:ne}=j;return I.nodeName==="IMG"&&(W>48&&ne>48?I.immersiveTranslateComputedStyle={display:"block"}:W>0&&ne>0&&m!==!1&&(I.setAttribute("width",W),I.setAttribute("height",ne))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(W>0&&W<4||ne>0&&ne<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let j=I.textContent?.trim();if(!j)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=I.parentNode;if(W.getBoundingClientRect){let{width:ne,height:Ee}=W.getBoundingClientRect();if(ne>0&&ne<4||Ee>0&&Ee<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JL(I,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){k.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(w,A,D){let M=A.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(A))if(h=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};return{currentNode:A,isMatchedSelection:!0}}function x(w){let A=g.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let P=g.flatNodes[M]?.textContent?.trim()||"";if(!P||new RegExp(r.skipTrailTextRegex).test(P)){g.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eM(w,r);let M=[...g.flatNodes],B=g.flatNodes.filter(P=>w.parentNode?.contains(P));B.length>0&&M.length!=B.length&&(g.flatNodes=B,g.flatNodes.original=M)}let D=YL(g,a,r);D&&n&&n(D),Ig(g)}function S(w){if(!C6(g,w)){x(),Ig(g);let A=w.parentNode;A&&T(g,A,A.computedStyle)}g.flatNodes.push(w)}function T(w,A,D){w.commonAncestorContainer=A;let M=C(D);w.isPreWhitespace=M}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function C6(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Di(t));let r=KL(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GL(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VL(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _g(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KL(e){return e&&e._currentStacks?e._currentStacks.some(t=>Di(t)):!1}function YL(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Dc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VL(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WL){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:ny(o)}}else return null}function Ig(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function Og(e){return e.display==="none"}var ht={_marked_key:j3,isMarked(e,t){return fp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return J2(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Di(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QL(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=jn?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function JL(e,t,n){let r=e.textContent||"",a=ey(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=H2(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function E6(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||XL(p,a,i,o)||!z2(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function Ng(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function h0(e,t){return ZL(e,t.excludeSelectorsRegexes)?!0:Et(e,t.excludeSelectors||[])?Et(e,t.selectors||[])?!1:!Et(e,t.stayOriginalSelectors||[]):!1}function ZL(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!Et(e,[r]))continue;if(Ac(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function vu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return Et(e,t.concat(n))}function XL(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&h0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(fo(o,t,n))return!0}}return!1}function $L(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ur(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eM(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ur(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function A6(e,t,n,r,a){let i=t,o=J3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${R}-theme-${i}-${d}: ${m}; `,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=X2(m);s+=`--${R}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${R}-target-inner { font-family: ${r}; } @@ -5930,11 +5930,11 @@ ${s}} `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` `+t.rule.additionalInjectedCss)),s&&fn(e,s,R+"-dynamic-injected-css")}async function k6(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:ho(document.body),pageLangs:t})),e}function jg(e,t,n=[],r){let a=["notranslate"];return r&&a.push(Q3),e&&(a.push(`${R}-target-translation-theme-${e}`),t?a.push(`${Rm}-theme-${e}`):a.push(`${Pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Rm):a.push(Pm),a}function Ug(e){let t=["notranslate",Il];return e&&t.push(`${R}-target-translation-theme-${e}-inner`),t}function D6(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=ki(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),C=f[T-1]===" ",w=f[T+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),M=Number(D);if(isNaN(M))return S;let B=o[M];if(B&&B.type==="element"){let P=Ze.sanitize(B.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(P=" "+P),w||(P=P+" "),P}else k.error("variable type not supported",B,S);return S}));let y=jg(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(Y3);let x=Ug(i);return Hg({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:x,classList:y,html:f,targetElementEffectAttributeName:no,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function b0(e,t,n,r,a){let i=t.original||t,o=Nb(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function L6(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function M6(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=Ze.sanitize(Cc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=qb(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=ki(t);if(c.length>2){let d=c[2];return tM({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=D6(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function qg(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tM(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),S=p[x-1]===" ",T=p[x+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],A=Number(w);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let M=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return S||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,y);return y}));let b=jg(l,n,r||[],s),f=Ug(l);return Hg({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:no,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Hg({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function zg(e){let t=e[e.length-1];return t?t.text:""}function P6(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Sl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nM(u.content,t),n&&(r=F6(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:ry(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function R6(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function nM(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rM(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return Dc(i,document.body,t)}function rM(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function F6(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(Bl)||Wg(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var xu="";async function Wg(e){let t=document.title;if(!t||t.includes(Bl))return;xu!==t&&(xu=t);let n=await Ie({text:t,pageLangs:[mt(),"en"]});if(!Co(e,n))try{let r=await $r({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=xu,document.title=r.text+Bl+xu)}catch(r){throw r}}function I6(e){e.rule.isTranslateTitle&&(document.title=xu)}function Ko(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function y0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Pp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=ki(t);if(c.length>2){let d=c[2];return tM({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=D6(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function qg(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tM(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),S=p[x-1]===" ",T=p[x+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],A=Number(w);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let M=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return S||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,y);return y}));let b=jg(l,n,r||[],s),f=Ug(l);return Hg({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:no,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Hg({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function zg(e){let t=e[e.length-1];return t?t.text:""}function P6(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Sl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nM(u.content,t),n&&(r=F6(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:ry(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function R6(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function nM(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rM(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return Dc(i,document.body,t)}function rM(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function F6(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(Bl)||Wg(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var xu="";async function Wg(e){let t=document.title;if(!t||t.includes(Bl))return;xu!==t&&(xu=t);let n=await Ie({text:t,pageLangs:[mt(),"en"]});if(!Co(e,n))try{let r=await $r({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=xu,document.title=r.text+Bl+xu)}catch(r){throw r}}function I6(e){e.rule.isTranslateTitle&&(document.title=xu)}function Vo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function y0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Pp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} ${r.innerHTML}`}catch{return""}}function _6(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Pp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${R}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function v0(e){let t=Kb(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function cn(e){let t=e.rule;e.isRichTranslate&&(t=Ap(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aM={sanitize:e=>e};async function Yg(e,t){if(e.interruptEffectDOM)return;let n=cn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Oi.bind(null,e),onFrame:r=>{Gg(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Ji&&wt(t,"consumeContainer",e.id)}function Gg(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!_a(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Pl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,qr(t.contentWindow?.document.documentElement,e.translateState),xa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),xa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function xa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=cn(t.ctx),o=0;if(l(t,e,n))return;if(Li(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Li(d)&&(a&&_g(d,a),i&&Ng(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await Yg(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else Ji&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Gg(t,c.shadowRoot,n),!1;if(d==="iframe")return Gg(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vu(c,m.selectors);if(m.containerSelectors&&vu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ke()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){R6(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=cn(c.ctx);return!!(h0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||Et(d,g.skipBuildContainerSelectors)||Et(d,g.stayOriginalSelectors))}}function Su(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&_i(t.rootNodes),r=="original"&&n=="translation"){let s=Vo(e,t.rootNodes);if(Kg(s))return;ei(e,s,a,t.targetNodes||[]),_i(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Vo(e,t.targetNodes,s);ei(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Vo(e,t.rootNodes);if(Kg(s))return;ei(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Vo(e,t.targetNodes);ei(e,s,a,t.rootNodes||[]),_i(t.targetNodes)}r=="dual"&&n=="original"&&_i(t.targetNodes),Zg(t)}catch(s){k.error(s)}}}function Kg(e){return!e||!Li(e)?!1:e.classList.contains(Dt)}function Vo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function _i(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ei(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iM=Vn(x0,300);async function Oi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ji&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=ki(i),u=i.config.translationServices[i.translationService],l=b0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:v0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Jg(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Hr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sM(e,t.text),Qg(e,t,r)):(Ji&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Li(t)&&t.classList.contains(Dt):!1}function sM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Qg(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Ji&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,U3,"1",!0),n=="hover"){x0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iM.call(e,e.ctx,a)}async function x0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=uM(e,u.toString());l&&lM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function uM(e,t){return e.find(n=>n.id===t)}function lM(e,t,n,r,a,i){let o=!1,s=r;wo(s.commonAncestorContainer,n.id)?.remove(),Zg(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Dt),m.setAttribute(no,"1");let p=M6(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Ko(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aM.sanitize(p);m.innerHTML=dr?.createHTML(g)||g,c.targetNodes=[m],Su(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,W3,m.toString()),p.classList.add("notranslate",Dt,Dt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Kg(g)||ei(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cM(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${R}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function v0(e){let t=Vb(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function cn(e){let t=e.rule;e.isRichTranslate&&(t=Ap(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aM={sanitize:e=>e};async function Yg(e,t){if(e.interruptEffectDOM)return;let n=cn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Oi.bind(null,e),onFrame:r=>{Gg(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Ji&&wt(t,"consumeContainer",e.id)}function Gg(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!_a(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Pl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,qr(t.contentWindow?.document.documentElement,e.translateState),xa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),xa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function xa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=cn(t.ctx),o=0;if(l(t,e,n))return;if(Li(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Li(d)&&(a&&_g(d,a),i&&Ng(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await Yg(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else Ji&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Gg(t,c.shadowRoot,n),!1;if(d==="iframe")return Gg(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vu(c,m.selectors);if(m.containerSelectors&&vu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){R6(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=cn(c.ctx);return!!(h0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||Et(d,g.skipBuildContainerSelectors)||Et(d,g.stayOriginalSelectors))}}function Su(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&_i(t.rootNodes),r=="original"&&n=="translation"){let s=Ko(e,t.rootNodes);if(Vg(s))return;ei(e,s,a,t.targetNodes||[]),_i(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Ko(e,t.targetNodes,s);ei(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Ko(e,t.rootNodes);if(Vg(s))return;ei(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Ko(e,t.targetNodes);ei(e,s,a,t.rootNodes||[]),_i(t.targetNodes)}r=="dual"&&n=="original"&&_i(t.targetNodes),Zg(t)}catch(s){k.error(s)}}}function Vg(e){return!e||!Li(e)?!1:e.classList.contains(Dt)}function Ko(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function _i(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ei(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iM=Yn(x0,300);async function Oi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ji&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=ki(i),u=i.config.translationServices[i.translationService],l=b0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:v0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Jg(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Hr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sM(e,t.text),Qg(e,t,r)):(Ji&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Li(t)&&t.classList.contains(Dt):!1}function sM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Qg(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Ji&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,U3,"1",!0),n=="hover"){x0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iM.call(e,e.ctx,a)}async function x0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=uM(e,u.toString());l&&lM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function uM(e,t){return e.find(n=>n.id===t)}function lM(e,t,n,r,a,i){let o=!1,s=r;wo(s.commonAncestorContainer,n.id)?.remove(),Zg(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Dt),m.setAttribute(no,"1");let p=M6(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Vo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aM.sanitize(p);m.innerHTML=jn?.createHTML(g)||g,c.targetNodes=[m],Su(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,W3,m.toString()),p.classList.add("notranslate",Dt,Dt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Vg(g)||ei(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cM(a,c).replaceAll(` `,"").replaceAll('"',"""),b=c.message.replaceAll(` `,"").replaceAll('"',"""),f=Me(a.config.interfaceLanguage,"retryAllButton"),y=Me(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,x=Me(a.config.interfaceLanguage,"error.retry"),S=Me(a.config.interfaceLanguage,"error.reason"),T=`
<${d.targetWrapperTag} class="${R}-error notranslate"> <${d.targetWrapperTag} class="${R}-error-wrapper"> @@ -5951,7 +5951,7 @@ ${s}} ${S} - `;p.innerHTML=dr?.createHTML(T)||T}}}var O6="";async function Jg(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=O6.slice(0,e.rule?.detectTextBufferLength)+" "+o),O6=s;let u=await Ie({text:s,minLength:15,pageLangs:[mt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Eo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Eo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=zc();r.isDetectParagraphLanguage&&(m="auto");let p=mt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!dc.includes(e.translationService)&&(te()||at())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Oa(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Oa(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Tu(){Vg=0}var Vg=0;function cM(e,t){Vg+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),Vg!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(gn,{detail:r}))}return n}function Zg(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,dM(t,`[${H3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function dM(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}var mM=[];function N6(e){mM.push(e)}var Xg;function j6(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=cn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Cu(e,i,t,r)}),Xg=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||ef(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Cu(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Ur(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=ko(r,u.parentElement);c&&(ht.clearToParentMark(u,c),Cu(e,c,t,r));continue}Cu(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ht.isMarked(o,e.id)||Cu(e,o,t,r)})}),Xg.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Cu(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&$g(t),va({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Oi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function U6(){Xg?.disconnect()}function Yo({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&fn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}ja(v(Uo,{lang:t.config.interfaceLanguage,children:v(n,{...r})}),d)}function Qo(e){return Jo(e).subtitles}function Jo(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?")||l.includes("< styles>")||iC(l)||tC(l)||aC(l)||nC(l)||rC(l)||eB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Od(i?.trim(),n,r)}function Ro(e){return e.nodeType===Node.ELEMENT_NODE}function Gv(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Kv(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ea(){return await Bt("fakeUserId","")}async function $F(){return await Bt("installedAt","")}async function Id(e,t){let r=we().INSTALL_FROM,a=On(),i=await $F(),o=await ea(),s=await Ze(),u=!1,l=await tt.get(mt,null),c=!1;l&&At(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await Fs(),g=await _s(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Bs();return f&&(p.abGroup=f),p}function ii(e,t){let[n,r]=N();return z(()=>{!e||!t||(async()=>{let a=await f4(e,t);r(a)})()},[e,t,r]),n}async function f4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Bt("installedAt","");new Date(o).getTime()s==n),a=b4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>gt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>gt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function b4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Qv(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function Jv(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Zv(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Rd[e]=setTimeout(()=>{n("")},t)})}function $v(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function ji(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Fd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function _i(){return Qf()?"imtAndroid":Sl()?"imtIOS":X()?"userscript":He()?"safari":Zn()?"firefox":N0()?"chrome":"other"}function La(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Bd(e){return e?.getAttribute("imt-state")||""}function Ma(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function _d(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(wr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function eC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}var Nd=!1,tB=X();function oC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function nB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&sC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qi(i,E0)){if(a===!0)return!0;continue}if(Rl(i.nodeName,t.inlineTags))return!0;if(!y4(i,t))return!1}}return!0}function v4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Rl(e.nodeName,n)||y4(e,t)){if(qi(e,L6)||Rl(e.nodeName,["BR"]))return!1;if(qi(e,E0))return!0;if(y4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return nB(e,t)}else return qi(e,E0);return!1}function sC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qi(e,D6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qi(e,v6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Rl(e.nodeName,i))}function Od(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!lC(r)&&r.length>=n}function uC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(lC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function lC(e){for(let t=0;t127)return!1;return!0}function tC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function nC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function rC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function aC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function iC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qi(e,t,n=!1){return C4(e,t,"1",n)}function C4(e,t,n,r=!1){return Nd&&!r?e[yr]?e[yr]?.[t]===n:!1:e.dataset?.[t]===n}function Ws(e){return(e.innerText||e.textContent||"").trim()}function x4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Ud(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Nd&&!r?(e[yr]||(e[yr]={}),e[yr][t]||(e[yr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function cC(e,t,n=!1){if(Nd&&!n){if(!e[yr]||!e[yr][t])return;delete e[yr][t]}else delete e.dataset[t]}function dC(e,t,n=!1){return Nd&&!n?!e[yr]||!e[yr][t]?void 0:e[yr][t]:e.dataset[t]}function y4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Rl(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!xt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function tr(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Hi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(tB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Rl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function mC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function gC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||sC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function pC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function fC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; -`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=mC(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function GF(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Rv(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Md(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function d4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Aa({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function js(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Hv(e,t){let n=t||e.translationService;return js(e,n,e.config.translationServices)?d4(e.rule):e.rule}function Pd(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var KF=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function ka(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Er(e,i))return!1;if(Er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Er(e,o)),c;function m(){return n&&n.display?!!KF.includes(n.display):Er(e,r)}}var qt=Er;function Mo(e){return!!e.shadowRoot}function Ni(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Ml(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Da(e,t=!1){let n=bs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Po(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Da(n,t)}function Hs(e,t){return ki(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function m4(e){let{rule:t}=e,n=YF(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function YF(e){let t=e.config.loadingTheme;return`${F}-loading-${t}`}function Pl(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Yt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,A6,t.toString());let i=m4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function qs(e,t){return e.querySelector(`[${lf}='${t}']`)}function qv(){document.querySelectorAll(`[${lf}]`).forEach(t=>{t.remove()})}function zv(){document.querySelectorAll(`.${Yt}-error`).forEach(t=>{t.remove()})}function Vv(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Hi(n)&&t.push(n)}),t}function g4(e,t){return t?QF(e):JF(e)}function QF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,h)=>{if(f=="id"&&u[h+2]=="=")return p;let y=l++;return t[`${y}`]=Wv(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=Ef(p),g.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function JF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,h)=>f.tl&&!h.tl?1:!f.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,h,y)=>{if(h=="id"&&l[y+2]=="=")return f;let b=c++;return t[`${b}`]=Wv(h,m),o.length>2?f.replace(h,`<${o[2]}${b}>`):f.replace(h,`${o[0]}${b}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let h=c++;return t[`${h}`]=Ef(f),o.length>2?p.replace(f,`<${o[2]}${h}>`):p.replace(f,`${o[0]}${h}${o[1]}`)})})}catch(m){D.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function p4(e,t){return t?ZF(e):XF(e)}function ZF(e){let{text:t,variables:n}=e,r=Pd(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function XF(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Wv(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function zs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||iC(l)||tC(l)||aC(l)||nC(l)||rC(l)||eB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Od(i?.trim(),n,r)}function Ro(e){return e.nodeType===Node.ELEMENT_NODE}function Gv(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Kv(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ea(){return await Bt("fakeUserId","")}async function $F(){return await Bt("installedAt","")}async function Id(e,t){let r=we().INSTALL_FROM,a=On(),i=await $F(),o=await ea(),s=await Ze(),u=!1,l=await tt.get(mt,null),c=!1;l&&At(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await Fs(),g=await _s(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Bs();return f&&(p.abGroup=f),p}function ii(e,t){let[n,r]=N();return z(()=>{!e||!t||(async()=>{let a=await f4(e,t);r(a)})()},[e,t,r]),n}async function f4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Bt("installedAt","");new Date(o).getTime()s==n),a=b4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>gt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>gt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function b4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Qv(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function Jv(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Zv(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Rd[e]=setTimeout(()=>{n("")},t)})}function $v(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function ji(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Fd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function _i(){return Qf()?"imtAndroid":Sl()?"imtIOS":X()?"userscript":He()?"safari":Zn()?"firefox":N0()?"chrome":"other"}function La(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Bd(e){return e?.getAttribute("imt-state")||""}function Ma(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function _d(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function eC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}var Nd=!1,tB=X();function oC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function nB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&sC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qi(i,E0)){if(a===!0)return!0;continue}if(Rl(i.nodeName,t.inlineTags))return!0;if(!y4(i,t))return!1}}return!0}function v4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Rl(e.nodeName,n)||y4(e,t)){if(qi(e,L6)||Rl(e.nodeName,["BR"]))return!1;if(qi(e,E0))return!0;if(y4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return nB(e,t)}else return qi(e,E0);return!1}function sC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qi(e,D6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qi(e,v6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Rl(e.nodeName,i))}function Od(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!lC(r)&&r.length>=n}function uC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(lC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function lC(e){for(let t=0;t127)return!1;return!0}function tC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function nC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function rC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function aC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function iC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qi(e,t,n=!1){return C4(e,t,"1",n)}function C4(e,t,n,r=!1){return Nd&&!r?e[vr]?e[vr]?.[t]===n:!1:e.dataset?.[t]===n}function Ws(e){return(e.innerText||e.textContent||"").trim()}function x4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Ud(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Nd&&!r?(e[vr]||(e[vr]={}),e[vr][t]||(e[vr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function cC(e,t,n=!1){if(Nd&&!n){if(!e[vr]||!e[vr][t])return;delete e[vr][t]}else delete e.dataset[t]}function dC(e,t,n=!1){return Nd&&!n?!e[vr]||!e[vr][t]?void 0:e[vr][t]:e.dataset[t]}function y4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Rl(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!xt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function tr(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Hi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(tB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Rl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function mC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function gC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||sC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function pC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function fC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; +`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:h}=mC(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${F}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5835,10 +5835,10 @@ ${s}} `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&tr(e,s,F+"-dynamic-injected-css")}var rB=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--rB,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ne.vnode&&Ne.vnode(u),u}function S4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(ce,{children:n["#services"]}):a.test(e)?d(ce,{children:n["#ai"]}):d(ce,{children:n[e]!=null?n[e]:t})}function Io(){let[e,t]=N(location.hash);return z(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var jd=()=>or.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=wy[e]||e,i=Mf[e]||e,o=Pf[e],s=Rf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Pf,a="zh-CN"):n==="zh-TW"?(r=Rf,a="zh-TW"):(r=Mf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function T4(e){let t=j.runtime.getURL(c6),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Pa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return D.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=b0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function hC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${h0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function bC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Hd(e,t,n,r,a,i,o){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let s=new Pa(e);try{let u=(await s.findByName(b0)).files;D.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)D.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())D.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),Qu()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ti);if(t[Ti])return t[Ti]}static async removeAuthInfo(){return await j.storage.local.remove(Ti)}static setAuthInfo(t){return j.storage.local.set({[Ti]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await yC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=hC(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+r),Qu()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=bC(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{D.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var iB="https://www.googleapis.com/oauth2/v3/tokeninfo",oB=h0,sB=we().REDIRECT_URL;function yC(e){if(!e)throw"Authorization failure";let t=`${iB}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===oB?i(e):o("Token validation error")})})}return fetch(n).then(r)}function w4(e,t=!1){let n=sB;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Wi(e,n).auth(t)}function E4(e,t=!1){return w4(e,t).then(n=>n.access_token||null)}async function vC(){}var uB="https://www.google-analytics.com/mp/collect",lB=30,cB=100;async function dB(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>lB?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function CC(e){ry().forEach(({measurementId:t,apiSecret:n})=>{xC({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Ks(e,t,n){return xC({measurement_id:ty,api_secret:ny,page_title:e,page_location:t,time:n})}async function xC(e){try{let t=we(),n=Pi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Ii(),i=`${uB}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await dB(),engagement_time_msec:e.time||cB,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){D.error(t)}}var Il=new Map;function mB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function A4(e){let t=await hB(),n=Date.now();if(t){if(Il.has(e))return;let r=await j.tabs.get(e),a=mB(r.url);if(!a)return;Il.set(e,{duration:0,lastActiveTime:n,hostname:a});return}SC(e)}function SC(e){if(Il.has(e)){let t=Il.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Il.delete(e),pB(t.hostname,n)}}async function gB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function pB(e,t){Ks(`${e}(video)`,e,t),fB(t)}var qd="videoWatchTimeDay";async function fB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(qd,null);if(!a){await Je(qd,{day:r,time:e});return}if(a.day!==r){Ks("day-video."+et,"day-video."+et,a.time),await Je(qd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(qd,i)}catch(t){D.error(t)}}async function hB(){try{return await gB({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Bl=new Map;async function TC(e){let t=await k4(),n=Date.now();if(t=="Translated"){if(Bl.has(e))return;let r=await j.tabs.get(e),a=bB(r.url);if(!a)return;Bl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}yB(e)}function bB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function yB(e){if(Bl.has(e)){let t=Bl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Bl.delete(e),CB(t.hostname,n)}}async function vB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function CB(e,t){Ks(e,e,t),xB(t)}async function k4(){try{return await vB({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var zd="readTimeDay";async function xB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(zd,null);if(!a){await Je(zd,{day:r,time:e});return}if(a.day!==r){Ks("day."+et,"day."+et,a.time),await Je(zd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(zd,i)}catch(t){D.error(t)}}var Vd,SB=async function(e,t){let{method:n,data:r}=e;if(D.debug("background received message",n,r||" "),n==="mock")await ut(150);else{if(n==="queryParagraphCache")return K0(r);if(n==="setParagraphCache")return G0(r);if(n==="calculateSize")return Y0();if(n==="fetch")return Br(r);if(n==="getConfig")return Ze();if(n==="getLocalConfig")return Mt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=we().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=we().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=we().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=we().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=T4(a);(He()||!a)&&(i=we().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return kt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return sr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await wC(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return D.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await wC(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await vC()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(Ys({}),TB(a,i)),a&&TC(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Li.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")CC(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&A4(a)}else n==="updateToggleTranslateContextMenu"?Ys(r):n==="updateImageMenu"&&Fo()}}};function Fl(){return Vd||(Vd=new Sa("background",!1).getConnection("main",SB),Vd)}function Wd(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function TB(e,t){if(He())return;let n=await wB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("icons",n)}))}async function wB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function wC(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function EB(){return navigator.userAgent.indexOf("Mac")!==-1}var AB="";function AC(){return AB||globalThis.navigator.userAgent}function kB(){let e=AC();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var EC={Alt:"\u2325"};function Ra(e=""){return EB()?Object.keys(EC).reduce((t,n)=>t.replace(n,EC[n]),e):e}var DB="";function LB(){return DB||globalThis.location.hostname}function kC(){try{let e=LB(),t=new URL(pf);if(e===t.hostname||!kB())return!0;let n=/Version\/([\d\.]+)/,r=AC().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return D.error("Error checking if options supported",e),!0}}function oi(e,t){return X(t)?!1:DC(e.config,e.isPro)}function DC(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function LC(){if(X())return!1;let e=await Ze(),t=await Ss();return DC(e,t)}function Gd(e){let t=_i();return!(e?.platforms&&!e.platforms.includes(t))}function D4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function MC(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function MB(){return N0()&&!He()}var _l=MB()?["action"]:["browser_action","page_action"],PC="",PB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",..._l]},{id:el,contexts:["image"]},{id:$u,contexts:_l},{id:tl,contexts:_l},{id:nl,contexts:_l},{id:C6,contexts:_l}];async function Ol(e){e=e||await Ze(),D.debug("update ContextMenu",e);for(let t of PB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function Ys({targetLanguage:e,text:t}){let n=await Ze(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)PC=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await k4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ra(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),PC=""}j.contextMenus.update(r,{title:i,visible:a})}async function Fo(){try{let e=await LC();j.contextMenus.update(el,{visible:e})}catch{}}function RC(e,t){let n=t;n||(n=we().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function Kd(e,t,n,r,a){let i=t.original||t,o=Iv(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(S=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function IC(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function FC(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=lt.sanitize(Pd(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let m=Object.keys(e.variables);for(let g=0;g/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Ov(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Po(t);if(c.length>2){let m=c[2];return RB({delimiterTag:m,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let m=BC(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return m.html}}function L4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function RB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),S=p[C-1]===" ",x=p[C+v.length]===" ",T=v.match(b);if(!T)return v;let w=T[1],E=Number(w);if(isNaN(E))return v;let k=o[Number(E)];if(k&&k.type==="element"){let M=lt.sanitize(k.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return S||(M=" "+M),x||(M=M+" "),M}else if(k&&k.type==="text"){let M=k.value;return S||(M=" "+M),x||(M=M+" "),M}else D.error("variable type not supported",k,v);return v}));let y=Qs(l,n,r||[],s),h=Js(l);return P4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:hs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function P4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function M4(e){let t=e[e.length-1];return t?t.text:""}function Qs(e,t,n=[],r){let a=["notranslate"];return r&&a.push(I6),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${df}-theme-${e}`):a.push(`${cf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(df):a.push(cf),a}function Js(e){let t=["notranslate",k0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function BC(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Po(n,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,S=>{let x=h.indexOf(S),T=h[x-1]===" ",w=h[x+S.length]===" ",k=S.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(k);if(isNaN(M))return S;let I=o[M];if(I&&I.type==="element"){let R=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",I,S);return S}));let v=Qs(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(R6);let C=Js(i);return P4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:hs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function nt(e){$p({type:"success",text:e})}function bt(e){$p({type:"error",text:e})}var R4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function Yd(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");z(()=>{R4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=le(g=>{let p=typeof g=="function"?g(i):g;D.debug("new settings",p),R4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function Qd(e,t,n){let r=[];return function(){let[i,o,s,u]=Yd(e,t,n),l=le(c=>{for(let m of r)m(c)},[]);return z(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function _C(e,t){return Qd(e,t,"local")}function OC(e,t){return Qd(e,t,"sync")}var IB="userConfig",FB=null,BB=OC(IB,FB);function Oe(e){let[t,n,r,a]=BB(),[i,o]=N();z(()=>{(async function(){let u=await kd();o(u)})()},[t]);let s=le(async u=>{let l=typeof u=="function"?u(i):u;l&&I4(l);let{userConfig:c,promptPool:m,objectPool:g}=await s4(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(m).length,m),D.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ed,m),await Qr(Ad,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function I4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Ay(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h.callback&&h.callback(T,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let S=p[y],x=0;for(let T=0;T{let x=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(x=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(w=>w.text),forces:h.tempSentences.map(w=>w.force),xpaths:h.tempSentences.map(w=>w.xpath||""),from:x,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let T=P6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Da(this.serviceConfig);if(h.tempSentences.forEach((B,H)=>{let W=g4({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(W&&W.text&&W.text.trim().lengthH.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:B,from:x,to:h.to})}let M="";w&&w.length>=2?M=E.map((B,H)=>{let{item:W}=B;return H===E.length-1?W.text:W.text+w[0]+(H+1)+w[1]}).join(""):M=E.map(({item:B})=>B.text).join(T);let I=await this.translate({text:M,from:x,to:h.to,url:v,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:R}=I,P=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let H=new RegExp(B,"g");P=R.split(H)}else P=R.split(T);let L=[];if(P.length>E.length){for(let B=0;BB.text);return k=Da(this.serviceConfig,!0),L.forEach((B,H)=>{let W=E[H],Z=W.index,Se=W.variables||{};Object.keys(Se).length>0&&(B=p4({text:B,delimiters:k,variables:Se},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),U[Z]=B}),{sourceTempSentences:h.tempSentences,text:U,from:I.from,to:I.to}}};g.push(S().then(x=>{let{text:T,sourceTempSentences:w}=x;for(let E=0;E{if(x instanceof V&&x.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Da(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=g4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Da(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=p4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Zs="input is invalid type",F4=typeof window=="object",Gi=F4?window:{};Gi.JS_SHA256_NO_WINDOW&&(F4=!1);var _B=!F4&&typeof self=="object",OB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;OB?Gi=global:_B&&(Gi=self);var xre=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Sre=typeof define=="function"&&define.amd,Nl=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),NB=[-2147483648,8388608,32768,128],ta=[24,16,8,0],Jd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Zd=["hex","array","digest","arrayBuffer"],Sn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Nl&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var NC=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},jC=function(e){var t=NC("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=NB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+Jd[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+Jd[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+Jd[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+Jd[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=Ce[e>>28&15]+Ce[e>>24&15]+Ce[e>>20&15]+Ce[e>>16&15]+Ce[e>>12&15]+Ce[e>>8&15]+Ce[e>>4&15]+Ce[e&15]+Ce[t>>28&15]+Ce[t>>24&15]+Ce[t>>20&15]+Ce[t>>16&15]+Ce[t>>12&15]+Ce[t>>8&15]+Ce[t>>4&15]+Ce[t&15]+Ce[n>>28&15]+Ce[n>>24&15]+Ce[n>>20&15]+Ce[n>>16&15]+Ce[n>>12&15]+Ce[n>>8&15]+Ce[n>>4&15]+Ce[n&15]+Ce[r>>28&15]+Ce[r>>24&15]+Ce[r>>20&15]+Ce[r>>16&15]+Ce[r>>12&15]+Ce[r>>8&15]+Ce[r>>4&15]+Ce[r&15]+Ce[a>>28&15]+Ce[a>>24&15]+Ce[a>>20&15]+Ce[a>>16&15]+Ce[a>>12&15]+Ce[a>>8&15]+Ce[a>>4&15]+Ce[a&15]+Ce[i>>28&15]+Ce[i>>24&15]+Ce[i>>20&15]+Ce[i>>16&15]+Ce[i>>12&15]+Ce[i>>8&15]+Ce[i>>4&15]+Ce[i&15]+Ce[o>>28&15]+Ce[o>>24&15]+Ce[o>>20&15]+Ce[o>>16&15]+Ce[o>>12&15]+Ce[o>>8&15]+Ce[o>>4&15]+Ce[o&15];return this.is224||(u+=Ce[s>>28&15]+Ce[s>>24&15]+Ce[s>>20&15]+Ce[s>>16&15]+Ce[s>>12&15]+Ce[s>>8&15]+Ce[s>>4&15]+Ce[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Xd(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Zs);if(Nl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Nl||!ArrayBuffer.isView(e)))throw new Error(Zs)}else throw new Error(Zs);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Xd.prototype=new Tn;Xd.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var Xs=jC();Xs.sha256=Xs;Xs.sha224=jC(!0);Xs.sha256.hmac=HC();Xs.sha224.hmac=HC(!0);var qC=Xs;var zC=qC.sha256;function lr(e){return Promise.resolve(zC(e))}function $s(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Er(e,t){let n=zC.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function VC(e,t){let n=await Er(e,t);return $s(n)}async function $d(e,t){let n=UB(t),r=await Er(e,n);return $s(r)}function UB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var WC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ul=class e extends Ie{static langMap=new Map(WC);maxTextGroupLength=50;static langMapReverse=new Map(WC.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await lr(a)].join(` -`),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await lr(c)].join(` -`),p=await VC(m,`TC3${n}`),f=await $d(i,p),b=await $d("tc3_request",f),y=await $d(g,b),h=await te({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new V(h.Response.Error.Message);return h}};var GC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],jB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},jl=class e extends Ie{static langMap=new Map(GC);static langMapReverse=new Map(GC.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await te({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:jB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var KC=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Hl=class e extends Ie{static langMap=new Map(KC);static langMapReverse=new Map(KC.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await te({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function HB(e,t){return t?e+(t-e%t):e}function qB(e,t){return e.split(t).length-1}function B4(e){let t=Date.now(),n=1;for(let r of e)n+=qB(r,"i");return HB(t,n)}function zB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function _4(){return zB(1e6,1e8)}var O4="https://www2.deepl.com/jsonrpc",N4="auto",YC=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function VB(e=YC){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function U4(e){return VB()[e.toLowerCase()]}var WB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function GB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function KB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function YB(e,t,n,r,a,i,o){let s=_4(),u=KB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=B4(t);let c=await te({retry:2,method:"POST",url:e,body:GB(u),headers:WB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function QC(e,t,n,r=N4,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:YB(e,t,U4(n),U4(r)??"auto",a,i,o):{text:[],from:r,to:n}}var JC=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],eu=class e extends Ie{static langMap=new Map(JC);static langMapReverse=new Map(JC.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=O4;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(O4,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await QC(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var ql=class e extends Ie{static langMap=new Map(Wf);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ri.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=we(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=ZC());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await te({url:nd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=we(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=ZC()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`+t.rule.additionalInjectedCss)),s&&tr(e,s,F+"-dynamic-injected-css")}var rB=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--rB,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ne.vnode&&Ne.vnode(u),u}function S4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(ce,{children:n["#services"]}):a.test(e)?d(ce,{children:n["#ai"]}):d(ce,{children:n[e]!=null?n[e]:t})}function Io(){let[e,t]=N(location.hash);return z(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var jd=()=>or.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=wy[e]||e,i=Mf[e]||e,o=Pf[e],s=Rf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Pf,a="zh-CN"):n==="zh-TW"?(r=Rf,a="zh-TW"):(r=Mf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function T4(e){let t=j.runtime.getURL(c6),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Pa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return D.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=b0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function hC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${h0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function bC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Hd(e,t,n,r,a,i,o){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let s=new Pa(e);try{let u=(await s.findByName(b0)).files;D.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)D.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())D.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),Qu()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ti);if(t[Ti])return t[Ti]}static async removeAuthInfo(){return await j.storage.local.remove(Ti)}static setAuthInfo(t){return j.storage.local.set({[Ti]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await yC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=hC(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+r),Qu()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let h=new URL(f.url||""),y=bC(f.url);h.pathname.startsWith("/auth-done")&&y?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{D.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var iB="https://www.googleapis.com/oauth2/v3/tokeninfo",oB=h0,sB=we().REDIRECT_URL;function yC(e){if(!e)throw"Authorization failure";let t=`${iB}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===oB?i(e):o("Token validation error")})})}return fetch(n).then(r)}function w4(e,t=!1){let n=sB;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Wi(e,n).auth(t)}function E4(e,t=!1){return w4(e,t).then(n=>n.access_token||null)}async function vC(){}var uB="https://www.google-analytics.com/mp/collect",lB=30,cB=100;async function dB(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>lB?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function CC(e){ry().forEach(({measurementId:t,apiSecret:n})=>{xC({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Ks(e,t,n){return xC({measurement_id:ty,api_secret:ny,page_title:e,page_location:t,time:n})}async function xC(e){try{let t=we(),n=Pi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Ii(),i=`${uB}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await dB(),engagement_time_msec:e.time||cB,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){D.error(t)}}var Il=new Map;function mB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function A4(e){let t=await hB(),n=Date.now();if(t){if(Il.has(e))return;let r=await j.tabs.get(e),a=mB(r.url);if(!a)return;Il.set(e,{duration:0,lastActiveTime:n,hostname:a});return}SC(e)}function SC(e){if(Il.has(e)){let t=Il.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Il.delete(e),pB(t.hostname,n)}}async function gB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function pB(e,t){Ks(`${e}(video)`,e,t),fB(t)}var qd="videoWatchTimeDay";async function fB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(qd,null);if(!a){await Je(qd,{day:r,time:e});return}if(a.day!==r){Ks("day-video."+et,"day-video."+et,a.time),await Je(qd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(qd,i)}catch(t){D.error(t)}}async function hB(){try{return await gB({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Bl=new Map;async function TC(e){let t=await k4(),n=Date.now();if(t=="Translated"){if(Bl.has(e))return;let r=await j.tabs.get(e),a=bB(r.url);if(!a)return;Bl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}yB(e)}function bB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function yB(e){if(Bl.has(e)){let t=Bl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Bl.delete(e),CB(t.hostname,n)}}async function vB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function CB(e,t){Ks(e,e,t),xB(t)}async function k4(){try{return await vB({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var zd="readTimeDay";async function xB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(zd,null);if(!a){await Je(zd,{day:r,time:e});return}if(a.day!==r){Ks("day."+et,"day."+et,a.time),await Je(zd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(zd,i)}catch(t){D.error(t)}}var Vd,SB=async function(e,t){let{method:n,data:r}=e;if(D.debug("background received message",n,r||" "),n==="mock")await ut(150);else{if(n==="queryParagraphCache")return K0(r);if(n==="setParagraphCache")return G0(r);if(n==="calculateSize")return Y0();if(n==="fetch")return _r(r);if(n==="getConfig")return Ze();if(n==="getLocalConfig")return Mt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=we().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=we().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=we().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=we().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=T4(a);(He()||!a)&&(i=we().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return kt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return sr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await wC(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return D.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await wC(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await vC()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(Ys({}),TB(a,i)),a&&TC(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Li.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")CC(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&A4(a)}else n==="updateToggleTranslateContextMenu"?Ys(r):n==="updateImageMenu"&&Fo()}}};function Fl(){return Vd||(Vd=new Sa("background",!1).getConnection("main",SB),Vd)}function Wd(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function TB(e,t){if(He())return;let n=await wB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("icons",n)}))}async function wB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function wC(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function EB(){return navigator.userAgent.indexOf("Mac")!==-1}var AB="";function AC(){return AB||globalThis.navigator.userAgent}function kB(){let e=AC();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var EC={Alt:"\u2325"};function Ra(e=""){return EB()?Object.keys(EC).reduce((t,n)=>t.replace(n,EC[n]),e):e}var DB="";function LB(){return DB||globalThis.location.hostname}function kC(){try{let e=LB(),t=new URL(pf);if(e===t.hostname||!kB())return!0;let n=/Version\/([\d\.]+)/,r=AC().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return D.error("Error checking if options supported",e),!0}}function oi(e,t){return X(t)?!1:DC(e.config,e.isPro)}function DC(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function LC(){if(X())return!1;let e=await Ze(),t=await Ss();return DC(e,t)}function Gd(e){let t=_i();return!(e?.platforms&&!e.platforms.includes(t))}function D4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function MC(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function MB(){return N0()&&!He()}var _l=MB()?["action"]:["browser_action","page_action"],PC="",PB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",..._l]},{id:el,contexts:["image"]},{id:$u,contexts:_l},{id:tl,contexts:_l},{id:nl,contexts:_l},{id:C6,contexts:_l}];async function Ol(e){e=e||await Ze(),D.debug("update ContextMenu",e);for(let t of PB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function Ys({targetLanguage:e,text:t}){let n=await Ze(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)PC=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await k4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ra(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),PC=""}j.contextMenus.update(r,{title:i,visible:a})}async function Fo(){try{let e=await LC();j.contextMenus.update(el,{visible:e})}catch{}}function RC(e,t){let n=t;n||(n=we().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function Kd(e,t,n,r,a){let i=t.original||t,o=Iv(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let b=0;b0&&i[b].textContent.length0&&(S=m[b-1].text),bf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function IC(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function FC(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=lt.sanitize(Pd(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let m=Object.keys(e.variables);for(let g=0;g/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Ov(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Po(t);if(c.length>2){let m=c[2];return RB({delimiterTag:m,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let m=BC(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return m.html}}function L4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function RB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),S=p[C-1]===" ",x=p[C+v.length]===" ",T=v.match(h);if(!T)return v;let w=T[1],E=Number(w);if(isNaN(E))return v;let k=o[Number(E)];if(k&&k.type==="element"){let M=lt.sanitize(k.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return S||(M=" "+M),x||(M=M+" "),M}else if(k&&k.type==="text"){let M=k.value;return S||(M=" "+M),x||(M=M+" "),M}else D.error("variable type not supported",k,v);return v}));let y=Qs(l,n,r||[],s),b=Js(l);return P4({targetWrapperTag:a,innerClassList:b,classList:y,html:p,targetElementEffectAttributeName:hs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function P4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function M4(e){let t=e[e.length-1];return t?t.text:""}function Qs(e,t,n=[],r){let a=["notranslate"];return r&&a.push(I6),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${df}-theme-${e}`):a.push(`${cf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(df):a.push(cf),a}function Js(e){let t=["notranslate",k0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function BC(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Po(n,!0),g="afterend",p=m[0],f=m[1],h=`${p}(\\d+)${f}`,y=new RegExp(h,"g"),b=u;o.length>0&&(b=b.replace(y,S=>{let x=b.indexOf(S),T=b[x-1]===" ",w=b[x+S.length]===" ",k=S.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(k);if(isNaN(M))return S;let I=o[M];if(I&&I.type==="element"){let R=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",I,S);return S}));let v=Qs(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(R6);let C=Js(i);return P4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:b,targetElementEffectAttributeName:hs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function nt(e){$p({type:"success",text:e})}function bt(e){$p({type:"error",text:e})}var R4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function Yd(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");z(()=>{R4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=le(g=>{let p=typeof g=="function"?g(i):g;D.debug("new settings",p),R4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function Qd(e,t,n){let r=[];return function(){let[i,o,s,u]=Yd(e,t,n),l=le(c=>{for(let m of r)m(c)},[]);return z(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function _C(e,t){return Qd(e,t,"local")}function OC(e,t){return Qd(e,t,"sync")}var IB="userConfig",FB=null,BB=OC(IB,FB);function Oe(e){let[t,n,r,a]=BB(),[i,o]=N();z(()=>{(async function(){let u=await kd();o(u)})()},[t]);let s=le(async u=>{let l=typeof u=="function"?u(i):u;l&&I4(l);let{userConfig:c,promptPool:m,objectPool:g}=await s4(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(m).length,m),D.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ed,m),await Qr(Ad,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function I4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Ay(a,c,m)}catch(y){if(r)for(let b=0;by));let g=[],p=[],f=(y,b,v)=>{let C="";if(b.translatedTexts&&b.translatedTexts[0]&&(C=b.translatedTexts[0]),p[y]||(p[y]=b,p[y].translatedTexts=Array(b.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,b.callback&&b.callback(T,null,b.sentence);return}p[y].translatedTexts[b.partIndex]=C;let S=p[y],x=0;for(let T=0;T{let x=b.from;if(b.fromByClient&&b.fromByClient!=="auto"&&(x=b.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:b.tempSentences.map(w=>w.text),forces:b.tempSentences.map(w=>w.force),xpaths:b.tempSentences.map(w=>w.xpath||""),from:x,to:b.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:b.tempSentences};{let T=P6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Da(this.serviceConfig);if(b.tempSentences.forEach((B,H)=>{let W=g4({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:b.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(W&&W.text&&W.text.trim().lengthH.text);return Promise.resolve({sourceTempSentences:b.tempSentences,text:B,from:x,to:b.to})}let M="";w&&w.length>=2?M=E.map((B,H)=>{let{item:W}=B;return H===E.length-1?W.text:W.text+w[0]+(H+1)+w[1]}).join(""):M=E.map(({item:B})=>B.text).join(T);let I=await this.translate({text:M,from:x,to:b.to,url:v,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:R}=I,P=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let H=new RegExp(B,"g");P=R.split(H)}else P=R.split(T);let L=[];if(P.length>E.length){for(let B=0;BB.text);return k=Da(this.serviceConfig,!0),L.forEach((B,H)=>{let W=E[H],Z=W.index,Se=W.variables||{};Object.keys(Se).length>0&&(B=p4({text:B,delimiters:k,variables:Se},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),U[Z]=B}),{sourceTempSentences:b.tempSentences,text:U,from:I.from,to:I.to}}};g.push(S().then(x=>{let{text:T,sourceTempSentences:w}=x;for(let E=0;E{if(x instanceof V&&x.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let b=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(b=y.translatedTexts.join("")),{...y.sentence,text:b}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Da(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=g4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Da(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=p4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Zs="input is invalid type",F4=typeof window=="object",Gi=F4?window:{};Gi.JS_SHA256_NO_WINDOW&&(F4=!1);var _B=!F4&&typeof self=="object",OB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;OB?Gi=global:_B&&(Gi=self);var xre=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Sre=typeof define=="function"&&define.amd,Nl=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),NB=[-2147483648,8388608,32768,128],ta=[24,16,8,0],Jd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Zd=["hex","array","digest","arrayBuffer"],Sn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Nl&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var NC=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},jC=function(e){var t=NC("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=NB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,h,y,b,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,h=a&i^~a&o,p=s+m+h+Jd[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),b=r&e,g=b^r&t^y,h=s&a^~s&i,p=o+m+h+Jd[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^b,h=o&s^~o&a,p=i+m+h+Jd[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,h=i&o^~i&s,p=a+m+h+Jd[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=Ce[e>>28&15]+Ce[e>>24&15]+Ce[e>>20&15]+Ce[e>>16&15]+Ce[e>>12&15]+Ce[e>>8&15]+Ce[e>>4&15]+Ce[e&15]+Ce[t>>28&15]+Ce[t>>24&15]+Ce[t>>20&15]+Ce[t>>16&15]+Ce[t>>12&15]+Ce[t>>8&15]+Ce[t>>4&15]+Ce[t&15]+Ce[n>>28&15]+Ce[n>>24&15]+Ce[n>>20&15]+Ce[n>>16&15]+Ce[n>>12&15]+Ce[n>>8&15]+Ce[n>>4&15]+Ce[n&15]+Ce[r>>28&15]+Ce[r>>24&15]+Ce[r>>20&15]+Ce[r>>16&15]+Ce[r>>12&15]+Ce[r>>8&15]+Ce[r>>4&15]+Ce[r&15]+Ce[a>>28&15]+Ce[a>>24&15]+Ce[a>>20&15]+Ce[a>>16&15]+Ce[a>>12&15]+Ce[a>>8&15]+Ce[a>>4&15]+Ce[a&15]+Ce[i>>28&15]+Ce[i>>24&15]+Ce[i>>20&15]+Ce[i>>16&15]+Ce[i>>12&15]+Ce[i>>8&15]+Ce[i>>4&15]+Ce[i&15]+Ce[o>>28&15]+Ce[o>>24&15]+Ce[o>>20&15]+Ce[o>>16&15]+Ce[o>>12&15]+Ce[o>>8&15]+Ce[o>>4&15]+Ce[o&15];return this.is224||(u+=Ce[s>>28&15]+Ce[s>>24&15]+Ce[s>>20&15]+Ce[s>>16&15]+Ce[s>>12&15]+Ce[s>>8&15]+Ce[s>>4&15]+Ce[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Xd(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Zs);if(Nl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Nl||!ArrayBuffer.isView(e)))throw new Error(Zs)}else throw new Error(Zs);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Xd.prototype=new Tn;Xd.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var Xs=jC();Xs.sha256=Xs;Xs.sha224=jC(!0);Xs.sha256.hmac=HC();Xs.sha224.hmac=HC(!0);var qC=Xs;var zC=qC.sha256;function cr(e){return Promise.resolve(zC(e))}function $s(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ar(e,t){let n=zC.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function VC(e,t){let n=await Ar(e,t);return $s(n)}async function $d(e,t){let n=UB(t),r=await Ar(e,n);return $s(r)}function UB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var WC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ul=class e extends Ie{static langMap=new Map(WC);maxTextGroupLength=50;static langMapReverse=new Map(WC.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await cr(a)].join(` +`),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await cr(c)].join(` +`),p=await VC(m,`TC3${n}`),f=await $d(i,p),h=await $d("tc3_request",f),y=await $d(g,h),b=await te({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new V(b.Response.Error.Message);return b}};var GC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],jB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},jl=class e extends Ie{static langMap=new Map(GC);static langMapReverse=new Map(GC.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await te({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:jB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var KC=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Hl=class e extends Ie{static langMap=new Map(KC);static langMapReverse=new Map(KC.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await te({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function HB(e,t){return t?e+(t-e%t):e}function qB(e,t){return e.split(t).length-1}function B4(e){let t=Date.now(),n=1;for(let r of e)n+=qB(r,"i");return HB(t,n)}function zB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function _4(){return zB(1e6,1e8)}var O4="https://www2.deepl.com/jsonrpc",N4="auto",YC=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function VB(e=YC){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function U4(e){return VB()[e.toLowerCase()]}var WB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function GB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function KB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function YB(e,t,n,r,a,i,o){let s=_4(),u=KB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=B4(t);let c=await te({retry:2,method:"POST",url:e,body:GB(u),headers:WB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function QC(e,t,n,r=N4,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:YB(e,t,U4(n),U4(r)??"auto",a,i,o):{text:[],from:r,to:n}}var JC=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],eu=class e extends Ie{static langMap=new Map(JC);static langMapReverse=new Map(JC.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=O4;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(O4,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await QC(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var ql=class e extends Ie{static langMap=new Map(Wf);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ri.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=we(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=ZC());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await te({url:nd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=we(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=ZC()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` `));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await te({url:nd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function ZC(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function j4(){return Math.random()>=.001}var tu=class extends Ie{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!j4())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await f5(),!j4())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var $C=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],H4=new Map($C),XC=new Map($C.map(([e,t])=>[t,e])),q4=class e extends Ie{static langMap=H4;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await te({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:H4.get(r)||"auto",target_lang:H4.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:XC.get(o.source_lang),to:XC.get(o.target_lang)}}else throw new V(i.msg)}},em=q4;var z4="https://{s}bing.com",ax=z4+"/translator",QB=z4+"/ttranslatev3",JB=z4+"/tspellcheckv3",tm="bingGlobalConfig",ix=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],ex=new Map(ix),tx=new Map(ix.map(([e,t])=>[t,e])),nx=1e3,na,nu;function V4(e,t){return e.replace("{s}",t?t+".":"")}async function ZB(){if(!na){let n=await j.storage.local.get(tm);return n&&(na=n[tm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=na;return Date.now()-e>t}async function rx(){let e,t,n,r,a,i,o,s,u,l;try{let c=V4(ax,e),m=await te({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return na={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[tm]:na}),na}function XB(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=na;return V4(e?JB:QB,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+na.count++:"")}function $B(e,t,n,r){let{token:a,key:i}=na,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function ox(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>nx)throw new Error(`The supported maximum length of text is ${nx}. Please shorten the text.`);nu||(nu=rx()),await nu,await ZB()&&(nu=rx(),await nu),t=t||"auto",n=n||"zh-CN",t=ex.get(t)||t,n=ex.get(n)||n;let a=XB(!1),i=$B(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:V4(ax,na.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await te({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(na=null,nu=null,await j.storage.local.remove(tm),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. @@ -5846,31 +5846,31 @@ ${s}} `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:tx.get(g.language),to:tx.get(m.to)}}function Ki(e){return e!=null}function lx(e,t,n){return`${e.type}#${t}#${n}`}function cx(e,t,n,r,a){return{body:a,id:r,type:lx(e,t,n)}}function e_(e,t,n,r){return{id:n,response:r,type:lx(e,"ask",t)}}function dx(e,t,n,r){if(Ki(r)){let a=r.type;if(Ki(a)&&Ki(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function t_(e,t,n){if(Ki(n)){let r=n.type;if(Ki(r)&&Ki(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function n_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function r_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;t_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function a_(e,t,n,r){let a=i=>{let o=i.data;dx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function sx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(dx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(e_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function i_(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(cx(t,"tell",n,i,r),a)}async function ux(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await r_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(cx(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;sx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ki(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await ux(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(a_(this.thisWindow,this.protocol,t,n))}tell(t,n){i_(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(sx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return ux(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){n_(this.listeners)}};var mx;async function gx(){if(xt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(L0,"*",{targetWindow:t});mx=n,await Yi.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function px(){return mx}var nm=new Map;async function W4(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Cr(e.body)),nm.has(t))return nm.get(t);let n=te(e);nm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{nm.delete(t)},3e3)}}async function fx(e){return W4(e)}async function Ia(e){if(xt()){let n=px();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return W4(e)}else return W4(e)}function hx(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function am(e){await Df(e)}async function Fa(e,t){let n=await Af(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return rm(e,t)}return rm(e,t)}async function rm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await kf(e,n,i-1e3),n}var o_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],G4=new Map(o_),ra=class extends Ie{static langMap=G4;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await am(nf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await ox(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Fa(nf,async()=>{let t=await Ia({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return hx(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=G4.get(n)||"auto",o=G4.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await te({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var s_=["chinese","english","japanese","korean","french","spanish","deutsch"],Ba={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},im=e=>Ba.chinese.test(e),u_=e=>Ba.english.test(e),l_=e=>Ba.japanese.test(e),c_=e=>Ba.korean.test(e),d_=e=>Ba.french.test(e),m_=e=>Ba.deutsch.test(e),g_=e=>Ba.spanish.test(e),Wie={chinese:qr(im),english:qr(u_),japanese:qr(l_),korean:qr(c_),french:qr(d_),spanish:qr(g_),deutsch:qr(m_)},bx=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,Gie=new RegExp(`^(\\d|\\s|${bx.source})+$`),p_=new RegExp(`${Ba.chinese.source}|${Ba.japanese.source}|${Ba.korean.source}`),Kie=qr(e=>(e.replace(new RegExp(bx,"g")," ").replace(new RegExp(p_,"g")," x ").match(/\S+/g)||"").length),Yie=[...s_,"others","matchAll"];var vx=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],zl=new Map(vx),f_=new Map(vx.map(([e,t])=>[t,e])),K4=class extends Ie{static langMap=zl;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ft;immersiveTranslateDeeplProApiUrl=ft+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:zl.get(n)||"",target_lang:zl.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:zl.get(n)||"auto",target_lang:zl.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await te({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>Y4(c.text,r));if(s){let c=this.serviceConfig||{},g=await new ra({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&f_.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!xa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},ru=K4;function Y4(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&im(e[0])&&yx(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&im(e[e.length-1])&&yx(e,"\u300A")==1?e+"\u300B":e}function yx(e,t){return e.split(t).length-1}var h_=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Q4=new Map(h_),J4=class extends Ie{static langMap=Q4;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Q4.get(r)||r,to:Q4.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await te(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:tx.get(g.language),to:tx.get(m.to)}}function Ki(e){return e!=null}function lx(e,t,n){return`${e.type}#${t}#${n}`}function cx(e,t,n,r,a){return{body:a,id:r,type:lx(e,t,n)}}function e_(e,t,n,r){return{id:n,response:r,type:lx(e,"ask",t)}}function dx(e,t,n,r){if(Ki(r)){let a=r.type;if(Ki(a)&&Ki(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function t_(e,t,n){if(Ki(n)){let r=n.type;if(Ki(r)&&Ki(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function n_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function r_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;t_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function a_(e,t,n,r){let a=i=>{let o=i.data;dx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function sx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(dx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(e_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function i_(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(cx(t,"tell",n,i,r),a)}async function ux(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await r_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(cx(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;sx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ki(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await ux(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(a_(this.thisWindow,this.protocol,t,n))}tell(t,n){i_(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(sx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return ux(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){n_(this.listeners)}};var mx;async function gx(){if(xt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(L0,"*",{targetWindow:t});mx=n,await Yi.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function px(){return mx}var nm=new Map;async function W4(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=xr(e.body)),nm.has(t))return nm.get(t);let n=te(e);nm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{nm.delete(t)},3e3)}}async function fx(e){return W4(e)}async function Ia(e){if(xt()){let n=px();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return W4(e)}else return W4(e)}function hx(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function am(e){await Df(e)}async function Fa(e,t){let n=await Af(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return rm(e,t)}return rm(e,t)}async function rm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await kf(e,n,i-1e3),n}var o_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],G4=new Map(o_),ra=class extends Ie{static langMap=G4;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await am(nf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await ox(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Fa(nf,async()=>{let t=await Ia({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return hx(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=G4.get(n)||"auto",o=G4.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await te({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var s_=["chinese","english","japanese","korean","french","spanish","deutsch"],Ba={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},im=e=>Ba.chinese.test(e),u_=e=>Ba.english.test(e),l_=e=>Ba.japanese.test(e),c_=e=>Ba.korean.test(e),d_=e=>Ba.french.test(e),m_=e=>Ba.deutsch.test(e),g_=e=>Ba.spanish.test(e),Wie={chinese:qr(im),english:qr(u_),japanese:qr(l_),korean:qr(c_),french:qr(d_),spanish:qr(g_),deutsch:qr(m_)},bx=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,Gie=new RegExp(`^(\\d|\\s|${bx.source})+$`),p_=new RegExp(`${Ba.chinese.source}|${Ba.japanese.source}|${Ba.korean.source}`),Kie=qr(e=>(e.replace(new RegExp(bx,"g")," ").replace(new RegExp(p_,"g")," x ").match(/\S+/g)||"").length),Yie=[...s_,"others","matchAll"];var vx=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],zl=new Map(vx),f_=new Map(vx.map(([e,t])=>[t,e])),K4=class extends Ie{static langMap=zl;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ft;immersiveTranslateDeeplProApiUrl=ft+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:zl.get(n)||"",target_lang:zl.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:zl.get(n)||"auto",target_lang:zl.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let h,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?h=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await te({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>Y4(c.text,r));if(s){let c=this.serviceConfig||{},g=await new ra({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&f_.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!xa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},ru=K4;function Y4(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&im(e[0])&&yx(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&im(e[e.length-1])&&yx(e,"\u300A")==1?e+"\u300B":e}function yx(e,t){return e.split(t).length-1}var h_=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Q4=new Map(h_),J4=class extends Ie{static langMap=Q4;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Q4.get(r)||r,to:Q4.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await te(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` `)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},Cx=J4;var b_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Z4=new Map(b_),X4=class extends Ie{static langMap=Z4;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Z4.get(a)||a};r!=="auto"&&(i.from=Z4.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await te(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},xx=X4;var y_=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],au=new Map(y_),$4=class extends Ie{static langMap=au;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!au.get(r)?(i=(await te({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||au.get(r)||r,target:au.get(a)||a})):u.body=JSON.stringify({text:s,source:au.get(r),target:au.get(a)||a});let l=await te(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},Sx=$4;var v_={lang:"en"};function eh(e){let t=Object.assign({},v_,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var th=$o(null),Qi=e=>{let{t,setLang:n,lang:r}=eh({lang:e.lang});return d(th.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Te(th)}function Tx(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function aa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=C_(e,a)),i||(i=Vl(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function C_(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=nh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function Vl(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function nh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>gt(a,s.matches)&&!gt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function iu(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Bo(e,t,n){n=n||await Ln();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&si(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&si(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Fr(n),await sr(i)}catch{return!1}return a}async function Wl(){return(await Ln()).aiAssistants||[]}async function x_(e,t){(await Promise.allSettled(e.map(r=>te({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Bo("add",a,t)}})}async function rh(e,t,n=!0){e||(e=await Ze()),t||(t=await Ln());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await ah();i=await T_(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&x_(o,t)}var ia=Bn(rh,1500);function si(e){return Bi(Pr(),e.extensionVersion)}function S_(e,t){return t?!Bi(e.version,t):!1}function T_(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{S_(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function ah(){return(await te({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ih(e){return await te({url:`${A.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function om(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=le(async()=>{try{let s=await Wl();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=le(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await ih(s);if(si(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await Bo(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return z(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var w_=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function Ex(e,t,n,r,a){let i={...t},o=nh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,iu({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=Tx(i,i.langOverrides,n),o||w_.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=ou(t,o),h=ou(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(ou(t,Ee)){v=J;break}}let S=l,x=Object.keys(c);for(let J of x){let Ee=c[J];if(Ee&&ou(t,Ee)){S=J;break}}let T=ou(t,m),w=wx(t,m);w||(w=gt(t,F6)),w||(w=gt(t,n.blockUrls));let E=wx(t,n.inputTranslationUrlPattern);E||(E=gt(t,n.inputTranslationBlockUrls));let k=gt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let vt of Ee.matches)I[vt]=J}let R=Object.keys(I),P=_f(t,R);P&&(i=I[P]??"auto",I[P]&&I[P]!=="auto"&&xr(I[P]));let L=a.hostname,U=await lr(L),B=a.pathname+a.search+a.hash,H=await lr(B),W=`https://${U}.com/${H}`,Z=await Mt(),Se=await Us(),pe=n.translationStartMode,q=A_(Z,n);Z.aiAssistants=k_(q,n),pe==="dynamic"&&h&&(pe="immediate");let G=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(G=n.inputTranslationService);let ee=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(ee=n.mouseHoverTranslationService);let Re=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Re=n.subtitleTranslateService);let ve=await tt.get(mt,null),Ye=!1;ve&&(Ye=At(ve));let $={targetLanguage:b,config:n,translationService:v,inputTranslationService:G,mouseHoverTranslationService:ee,subtitleTranslateService:Re,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:Z};ve&&($.user=ve,Ye?$.isPro=!0:$.isPro=!1),$.state.translationArea==="body"&&($.config.generalRule.excludeTags=$.config.generalRule.excludeTags.filter(J=>!$.config.generalRule.bodyTranslateTags.includes(J)),$.config.generalRule.additionalExcludeSelectors=$.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let se=n.translationServices[$.translationService]||{};se.immediateTranslationTextCount!==void 0&&E_(se.immediateTranslationTextCount)&&se.immediateTranslationTextCount>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCount),$.translationService==="deepl"&&(se&&se.authKey&&se.authKey.startsWith("immersive_")||se&&se.provider==="pro"&&$.user?.token)&&se.immediateTranslationTextCountForImmersiveDeepl!==void 0&&se.immediateTranslationTextCountForImmersiveDeepl>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCountForImmersiveDeepl),se&&se.translationDebounce&&typeof se.translationDebounce=="number"&&($.state.translationDebounce=se.translationDebounce);let be=Se.immediateTranslationTextCount;n.immediateTranslationTextCount!==be&&($.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,Le;globalThis.PDFViewerApplication?Le=he.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Le=he.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Le=he.find(J=>J.pageType=="ebookBuilder"):Le=he.find(J=>ou(t,J)),Le&&Le.pageType==="ebookBuilder"&&($.state.translationStartMode="immediate");let Ve=n.generalRule;if(Le&&($.rule=wd(Ve,Le)),$.rule.selectors.length>0&&($.rule.paragraphMinTextCount=2,$.rule.paragraphMinWordCount=1),$.state.translationArea==="body"&&$.rule.excludeTags&&($.rule.excludeTags=$.rule.excludeTags.filter(J=>!$.rule.bodyTranslateTags.includes(J)&&!$.rule.forceTranslateTags.includes(J))),$.rule.mainFrameSelector){let J=document.querySelector($.rule.mainFrameSelector);J&&($.mainFrame=J)}return $}function ou(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&>(e,r)?!1:n&&n.length>0&>(e,n)?!0:i&&i.length>0&&Ud(i)?!1:!!(a&&a.length>0&&Ud(a))}function wx(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&>(e,n)||r&&r.length>0&&Ud(r))}function E_(e){return typeof e=="number"}function A_(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function k_(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Td(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function Ax(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!au.get(r)?(i=(await te({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||au.get(r)||r,target:au.get(a)||a})):u.body=JSON.stringify({text:s,source:au.get(r),target:au.get(a)||a});let l=await te(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},Sx=$4;var v_={lang:"en"};function eh(e){let t=Object.assign({},v_,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var th=$o(null),Qi=e=>{let{t,setLang:n,lang:r}=eh({lang:e.lang});return d(th.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Te(th)}function Tx(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function aa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=C_(e,a)),i||(i=Vl(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function C_(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=nh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function Vl(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function nh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>gt(a,s.matches)&&!gt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function iu(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Bo(e,t,n){n=n||await Ln();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&si(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&si(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Br(n),await sr(i)}catch{return!1}return a}async function Wl(){return(await Ln()).aiAssistants||[]}async function x_(e,t){(await Promise.allSettled(e.map(r=>te({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Bo("add",a,t)}})}async function rh(e,t,n=!0){e||(e=await Ze()),t||(t=await Ln());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await ah();i=await T_(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&x_(o,t)}var ia=Bn(rh,1500);function si(e){return Bi(Rr(),e.extensionVersion)}function S_(e,t){return t?!Bi(e.version,t):!1}function T_(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{S_(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function ah(){return(await te({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ih(e){return await te({url:`${A.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function om(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=le(async()=>{try{let s=await Wl();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=le(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await ih(s);if(si(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await Bo(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return z(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var w_=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function Ex(e,t,n,r,a){let i={...t},o=nh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,iu({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=Tx(i,i.langOverrides,n),o||w_.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,h=g||"zh-CN",y=ou(t,o),b=ou(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(ou(t,Ee)){v=J;break}}let S=l,x=Object.keys(c);for(let J of x){let Ee=c[J];if(Ee&&ou(t,Ee)){S=J;break}}let T=ou(t,m),w=wx(t,m);w||(w=gt(t,F6)),w||(w=gt(t,n.blockUrls));let E=wx(t,n.inputTranslationUrlPattern);E||(E=gt(t,n.inputTranslationBlockUrls));let k=gt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let vt of Ee.matches)I[vt]=J}let R=Object.keys(I),P=_f(t,R);P&&(i=I[P]??"auto",I[P]&&I[P]!=="auto"&&Sr(I[P]));let L=a.hostname,U=await cr(L),B=a.pathname+a.search+a.hash,H=await cr(B),W=`https://${U}.com/${H}`,Z=await Mt(),Se=await Us(),pe=n.translationStartMode,q=A_(Z,n);Z.aiAssistants=k_(q,n),pe==="dynamic"&&b&&(pe="immediate");let G=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(G=n.inputTranslationService);let ee=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(ee=n.mouseHoverTranslationService);let Re=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Re=n.subtitleTranslateService);let ve=await tt.get(mt,null),Ye=!1;ve&&(Ye=At(ve));let $={targetLanguage:h,config:n,translationService:v,inputTranslationService:G,mouseHoverTranslationService:ee,subtitleTranslateService:Re,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:Z};ve&&($.user=ve,Ye?$.isPro=!0:$.isPro=!1),$.state.translationArea==="body"&&($.config.generalRule.excludeTags=$.config.generalRule.excludeTags.filter(J=>!$.config.generalRule.bodyTranslateTags.includes(J)),$.config.generalRule.additionalExcludeSelectors=$.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let se=n.translationServices[$.translationService]||{};se.immediateTranslationTextCount!==void 0&&E_(se.immediateTranslationTextCount)&&se.immediateTranslationTextCount>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCount),$.translationService==="deepl"&&(se&&se.authKey&&se.authKey.startsWith("immersive_")||se&&se.provider==="pro"&&$.user?.token)&&se.immediateTranslationTextCountForImmersiveDeepl!==void 0&&se.immediateTranslationTextCountForImmersiveDeepl>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCountForImmersiveDeepl),se&&se.translationDebounce&&typeof se.translationDebounce=="number"&&($.state.translationDebounce=se.translationDebounce);let be=Se.immediateTranslationTextCount;n.immediateTranslationTextCount!==be&&($.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,Le;globalThis.PDFViewerApplication?Le=he.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Le=he.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Le=he.find(J=>J.pageType=="ebookBuilder"):Le=he.find(J=>ou(t,J)),Le&&Le.pageType==="ebookBuilder"&&($.state.translationStartMode="immediate");let Ve=n.generalRule;if(Le&&($.rule=wd(Ve,Le)),$.rule.selectors.length>0&&($.rule.paragraphMinTextCount=2,$.rule.paragraphMinWordCount=1),$.state.translationArea==="body"&&$.rule.excludeTags&&($.rule.excludeTags=$.rule.excludeTags.filter(J=>!$.rule.bodyTranslateTags.includes(J)&&!$.rule.forceTranslateTags.includes(J))),$.rule.mainFrameSelector){let J=document.querySelector($.rule.mainFrameSelector);J&&($.mainFrame=J)}return $}function ou(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&>(e,r)?!1:n&&n.length>0&>(e,n)?!0:i&&i.length>0&&Ud(i)?!1:!!(a&&a.length>0&&Ud(a))}function wx(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&>(e,n)||r&&r.length>0&&Ud(r))}function E_(e){return typeof e=="number"}function A_(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function k_(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Td(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function Ax(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var oh=class extends Ie{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let m=i?.sourceProgram,g=["subtitle","videoSubtitle"].includes(m),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),g&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let f="",b="",y=s.includes("{{json}}"),h=s.includes("{{yaml}}");if(Md(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",y){let E=[],k=c.imt_json_item||"";g&&(k=c.imt_subtitle_json_item||k);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?f:M=="yaml"?b:c[M]===""?"":c[M]||k).replace(/{{(.+?)}}/g,(k,M)=>c[M]||k)}}async rawRequest(t){return await te(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let m=i?.sourceProgram,g=["subtitle","videoSubtitle"].includes(m),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),g&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let f="",h="",y=s.includes("{{json}}"),b=s.includes("{{yaml}}");if(Md(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",y){let E=[],k=c.imt_json_item||"";g&&(k=c.imt_subtitle_json_item||k);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?f:M=="yaml"?h:c[M]===""?"":c[M]||k).replace(/{{(.+?)}}/g,(k,M)=>c[M]||k)}}async rawRequest(t){return await te(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Cr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=oh;function D_(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var L_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],kx=new Map(L_),sh=class extends Ji{static langMap=kx;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ft+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return kx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Cr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!ru.langMap.has(n.to)||!ru.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ru(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Dx=sh;function Mn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function M_(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Me(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Zi(e,t){return e<>>32-t}function _a(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function su(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function Lx(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function uu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Oa(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var Mx={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Mn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return _a(a(g,r),t)},this.b64=function(g){return Na(a(g),n)},this.any=function(g,p){return Oa(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return _a(i(g,p),t)},this.b64_hmac=function(g,p){return Na(i(g,p),n)},this.any_hmac=function(g,p,f){return Oa(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Mn(g):g,Lx(o(uu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Mn(g):g,p=r?Mn(p):p,f=uu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(uu(p)),512+p.length*8),Lx(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,S=-271733879,x=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(ui(c)),512+c.length*8),su(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),S=1732584193,x=-271733879,T=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(E=C(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,M[w]=E[w]^1549556828;return T=C(k.concat(ui(x)),512+x.length*8),su(C(M.concat(T),512+256))}function s(S,x){return S>>>x|S<<32-x}function u(S,x){return S>>>x}function l(S,x,T){return S&x^~S&T}function c(S,x,T){return S&x^S&T^x&T}function m(S){return s(S,2)^s(S,13)^s(S,22)}function g(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function f(S){return s(S,17)^s(S,19)^u(S,10)}function b(S){return s(S,28)^s(S,34)^s(S,39)}function y(S){return s(S,14)^s(S,18)^s(S,41)}function h(S){return s(S,1)^s(S,8)^u(S,7)}function v(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(S,x){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,M,I,R,P,L,U,B,H,W,Z;for(S[x>>5]|=128<<24-x%32,S[(x+64>>9<<4)+15]=x,B=0;B32&&(S=s(S,y.length*8));C<32;C+=1)x[C]=S[C]^909522486,T[C]=S[C]^1549556828;return v=s(x.concat(ui(h)),1024+h.length*8),su(s(T.concat(v),1024+512))}function s(y,h){var v,C,S,x=new Array(80),T=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),M=new u(0,0),I=new u(0,0),R=new u(0,0),P=new u(0,0),L=new u(0,0),U=new u(0,0),B=new u(0,0),H=new u(0,0),W=new u(0,0),Z=new u(0,0),Se=new u(0,0),pe=new u(0,0),q=new u(0,0),G=new u(0,0),ee=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)x[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,S=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),S=(h.l>>>16)+(v.l>>>16)+(C>>>16),x=(h.h&65535)+(v.h&65535)+(S>>>16),T=(h.h>>>16)+(v.h>>>16)+(x>>>16);y.l=C&65535|S<<16,y.h=x&65535|T<<16}function f(y,h,v,C,S){var x=(h.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535),T=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x>>>16),w=(h.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(T>>>16),E=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(w>>>16);y.l=x&65535|T<<16,y.h=w&65535|E<<16}function b(y,h,v,C,S,x){var T=(h.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535)+(x.l&65535),w=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x.l>>>16)+(T>>>16),E=(h.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(x.h&65535)+(w>>>16),k=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(x.h>>>16)+(E>>>16);y.l=T&65535|w<<16,y.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return _a(u(b,r))},this.b64=function(b){return Na(u(b,r),n)},this.any=function(b,y){return Oa(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return _a(l(b,y))},this.b64_hmac=function(b,y){return Na(l(b,y),n)},this.any_hmac=function(b,y,h){return Oa(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Mn(b):b,c(m(uu(b),b.length*8))}function l(b,y){b=r?Mn(b):b,y=r?Mn(y):y;var h,v,C=uu(b),S=Array(16),x=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)S[h]=C[h]^909522486,x[h]=C[h]^1549556828;return v=m(S.concat(uu(y)),512+y.length*8),c(m(x.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,S,x=1732584193,T=4023233417,w=2562383102,E=271733878,k=3285377520,M,I,R,P,L,U,B,H,W,Z;for(b[y>>5]|=128<>>9<<4)+14]=y,S=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new Mx.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await te({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var P_=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},uh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},lh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=uh(t);if(r)return Array.isArray(n)?`${r}=${n.map(uh).sort().join(`&${r}=`)}`:`${r}=${uh(n)}`}).filter(t=>t).join("&"),lu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,lh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await lr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return $s(await Er(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=oh;function D_(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var L_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],kx=new Map(L_),sh=class extends Ji{static langMap=kx;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ft+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return kx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!ru.langMap.has(n.to)||!ru.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ru(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Dx=sh;function Mn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function M_(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Me(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Zi(e,t){return e<>>32-t}function _a(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function su(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function Lx(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function uu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Oa(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var Mx={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Mn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,h="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return _a(a(g,r),t)},this.b64=function(g){return Na(a(g),n)},this.any=function(g,p){return Oa(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return _a(i(g,p),t)},this.b64_hmac=function(g,p){return Na(i(g,p),n)},this.any_hmac=function(g,p,f){return Oa(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Mn(g):g,Lx(o(uu(g),g.length*8))}function i(g,p){var f,h,y,b,v;for(g=r?Mn(g):g,p=r?Mn(p):p,f=uu(g),f.length>16&&(f=o(f,g.length*8)),h=Array(16),y=Array(16),v=0;v<16;v+=1)h[v]=f[v]^909522486,y[v]=f[v]^1549556828;return b=o(h.concat(uu(p)),512+p.length*8),Lx(o(y.concat(b),512+128))}function o(g,p){var f,h,y,b,v,C=1732584193,S=-271733879,x=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return h=o(g.concat(ui(c)),512+c.length*8),su(o(p.concat(h),512+160))}function o(l,c){var m,g,p,f,h,y,b,v,C=Array(80),S=1732584193,x=-271733879,T=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(E=C(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,M[w]=E[w]^1549556828;return T=C(k.concat(ui(x)),512+x.length*8),su(C(M.concat(T),512+256))}function s(S,x){return S>>>x|S<<32-x}function u(S,x){return S>>>x}function l(S,x,T){return S&x^~S&T}function c(S,x,T){return S&x^S&T^x&T}function m(S){return s(S,2)^s(S,13)^s(S,22)}function g(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function f(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function y(S){return s(S,14)^s(S,18)^s(S,41)}function b(S){return s(S,1)^s(S,8)^u(S,7)}function v(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(S,x){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,M,I,R,P,L,U,B,H,W,Z;for(S[x>>5]|=128<<24-x%32,S[(x+64>>9<<4)+15]=x,B=0;B32&&(S=s(S,y.length*8));C<32;C+=1)x[C]=S[C]^909522486,T[C]=S[C]^1549556828;return v=s(x.concat(ui(b)),1024+b.length*8),su(s(T.concat(v),1024+512))}function s(y,b){var v,C,S,x=new Array(80),T=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),M=new u(0,0),I=new u(0,0),R=new u(0,0),P=new u(0,0),L=new u(0,0),U=new u(0,0),B=new u(0,0),H=new u(0,0),W=new u(0,0),Z=new u(0,0),Se=new u(0,0),pe=new u(0,0),q=new u(0,0),G=new u(0,0),ee=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)x[C]=new u(0,0);for(y[b>>5]|=128<<24-(b&31),y[(b+128>>10<<5)+31]=b,S=y.length,C=0;C>>v|b.h<<32-v,y.h=b.h>>>v|b.l<<32-v}function m(y,b,v){y.l=b.h>>>v|b.l<<32-v,y.h=b.l>>>v|b.h<<32-v}function g(y,b,v){y.l=b.l>>>v|b.h<<32-v,y.h=b.h>>>v}function p(y,b,v){var C=(b.l&65535)+(v.l&65535),S=(b.l>>>16)+(v.l>>>16)+(C>>>16),x=(b.h&65535)+(v.h&65535)+(S>>>16),T=(b.h>>>16)+(v.h>>>16)+(x>>>16);y.l=C&65535|S<<16,y.h=x&65535|T<<16}function f(y,b,v,C,S){var x=(b.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535),T=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x>>>16),w=(b.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(T>>>16),E=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(w>>>16);y.l=x&65535|T<<16,y.h=w&65535|E<<16}function h(y,b,v,C,S,x){var T=(b.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535)+(x.l&65535),w=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x.l>>>16)+(T>>>16),E=(b.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(x.h&65535)+(w>>>16),k=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(x.h>>>16)+(E>>>16);y.l=T&65535|w<<16,y.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return _a(u(h,r))},this.b64=function(h){return Na(u(h,r),n)},this.any=function(h,y){return Oa(u(h,r),y)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,y){return _a(l(h,y))},this.b64_hmac=function(h,y){return Na(l(h,y),n)},this.any_hmac=function(h,y,b){return Oa(l(h,y),b)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?Mn(h):h,c(m(uu(h),h.length*8))}function l(h,y){h=r?Mn(h):h,y=r?Mn(y):y;var b,v,C=uu(h),S=Array(16),x=Array(16);for(C.length>16&&(C=m(C,h.length*8)),b=0;b<16;b+=1)S[b]=C[b]^909522486,x[b]=C[b]^1549556828;return v=m(S.concat(uu(y)),512+y.length*8),c(m(x.concat(v),512+160))}function c(h){var y,b="",v=h.length*32;for(y=0;y>5]>>>y%32&255);return b}function m(h,y){var b,v,C,S,x=1732584193,T=4023233417,w=2562383102,E=271733878,k=3285377520,M,I,R,P,L,U,B,H,W,Z;for(h[y>>5]|=128<>>9<<4)+14]=y,S=h.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new Mx.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(h=>{let b=Object.keys(h).sort().map(v=>`${this.encode(v)}=${this.encode(h[v])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await te({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var P_=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},uh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},lh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=uh(t);if(r)return Array.isArray(n)?`${r}=${n.map(uh).sort().join(`&${r}=`)}`:`${r}=${uh(n)}`}).filter(t=>t).join("&"),lu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,lh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await cr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return $s(await Ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=lh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new V(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await lr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(lh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return P_.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Er(n,`${nn.kDatePrefix}${t.secretKey}`),o=await Er(r,i),s=await Er(a,o);return Er(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var Rx=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],ch=new Map(Rx),R_=new Map(Rx.map(([e,t])=>[t,e])),dh=class extends Ie{static langMap=ch;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new lu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await te({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=ch.get(r),o={TargetLanguage:ch.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new lu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await te({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=R_.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},Ix=dh;var Fx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],mh=new Map(Fx),I_=new Map(Fx.map(([e,t])=>[t,e])),Kl=class extends Ie{static langMap=mh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=mh.get(r)||"detect",o=mh.get(a)||a,u=await te({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=I_.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var F_=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],gh=new Map(F_),Yl=class extends Ie{static langMap=gh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:gh.get(r)||r,target_lang:gh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await te({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Y4(u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var Bx=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],ph=new Map(Bx),B_=new Map(Bx.map(([e,t])=>[t,e])),fh=class extends Ie{static langMap=ph;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Cr(a+o+n+i);this.domain&&(l=Cr(a+o+n+this.domain+i));let c=new URLSearchParams({from:ph.get(s)||"auto",to:ph.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await te({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:B_.get(f)||f,to:u,text:b.join(` -`)}}},_x=fh;var _o=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?__(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function __(e){let t=Math.floor(Math.random()*e.length);return e[t]}var Ox=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],hh=class extends _o{static langMap=new Map(Ox);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:Ox,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},Nx=hh;var O_=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],sm=new Map(O_),bh=class extends Ie{static langMap=sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!sm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await te({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${sm.get(r)||"auto"}2${sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},Ux=bh;var jx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],yh=new Map(jx),N_=new Map(jx.map(([e,t])=>[t,e]));function U_(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var vh=class extends Ie{static langMap=yh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=j_(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+U_(n)+i+o+this.appSecret,u=await lr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:yh.get(r)||"auto",to:yh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await te({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await cr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(lh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return P_.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Ar(n,`${nn.kDatePrefix}${t.secretKey}`),o=await Ar(r,i),s=await Ar(a,o);return Ar(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var Rx=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],ch=new Map(Rx),R_=new Map(Rx.map(([e,t])=>[t,e])),dh=class extends Ie{static langMap=ch;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new lu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await te({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=ch.get(r),o={TargetLanguage:ch.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new lu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await te({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=R_.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},Ix=dh;var Fx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],mh=new Map(Fx),I_=new Map(Fx.map(([e,t])=>[t,e])),Kl=class extends Ie{static langMap=mh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=mh.get(r)||"detect",o=mh.get(a)||a,u=await te({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=I_.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var F_=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],gh=new Map(F_),Yl=class extends Ie{static langMap=gh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:gh.get(r)||r,target_lang:gh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await te({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Y4(u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var Bx=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],ph=new Map(Bx),B_=new Map(Bx.map(([e,t])=>[t,e])),fh=class extends Ie{static langMap=ph;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=xr(a+o+n+i);this.domain&&(l=xr(a+o+n+this.domain+i));let c=new URLSearchParams({from:ph.get(s)||"auto",to:ph.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await te({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,h=p.map(({dst:b})=>b);return{from:B_.get(f)||f,to:u,text:h.join(` +`)}}},_x=fh;var _o=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),h=o[p];return f==="random"?__(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function __(e){let t=Math.floor(Math.random()*e.length);return e[t]}var Ox=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],hh=class extends _o{static langMap=new Map(Ox);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:Ox,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},Nx=hh;var O_=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],sm=new Map(O_),bh=class extends Ie{static langMap=sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!sm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await te({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${sm.get(r)||"auto"}2${sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},Ux=bh;var jx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],yh=new Map(jx),N_=new Map(jx.map(([e,t])=>[t,e]));function U_(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var vh=class extends Ie{static langMap=yh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=j_(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+U_(n)+i+o+this.appSecret,u=await cr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:yh.get(r)||"auto",to:yh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await te({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,h]=p.split("2");return{text:g.translation.join(` `),from:N_.get(f),to:a}}};function j_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var xh=class extends Ie{static langMap=Ch;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Ch.get(r)||"auto",to:Ch.get(a)||a},o=new URLSearchParams(i),s=await te({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},zx=xh;var Ql=class extends _o{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||bs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Sh=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},um=Sh;var Vx=F+"-gemini-fake-user-key",H_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],Wx=new Map(H_),Th=class extends um{static langMap=Wx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ft+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return Wx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await To(Vx,""),this.fakeId||(this.fakeId=q_(10),await wo(Vx,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function q_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ia({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Eh.get(r)+"-"}${Eh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await te({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var W_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Qx=new Map(W_),Zl=class extends Ji{static langMap=Qx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Fa(af+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ia({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return Qx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(rm(af+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var G_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Jx=new Map(G_),cr=class extends Ji{static langMap=Jx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return Jx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var lm=class extends cr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Er(t,"TC3"+this.secret_key),a=await Er(this.service,r),i=await Er("tc3_request",a),o=await Er(n,i);return $s(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await lr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},zx=xh;var Ql=class extends _o{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||bs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Sh=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},um=Sh;var Vx=F+"-gemini-fake-user-key",H_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],Wx=new Map(H_),Th=class extends um{static langMap=Wx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ft+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return Wx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await To(Vx,""),this.fakeId||(this.fakeId=q_(10),await wo(Vx,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function q_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ia({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Eh.get(r)+"-"}${Eh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await te({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var W_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Qx=new Map(W_),Zl=class extends Ji{static langMap=Qx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Fa(af+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ia({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return Qx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(rm(af+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var G_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Jx=new Map(G_),dr=class extends Ji{static langMap=Jx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return Jx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var lm=class extends dr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Ar(t,"TC3"+this.secret_key),a=await Ar(this.service,r),i=await Ar("tc3_request",a),o=await Ar(n,i);return $s(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await cr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await lr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await cr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5878,40 +5878,40 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var cm=class extends cr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(m6,async()=>{let t=await Ia({responseType:"json",url:`${ft}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Ah=["glm-4-flash"],dm=class extends cr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Ah.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Ah.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(g6,async()=>{let t=await Ia({responseType:"json",url:`${ft}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ra.langMap.has(n.to)||!ra.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ra(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Ah.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:tu,mock2:tu,custom:Ql,google:Hl,transmart:ql,deepl:ru,volc:Ix,volcAlpha:Kl,bing:ra,tencent:Ul,tenAlpha:jl,baidu:_x,caiyun:Nx,cai:Ux,openl:em,youdao:Hx,you:zx,d:eu,dpro:eu,deeplx:Yl,niu:Cx,azure:xx,openai:Dx,gemini:Gx,claude:Yx,papago:Sx,aliyun:Gl,yandex:Jl,qianfan:Zl,"custom-ai":cr,deepseek:cr,"aliyun-bailian":cr,doubao:cr,hunyuan:lm,siliconcloud:cm,lingyiwanwu:cr,zhipu:dm};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys(Yr).forEach(e=>{Xi[e]={...Yr[e],class:oa[e]}});function $i(e,t){let n=or;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return or}async function dr(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function Zx(e,t){for(let n of e)try{return await dr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function kh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=At(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function K_(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=Ex(g,m,{sourceLanguage:K_(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(f&&(E.refresh=!0),b&&(E.debug=!0),E.text&&(E.text=Y_(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,S=At(t.user),x;try{x=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await x.init()}catch(E){if(n){y.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=E instanceof V?new V(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(I,null,M)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){C++;let k=l;l==="openl"&&(k=l+"-"+m.codename||em.DEFAULT_CODENAME);let M=x.getCacheKeyPrefix();M&&(k=M+"-"+k);let I=null;try{I=await Jc(g5({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(R){D.warn("query cache DB error, but it's ok",R)}if(I){let R={...E,text:I.translatedText};h.sentences[C]=R,n&&n(null,R,E)}else y.push(E)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&D.debug(`use ${v-T} sentences from cache`),!y.length)return h;let w=await x.multipleTranslate({sentences:y},m,(E,k,M)=>{if(n&&n(E,k,M),!E&&k&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||em.DEFAULT_CODENAME);let R=x.getCacheKeyPrefix();R&&(I=R+"-"+I),o.cache&&Jc(p5({translatedText:k.text,from:M.from,to:M.to,detectedFrom:k.from,key:Cr(M.text),service:I}),3e3).catch(P=>{D.warn("set cache DB error",P)})}});for(let E of w?.sentences||[]){let k=h.sentences.findIndex(M=>!M);if(k===-1)throw new V("translateFailed","can not match the result");h.sentences[k]=E}return h}function Y_(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function ye(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function sa(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Dh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function Oo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(ce,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(ce,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Lh(e){let{t}=O(),n=xe(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function mm(e,t){return t.some(n=>n.label===e)}function Xx(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);mm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);mm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());mm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:mm(r,n)||n.push({label:r,value:r})}),n}function ua(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,isProUser:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let S=Object.keys(h.env);for(let x=0;xJ_(t,m,h),[m,h]);e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),z(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]);let C=m.name;if(m.label&&(C=m.label),m.labelKey&&(C=t(m.labelKey)),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:200,disabled:f,items:m.options.map(S=>({label:`${S.label?t(S.label):S.value}`,value:S.value,selected:p===S.value,onSelected:()=>{if(S.action=="jumpOptions"){let x=S.args||[];wa(...x);return}g(S.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let S=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let T=x.label===x.value?x.value:x.label;return{label:t(T),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Lh,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(T=>{let w=T.translationServices?.[e.service||""];return w?(w.customModels=x,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=S.includes(p);a&&!x&&g(S[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(Oo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(Oo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(Oo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let S=p,x="";S||(S="#FFFFFF",x="#FFFFFF");let{hex:T,opacity:w}=Q_(S);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:E=>{g(E.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:w},disabled:f,onInput:E=>{g(E.target.value)}})]})})}else return m.type==="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d("input",{type:"checkbox",id:m.name,name:m.name,role:"switch",checked:p,disabled:f,onChange:S=>{g(S.target.checked)}}),C,m.descriptionKey?d("small",{class:"my-2",dangerouslySetInnerHTML:{__html:t(m.descriptionKey,y)}}):null]})}):null}}function Q_(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function J_(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=Xx(i,n.customModels||[]),[...i,a]}function $x(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function Xl(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d($x,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function la(e){let{t}=O(),n=xe(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ua(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(ce,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function No(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);z(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(la,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ua,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ca(){let e=["bingGlobalConfig","baiduGlobalConfig",d6,Ti];for(let t of e)await j.storage.local.remove(t);X()||await $y(),await Lf()}function e8(){return X()?Promise.resolve("0 B"):Y0()}var gm='',li="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS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0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function Z_(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Pa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Mh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[b,y]=N({});z(()=>{n&&v().then(()=>g(!1))},[n]);let h=w=>{w?.target?.id===F+"-overlay"&&t()};function v(){return new Pa(n).listAll().then(E=>{c(E)}).catch(E=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let E=F+"-config-"+Os()+".json";new Pa(n).uploadConfig(i,E).catch(k=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function S(w,E,k){w.preventDefault(),y({[k]:!0}),new Pa(n).getConfig(E).then(M=>{o(()=>({...M})),nt(a("importSuccess"))}).catch(M=>{D.error(M),bt(a("importFail"))}).finally(()=>y({}))}function x(w,E){new Pa(n).getConfig(w).then(k=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(k,null,2))),M.setAttribute("download",E),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(k=>{D.error("download google config file failed",k),bt(a("downloadFail")+": "+k.message)})}function T(w){w.preventDefault(),o({...i,autoSync:!1}),Wi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,E)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:k=>{k.preventDefault(),x(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",pl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[E],disabled:b[E],onClick:k=>S(k,w.id,E),children:a("import_hint")}),d(Z_,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+E))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function ja(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=$o([]);function pt(e){let[t,n]=N(null);return z(()=>{Ze().then(r=>{n(r),D.debug("current config",r)})},[]),z(()=>{Ze().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return z(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function i8(){let[e,t]=N(!1),n=Pr();return z(()=>{X(!0)&&(!n||n=="0.0.0"||ja(n,"0.9.0")||t(!0))},[n]),[e,t]}function da(){let[e,t]=N(null);return z(()=>{Mt().then(r=>{t(r)})},[]),[e,r=>{t(r),kt(r)}]}function pm(e){let[t,n]=N(null);return z(()=>{tt.get(mt,null).then(r=>{n(r?At(r):!1)}).catch(r=>{n(!1)})},[]),z(()=>{n(At(e))},[e]),t}var rt=class extends uo{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),d(X_,{error:this.error,info:this.info})):this.props.children}};function X_({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var o8=D;function $_(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function Rh(){let[e,t,n,r,a]=Oe(),i=$_();Xe(e,t);let{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!ms()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(v=>{o8.error("clean local config error",v)}),ca().catch(v=>{o8.error("clean cache error",v)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let S=C.target,x=new FileReader;x.onload=function(){try{let T=JSON.parse(x.result);b(T),nt(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},x.readAsText(S.files[0])},v.click(),document.body.removeChild(v)};return d(ce,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[tO,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),ms()){let v=we();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(v,F+"-config-"+Os()+".txt")}},role:"button",children:[nO,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(!1),[S,x]=N("");z(()=>{if(Qu()&&n){let P=localStorage.getItem(Zu);if(localStorage.removeItem(Zu),P){let L=globalThis.localStorage.getItem(of);D.debug("import_export","rawAuthInfoStr",L);let U={},B={},H="";if(L){globalThis.localStorage.removeItem(of);try{U=JSON.parse(L),B=U.state||{},H=U.access_token||""}catch(W){D.error("parse state error",W)}}if(H&&B&&(Wi.setAuthInfo({access_token:H}),D.debug("import_export","Google OAuth:",U),U)){let W=U.state;D.debug("state",W),W?.mode==="auto"?(h(!0),I(H)):(C(!0),k(H))}}}},[n]);function T(){h(!0),E4({source:globalThis.location.href,mode:"auto"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&I(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function w(){C(!0),b(!1),E4({source:globalThis.location.href,mode:"manual"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&k(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function E(){x(""),T()}function k(P){x(P),C(!1),b(!0)}function M(P){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),D.error("import_export","Google OAuth error:"+P),bt(o("authFail"))}function I(P){h(!0),D.debug("sync latest with drive",P,e),x(P),Hd(P,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?nt(o("successSyncConfig")):nt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function R(P){t({...e,autoSync:P.checked}),P.checked&&T()}return d(ce,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:P=>{P.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(ce,{}):s8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:P=>{P.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Mh,{onClose:()=>b(!1),authExpire:E,accessToken:S}):null]})}function p({config:f}){let b=l8(),[y,h]=N(!1),[v,C]=N(""),[S,x]=N(""),{t:T}=O();if(!b||!b.token)return null;let w=At(b);async function E(){confirm(T("proRightOpenPro"))?window.open(Y6):D.debug("\u53D6\u6D88\u4F1A\u5458")}async function k(){if(!w){E();return}try{if(y)return;h(!0),x("");let L=await fm(b?.token,e,a),U="";switch(L){case"upload":{U=T("successSyncConfigToAccount");break}case"override":{U=T("successSyncConfigInAccount");break}default:U=T("syncConfigNoUpdate")}C(U)}catch(L){C(""),x(L.message)}finally{h(!1)}}let M=le(L=>{if(!w){E();return}l({...u,proAutoSync:L})},[]),I=le(L=>{if(!w){E();return}t(U=>({...U,proSyncAPIKey:L}))},[]),R=u?.proAutoSync!=!1,P=e?.proSyncAPIKey!=!1;return w||(R=!1,P=!1),d(ce,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!P)},checked:P}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),k()},"aria-busy":y,href:"#",role:"button",children:[s8," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&!v&&u?.accountLastSyncedAt&&w),children:T("lastSyncedAt",{date:Kv(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||w,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!S,children:S})]})}}var eO=Bn(fm,1e3);async function fm(e,t,n){try{if(t===null)return"noupdate";let r=await Mt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Oi(t.proSyncAPIKey,t);return await Ph(e,c),await kt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await c8(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),mv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Oi(t.proSyncAPIKey,t);return await Ph(e,u),await kt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||gv(n)&&eO(n.token,e,t)},[e,n])}function l8(){let[e,t]=N(null);return z(()=>{tt.get(mt,null).then(n=>{t(n)})},[t]),e}function c8(e){return(location.href?.indexOf("popup.html")>0?Br:te)({responseType:"json",url:ft+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Ph(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Br:te)({responseType:"json",url:ft+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var s8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),tO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),nO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var rO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},d8=rO;var Ih="Arial",$l=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Ih.toLowerCase()?!0:m8(Ih,t).join("")!==m8(e,t).join("")}catch{return!1}};function m8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Ih,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Fh(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function g8(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Bh(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Bh(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Bh(n)},r,a);return aO(i)}catch{return Promise.reject("Encryption failed")}}function aO(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=P.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=hd(v);let B=yd(v);L.install_week=`${B.year}${B.week}`}if(n.user){let B=Ty(n.user);B&&Object.keys(B).forEach(H=>{L[H]=B[H]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),x?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let U="html";if(n.rule.pageType&&(U=n.rule.pageType),L.page_type=U,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let H=new URL(B);L.site_host=H.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...P,params:L}});if(i)return;M.forEach(async P=>{let L=await te({responseType:"text",url:P,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&iO(p,R),n.config.enablePerformanceReport&&uO(n,R)}catch(r){D.debug("report error",r)}}function iO(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};p8(r);let a=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var oO=Date.now(),sO=["translate_page","translate_video_subtitle"];function uO(e,t){try{t.forEach(async n=>{if(!sO.includes(n.name)||e.config.performanceBlockUrls?.some(l=>gt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};p8(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-oO},s=await g8(JSON.stringify(o),ay,iy);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function p8(e){return e?.install_day&&(e.install_day=bd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function eo({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[b,y]=N(""),[h,v,C,S,x]=Te(me),T=pm(i),w=R=>{v(P=>{let L={...P,[n]:R};return n==="translationService"&&(Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${R}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},E=ne(()=>{if(!t)return[];t.user=i??t.user;let R=Es(t,n,l);return o?.length&&(R=R.filter(P=>o.find(L=>L==P.id))),R},[t,i,n,l,o]),k=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:R}=e,P=t[n],L=R?.[P],U=Vl(L,t.localConfig.aiAssistants||[]);if(U&&L){let B=iu(U);return{...L,...B,aiAssistant:U}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let R=t[n];return As(t,n,l,R)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:r||u("service"),description:a||u("select translation service")}),d(lO,{selectService:w,translationServiceItems:E,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(cO,{verifiedErrorMessage:p}),d(dO,{ctx:t,curServiceConfig:k,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(Oh,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(Nh,{curServiceItem:M,t:u}),d(Uh,{curServiceItem:M,t:u}),d(_h,{currentTranslationServiceItem:M,t:u}),jh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),Hh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,t:u})]})]})}function _h({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function lO({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:j0(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function cO({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function dO({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await ut(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await dr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){D.debug("e.status",c.status),D.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){D.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function Oh({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Fh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function Nh({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function Uh({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function jh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(ce,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l}=h8(e,t,n,o);return d("div",{class:"mt-2",children:[d(ua,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:o,value:u,disabled:l,onSetSettings:r,onChange:c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return b8(e,p,o.name,c),{...m,translationServices:{...g,[n.id]:{...p,[o.name]:c}}}})},onFinish:()=>{nt(i("saved"))}},o.name+n.id),d(mO,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function Hh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,forceExpand:i}){if(!t||!e||!n?.optionalProps?.length||!r)return null;let o=n?.id.startsWith("custom-ai"),s=d(ce,{children:[d("div",{children:n.optionalProps.map((u,l)=>{let{value:c,disabled:m}=h8(e,t,n,u);return t?.aiAssistant&&!t?.aiAssistant?.enableRichTranslate&&u.name=="enableRichTranslate"?null:d("div",{class:"mt-2",children:d(ua,{config:e,service:n?.id,disabled:m,field:u,value:c,onSetSettings:r,onChange:g=>{r(p=>{let f=p.translationServices||{},b=f[n.id]||{};return b8(e,b,u.name,g),{...p,translationServices:{...f,[n.id]:{...b,[u.name]:g}}}})},onFinish:()=>{nt(a("saved"))}},u.name+n.id+t.assistantId+t.fallbackAssistantId)},"service-item-optional-prop-"+u.name+l)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:u=>{u.preventDefault(),window.confirm(a("confirmResetToDefaultSettings"))&&r(c=>{let m=c.translationServices||{};setTimeout(()=>window.location.reload(),50);let g=m[n.id]||{};if(o){let p=["type","name","extends","apiUrl","APIKEY"];Object.keys(g).forEach(f=>{p.includes(f)||delete g[f]})}else g={};return{...c,translationServices:{...m,[n.id]:g}}})},children:a("resetToDefaultSettings")})]});return i?s:d(ce,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),s]})})}function mO({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=le(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ua,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{nt(a("saved"))}})}function f8(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function h8(e,t,n,r){if(!r)return{value:"",disabled:!1};let a=r.name!="assistantId"&&r.name!="apiUrl"&&!!t.aiAssistant,i=t[r.name];return r.name=="enableRichTranslate"&&(e.translationMode=="dual"?i=t.dualEnableRichTranslate??t.enableRichTranslate:e.translationMode=="translation"&&(i=t.translationEnableRichTranslate??t.enableRichTranslate)),r.descriptionKey=="description.enableRichTranslate"&&e.translationMode=="dual"&&t.dualEnableRichTranslate!=null&&(r.descriptionKey="description.aiDualEnableRichTranslate"),r.descriptionKey=="description.aiDualEnableRichTranslate"&&e.translationMode=="translation"&&(r.descriptionKey="description.enableRichTranslate"),r.name==="apiUrl"&&n?.id==="openai"&&t?.APIKEY?.startsWith("immersiveopenai_")&&(a=!0,i=`https://openai-api.${et}/v1/chat/completions`),r.name=="placeholderDelimiters"&&(r.default=t.placeholderDelimiters||r.default),{value:i,disabled:a}}function b8(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function y8(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function v8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function C8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function x8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function S8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function T8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function w8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var A8=jd();function hm(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let[u,l]=i8(),[c,m]=N(null);return z(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d(gO,{}),d(wO,{config:o,user:c,setUser:m}),d(vO,{config:o}),d(eo,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(pO,{config:o}),d(IO,{config:o}),d(CO,{config:o}),d(xO,{config:o}),d(SO,{config:o}),d(TO,{config:o}),d(fO,{config:o,ctx:s}),d(yO,{setSettings:n,config:o}),d(d8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function gO(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Ol({...i,isShowContextMenu:!0}),a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(c=>{D.error("clean local config error",c)}),ca().catch(c=>{D.error("clean cache error",c)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ca().then(()=>{nt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(x8,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(S8,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function pO({config:e}){let[t,n,r,a,i]=Te(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(ye,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Ol()},200)},children:Vi(sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function fO({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>LO(l),[l]),f=le(Bn((v,C)=>{a&&i(S=>{let x=S.translationThemePatterns||{};return{...S,translationTheme:C,translationThemePatterns:{...x,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return z(()=>{m&&(Gs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(ce,{children:[d(bO,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(PO,{config:e}),d(hO,{translationThemes:mf,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(ce,{children:d("font",{class:Qs(l,!1,[],!1).join(" "),children:d("font",{class:Js(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let S=m||{},x=`theme-${l}-${v.name}`,T=RC(x)||v.default||void 0,w=S[v.name]||T;return d(ua,{config:e,field:v,value:w,onSetSettings:i,onChange:E=>{g(k=>(Gs(document,l,{...k,[v.name]:E},a.selectTranslationFont),{...k,[v.name]:E}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function hO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:Qs(a,!1,[],!1).join(" "),children:d("font",{class:Js(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function bO({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(ye,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:mf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function yO({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(la,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ua,{urls:MO(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function vO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=l=>{Ys({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function CO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(Xl,{title:t("always languages"),description:t("always translate the following languages"),languages:A8,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function xO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(Xl,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:A8,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function SO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=qn(l,h),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Mt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&kt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function TO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Jt(l,b),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function k8(e){return{handleTranslationLanguagePatternSelected:le((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var qh=0,Vh;async function D8(e){if(qh>60*10)return null;qh++,tt.refresh(),await ut(300);let t=await tt.get(mt,null);D.debug("loopCheckUser",qh,t),t?(clearTimeout(Vh),e(t)):Vh=setTimeout(D8.bind(null,e),1500)}function E8(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=DO(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Sy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function wO({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Te(me),m=e.interfaceLanguage;z(()=>(tt.get(mt,null).then(b=>{b&&(n(b),EO(b.token).then(y=>{let h=y.data;h.token=b.token,tt.set(mt,h),n(h),Fo()}).catch(y=>{Ll(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(Vh)}),[]);let g=le(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&AO(t.token).finally(async()=>{await tt.remove(mt),await ut(200),await tt.refresh(),n(null),Fo()})},[t]),p=le(async b=>{kC()&&(b&&b.preventDefault&&b.preventDefault(),kO(vs),await tt.set(sl,!0),D8(y=>{fm(y.token,o,s),n(y),Wh?.close(),window.location.reload()}))},[n]),f=t?.avatar||t8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(E8,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Dn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:li})]}),d("div",{class:"",children:d("a",{href:`${Ai}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:li})]}),d(E8,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Ai,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:N6,onClick:p,children:r(a?"loginForSafari":"login")})]})}function EO(e){return te({responseType:"json",url:ft+"v1/user",method:"get",headers:{token:e}})}function AO(e){return te({responseType:"json",url:ft+"v1/user/logout",method:"delete",headers:{token:e}})}var Wh=null;function kO(e){let r=screen.width/2-230,a=screen.height/2-640/2;return Wh=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),Wh}function DO(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function LO(e){let t=[];return il[e]&&(t=t.concat(il[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function MO(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var zh="";function PO({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(RO,{config:e,isOpen:n})]})}function RO({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);z(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>$l(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Te(me),g=p=>{p!==zh&&!$l(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Gs(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(zh))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?zh:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function IO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return Ae.ASSETS_BASE_URL+e}function Gh(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function L8(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}var FO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),b=xe(null),y=xe(null),h=()=>{u||!l&&(qe().any||vr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||vr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},S=ne(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),x=ne(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),T=w=>Ld()?d("div",{style:S,role:"tooltip",children:w}):d("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:x,children:T(e)})]})},Pt=FO;var bm=!1;function Kh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let{t:u,lang:l}=O(),c=s&&ws(s,"translationService",l)||[],m=Io(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=As(s,"translationService",l,f);return d(OO,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!bm&&m==="#services"&&(bm=!0),z(()=>()=>bm=!1,[]),z(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Al(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(cl,"_blank"),children:d(L8,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(cl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(BO,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function BO({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Te(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ti.find(I=>I==e.id),[e]),m=le(I=>{i(R=>{let P=R.translationServices?.[e.id]||{};return{...R,translationServices:{...R.translationServices,[e.id]:{...P,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),h=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),S=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(R=>{Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${e.id}`}}],t);let P={...R,translationService:e.id};return P.translationServiceChangedbyUserAt=new Date().toISOString(),P}))},x=t.translationService===e.id,T=x||Bf(l,r),w=n("translationServices."+e.id),E=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),k=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,E="",k="custom-ai"),d("div",{class:"service-container","data-selected":x?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${k}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(Pt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:E}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:S,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function _O(e,t){let[n,r]=N(!1),[a]=Te(me),[i,o]=N("");return[le(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await dr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function OO({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=pt(a),{t:c}=O(),m=pm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,S=t?.id||"",x=C?.[S],T=Vl(x,n.localConfig.aiAssistants||[]);if(T&&x){let w=iu(T);return{...x,...w,aiAssistant:T}}return x?{...x}:{}}return null},[l,n,t,e]),[p,f,b]=_O(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(ce,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!bm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(Oh,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(Nh,{curServiceItem:t,t:c}),d(Uh,{curServiceItem:t,t:c}),d(_h,{currentTranslationServiceItem:t,t:c}),jh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),Hh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(f8,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ma(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var NO=xn+"assets/uploads/default-oade4Y.png";function P8({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=le(()=>m(NO),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=om(),y=Oe(),[h,v]=y;Xe(h,v);let C=pt(h);z(()=>{ih(e).then(x=>{a(x),m(x.avatar),o({name:x.i18n[t]?.name||x.name,description:x.i18n[t]?.description||x.description,details:x.i18n[t]?.details||x.details}),u(lt.sanitize(x.i18n[t]?.details||x.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let S=p?.some(x=>x.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:x=>{if(x.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(Pt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(r),children:d(Yh,{assistantID:e,enable:si(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),S&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(Qh,{aiAssistant:r,isInstall:S}),C&&d(ce,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(ce,{children:UO.map((x,T)=>d("div",{className:"mt-2",children:d(ua,{service:"ai",config:C,field:x,value:r[x.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function Yh({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=xe(null);return z(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(w8,{}):d(T8,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function Qh({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Td(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=M8(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(S=>S.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(x=>x===g),S=h.find(x=>x.endsWith(g));if(C&&S){if(!S.startsWith("[-]"))return;v=v.filter(x=>x!==S)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=M8(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(No,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function M8(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var UO=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function R8(e){let t=Oe(),[n,r]=t;Xe(n,r);let a=pt(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=HO({id:e.assistantID,userConfig:n,setSettings:r}),l=le(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(ce,{children:jO.map((c,m)=>d("div",{class:"mt-2",children:d(ua,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{nt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(Qh,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var jO=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function HO({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=le(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=le(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var ym=!1,qO=xn+"assets/uploads/default-oade4Y.png";function Jh(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=VO(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let S=v.priority||1e3,x=C.priority||1e3;return S-x})),[o,e]);z(()=>{(async()=>{try{r(!0);let v=await ah(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Xe(c,m);let g=pt(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",b=Io(),{t:y}=O();z(()=>{rh(void 0,void 0,!0)},[]),!ym&&b==="#ai"&&(ym=!0),z(()=>()=>ym=!1,[]);let h=ne(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(R8,{assistantID:v}):d(P8,{assistantID:v,lang:f,hasAssistantsRoute:ym})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(rt,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ma,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(zO,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function zO({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=le(()=>i(qO),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=om();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(Pt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(e),children:d(Yh,{assistantID:e.id,enable:si(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function VO(){let e=xe(!1),{t}=O(),[n,r]=Oe();Xe(n,r);let a=n?.customAiAssistants||[];return z(()=>{!n||e.current||(async()=>{try{let s=(await Wl()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),Bo("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return D.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Al(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var nr={};M0.forEach(e=>{e.labelKey&&(nr[e.key]=e.labelKey)});function Zh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=N(null),{t:u}=O();if(z(()=>{Ze().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(WO,{config:l}),d(GO,{config:l}),d(KO,{config:l}),d(eo,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(YO,{config:l}),d(QO,{config:l}),d(ZO,{config:l}),d(JO,{config:l})]})})}function WO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d(ce,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function GO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=l=>{n(c=>({...c,inputTargetLanguage:l}))};if(!e)return null;let u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?o("inputTargetLanguageDescriptionForNoneKey"):o("inputTargetLanguageDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,12,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e.inputTargetLanguage,children:Ot(l,e.interfaceLanguage)},"language"+c))})]})}function KO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function YO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(ye,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function QO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function JO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),[s,u]=N(!1),l=h=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(h,v,C,S)=>{l(C),n(x=>{let T=x.inputTranslationUrlPattern,w=[],E=[];T&&T.matches&&T.excludeMatches&&(w=T.matches,E=T.excludeMatches);let k=[...w],M=[...E];return S==="edit"&&(C==="matches"?k[v]=h:M[v]=h),C==="matches"?(k=qn(h,k),M=Jt(h,E)):(k=Jt(h,w),M=qn(h,M)),{...x,inputTranslationUrlPattern:{...x.inputTranslationUrlPattern,matches:k,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let S=C.inputTranslationUrlPattern,x=[];v==="matches"?S&&S.matches&&(x=S.matches):S&&S.excludeMatches&&(x=S.excludeMatches);let T=[...x];return h.forEach(w=>{T=Jt(w,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(la,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function ZO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(ye,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function Xh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return z(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(rN,{}),d(nN,{}),d(XO,{}),d($O,{}),d(eN,{}),d(tN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function XO(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),nt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var cm=class extends dr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(m6,async()=>{let t=await Ia({responseType:"json",url:`${ft}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Ah=["glm-4-flash"],dm=class extends dr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Ah.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Ah.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(g6,async()=>{let t=await Ia({responseType:"json",url:`${ft}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ra.langMap.has(n.to)||!ra.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ra(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Ah.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:tu,mock2:tu,custom:Ql,google:Hl,transmart:ql,deepl:ru,volc:Ix,volcAlpha:Kl,bing:ra,tencent:Ul,tenAlpha:jl,baidu:_x,caiyun:Nx,cai:Ux,openl:em,youdao:Hx,you:zx,d:eu,dpro:eu,deeplx:Yl,niu:Cx,azure:xx,openai:Dx,gemini:Gx,claude:Yx,papago:Sx,aliyun:Gl,yandex:Jl,qianfan:Zl,"custom-ai":dr,deepseek:dr,"aliyun-bailian":dr,doubao:dr,hunyuan:lm,siliconcloud:cm,lingyiwanwu:dr,zhipu:dm};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys(Yr).forEach(e=>{Xi[e]={...Yr[e],class:oa[e]}});function $i(e,t){let n=or;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return or}async function mr(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function Zx(e,t){for(let n of e)try{return await mr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function kh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=At(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function K_(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=Ex(g,m,{sourceLanguage:K_(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(f&&(E.refresh=!0),h&&(E.debug=!0),E.text&&(E.text=Y_(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let y=[],b={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,S=At(t.user),x;try{x=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await x.init()}catch(E){if(n){y.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=E instanceof V?new V(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(I,null,M)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){C++;let k=l;l==="openl"&&(k=l+"-"+m.codename||em.DEFAULT_CODENAME);let M=x.getCacheKeyPrefix();M&&(k=M+"-"+k);let I=null;try{I=await Jc(g5({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(R){D.warn("query cache DB error, but it's ok",R)}if(I){let R={...E,text:I.translatedText};b.sentences[C]=R,n&&n(null,R,E)}else y.push(E)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&D.debug(`use ${v-T} sentences from cache`),!y.length)return b;let w=await x.multipleTranslate({sentences:y},m,(E,k,M)=>{if(n&&n(E,k,M),!E&&k&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||em.DEFAULT_CODENAME);let R=x.getCacheKeyPrefix();R&&(I=R+"-"+I),o.cache&&Jc(p5({translatedText:k.text,from:M.from,to:M.to,detectedFrom:k.from,key:xr(M.text),service:I}),3e3).catch(P=>{D.warn("set cache DB error",P)})}});for(let E of w?.sentences||[]){let k=b.sentences.findIndex(M=>!M);if(k===-1)throw new V("translateFailed","can not match the result");b.sentences[k]=E}return b}function Y_(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function ye(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function sa(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Dh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function Oo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let h=0;he.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(ce,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let h=f.target.value,y=Array.isArray(r)?h.split(","):h;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(ce,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Lh(e){let{t}=O(),n=xe(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function mm(e,t){return t.some(n=>n.label===e)}function Xx(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);mm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);mm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());mm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:mm(r,n)||n.push({label:r,value:r})}),n}function ua(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,isProUser:h}=e;p=p??(m.default||"");let y={},b={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(b=u.translationServices[e.service]),b.env){let S=Object.keys(b.env);for(let x=0;xJ_(t,m,b),[m,b]);e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),z(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]);let C=m.name;if(m.label&&(C=m.label),m.labelKey&&(C=t(m.labelKey)),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:200,disabled:f,items:m.options.map(S=>({label:`${S.label?t(S.label):S.value}`,value:S.value,selected:p===S.value,onSelected:()=>{if(S.action=="jumpOptions"){let x=S.args||[];wa(...x);return}g(S.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let S=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let T=x.label===x.value?x.value:x.label;return{label:t(T),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Lh,{visible:o,value:b.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(T=>{let w=T.translationServices?.[e.service||""];return w?(w.customModels=x,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=S.includes(p);a&&!x&&g(S[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(Oo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(Oo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(Oo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let S=p,x="";S||(S="#FFFFFF",x="#FFFFFF");let{hex:T,opacity:w}=Q_(S);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:E=>{g(E.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:w},disabled:f,onInput:E=>{g(E.target.value)}})]})})}else return m.type==="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d("input",{type:"checkbox",id:m.name,name:m.name,role:"switch",checked:p,disabled:f,onChange:S=>{g(S.target.checked)}}),C,m.descriptionKey?d("small",{class:"my-2",dangerouslySetInnerHTML:{__html:t(m.descriptionKey,y)}}):null]})}):null}}function Q_(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function J_(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=Xx(i,n.customModels||[]),[...i,a]}function $x(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function Xl(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d($x,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function la(e){let{t}=O(),n=xe(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ua(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(ce,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function No(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);z(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(la,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ua,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ca(){let e=["bingGlobalConfig","baiduGlobalConfig",d6,Ti];for(let t of e)await j.storage.local.remove(t);X()||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MDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function Z_(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Pa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Mh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[h,y]=N({});z(()=>{n&&v().then(()=>g(!1))},[n]);let b=w=>{w?.target?.id===F+"-overlay"&&t()};function v(){return new Pa(n).listAll().then(E=>{c(E)}).catch(E=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let E=F+"-config-"+Os()+".json";new Pa(n).uploadConfig(i,E).catch(k=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function S(w,E,k){w.preventDefault(),y({[k]:!0}),new Pa(n).getConfig(E).then(M=>{o(()=>({...M})),nt(a("importSuccess"))}).catch(M=>{D.error(M),bt(a("importFail"))}).finally(()=>y({}))}function x(w,E){new Pa(n).getConfig(w).then(k=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(k,null,2))),M.setAttribute("download",E),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(k=>{D.error("download google config file failed",k),bt(a("downloadFail")+": "+k.message)})}function T(w){w.preventDefault(),o({...i,autoSync:!1}),Wi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,E)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:k=>{k.preventDefault(),x(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",pl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":h[E],disabled:h[E],onClick:k=>S(k,w.id,E),children:a("import_hint")}),d(Z_,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+E))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function ja(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=$o([]);function pt(e){let[t,n]=N(null);return z(()=>{Ze().then(r=>{n(r),D.debug("current config",r)})},[]),z(()=>{Ze().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return z(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function i8(){let[e,t]=N(!1),n=Rr();return z(()=>{X(!0)&&(!n||n=="0.0.0"||ja(n,"0.9.0")||t(!0))},[n]),[e,t]}function da(){let[e,t]=N(null);return z(()=>{Mt().then(r=>{t(r)})},[]),[e,r=>{t(r),kt(r)}]}function pm(e){let[t,n]=N(null);return z(()=>{tt.get(mt,null).then(r=>{n(r?At(r):!1)}).catch(r=>{n(!1)})},[]),z(()=>{n(At(e))},[e]),t}var rt=class extends uo{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),d(X_,{error:this.error,info:this.info})):this.props.children}};function X_({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var o8=D;function $_(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function Rh(){let[e,t,n,r,a]=Oe(),i=$_();Xe(e,t);let{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!ms()&&d(g,{}),d(p,{config:i})]})});function c(){let f=b=>{b.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(v=>{o8.error("clean local config error",v)}),ca().catch(v=>{o8.error("clean cache error",v)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},h=b=>{t(()=>({...b}))},y=b=>{b.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let S=C.target,x=new FileReader;x.onload=function(){try{let T=JSON.parse(x.result);h(T),nt(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},x.readAsText(S.files[0])},v.click(),document.body.removeChild(v)};return d(ce,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[tO,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{if(b.preventDefault(),ms()){let v=we();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(v,F+"-config-"+Os()+".txt")}},role:"button",children:[nO,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(!1),[S,x]=N("");z(()=>{if(Qu()&&n){let P=localStorage.getItem(Zu);if(localStorage.removeItem(Zu),P){let L=globalThis.localStorage.getItem(of);D.debug("import_export","rawAuthInfoStr",L);let U={},B={},H="";if(L){globalThis.localStorage.removeItem(of);try{U=JSON.parse(L),B=U.state||{},H=U.access_token||""}catch(W){D.error("parse state error",W)}}if(H&&B&&(Wi.setAuthInfo({access_token:H}),D.debug("import_export","Google OAuth:",U),U)){let W=U.state;D.debug("state",W),W?.mode==="auto"?(b(!0),I(H)):(C(!0),k(H))}}}},[n]);function T(){b(!0),E4({source:globalThis.location.href,mode:"auto"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&I(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function w(){C(!0),h(!1),E4({source:globalThis.location.href,mode:"manual"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&k(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function E(){x(""),T()}function k(P){x(P),C(!1),h(!0)}function M(P){b(!1),C(!1),h(!1),t({...e,autoSync:!1}),D.error("import_export","Google OAuth error:"+P),bt(o("authFail"))}function I(P){b(!0),D.debug("sync latest with drive",P,e),x(P),Hd(P,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?nt(o("successSyncConfig")):nt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{b(!1)})}function R(P){t({...e,autoSync:P.checked}),P.checked&&T()}return d(ce,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:P=>{P.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(ce,{}):s8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:P=>{P.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Mh,{onClose:()=>h(!1),authExpire:E,accessToken:S}):null]})}function p({config:f}){let h=l8(),[y,b]=N(!1),[v,C]=N(""),[S,x]=N(""),{t:T}=O();if(!h||!h.token)return null;let w=At(h);async function E(){confirm(T("proRightOpenPro"))?window.open(Y6):D.debug("\u53D6\u6D88\u4F1A\u5458")}async function k(){if(!w){E();return}try{if(y)return;b(!0),x("");let L=await fm(h?.token,e,a),U="";switch(L){case"upload":{U=T("successSyncConfigToAccount");break}case"override":{U=T("successSyncConfigInAccount");break}default:U=T("syncConfigNoUpdate")}C(U)}catch(L){C(""),x(L.message)}finally{b(!1)}}let M=le(L=>{if(!w){E();return}l({...u,proAutoSync:L})},[]),I=le(L=>{if(!w){E();return}t(U=>({...U,proSyncAPIKey:L}))},[]),R=u?.proAutoSync!=!1,P=e?.proSyncAPIKey!=!1;return w||(R=!1,P=!1),d(ce,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!P)},checked:P}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),k()},"aria-busy":y,href:"#",role:"button",children:[s8," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&!v&&u?.accountLastSyncedAt&&w),children:T("lastSyncedAt",{date:Kv(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||w,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!S,children:S})]})}}var eO=Bn(fm,1e3);async function fm(e,t,n){try{if(t===null)return"noupdate";let r=await Mt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Oi(t.proSyncAPIKey,t);return await Ph(e,c),await kt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await c8(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),mv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Oi(t.proSyncAPIKey,t);return await Ph(e,u),await kt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||gv(n)&&eO(n.token,e,t)},[e,n])}function l8(){let[e,t]=N(null);return z(()=>{tt.get(mt,null).then(n=>{t(n)})},[t]),e}function c8(e){return(location.href?.indexOf("popup.html")>0?_r:te)({responseType:"json",url:ft+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Ph(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?_r:te)({responseType:"json",url:ft+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var s8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),tO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),nO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var rO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},d8=rO;var Ih="Arial",$l=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Ih.toLowerCase()?!0:m8(Ih,t).join("")!==m8(e,t).join("")}catch{return!1}};function m8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Ih,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Fh(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function g8(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Bh(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Bh(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Bh(n)},r,a);return aO(i)}catch{return Promise.reject("Encryption failed")}}function aO(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=P.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=hd(v);let B=yd(v);L.install_week=`${B.year}${B.week}`}if(n.user){let B=Ty(n.user);B&&Object.keys(B).forEach(H=>{L[H]=B[H]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),x?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let U="html";if(n.rule.pageType&&(U=n.rule.pageType),L.page_type=U,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let H=new URL(B);L.site_host=H.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),y&&(L.ab_group=y),L.campaign=b||"none",{...P,params:L}});if(i)return;M.forEach(async P=>{let L=await te({responseType:"text",url:P,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&iO(p,R),n.config.enablePerformanceReport&&uO(n,R)}catch(r){D.debug("report error",r)}}function iO(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};p8(r);let a=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var oO=Date.now(),sO=["translate_page","translate_video_subtitle"];function uO(e,t){try{t.forEach(async n=>{if(!sO.includes(n.name)||e.config.performanceBlockUrls?.some(l=>gt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};p8(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-oO},s=await g8(JSON.stringify(o),ay,iy);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function p8(e){return e?.install_day&&(e.install_day=bd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function eo({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[h,y]=N(""),[b,v,C,S,x]=Te(me),T=pm(i),w=R=>{v(P=>{let L={...P,[n]:R};return n==="translationService"&&(Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${R}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},E=ne(()=>{if(!t)return[];t.user=i??t.user;let R=Es(t,n,l);return o?.length&&(R=R.filter(P=>o.find(L=>L==P.id))),R},[t,i,n,l,o]),k=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:R}=e,P=t[n],L=R?.[P],U=Vl(L,t.localConfig.aiAssistants||[]);if(U&&L){let B=iu(U);return{...L,...B,aiAssistant:U}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let R=t[n];return As(t,n,l,R)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:r||u("service"),description:a||u("select translation service")}),d(lO,{selectService:w,translationServiceItems:E,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(cO,{verifiedErrorMessage:p}),d(dO,{ctx:t,curServiceConfig:k,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:h,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(Oh,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(Nh,{curServiceItem:M,t:u}),d(Uh,{curServiceItem:M,t:u}),d(_h,{currentTranslationServiceItem:M,t:u}),jh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),Hh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,t:u})]})]})}function _h({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function lO({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:j0(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function cO({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function dO({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await ut(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await mr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){D.debug("e.status",c.status),D.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){D.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function Oh({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Fh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function Nh({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function Uh({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function jh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(ce,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l}=h8(e,t,n,o);return d("div",{class:"mt-2",children:[d(ua,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:o,value:u,disabled:l,onSetSettings:r,onChange:c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return b8(e,p,o.name,c),{...m,translationServices:{...g,[n.id]:{...p,[o.name]:c}}}})},onFinish:()=>{nt(i("saved"))}},o.name+n.id),d(mO,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function Hh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,forceExpand:i}){if(!t||!e||!n?.optionalProps?.length||!r)return null;let o=n?.id.startsWith("custom-ai"),s=d(ce,{children:[d("div",{children:n.optionalProps.map((u,l)=>{let{value:c,disabled:m}=h8(e,t,n,u);return t?.aiAssistant&&!t?.aiAssistant?.enableRichTranslate&&u.name=="enableRichTranslate"?null:d("div",{class:"mt-2",children:d(ua,{config:e,service:n?.id,disabled:m,field:u,value:c,onSetSettings:r,onChange:g=>{r(p=>{let f=p.translationServices||{},h=f[n.id]||{};return b8(e,h,u.name,g),{...p,translationServices:{...f,[n.id]:{...h,[u.name]:g}}}})},onFinish:()=>{nt(a("saved"))}},u.name+n.id+t.assistantId+t.fallbackAssistantId)},"service-item-optional-prop-"+u.name+l)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:u=>{u.preventDefault(),window.confirm(a("confirmResetToDefaultSettings"))&&r(c=>{let m=c.translationServices||{};setTimeout(()=>window.location.reload(),50);let g=m[n.id]||{};if(o){let p=["type","name","extends","apiUrl","APIKEY"];Object.keys(g).forEach(f=>{p.includes(f)||delete g[f]})}else g={};return{...c,translationServices:{...m,[n.id]:g}}})},children:a("resetToDefaultSettings")})]});return i?s:d(ce,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),s]})})}function mO({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=le(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ua,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{nt(a("saved"))}})}function f8(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function h8(e,t,n,r){if(!r)return{value:"",disabled:!1};let a=r.name!="assistantId"&&r.name!="apiUrl"&&!!t.aiAssistant,i=t[r.name];return r.name=="enableRichTranslate"&&(e.translationMode=="dual"?i=t.dualEnableRichTranslate??t.enableRichTranslate:e.translationMode=="translation"&&(i=t.translationEnableRichTranslate??t.enableRichTranslate)),r.descriptionKey=="description.enableRichTranslate"&&e.translationMode=="dual"&&t.dualEnableRichTranslate!=null&&(r.descriptionKey="description.aiDualEnableRichTranslate"),r.descriptionKey=="description.aiDualEnableRichTranslate"&&e.translationMode=="translation"&&(r.descriptionKey="description.enableRichTranslate"),r.name==="apiUrl"&&n?.id==="openai"&&t?.APIKEY?.startsWith("immersiveopenai_")&&(a=!0,i=`https://openai-api.${et}/v1/chat/completions`),r.name=="placeholderDelimiters"&&(r.default=t.placeholderDelimiters||r.default),{value:i,disabled:a}}function b8(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function y8(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function v8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function C8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function x8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function S8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function T8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function w8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var A8=jd();function hm(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let[u,l]=i8(),[c,m]=N(null);return z(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d(gO,{}),d(wO,{config:o,user:c,setUser:m}),d(vO,{config:o}),d(eo,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(pO,{config:o}),d(IO,{config:o}),d(CO,{config:o}),d(xO,{config:o}),d(SO,{config:o}),d(TO,{config:o}),d(fO,{config:o,ctx:s}),d(yO,{setSettings:n,config:o}),d(d8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function gO(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Ol({...i,isShowContextMenu:!0}),a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(c=>{D.error("clean local config error",c)}),ca().catch(c=>{D.error("clean cache error",c)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ca().then(()=>{nt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(x8,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(S8,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function pO({config:e}){let[t,n,r,a,i]=Te(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(ye,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Ol()},200)},children:Vi(sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function fO({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>LO(l),[l]),f=le(Bn((v,C)=>{a&&i(S=>{let x=S.translationThemePatterns||{};return{...S,translationTheme:C,translationThemePatterns:{...x,[C]:v}}})},400),[i]),h=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return z(()=>{m&&(Gs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(ce,{children:[d(bO,{translationTheme:l,onChange:v=>{let C=v.target;h(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),b(),d(PO,{config:e}),d(hO,{translationThemes:mf,selectedTheme:l,selectDisplay:h})]})})]});function y(){return d(ce,{children:d("font",{class:Qs(l,!1,[],!1).join(" "),children:d("font",{class:Js(l).join(" "),children:n("sampleTargetText")})})})}function b(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let S=m||{},x=`theme-${l}-${v.name}`,T=RC(x)||v.default||void 0,w=S[v.name]||T;return d(ua,{config:e,field:v,value:w,onSetSettings:i,onChange:E=>{g(k=>(Gs(document,l,{...k,[v.name]:E},a.selectTranslationFont),{...k,[v.name]:E}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function hO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:Qs(a,!1,[],!1).join(" "),children:d("font",{class:Js(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function bO({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(ye,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:mf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function yO({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(h=>{let y=h.translationThemePatterns||{},b=y[p]||{},v=b.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...h,translationThemePatterns:{...y,[p]:{...b,matches:C}}}})},c=(g,p)=>{e(f=>{let h=f.translationThemePatterns||{},y=h[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...h,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(la,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ua,{urls:MO(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function vO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=l=>{Ys({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function CO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(Xl,{title:t("always languages"),description:t("always translate the following languages"),languages:A8,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function xO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(Xl,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:A8,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function SO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];if(g==="edit"){if(!b[c])return p;b[c]=l}return b=qn(l,b),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Mt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],h=f.filter(b=>b.match!==p),y=!1;h.length!==f.length&&(y=!0),y&&kt({...m,tempTranslationUrlMatches:[...h]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function TO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];return g==="edit"&&(v[c]=l),b=Jt(l,h),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function k8(e){return{handleTranslationLanguagePatternSelected:le((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var qh=0,Vh;async function D8(e){if(qh>60*10)return null;qh++,tt.refresh(),await ut(300);let t=await tt.get(mt,null);D.debug("loopCheckUser",qh,t),t?(clearTimeout(Vh),e(t)):Vh=setTimeout(D8.bind(null,e),1500)}function E8(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=DO(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Sy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function wO({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Te(me),m=e.interfaceLanguage;z(()=>(tt.get(mt,null).then(h=>{h&&(n(h),EO(h.token).then(y=>{let b=y.data;b.token=h.token,tt.set(mt,b),n(b),Fo()}).catch(y=>{Ll(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(Vh)}),[]);let g=le(h=>{h&&h.preventDefault&&h.preventDefault(),t?.token&&AO(t.token).finally(async()=>{await tt.remove(mt),await ut(200),await tt.refresh(),n(null),Fo()})},[t]),p=le(async h=>{kC()&&(h&&h.preventDefault&&h.preventDefault(),kO(vs),await tt.set(sl,!0),D8(y=>{fm(y.token,o,s),n(y),Wh?.close(),window.location.reload()}))},[n]),f=t?.avatar||t8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(E8,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Dn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:li})]}),d("div",{class:"",children:d("a",{href:`${Ai}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:li})]}),d(E8,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Ai,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:N6,onClick:p,children:r(a?"loginForSafari":"login")})]})}function EO(e){return te({responseType:"json",url:ft+"v1/user",method:"get",headers:{token:e}})}function AO(e){return te({responseType:"json",url:ft+"v1/user/logout",method:"delete",headers:{token:e}})}var Wh=null;function kO(e){let r=screen.width/2-230,a=screen.height/2-640/2;return Wh=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),Wh}function DO(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function LO(e){let t=[];return il[e]&&(t=t.concat(il[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function MO(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var zh="";function PO({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(RO,{config:e,isOpen:n})]})}function RO({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);z(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(h=>$l(h,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(h=>h===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Te(me),g=p=>{p!==zh&&!$l(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let h=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&h&&f.translationThemePatterns&&f.translationThemePatterns[h]&&(y=f.translationThemePatterns[h]),Gs(document,h,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(zh))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let h=n(`font.${p}`);h.startsWith("font.")&&(h=p);let y=p=="none"?zh:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:h},"locale"+f)})})]})}function IO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return Ae.ASSETS_BASE_URL+e}function Gh(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function L8(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}var FO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),h=xe(null),y=xe(null),b=()=>{u||!l&&(qe().any||Cr())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||Cr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{h.current&&(clearTimeout(h.current),m?.()),f(!1)},S=ne(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),x=ne(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),T=w=>Ld()?d("div",{style:S,role:"tooltip",children:w}):d("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:b,onMouseLeave:C,onTouchStart:()=>{l&&b()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:x,children:T(e)})]})},Pt=FO;var bm=!1;function Kh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let{t:u,lang:l}=O(),c=s&&ws(s,"translationService",l)||[],m=Io(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),h=As(s,"translationService",l,f);return d(OO,{service:f,currentTranslationServiceItem:h,ctx:s})},[m,c]);!bm&&m==="#services"&&(bm=!0),z(()=>()=>bm=!1,[]),z(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Al(8)}`;if(s?.config.translationServices[f]){p();return}await n(h=>{let y=h.translationServices||{},b=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${b+2}`,{...h,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(cl,"_blank"),children:d(L8,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(cl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(BO,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function BO({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Te(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ti.find(I=>I==e.id),[e]),m=le(I=>{i(R=>{let P=R.translationServices?.[e.id]||{};return{...R,translationServices:{...R.translationServices,[e.id]:{...P,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},h=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),b=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,b,e.id,e.ok]),S=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(R=>{Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${e.id}`}}],t);let P={...R,translationService:e.id};return P.translationServiceChangedbyUserAt=new Date().toISOString(),P}))},x=t.translationService===e.id,T=x||Bf(l,r),w=n("translationServices."+e.id),E=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),k=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,E="",k="custom-ai"),d("div",{class:"service-container","data-selected":x?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${k}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(Pt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:E}}),h&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:S,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function _O(e,t){let[n,r]=N(!1),[a]=Te(me),[i,o]=N("");return[le(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await mr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function OO({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=pt(a),{t:c}=O(),m=pm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,S=t?.id||"",x=C?.[S],T=Vl(x,n.localConfig.aiAssistants||[]);if(T&&x){let w=iu(T);return{...x,...w,aiAssistant:T}}return x?{...x}:{}}return null},[l,n,t,e]),[p,f,h]=_O(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,b=g?.type,v=c("translationServices."+e)+" "+c("setting");if(b){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(ce,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!bm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&h==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),h&&h!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:h}})}),y&&d("article",{children:[d(Oh,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(Nh,{curServiceItem:t,t:c}),d(Uh,{curServiceItem:t,t:c}),d(_h,{currentTranslationServiceItem:t,t:c}),jh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),Hh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(f8,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ma(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var NO=xn+"assets/uploads/default-oade4Y.png";function P8({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=le(()=>m(NO),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:h}=om(),y=Oe(),[b,v]=y;Xe(b,v);let C=pt(b);z(()=>{ih(e).then(x=>{a(x),m(x.avatar),o({name:x.i18n[t]?.name||x.name,description:x.i18n[t]?.description||x.description,details:x.i18n[t]?.details||x.details}),u(lt.sanitize(x.i18n[t]?.details||x.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let S=p?.some(x=>x.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:x=>{if(x.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(Pt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(r),children:d(Yh,{assistantID:e,enable:si(r),handleInstall:f,operateLoading:h,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),S&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(Qh,{aiAssistant:r,isInstall:S}),C&&d(ce,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(ce,{children:UO.map((x,T)=>d("div",{className:"mt-2",children:d(ua,{service:"ai",config:C,field:x,value:r[x.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function Yh({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=xe(null);return z(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(w8,{}):d(T8,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function Qh({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Td(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...h],b=u[p];if(e.matches?.find(C=>C===b))y=M8(e.matches||[],h,[b]),y.push(g);else{let C=y.findIndex(S=>S.endsWith(b));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,h)=>{if(h==="edit")return l(g,p);a(y=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...b],C=e.matches?.find(x=>x===g),S=b.find(x=>x.endsWith(g));if(C&&S){if(!S.startsWith("[-]"))return;v=v.filter(x=>x!==S)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=M8(e.matches||[],h,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(No,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function M8(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var UO=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function R8(e){let t=Oe(),[n,r]=t;Xe(n,r);let a=pt(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=HO({id:e.assistantID,userConfig:n,setSettings:r}),l=le(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(ce,{children:jO.map((c,m)=>d("div",{class:"mt-2",children:d(ua,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{nt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(Qh,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var jO=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function HO({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=le(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=le(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var ym=!1,qO=xn+"assets/uploads/default-oade4Y.png";function Jh(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=VO(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let S=v.priority||1e3,x=C.priority||1e3;return S-x})),[o,e]);z(()=>{(async()=>{try{r(!0);let v=await ah(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Xe(c,m);let g=pt(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",h=Io(),{t:y}=O();z(()=>{rh(void 0,void 0,!0)},[]),!ym&&h==="#ai"&&(ym=!0),z(()=>()=>ym=!1,[]);let b=ne(()=>{if(!h.startsWith("#ai/"))return null;let v=h.slice(4);return v.startsWith("custom")?d(R8,{assistantID:v}):d(P8,{assistantID:v,lang:f,hasAssistantsRoute:ym})},[h,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(rt,{children:d(me.Provider,{value:l,children:[h==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ma,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(zO,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),b]})})}function zO({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=le(()=>i(qO),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=om();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(Pt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(e),children:d(Yh,{assistantID:e.id,enable:si(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function VO(){let e=xe(!1),{t}=O(),[n,r]=Oe();Xe(n,r);let a=n?.customAiAssistants||[];return z(()=>{!n||e.current||(async()=>{try{let s=(await Wl()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),Bo("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return D.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Al(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var nr={};M0.forEach(e=>{e.labelKey&&(nr[e.key]=e.labelKey)});function Zh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=N(null),{t:u}=O();if(z(()=>{Ze().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(WO,{config:l}),d(GO,{config:l}),d(KO,{config:l}),d(eo,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(YO,{config:l}),d(QO,{config:l}),d(ZO,{config:l}),d(JO,{config:l})]})})}function WO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d(ce,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function GO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=l=>{n(c=>({...c,inputTargetLanguage:l}))};if(!e)return null;let u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?o("inputTargetLanguageDescriptionForNoneKey"):o("inputTargetLanguageDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,12,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e.inputTargetLanguage,children:Ot(l,e.interfaceLanguage)},"language"+c))})]})}function KO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function YO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(ye,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function QO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function JO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),[s,u]=N(!1),l=b=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(b,v,C,S)=>{l(C),n(x=>{let T=x.inputTranslationUrlPattern,w=[],E=[];T&&T.matches&&T.excludeMatches&&(w=T.matches,E=T.excludeMatches);let k=[...w],M=[...E];return S==="edit"&&(C==="matches"?k[v]=b:M[v]=b),C==="matches"?(k=qn(b,k),M=Jt(b,E)):(k=Jt(b,w),M=qn(b,M)),{...x,inputTranslationUrlPattern:{...x.inputTranslationUrlPattern,matches:k,excludeMatches:M}}})},h=(b,v)=>{n(C=>{let S=C.inputTranslationUrlPattern,x=[];v==="matches"?S&&S.matches&&(x=S.matches):S&&S.excludeMatches&&(x=S.excludeMatches);let T=[...x];return b.forEach(w=>{T=Jt(w,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(b,v,C)=>{l(v),p(b),m(C)};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(la,{toggleModal:b=>{b.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:h,onEditUrl:y})]}):null}function ZO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(ye,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function Xh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return z(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(rN,{}),d(nN,{}),d(XO,{}),d($O,{}),d(eN,{}),d(tN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function XO(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),nt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] - }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function $O(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),nt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function eN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Lo()),Ns().catch(l=>{D.error("clean local config error",l)}),ca().catch(l=>{D.error("clean cache error",l)}),nt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),nt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function tN(){let[e,t,n,r,a]=Te(me),i=pt(e),o=cn(i),{t:s}=O(),[u,l]=N("");return z(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Hu.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Ln();if(!g){p.customAiAssistants=[];let S=p.aiAssistants||[];p.aiAssistants=S.filter(x=>!x.custom),Fr(p),nt(s("saved"));return}let f=Hu.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(S=>S.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(S=>S.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Fr(p),nt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function nN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Fo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:ol})}})]})}function rN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var aN="buildinConfig",iN={},vm=_C(aN,iN);function I8(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var oN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},sN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},uN=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},lN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},cN=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},dN=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:Ju+"releases",children:e})]})},mN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},gN=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $h(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=vm(),[c,m]=N(null),[g,p]=N(""),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[S,x]=N(null),[T,w,E,k]=Oe();Xe(T,w);let[M,I]=N(!1),[R,P]=N(!1),L=Pr(),U=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",B=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",H=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",W={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:U},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:B},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:H}},Z=W.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?Z=W["zh-TW"]:r.startsWith("zh")&&(Z=W["zh-CN"]);let Se=!0;He()&&v&&(Se=v.generalRule.showSponsorOnSafari);let pe=async()=>{p("");let $=o;if(o===null)try{let se=await Br({url:wi});se?(s(se),$=se,b(!0)):(p(n("unknownError")),m(null))}catch(se){m(null),p(se.message);return}$!==null?(l($),m(!1),t($.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};z(()=>{Ze().then($=>{P($.interfaceLanguage!=="zh-TW");let se=$.buildinConfigUpdatedAt;C($);let be=new Date(se);t(se),Br({url:wi}).then(he=>{let Le=he.minVersion,Ve=L;s(he);let J=he.resaleVersion;if(J&&(ja(Ve,J)?x(!0):x(!1)),ja(Ve,Le)){let Ee=he.buildinConfigUpdatedAt;new Date(Ee)>be?(m(!0),pe()):m(!1)}else h(!0),m(null)}).catch(he=>{m(null),p(he.message)})}),e8().then($=>{i($)})},[]),z(()=>{Ze().then($=>{C($),ia($)})},[T,e]);let q=$=>{w(se=>{let be=!se.alpha;return be?nt(n("enableAlphaSuccess")):nt(n("disableAlphaSuccess")),{...se,alpha:be}})},G=$=>{$.preventDefault(),$.stopPropagation(),I(!0),ca().then(()=>{I(!1),nt(n("cleanSuccess")),i("0 B")}).catch(se=>{I(!1),bt(se.message)})},ee=$=>{w(se=>({...se,cache:$}))},Re=$=>{w(se=>({...se,enabled:$}))},ve="aboutIntro";Se||(ve="aboutIntroWithoutSponsor");let Ye=new Date().getFullYear();return v?d(rt,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:I8(7)(q),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:["V",L,u6()?"(Beta)":""]}),S===!1&&d(dN,{latestVersion:o?.resaleVersion}),S===!0&&d(mN,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Re(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{ee(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:G,children:n("cleanCache")})]}),g?d(gN,{handleSyncing:pe,message:g,date:e||""}):y?d(cN,{minVersion:o.minVersion}):c===null?d(uN,{}):c===!0?d(lN,{}):f?d(sN,{date:e}):d(oN,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+yo,5:`https://${yo}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${yo}_tw`,10:"https://x.com/immersivetrans"})}}),R&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:Ju+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ol,onClick:$=>{$.preventDefault(),ur(ol)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:$=>{$.preventDefault(),ur(Q)},children:n("projectHomepage")})}),Se&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:Z.poster,src:Z.src,style:"border-radius: 38px;"})})]})]}),R&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${yo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Ye," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var pN=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(fN,{...e})]})};function fN(e){let{onAddTag:t,tags:n}=e,r=xe(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(ce,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var F8=pN;var hN=jd();function e3(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Xe(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(rt,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(yN,{config:o,ctx:s}),d(vN,{config:o}),d(bN,{config:o,setSettings:n}),d(CN,{ctx:s}),d(xN,{ctx:s}),d(SN,{config:o}),d(wN,{config:o}),d(TN,{config:o}),d(EN,{config:o}),d(FN,{config:o}),d(AN,{config:o}),d(IN,{config:o}),d(RN,{}),d(kN,{config:o}),d(DN,{config:o}),d(LN,{config:o}),d(MN,{config:o,ctx:s,...m(u,"translationModeLang")}),d(PN,{config:o,...m(u,"translationModeUrl")})]})})})}function bN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=le(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(ce,{children:[d("div",{class:"nav",children:d(ye,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(F8,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function yN({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function CN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function xN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(ye,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function SN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function TN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function wN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return X(!0)?null:d("div",{class:"nav",children:[d(ye,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Ol({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function EN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function AN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function kN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function DN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),[s]=vm();return s.generalRule?d("div",{class:"nav",children:[d(ye,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function LN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function MN({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Te(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:b4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],S=[...v];f?S=Array.from(new Set([...S,b])):S=S.filter(E=>E!==b);let x=C.filter(E=>E!==b),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:S,[m]:x}},w=Qv(e,b);return w&&(T.translationLanguagePairs=w),T})};return d(Xl,{title:r,description:a,languages:hN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function PN({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Te(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,S=C?.[t]||[],x=C?.[c]||[],T=[...S];h==="edit"?T[b]=f:T=Array.from(new Set([...T,f]));let w=x.filter(E=>E!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:w}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(No,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function RN(){let[e,t]=da(),{t:n}=O();return vy()?null:d("div",{class:"nav",children:[d(ye,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function IN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function FN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(ye,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function t3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),{t:u}=O();return s?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${yo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}function n3(e){let{disableTipText:t}=e;return e.disabled&&t?d(Pt,{text:t,enableMobile:!0,tipStyle:{left:"unset",right:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(B8,{...e})}):d(B8,{...e})}function B8(e){return d("label",{for:e.id,children:d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})})}var cu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Cm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function xm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Sm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var _8=[];function Tm(e,t){let[n,r]=N(_8);return z(()=>{if(n.length||!e.length)return;let i=e.filter(o=>$l(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),_8=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function r3(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var du=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],wm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function a3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedVideoSubtitleSites),c=`
+ }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function $O(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),nt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function eN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Lo()),Ns().catch(l=>{D.error("clean local config error",l)}),ca().catch(l=>{D.error("clean cache error",l)}),nt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),nt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function tN(){let[e,t,n,r,a]=Te(me),i=pt(e),o=cn(i),{t:s}=O(),[u,l]=N("");return z(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Hu.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Ln();if(!g){p.customAiAssistants=[];let S=p.aiAssistants||[];p.aiAssistants=S.filter(x=>!x.custom),Br(p),nt(s("saved"));return}let f=Hu.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],b=p.customAiAssistants||[],v=y.findIndex(S=>S.id===f.id);v<0?y.push(f):y[v]=f;let C=b.findIndex(S=>S.id===f.id);C<0?b.push(f):b[C]=f,p.customAiAssistants=b,p.aiAssistants=y,Br(p),nt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function nN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Fo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:ol})}})]})}function rN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var aN="buildinConfig",iN={},vm=_C(aN,iN);function I8(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var oN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},sN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},uN=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},lN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},cN=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},dN=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:Ju+"releases",children:e})]})},mN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},gN=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $h(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=vm(),[c,m]=N(null),[g,p]=N(""),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[S,x]=N(null),[T,w,E,k]=Oe();Xe(T,w);let[M,I]=N(!1),[R,P]=N(!1),L=Rr(),U=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",B=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",H=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",W={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:U},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:B},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:H}},Z=W.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?Z=W["zh-TW"]:r.startsWith("zh")&&(Z=W["zh-CN"]);let Se=!0;He()&&v&&(Se=v.generalRule.showSponsorOnSafari);let pe=async()=>{p("");let $=o;if(o===null)try{let se=await _r({url:wi});se?(s(se),$=se,h(!0)):(p(n("unknownError")),m(null))}catch(se){m(null),p(se.message);return}$!==null?(l($),m(!1),t($.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};z(()=>{Ze().then($=>{P($.interfaceLanguage!=="zh-TW");let se=$.buildinConfigUpdatedAt;C($);let be=new Date(se);t(se),_r({url:wi}).then(he=>{let Le=he.minVersion,Ve=L;s(he);let J=he.resaleVersion;if(J&&(ja(Ve,J)?x(!0):x(!1)),ja(Ve,Le)){let Ee=he.buildinConfigUpdatedAt;new Date(Ee)>be?(m(!0),pe()):m(!1)}else b(!0),m(null)}).catch(he=>{m(null),p(he.message)})}),e8().then($=>{i($)})},[]),z(()=>{Ze().then($=>{C($),ia($)})},[T,e]);let q=$=>{w(se=>{let be=!se.alpha;return be?nt(n("enableAlphaSuccess")):nt(n("disableAlphaSuccess")),{...se,alpha:be}})},G=$=>{$.preventDefault(),$.stopPropagation(),I(!0),ca().then(()=>{I(!1),nt(n("cleanSuccess")),i("0 B")}).catch(se=>{I(!1),bt(se.message)})},ee=$=>{w(se=>({...se,cache:$}))},Re=$=>{w(se=>({...se,enabled:$}))},ve="aboutIntro";Se||(ve="aboutIntroWithoutSponsor");let Ye=new Date().getFullYear();return v?d(rt,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:I8(7)(q),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:["V",L,u6()?"(Beta)":""]}),S===!1&&d(dN,{latestVersion:o?.resaleVersion}),S===!0&&d(mN,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Re(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{ee(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:G,children:n("cleanCache")})]}),g?d(gN,{handleSyncing:pe,message:g,date:e||""}):y?d(cN,{minVersion:o.minVersion}):c===null?d(uN,{}):c===!0?d(lN,{}):f?d(sN,{date:e}):d(oN,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+yo,5:`https://${yo}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${yo}_tw`,10:"https://x.com/immersivetrans"})}}),R&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:Ju+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ol,onClick:$=>{$.preventDefault(),ur(ol)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:$=>{$.preventDefault(),ur(Q)},children:n("projectHomepage")})}),Se&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:Z.poster,src:Z.src,style:"border-radius: 38px;"})})]})]}),R&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${yo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Ye," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var pN=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(fN,{...e})]})};function fN(e){let{onAddTag:t,tags:n}=e,r=xe(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(ce,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var F8=pN;var hN=jd();function e3(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Xe(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=h=>l(`${p}.translation.${h}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(rt,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(yN,{config:o,ctx:s}),d(vN,{config:o}),d(bN,{config:o,setSettings:n}),d(CN,{ctx:s}),d(xN,{ctx:s}),d(SN,{config:o}),d(wN,{config:o}),d(TN,{config:o}),d(EN,{config:o}),d(FN,{config:o}),d(AN,{config:o}),d(IN,{config:o}),d(RN,{}),d(kN,{config:o}),d(DN,{config:o}),d(LN,{config:o}),d(MN,{config:o,ctx:s,...m(u,"translationModeLang")}),d(PN,{config:o,...m(u,"translationModeUrl")})]})})})}function bN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=le(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(ce,{children:[d("div",{class:"nav",children:d(ye,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(F8,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function yN({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function CN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function xN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(ye,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function SN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function TN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function wN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return X(!0)?null:d("div",{class:"nav",children:[d(ye,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Ol({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function EN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function AN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function kN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function DN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),[s]=vm();return s.generalRule?d("div",{class:"nav",children:[d(ye,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function LN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function MN({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Te(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:b4(e),[t,e,n]),p=(f,h)=>{s(y=>{let b=y.translationModeLanguagePattern,v=b?.[n]||[],C=b?.[m]||[],S=[...v];f?S=Array.from(new Set([...S,h])):S=S.filter(E=>E!==h);let x=C.filter(E=>E!==h),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:S,[m]:x}},w=Qv(e,h);return w&&(T.translationLanguagePairs=w),T})};return d(Xl,{title:r,description:a,languages:hN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function PN({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Te(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,h,y,b)=>{o(v=>{let C=v.translationModeUrlPattern,S=C?.[t]||[],x=C?.[c]||[],T=[...S];b==="edit"?T[h]=f:T=Array.from(new Set([...T,f]));let w=x.filter(E=>E!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:w}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(No,{title:n,description:r,urls:g,onDeleteUrl:(f,h)=>{o(y=>{let b=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[h]:b}}})},onSubmitAddUrl:m,type:t})}function RN(){let[e,t]=da(),{t:n}=O();return vy()?null:d("div",{class:"nav",children:[d(ye,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function IN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function FN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(ye,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function t3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),{t:u}=O();return s?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${yo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}function n3(e){let{disableTipText:t}=e;return e.disabled&&t?d(Pt,{text:t,enableMobile:!0,tipStyle:{left:"unset",right:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(B8,{...e})}):d(B8,{...e})}function B8(e){return d("label",{for:e.id,children:d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})})}var cu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Cm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function xm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Sm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var _8=[];function Tm(e,t){let[n,r]=N(_8);return z(()=>{if(n.length||!e.length)return;let i=e.filter(o=>$l(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),_8=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function r3(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var du=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],wm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function a3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedVideoSubtitleSites),c=``,m=[...l.map((g,p)=>` ${g.name} ${p!==l.length-1?", ":""} - `),c].join("");return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ma,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(_N,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(eo,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(BN,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(ON,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function BN(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function _N(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(ce,{children:[d("div",{class:"youtube-header",children:[d(jN,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(ye,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(n3,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:vf})}),d(n3,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("subtitle.ytAIAsrProTooltip",{1:vf}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function ON(e){let{t}=O(),[n,r]=N(!1),a=UN(e.subtitleRule,t,n),i=le(async()=>{let s=(await Us())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return wm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(ce,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(ye,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(NN,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function NN(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(ye,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var UN=(e,t,n)=>{let r=Sm(t),a=Tm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:cu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:cu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:du,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:du,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Cm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:xm(t),selectKey:e.textShadowType}]};function jN(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var O8=Fu({presets:[jc(),qc()]});var HN=1e5;async function ci(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=qN(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:m,isModifyImage:g,skipEditableCheck:p}=r,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},b=!1,y=null;async function h(w){let{container:E,onFrame:k,onIgnoreElement:M,id:I,isLongHtml:R}=w,P=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let H=U(B);return H==NodeFilter.FILTER_ACCEPT?Rt.mark(B,I,p):JN(B,H,r)&&C(),H}),L=E;if(U(L)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(L,I,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await ut(0)),u&&u.length>0){let{currentNode:H,isMatchedSelection:W}=v(P,L,u);if(H)L=H;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let H=L;if(H.nodeName==="IFRAME"){k&&k(H),C(),i3(f,!0),L=P.nextNode();continue}H.nodeType===Node.ELEMENT_NODE&&(s&&o3(H,s),m&&u3(H,m));let W=ka(H,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},H.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&H.childNodes.length==1&&H.childNodes[0].nodeType===Node.TEXT_NODE&&H.innerText?.length==1&&H?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),qt(H,o)&&!W){S(H);let pe=null;for(;!(pe=P.nextSibling())&&P.parentNode(););L=pe;continue}let Z=Mo(H);if(!N8(f,H)||W){C(H);let pe=W?H:H.parentElement;pe&&pe.childNodes.length>0&&x(f,pe,pe.immersiveTranslateComputedStyle||null)}Z&&H.shadowRoot?.mode==="open"&&(W?k?.(H.shadowRoot):h({...w,container:H.shadowRoot})),H.nodeType===Node.ELEMENT_NODE&&qt(H,r.likePreSelectors)&&l&&(R||GN(H))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=P.nextNode(),f.commonAncestorContainer&&L&&L.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(L)}function U(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ro(B)){if(m){let Se=Object.keys(m);if(Se.length>0&&qt(B,Se))for(let q of Se){let G=m[q];if(B.matches(q)){let ee=m[q],Re=Object.keys(ee);for(let ve of Re){let Ye=ee[ve];B.getAttribute(ve)!==Ye&&(Ye===null?B.removeAttribute(ve):B.setAttribute(ve,Ye))}break}}}if(!w.force&&Rt.isMarked(B,I)||Gv(B,I)||Em(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Hi(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let Se=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=Se,s3(Se))return M&&M(B),NodeFilter.FILTER_REJECT;let pe=ka(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Se||null);if(B.isBlock=pe,qt(B,o)&&pe)return NodeFilter.FILTER_REJECT}let H=B.getBoundingClientRect(),{width:W,height:Z}=H;return B.nodeName==="IMG"&&(W>48&&Z>48?B.immersiveTranslateComputedStyle={display:"block"}:W>0&&Z>0&&g!==!1&&(B.setAttribute("width",W),B.setAttribute("height",Z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(W>0&&W<4||Z>0&&Z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let H=B.textContent?.trim();if(!H)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||f.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=B.parentNode;if(W.getBoundingClientRect){let{width:Z,height:Se}=W.getBoundingClientRect();if(Z>0&&Z<4||Se>0&&Se<4)return NodeFilter.FILTER_REJECT}return c>0&&H.length>=c&&KN(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(w){D.error(w)}f&&f.commonAncestorContainer&&f.flatNodes.length>0&&C();function v(w,E,k){let M=E.immersiveTranslateComputedStyle||null;if(y){if(!y.contains(E))if(b=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))b=!0,y=E,C(),x(f,y,M);else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b};else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))b=!0,y=E,C(),x(f,y,M);else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b};else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b};return{currentNode:E,isMatchedSelection:!0}}function C(w){let E=f.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let M=E;M>=0;M--){let R=f.flatNodes[M]?.textContent?.trim()||"";if(!R||new RegExp(r.skipTrailTextRegex).test(R)){f.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;f.commonAncestorContainer=ZN(w,r);let M=[...f.flatNodes],I=f.flatNodes.filter(R=>w.parentNode?.contains(R));I.length>0&&M.length!=I.length&&(f.flatNodes=I,f.flatNodes.original=M)}let k=WN(f,a,r);k&&n&&n(k),i3(f)}function S(w){if(!N8(f,w)){C(),i3(f);let E=w.parentNode;E&&x(f,E,E.computedStyle)}f.flatNodes.push(w)}function x(w,E,k){w.commonAncestorContainer=E;let M=T(k);w.isPreWhitespace=M}function T(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function N8(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mo(t));let r=VN(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function qN(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function zN(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function o3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function VN(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mo(t)):!1}function WN(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=_d(r,a,n);o||(o=a);let s=[];for(let p of r){let f=zN(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>HN){D.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:$v(o)}}else return null}function i3(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function s3(e){return e.display==="none"}var Rt={_marked_key:S6,isMarked(e,t){return C4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return cC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mo(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GN(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function KN(e,t,n){let r=e.textContent||"",a=Zv(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=oC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function j8(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),m=e.querySelector(u);if(m)for(let g of c){let p=l[g];if(g==="translate"&&p==="no"){let b=m.innerText||m.textContent||"";if(!b.trim()||QN(m,a,i,o)||!uC(b,n,r))continue}m.getAttribute(g)!==p&&(p===null?m.removeAttribute(g):m.setAttribute(g,p))}}}function u3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Em(e,t){return YN(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function YN(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Fd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function ec(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function QN(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Em(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Od(o,t,n))return!0}}return!1}function JN(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&ka(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function ZN(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&ka(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function H8(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new u0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XN(u.content,t),n&&(r=z8(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:eC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function q8(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function XN(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=$N(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,m=u?.textContent?.trim().length||0;c>m&&(u=l)}),u&&i.push(u)}),!!i.length)return _d(i,document.body,t)}function $N(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function z8(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(A0)||l3(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var tc="";async function l3(e){let t=document.title;if(!t||t.includes(A0))return;tc!==t&&(tc=t);let n=await ze({text:t,pageLangs:[Dt(),"en"]});if(!Hs(e,n))try{let r=await dr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=tc,document.title=r.text+A0+tc)}catch(r){throw r}}function W8(e){e.rule.isTranslateTitle&&(document.title=tc)}function mu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function Am(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?h4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + `),c].join("");return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ma,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(_N,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(eo,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(BN,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(ON,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function BN(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function _N(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(ce,{children:[d("div",{class:"youtube-header",children:[d(jN,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(ye,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(n3,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:vf})}),d(n3,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("subtitle.ytAIAsrProTooltip",{1:vf}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function ON(e){let{t}=O(),[n,r]=N(!1),a=UN(e.subtitleRule,t,n),i=le(async()=>{let s=(await Us())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return wm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(ce,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(ye,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(NN,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function NN(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(ye,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var UN=(e,t,n)=>{let r=Sm(t),a=Tm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:cu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:cu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:du,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:du,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Cm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:xm(t),selectKey:e.textShadowType}]};function jN(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var O8=Fu({presets:[jc(),qc()]});var HN=1e5;async function ci(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=qN(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:m,isModifyImage:g,skipEditableCheck:p}=r,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,y=null;async function b(w){let{container:E,onFrame:k,onIgnoreElement:M,id:I,isLongHtml:R}=w,P=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let H=U(B);return H==NodeFilter.FILTER_ACCEPT?Rt.mark(B,I,p):JN(B,H,r)&&C(),H}),L=E;if(U(L)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(L,I,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await ut(0)),u&&u.length>0){let{currentNode:H,isMatchedSelection:W}=v(P,L,u);if(H)L=H;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let H=L;if(H.nodeName==="IFRAME"){k&&k(H),C(),i3(f,!0),L=P.nextNode();continue}H.nodeType===Node.ELEMENT_NODE&&(s&&o3(H,s),m&&u3(H,m));let W=ka(H,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},H.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&H.childNodes.length==1&&H.childNodes[0].nodeType===Node.TEXT_NODE&&H.innerText?.length==1&&H?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),qt(H,o)&&!W){S(H);let pe=null;for(;!(pe=P.nextSibling())&&P.parentNode(););L=pe;continue}let Z=Mo(H);if(!N8(f,H)||W){C(H);let pe=W?H:H.parentElement;pe&&pe.childNodes.length>0&&x(f,pe,pe.immersiveTranslateComputedStyle||null)}Z&&H.shadowRoot?.mode==="open"&&(W?k?.(H.shadowRoot):b({...w,container:H.shadowRoot})),H.nodeType===Node.ELEMENT_NODE&&qt(H,r.likePreSelectors)&&l&&(R||GN(H))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=P.nextNode(),f.commonAncestorContainer&&L&&L.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(L)}function U(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ro(B)){if(m){let Se=Object.keys(m);if(Se.length>0&&qt(B,Se))for(let q of Se){let G=m[q];if(B.matches(q)){let ee=m[q],Re=Object.keys(ee);for(let ve of Re){let Ye=ee[ve];B.getAttribute(ve)!==Ye&&(Ye===null?B.removeAttribute(ve):B.setAttribute(ve,Ye))}break}}}if(!w.force&&Rt.isMarked(B,I)||Gv(B,I)||Em(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Hi(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let Se=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=Se,s3(Se))return M&&M(B),NodeFilter.FILTER_REJECT;let pe=ka(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Se||null);if(B.isBlock=pe,qt(B,o)&&pe)return NodeFilter.FILTER_REJECT}let H=B.getBoundingClientRect(),{width:W,height:Z}=H;return B.nodeName==="IMG"&&(W>48&&Z>48?B.immersiveTranslateComputedStyle={display:"block"}:W>0&&Z>0&&g!==!1&&(B.setAttribute("width",W),B.setAttribute("height",Z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(W>0&&W<4||Z>0&&Z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let H=B.textContent?.trim();if(!H)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||f.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=B.parentNode;if(W.getBoundingClientRect){let{width:Z,height:Se}=W.getBoundingClientRect();if(Z>0&&Z<4||Se>0&&Se<4)return NodeFilter.FILTER_REJECT}return c>0&&H.length>=c&&KN(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(w){D.error(w)}f&&f.commonAncestorContainer&&f.flatNodes.length>0&&C();function v(w,E,k){let M=E.immersiveTranslateComputedStyle||null;if(y){if(!y.contains(E))if(h=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))h=!0,y=E,C(),x(f,y,M);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))h=!0,y=E,C(),x(f,y,M);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};return{currentNode:E,isMatchedSelection:!0}}function C(w){let E=f.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let M=E;M>=0;M--){let R=f.flatNodes[M]?.textContent?.trim()||"";if(!R||new RegExp(r.skipTrailTextRegex).test(R)){f.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;f.commonAncestorContainer=ZN(w,r);let M=[...f.flatNodes],I=f.flatNodes.filter(R=>w.parentNode?.contains(R));I.length>0&&M.length!=I.length&&(f.flatNodes=I,f.flatNodes.original=M)}let k=WN(f,a,r);k&&n&&n(k),i3(f)}function S(w){if(!N8(f,w)){C(),i3(f);let E=w.parentNode;E&&x(f,E,E.computedStyle)}f.flatNodes.push(w)}function x(w,E,k){w.commonAncestorContainer=E;let M=T(k);w.isPreWhitespace=M}function T(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function N8(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mo(t));let r=VN(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function qN(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function zN(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function o3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function VN(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mo(t)):!1}function WN(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=_d(r,a,n);o||(o=a);let s=[];for(let p of r){let f=zN(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>HN){D.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:$v(o)}}else return null}function i3(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function s3(e){return e.display==="none"}var Rt={_marked_key:S6,isMarked(e,t){return C4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return cC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mo(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GN(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=lr?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function KN(e,t,n){let r=e.textContent||"",a=Zv(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=oC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function j8(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let h=c[f];if(f==="translate"&&h==="no"){let b=p.innerText||p.textContent||"";if(!b.trim()||QN(p,a,i,o)||!uC(b,n,r))continue}p.getAttribute(f)!==h&&(h===null?p.removeAttribute(f):p.setAttribute(f,h))}})}}function u3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Em(e,t){return YN(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function YN(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Fd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function ec(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function QN(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Em(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Od(o,t,n))return!0}}return!1}function JN(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&ka(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function ZN(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&ka(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function H8(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new u0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XN(u.content,t),n&&(r=z8(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:eC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function q8(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function XN(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=$N(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,m=u?.textContent?.trim().length||0;c>m&&(u=l)}),u&&i.push(u)}),!!i.length)return _d(i,document.body,t)}function $N(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function z8(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(A0)||l3(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var tc="";async function l3(e){let t=document.title;if(!t||t.includes(A0))return;tc!==t&&(tc=t);let n=await ze({text:t,pageLangs:[Dt(),"en"]});if(!Hs(e,n))try{let r=await mr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=tc,document.title=r.text+A0+tc)}catch(r){throw r}}function W8(e){e.rule.isTranslateTitle&&(document.title=tc)}function mu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function Am(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?h4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} ${r.innerHTML}`}catch{return""}}function G8(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?h4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function km(e){let t=Hv(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function Pn(e){let t=e.rule;e.isRichTranslate&&(t=d4(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var eU={sanitize:e=>e};async function g3(e,t){if(e.interruptEffectDOM)return;let n=Pn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:jo.bind(null,e),onFrame:r=>{c3(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),gs&&zt(t,"consumeContainer",e.id)}function c3(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Hi(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${uf}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,La(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=Pn(t.ctx),o=0;if(l(t,e,n))return;if(Ro(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ro(m)&&(a&&o3(m,a),i&&u3(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await g3(t,c);let m=Date.now()-r;m>100&&(D.debug("batchTaskTime",m,c),r=Date.now(),await ut(0))}else gs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return c3(t,c.shadowRoot,n),!1;if(m==="iframe")return c3(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return ec(c,g.selectors);if(g.containerSelectors&&ec(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){q8(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=Pn(c.ctx);return!!(Em(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function nc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Uo(t.rootNodes),r=="original"&&n=="translation"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[]),Uo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=gu(e,t.targetNodes,s);to(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=gu(e,t.targetNodes);to(e,s,a,t.rootNodes||[]),Uo(t.targetNodes)}r=="dual"&&n=="original"&&Uo(t.targetNodes),h3(t)}catch(s){D.error(s)}}}function d3(e){return!e||!Ro(e)?!1:e.classList.contains(Yt)}function gu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Uo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function to(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var tU=hr(Dm,300);async function jo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||nU(t.rootNodes)||t.stepState>=2)return;t.stepState=2,gs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Po(i),u=i.config.translationServices[i.translationService],l=Kd(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:km(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await f3(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Da(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(D.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),rU(e,t.text),p3(e,t,r)):(gs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function nU(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ro(t)&&t.classList.contains(Yt):!1}function rU(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function p3(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),gs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,T6,"1",!0),n=="hover"){Dm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";tU.call(e,e.ctx,a)}async function Dm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=aU(e,u.toString());l&&iU.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function aU(e,t){return e.find(n=>n.id===t)}function iU(e,t,n,r,a,i){let o=!1,s=r;qs(s.commonAncestorContainer,n.id)?.remove(),h3(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(hs,"1");let p=FC(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),mu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=eU.sanitize(p);g.innerHTML=Or?.createHTML(f)||f,c.targetNodes=[g],nc(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,k6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(d3(f)||to(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=oU(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function km(e){let t=Hv(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function Pn(e){let t=e.rule;e.isRichTranslate&&(t=d4(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var eU={sanitize:e=>e};async function g3(e,t){if(e.interruptEffectDOM)return;let n=Pn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:jo.bind(null,e),onFrame:r=>{c3(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),gs&&zt(t,"consumeContainer",e.id)}function c3(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Hi(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${uf}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,La(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=Pn(t.ctx),o=0;if(l(t,e,n))return;if(Ro(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ro(m)&&(a&&o3(m,a),i&&u3(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await g3(t,c);let m=Date.now()-r;m>100&&(D.debug("batchTaskTime",m,c),r=Date.now(),await ut(0))}else gs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return c3(t,c.shadowRoot,n),!1;if(m==="iframe")return c3(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return ec(c,g.selectors);if(g.containerSelectors&&ec(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){q8(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=Pn(c.ctx);return!!(Em(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function nc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Uo(t.rootNodes),r=="original"&&n=="translation"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[]),Uo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=gu(e,t.targetNodes,s);to(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=gu(e,t.targetNodes);to(e,s,a,t.rootNodes||[]),Uo(t.targetNodes)}r=="dual"&&n=="original"&&Uo(t.targetNodes),h3(t)}catch(s){D.error(s)}}}function d3(e){return!e||!Ro(e)?!1:e.classList.contains(Yt)}function gu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Uo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function to(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var tU=br(Dm,300);async function jo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||nU(t.rootNodes)||t.stepState>=2)return;t.stepState=2,gs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Po(i),u=i.config.translationServices[i.translationService],l=Kd(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:km(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await f3(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Da(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(D.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),rU(e,t.text),p3(e,t,r)):(gs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function nU(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ro(t)&&t.classList.contains(Yt):!1}function rU(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function p3(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),gs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,T6,"1",!0),n=="hover"){Dm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";tU.call(e,e.ctx,a)}async function Dm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=aU(e,u.toString());l&&iU.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function aU(e,t){return e.find(n=>n.id===t)}function iU(e,t,n,r,a,i){let o=!1,s=r;qs(s.commonAncestorContainer,n.id)?.remove(),h3(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(hs,"1");let p=FC(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),mu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=eU.sanitize(p);g.innerHTML=lr?.createHTML(f)||f,c.targetNodes=[g],nc(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,k6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(d3(f)||to(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=oU(a,c).replaceAll(` `,"").replaceAll('"',"""),y=c.message.replaceAll(` -`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),x=`<${m.targetWrapperTag} class="${F}-error notranslate"> +`,"").replaceAll('"',"""),b=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),x=`<${m.targetWrapperTag} class="${F}-error notranslate"> <${m.targetWrapperTag} class="${F}-error-wrapper"> - + ${C}    - + ${S} - `;p.innerHTML=Or?.createHTML(x)||x}}}var K8="";async function f3(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=K8.slice(0,e.rule?.detectTextBufferLength)+" "+o),K8=s;let u=await ze({text:s,minLength:15,pageLangs:[Dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!zs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!zs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=Z0();r.isDetectParagraphLanguage&&(g="auto");let p=Dt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!U0.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return ki(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>ki(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function rc(){m3=0}var m3=0;function oU(e,t){m3+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),m3!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(_n,{detail:r}))}return n}function h3(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,sU(t,`[${w6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function sU(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function Y8(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Ws(document.body),pageLangs:t})),e}var uU=[];function Q8(e){uU.push(e)}var b3;function J8(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=Pn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ac(e,i,t,r)}),b3=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&wr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||v3(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ac(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!ka(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Vs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),ac(e,c,t,r));continue}ac(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||ac(e,o,t,r)})}),b3.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ac(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&y3(t),ci({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{jo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Z8(){b3?.disconnect()}var lU=` + `;p.innerHTML=lr?.createHTML(x)||x}}}var K8="";async function f3(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=K8.slice(0,e.rule?.detectTextBufferLength)+" "+o),K8=s;let u=await ze({text:s,minLength:15,pageLangs:[Dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!zs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!zs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=Z0();r.isDetectParagraphLanguage&&(g="auto");let p=Dt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!U0.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let h=g!=="auto"?g:f;return ki(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>ki(h,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function rc(){m3=0}var m3=0;function oU(e,t){m3+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),m3!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(_n,{detail:r}))}return n}function h3(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,sU(t,`[${w6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function sU(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function Y8(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Ws(document.body),pageLangs:t})),e}var uU=[];function Q8(e){uU.push(e)}var b3;function J8(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=Pn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ac(e,i,t,r)}),b3=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||v3(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ac(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!ka(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Vs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),ac(e,c,t,r));continue}ac(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||ac(e,o,t,r)})}),b3.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ac(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&y3(t),ci({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{jo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Z8(){b3?.disconnect()}var lU=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5994,9 +5994,9 @@ x-tc-action:`+this.action.toLowerCase()+` max-width: fit-content; } } -`,C3="immersive-translate-toastify-shadow-root",x3=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(C3)){let t=document.getElementById(C3);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=C3,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=lU,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Mm(e){e=e||{},new x3({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function X8(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:y0,payload:e},"*")});let n=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(n)}function S3(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var cU="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${cU}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function $8(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Pm="DROP_DOWN_DEFAULT_VALUE";function T3(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=xe(null);return d("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Pm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Pm){s.current.value=Pm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Pm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var dU=({date:e})=>{let{t}=O(),[n,r]=N(!1);return z(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},mU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},gU=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},pU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function w3(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[S,x]=N(null),T=On(),w=async()=>{m("");let E=o;if(o===null)try{let k=await n({url:wi});k?(s(k),E=k,p(!0)):(m(i("unknownError")),l(null))}catch(k){l(null),m(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return z(()=>{Ze().then(E=>{let k=E.buildinConfigUpdatedAt;C(E);let M=new Date(k);if(a(k),T==="0.0.0"){h(!0);return}n({url:wi}).then(I=>{let R=I,P=R.minVersion,L=T;s(R);let U=R.latestVersion;if(U&&(ja(L,U)?x(!0):x(!1)),ja(L,P)){let B=R.buildinConfigUpdatedAt;new Date(B)>M?(l(!0),w()):l(!1)}else b(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),z(()=>{Ze().then(E=>{C(E),ia(E)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(gU,{}):c?t===!1?null:d(pU,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(mU,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(dU,{date:r}):null}):null}var eS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var tS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),nS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),rS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),aS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var iS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),oS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),sS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),uS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function pu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function lS(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ai,`${e.type}_user_info`);return}e.onOpenUrl(vs,`${e.type}_user_info`)},children:[d("img",{src:n?r8:n8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(fU,{...e})]})}function fU(e){let{t}=O(),n=ne(()=>pu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ai,`${e.type}_pro_logo`)},children:d("img",{src:li})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[oS,d("span",{children:t("popup.upgrade")})]})}function cS({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=$i(t.config.translationService,t.config.targetLanguage),s=or;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(hU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:a8,style:{maxWidth:"unset"},class:"mx-2"}),d(bU,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function hU(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function bU(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var dS=220;function mS(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=xe(null),[o,s]=N(dS),[u,l]=N(0);return Lu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,S=f+m.height;if(C>g.clientHeight-S){let x=Math.min(v,C);l(g.clientHeight-f-x-b)}else l(0);s(Math.max(dS,v))}},[i.current,r,t]),z(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(gS,{item:n,isDefault:!0}),uS]}),d(yU,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function yU(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=xe(null);return z(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(gS,{item:o,onClick:e.onClick},o.value))})}function gS(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:li}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var vU={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYk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vbAF109QVlJt9fTPEDQLgTCjJzKkFXTPC6R57QIYZ/gAAQYQNAqJOiKTwHyaJeH9LV2IXKB/bzUi3UmeTgxfIbjp2NuE3L/5D0vSpymm5QooRzZiqKm83rzvzl8hoTV+9PH6BBGBVs0GGJUvvqL/juvNvT0Sxr777uk+RvXTf/24oxQ7H/6CpBQqmuqZKE6MP6Ha1lCqaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw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QXIpJYn9OMUcKVqJ1+wBUeKZkNcH2LpDWOAmTgBA65U0AbwFZDNrWtHOORWF9BJCWQZtB2WF2R5gWwRvKXiYNobcVKb5Bt+qBEyYLDAPu6SPrvBoBRT+qJTG0GS7dyyG5qg6S3ehztC888z4fC4s+Sf7erYPeE8G/BERC/K7H+aZTa6qtThlbh/D8igukz3y7i3+B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function Rm(e){let t=vU[e];return t}function pS(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=TU(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(fS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(CU,{...e,currentTranslationService:a})]}):null}function fS(e){let t=ne(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=aa(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(mS,{className:"translate-service",items:t}):d(sa,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function CU({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=SU(e,o),l=xU(e,o),c=le((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(ce,{children:m.map(({label:g,items:p},f)=>d(fS,{label:g,items:p,ctx:e},"field-"+f))})}function xU(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function SU(e,t){let{lang:n}=O();return ne(()=>{let a=As(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,Ff,e,n,t])}function TU({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Es(t,"translationService",c):[],[t,c]),g=le(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=j0(h,e,f,l,!0),C=Rm(h.id);h.id.startsWith("custom-ai")&&(C=Rm("custom-ai")),h.id.startsWith("mock")&&(C="");let S=ti.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:S,isShowGoSetting:!h.ok&&!S}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Rm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function hS(e){let t;try{t=new URL(e)}catch{return!1}let n=h5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(wU(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function wU(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function bS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function yS(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=EU(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=le(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(sa,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function EU({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&hS(e)){c=bS(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>gt(e,C)),g=!!v.find(C=>gt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=le(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(x=>x.match!==h),S=!1;C.length!==v.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=le((h,v)=>{if(h==="default"){s(x=>{let T={...x.translationUrlPattern};return{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,matches:E3(e,T.matches),excludeMatches:E3(e,T.excludeMatches)}}}),b();return}let C=h,S=C==="matches"?"excludeMatches":"matches";l&&s(x=>{let T={...x.translationUrlPattern};return T[S]=E3(e,T[S]),T[C]=qn(v,T[C]),{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function E3(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!gt(e,n)):t):[]}function vS(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=AU(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ei[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(kU,{...e})}function AU({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ei.filter(s=>!(s==="Off"||ei.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ra(s)}),l=ei.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function kU(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(ic).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function CS(e){let{isAlwaysTranslateLang:t}=DU({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function DU({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function SS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=we(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:eS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:iS,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(cl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:sS,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(X6,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(Pt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(xS,{...s})}):d(xS,{...s}))})}function xS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var LU=["bing","transmart","google","yandex"];function wS(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:li,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var TS="popup_trial_pro_show_count";function ES(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=xe(!1);z(()=>{To(TS,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!LU.includes(m)},[t,n,r,i]);return z(()=>{!u||i==null||s.current||(s.current=!0,wo(TS,i+1))},[u,i,s,a]),{showTrialPro:u}}function A3(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=N(""),[l,c]=N(null),[m,g]=N(null);z(()=>{tt.get(mt,null).then(h=>{h?(c(h),g(At(h))):g(!1)}).catch(h=>{g(!1)})},[]);let p=!0,f=He();n&&f&&(p=n.generalRule.showSponsorOnSafari);let b=er(n),{showTrialPro:y}=ES({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[b&&!m?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(lS,{isLogin:!!l,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(_U,{openSharePage:r})]}),d(cS,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(pS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:y}),d(wS,{showTrialPro:y,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(RU,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(FU,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(w3,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(yS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(vS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(CS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(PU,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(MU,{ctx:a})]}),d(SS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),d(IU,{...e,isProUser:!!m,isShowPricing:p,setMessage:u})]})}function MU({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Gd(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function PU(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&gf.includes(i.type||""),[n,gf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ld()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function RU(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(Pt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?nS:rS})})}function IU(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=le(h=>{i&&(o(v=>Ui({...v},h)),e.onUpdateFloatBallEnable(h.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ii(i,s.rawUserConfig),m=we(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[tS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(BU,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(T3,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:h=>{h.value==="openPremium"?(globalThis.open(Dn),e.onClose()):h.value==="changeToOnlyTranslationMode"?f("translation"):h.value==="changeToDualTranslationMode"?f("dual"):h.value==="translateTheWholePage"?e.onTranslateTheWholePage():h.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():h.value==="translateTheMainPage"?e.onTranslateTheMainPage():h.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):h.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):h.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):h.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):h.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):h.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):h.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):h.value==="options"?(e.openOptionsPage(),e.onClose()):h.value==="changeToTranslateTheWholePage"?b():h.value==="changeToTranslateTheMainPage"?y():h.value==="about"?e.openAboutPage():h.value==="toggleEnabled"?e.onToggleEnabled():h.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):h.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):h.value==="goPro"?e.onOpenUrl(Dn,g):h.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):h.value==="openInstruction"?e.onOpenUrl(ul,g):h.value==="cleanCache"?ca().then(()=>e.onClose()):h.value==="disableFloatBall"?l({...c,enable:!1}):h.value==="enableFloatBall"?l({...c,enable:!0}):h.value=="webReport"&&e.onWebReport()},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(h){h.preventDefault(),e.openOptionsPage()}function f(h){e.onSwitchTranslationMode(h)}function b(){e.setSettings(h=>({...h,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(h=>({...h,translationArea:"main"})),e.onTranslateTheMainPage()}}function FU({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Ao(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(vr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ra(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function BU({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=On();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),ur(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function _U(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),aS]})}var V9e=1e3*3600*24;async function AS(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[M6]:t.toISOString()}),await k3(),X()||await x5()}catch(t){D.error("run cron task failed",t)}}async function k3(){try{let e=await Ir(),t=await te({url:wi});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;ja(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ta({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}function Im(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{x("updateGlobalContext",!1)()},250)});Xe(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,b]=N(null),y=xe(!1);z(()=>{!f||y.current||(y.current=!0,Ue("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,y]);let h=P=>{r(P.detail)};z(()=>(document.addEventListener(Co,h,!1),Ir().then(P=>{l(P);let L=Dt();p(L);let U=ot();r(U),AS(P.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",h),document.removeEventListener("urlChange",S)}),[]),z(()=>{Ir().then(P=>{l(P)})},[a]),z(()=>{c&&u&&Fm().then(P=>{b(P)})},[c,u]);let v=le((P,L)=>{x("change_translate_service",!1,{translation_service:`${P}_${L}`})()},[]);if(!u||!f)return null;return d(A3,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:P=>{x("switchTranslationMode",!0,{mode:P})()},request:te,onClose:T,onToggleEnabled:w,onChangeService:v,onTranslateTheWholePage:x("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:x("toggleTranslatePage",!0),onTranslateTheMainPage:x("translateTheMainPage",!0),onTranslateToThePageEndImmediately:x("translateToThePageEndImmediately",!0),onTranslatePage:x("translatePage",!0),onRestorePage:x("restorePage",!1),onWebReport:x("webReport",!0),onTranslatePdf:()=>{k(ko(f.rule)||c)},openAboutPage:I,openSharePage:x("shareToDraft",!0),onSetPageLanguage:C,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Fr,onSetBuildinConfig:d5,onAutoEnableSubtitleChanged:x("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:x("toggleEnableEditTranslation",!0),updateContextState:P=>x("updateContextState",!0,P)(),onOpenUrl:E,onUpdateFloatBallEnable:x("updateFloatBallEnable",!0)});function C(P){p(P);let L=$8(c,P,u.sourceLanguageUrlPattern);i(U=>({...U,sourceLanguageUrlPattern:L})),xr(P)}function S(){m(globalThis.location.href)}function x(P,L,U={}){let B={trigger:"page_popup",...U};return()=>{hn({method:P,data:B}),L&&t()}}function T(){t()}function w(){i(P=>({...P,enabled:!P.enabled})),setTimeout(()=>{T()},50)}function E(P,L){let U=P;L&&(U=`${P}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),od(U,!0),setTimeout(()=>{T()},50)}function k(P){P&&(Ls(!1,P),setTimeout(()=>{T()},50))}function M(P=!0,L=""){wa(P,L),setTimeout(()=>{t()},50)}function I(){id(),setTimeout(()=>{t()},50)}function R(){C5(),setTimeout(()=>{t()},50)}}function RS(){let[e,t]=N("Original");return z(()=>{let n=ot();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Co,r),()=>{document.removeEventListener(Co,r)}},[]),{pageStatus:e}}function IS(){let[e,t]=N("Original");return z(()=>{let n=Ds();t(n);let r=a=>{t(a.detail)};return document.addEventListener(rl,r),()=>{document.removeEventListener(rl,r)}},[]),{mangaStatus:e}}var kS=6,OU={position:"right",top:335};function FS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=xe(null),o=xe(null),[s,u]=N(!1),l=xe(!1);l.current=s;let c=xe(null),m=xe(!1),g=xe(n.floatBallConfig||OU),p=xe(0),f=xe(0),b=xe(0),y=xe(!1),h=xe(0),v=xe(0),C=xe(0),S=xe(0),x=xe(!1),T=le(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=qe().any||vr();c.current=setTimeout(()=>{u(w),y.current=!1},E?3e3:0)}},[u,c,y,a]);return z(()=>{a||u(!1)},[a]),z(()=>{if(i.current&&g.current){let w=D3(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),z(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,S.current=L.clientY,x.current=!1,(qe().any||vr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{DS({startX:p.current,startY:f.current,endX:C.current,endY:S.current})||(x.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",I),document.addEventListener("mouseup",k),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},E=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,S.current=L.clientY,x.current))return;let U=L.clientY-f.current+b.current,B=D3(U);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),P(),m.current=!1,clearTimeout(c.current),y.current||T(!1),x.current)return;DS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let B=D3(L.clientY-30);g.current.top=B;let H=await Ln();Fr({...H,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},P=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),z(()=>{if(qe().any)return;let w=k=>{k.target===i.current&&!y.current||!l.current&&MS(k)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&MS(k)&&c.current)){if(m.current){y.current=!1;return}k.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function DS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>kS||i>kS}function BS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function _S(){let[e,t]=N(!1);return z(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var LS="hasShownFloatingBallGuide",NU="2024-01-06";function OS(e,t){let[n,r]=N(!1),a=le(()=>{Je(LS,new Date().toISOString()),r(!0)},[r]);z(()=>{if(!e.config.enableShowFloatingBallGuide||Dt()==e.targetLanguage)return;let o=gt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Bt(LS,""),u=await Bt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(S0,o),()=>{document.removeEventListener(S0,o)}},[]);let i=le(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function NS(){document.dispatchEvent(new CustomEvent(S0))}function US(e,t){let n=xe(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=le(()=>{e?.config.floatBallTooltipRule&&(qe().any||vr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);z(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=le(async()=>{if(!e)return;n.current=n.current+1,m();let b=await ln();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=ne(()=>qe().any||!r||vr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||vr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Ra(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function D3(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var L3=0;function MS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(L3=Date.now(),!0):Date.now()-L3<100}function jS(e,t){z(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xo,n),()=>{globalThis.document.addEventListener(xo,n)}},[e,t])}function HS(e,t){let n=xe(e);n.current=e,z(()=>{!n.current||!t||Ue("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var PS="imt-float-ball-active";function qS(e){z(()=>{let t=!!document.querySelector(`meta[name='${PS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(PS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(C0,n),()=>{document.removeEventListener(C0,n)}},[])}function zS(e){document.dispatchEvent(new CustomEvent(C0,{detail:{active:e}}))}function UU({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return z(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(ce,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Bm=UU;var Ho="imt-fb";function WS(e){if(globalThis.innerWidth<=385)return d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(VS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(VS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function VS(e){let{t}=O(),[n,r]=N("UntilNext"),a=ad()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Ho}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Ho}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Ho}-close-radio-content mt-3`,children:o.map(s=>d(jU,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ea(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Ho}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Ho}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function jU(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=HU(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Ho}-radio-sel`:`${Ho}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function HU(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var qo="imt-fb";function GS(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${qo}-guide-container`,style:r,children:[d("img",{class:`${qo}-guide-bg ${e.fixedPosition}`,src:qU}),d("div",{class:`${qo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${qo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${qo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` -${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var qU="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZ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xNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var KS="imt-manga";function YS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=le(()=>{if(t(),!a.isPro){if(a.user)return window.open(q6);window.open(j6)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${KS}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${KS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var mi="imt-fb";function M3(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Xe(r,a);let s=pt(r),u=e.ctx,{isFullScreen:l}=_S(),[c,m]=N(!1),g=xe(c);g.current=c;let[p,f]=N(!0),{pageStatus:b}=RS(),y=ii(u,r),h=le(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=le(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:S,active:x,ballRef:T,floatBallConfigRef:w,setActive:E}=FS({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),k=y?.fixedPosition||"right",M=k==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:R}=OS(e.ctx,y),{closeTransform:P,logoContainerTransform:L,settingTransform:U,mangaTransform:B}=BS(y,x||I);HS(u,x);let{tooltipDelay:H,disableTooltip:W,tooltipText:Z,handleShowTooltip:Se}=US(u,b);jS(m,g),qS(E);let q=globalThis.innerWidth<=385;return C?d(ce,{children:d("div",{class:`${mi}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:x||I||c?"all":"none"},ref:S,children:[d(zU,{ctx:u,setVisible:f,closeTransform:P,setActive:E,getModalStyle:()=>QS(w.current.top,300,k)}),d(Pt,{enableMobile:!0,text:Z,position:M,delay:H,onShow:Se,disable:W,children:d("div",{class:`${mi}-btn ${k} btn-animate `,ref:T,style:{transform:L,opacity:x||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(GU,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:I}),d("div",{style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:[d(Pt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{od(J6,!0)},children:d(bn,{type:"file"})})}),d(Pt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${mi}-more-button`,onClick:()=>{E(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(YU,{ctx:u,tooltipPosition:M,rule:y,active:x})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:d(Pt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"webReport"}}))}})})}),d(P3,{onClose:()=>{E(!1),m(!1)},isSheet:q,visible:c,getModalStyle:()=>QS(w.current.top,500,k)}),d(GS,{visible:I,top:w.current.top,fixedPosition:k,onClose:()=>{R(),E(!1)}})]})}):null}function zU(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ii(e.ctx,i),c=le(g=>{e.ctx&&o(p=>Ui({...p},g))},[e.ctx,o]),m=le(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(ce,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(WS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function P3(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(Im,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Im,{onClose:e.onClose})})}):null}function VU(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var QS=(e,t,n)=>{let a=VU().height,i={position:"fixed"},o=0;return l6()&&(e=WU.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},WU={position:"right",right:0,top:335};function GU({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=IS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();z(()=>{c||Ln().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),kt(p))})},[c,s]);let g=le(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await tt.get(mt,null);if(At(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!Gd(l)||r||!l?.enable?null:d(ce,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(Pt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"mangaReport"}}))}})})]}),d(YS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var KU="float_ball_upgrade_show_count";function YU(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=xe(!1),[u,l]=N(null),c=ne(()=>pu(n.config),[n]),m=p=>pu(p)?.upgradeShowCountCacheKey||KU;z(()=>{To(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=pu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return z(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wo(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(Pt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||ff,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${mi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(Pt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(ff,"_blank")},children:d(bn,{type:"upgrade"})})})}async function JS(){try{let e=await Ze(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});QU(a,e,n),document.documentElement.appendChild(r)}catch{}}function QU(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=we(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);JU(e,[i]),e.appendChild(r),ya(d(Qi,{lang:t.interfaceLanguage,children:d(ZU,{ctx:n})}),r)}function JU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function ZU(e){let[t,n]=N(!1),r=xe(t);r.current=t;let a=xe(""),i=xe("");z(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xo,u),()=>{globalThis.document.addEventListener(xo,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(P3,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function _m(e){document.dispatchEvent(new CustomEvent(xo,{detail:e||{}}))}function XU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function R3(){let e=await Ir(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await f4(r,t),i=gt(r.url,a?.blockUrls),o=await Mt();if(!a?.enable||i)return JS();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return $U(u,e,o,r),document.documentElement.appendChild(s),s}function ZS(){let e=document.getElementById(F+"-popup");e&&e.remove(),R3()}function $U(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=we(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`,C3="immersive-translate-toastify-shadow-root",x3=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(C3)){let t=document.getElementById(C3);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=C3,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=lU,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Mm(e){e=e||{},new x3({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function X8(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:y0,payload:e},"*")});let n=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(n)}function S3(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var cU="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${cU}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function $8(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Pm="DROP_DOWN_DEFAULT_VALUE";function T3(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=xe(null);return d("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Pm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Pm){s.current.value=Pm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Pm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var dU=({date:e})=>{let{t}=O(),[n,r]=N(!1);return z(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},mU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},gU=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},pU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function w3(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[S,x]=N(null),T=On(),w=async()=>{m("");let E=o;if(o===null)try{let k=await n({url:wi});k?(s(k),E=k,p(!0)):(m(i("unknownError")),l(null))}catch(k){l(null),m(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return z(()=>{Ze().then(E=>{let k=E.buildinConfigUpdatedAt;C(E);let M=new Date(k);if(a(k),T==="0.0.0"){b(!0);return}n({url:wi}).then(I=>{let R=I,P=R.minVersion,L=T;s(R);let U=R.latestVersion;if(U&&(ja(L,U)?x(!0):x(!1)),ja(L,P)){let B=R.buildinConfigUpdatedAt;new Date(B)>M?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),z(()=>{Ze().then(E=>{C(E),ia(E)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(gU,{}):c?t===!1?null:d(pU,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(mU,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(dU,{date:r}):null}):null}var eS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var tS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),nS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),rS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),aS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var iS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),oS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),sS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),uS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function pu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function lS(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ai,`${e.type}_user_info`);return}e.onOpenUrl(vs,`${e.type}_user_info`)},children:[d("img",{src:n?r8:n8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(fU,{...e})]})}function fU(e){let{t}=O(),n=ne(()=>pu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ai,`${e.type}_pro_logo`)},children:d("img",{src:li})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[oS,d("span",{children:t("popup.upgrade")})]})}function cS({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=$i(t.config.translationService,t.config.targetLanguage),s=or;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(hU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:a8,style:{maxWidth:"unset"},class:"mx-2"}),d(bU,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function hU(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function bU(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var dS=220;function mS(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=xe(null),[o,s]=N(dS),[u,l]=N(0);return Lu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,h=20,y=30,b=5,v=g.clientHeight-h*2,C=t.length*y+b*3,S=f+m.height;if(C>g.clientHeight-S){let x=Math.min(v,C);l(g.clientHeight-f-x-h)}else l(0);s(Math.max(dS,v))}},[i.current,r,t]),z(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(gS,{item:n,isDefault:!0}),uS]}),d(yU,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function yU(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=xe(null);return z(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(gS,{item:o,onClick:e.onClick},o.value))})}function gS(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:li}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var vU={more:"data:image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ha1lCqaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyr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B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function Rm(e){let t=vU[e];return t}function pS(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=TU(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(fS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(CU,{...e,currentTranslationService:a})]}):null}function fS(e){let t=ne(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=aa(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(mS,{className:"translate-service",items:t}):d(sa,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function CU({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=SU(e,o),l=xU(e,o),c=le((g,p)=>{t(f=>{let h=f.translationServices||{},y=h[u.id]||{};return{...f,translationServices:{...h,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[g.name],onSelected:y=>{if(h.action=="jumpOptions"){let b=h.args||[];r(...b);return}c(g.name,h.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(ce,{children:m.map(({label:g,items:p},f)=>d(fS,{label:g,items:p,ctx:e},"field-"+f))})}function xU(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function SU(e,t){let{lang:n}=O();return ne(()=>{let a=As(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,Ff,e,n,t])}function TU({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Es(t,"translationService",c):[],[t,c]),g=le(f=>{let h=m.find(y=>y.id===f.value);if(h.ok){if(u({translationService:h.id}),n(y=>(a(y.translationService||"",h.id),{...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(b=>t.config.showUnconfiguredTranslationServiceInPopup===!1?b.ok:!0).map(b=>{let v=j0(b,e,f,l,!0),C=Rm(b.id);b.id.startsWith("custom-ai")&&(C=Rm("custom-ai")),b.id.startsWith("mock")&&(C="");let S=ti.includes(b.id)&&!b.ok&&!f;return{label:v,value:b.id,selected:b.selected,img:C,onSelected:g,isShowProOrCustom:S,isShowGoSetting:!b.ok&&!S}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Rm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function hS(e){let t;try{t=new URL(e)}catch{return!1}let n=h5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(wU(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function wU(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function bS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function yS(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=EU(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=le(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(sa,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function EU({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&hS(e)){c=bS(e);let{matches:b,excludeMatches:v}=f;m=!!b.find(C=>gt(e,C)),g=!!v.find(C=>gt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:b}=t.config,{matches:v}=b;v.includes(n)?p=!0:p=!1}let h=le(()=>{let b=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(x=>x.match!==b),S=!1;C.length!==v.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=le((b,v)=>{if(b==="default"){s(x=>{let T={...x.translationUrlPattern};return{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,matches:E3(e,T.matches),excludeMatches:E3(e,T.excludeMatches)}}}),h();return}let C=b,S=C==="matches"?"excludeMatches":"matches";l&&s(x=>{let T={...x.translationUrlPattern};return T[S]=E3(e,T[S]),T[C]=qn(v,T[C]),{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function E3(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!gt(e,n)):t):[]}function vS(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=AU(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ei[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(kU,{...e})}function AU({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ei.filter(s=>!(s==="Off"||ei.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ra(s)}),l=ei.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function kU(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(ic).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function CS(e){let{isAlwaysTranslateLang:t}=DU({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function DU({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function SS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=we(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:eS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:iS,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(cl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:sS,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(X6,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(Pt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(xS,{...s})}):d(xS,{...s}))})}function xS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var LU=["bing","transmart","google","yandex"];function wS(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:li,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var TS="popup_trial_pro_show_count";function ES(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=xe(!1);z(()=>{To(TS,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!LU.includes(m)},[t,n,r,i]);return z(()=>{!u||i==null||s.current||(s.current=!0,wo(TS,i+1))},[u,i,s,a]),{showTrialPro:u}}function A3(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=N(""),[l,c]=N(null),[m,g]=N(null);z(()=>{tt.get(mt,null).then(b=>{b?(c(b),g(At(b))):g(!1)}).catch(b=>{g(!1)})},[]);let p=!0,f=He();n&&f&&(p=n.generalRule.showSponsorOnSafari);let h=er(n),{showTrialPro:y}=ES({ctx:a,isHidden:h,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[h&&!m?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(lS,{isLogin:!!l,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(_U,{openSharePage:r})]}),d(cS,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(pS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:y}),d(wS,{showTrialPro:y,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(RU,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(FU,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(w3,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(yS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(vS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(CS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(PU,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(MU,{ctx:a})]}),d(SS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),d(IU,{...e,isProUser:!!m,isShowPricing:p,setMessage:u})]})}function MU({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Gd(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function PU(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&gf.includes(i.type||""),[n,gf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ld()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function RU(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(Pt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?nS:rS})})}function IU(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=le(v=>{i&&(o(C=>Ui({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ii(i,s.rawUserConfig),m=we(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[tS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(BU,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(T3,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Dn),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?h():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Dn,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(ul,g):v.value==="cleanCache"?ca().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&b(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function h(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function b(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function FU({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Ao(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Cr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ra(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function BU({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=On();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),ur(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function _U(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),aS]})}var W9e=1e3*3600*24;async function AS(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[M6]:t.toISOString()}),await k3(),X()||await x5()}catch(t){D.error("run cron task failed",t)}}async function k3(){try{let e=await Fr(),t=await te({url:wi});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;ja(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ta({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}function Im(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{x("updateGlobalContext",!1)()},250)});Xe(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,h]=N(null),y=xe(!1);z(()=>{!f||y.current||(y.current=!0,Ue("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,y]);let b=P=>{r(P.detail)};z(()=>(document.addEventListener(Co,b,!1),Fr().then(P=>{l(P);let L=Dt();p(L);let U=ot();r(U),AS(P.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",b),document.removeEventListener("urlChange",S)}),[]),z(()=>{Fr().then(P=>{l(P)})},[a]),z(()=>{c&&u&&Fm().then(P=>{h(P)})},[c,u]);let v=le((P,L)=>{x("change_translate_service",!1,{translation_service:`${P}_${L}`})()},[]);if(!u||!f)return null;return d(A3,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:P=>{x("switchTranslationMode",!0,{mode:P})()},request:te,onClose:T,onToggleEnabled:w,onChangeService:v,onTranslateTheWholePage:x("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:x("toggleTranslatePage",!0),onTranslateTheMainPage:x("translateTheMainPage",!0),onTranslateToThePageEndImmediately:x("translateToThePageEndImmediately",!0),onTranslatePage:x("translatePage",!0),onRestorePage:x("restorePage",!1),onWebReport:x("webReport",!0),onTranslatePdf:()=>{k(ko(f.rule)||c)},openAboutPage:I,openSharePage:x("shareToDraft",!0),onSetPageLanguage:C,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Br,onSetBuildinConfig:d5,onAutoEnableSubtitleChanged:x("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:x("toggleEnableEditTranslation",!0),updateContextState:P=>x("updateContextState",!0,P)(),onOpenUrl:E,onUpdateFloatBallEnable:x("updateFloatBallEnable",!0)});function C(P){p(P);let L=$8(c,P,u.sourceLanguageUrlPattern);i(U=>({...U,sourceLanguageUrlPattern:L})),Sr(P)}function S(){m(globalThis.location.href)}function x(P,L,U={}){let B={trigger:"page_popup",...U};return()=>{hn({method:P,data:B}),L&&t()}}function T(){t()}function w(){i(P=>({...P,enabled:!P.enabled})),setTimeout(()=>{T()},50)}function E(P,L){let U=P;L&&(U=`${P}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),od(U,!0),setTimeout(()=>{T()},50)}function k(P){P&&(Ls(!1,P),setTimeout(()=>{T()},50))}function M(P=!0,L=""){wa(P,L),setTimeout(()=>{t()},50)}function I(){id(),setTimeout(()=>{t()},50)}function R(){C5(),setTimeout(()=>{t()},50)}}function RS(){let[e,t]=N("Original");return z(()=>{let n=ot();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Co,r),()=>{document.removeEventListener(Co,r)}},[]),{pageStatus:e}}function IS(){let[e,t]=N("Original");return z(()=>{let n=Ds();t(n);let r=a=>{t(a.detail)};return document.addEventListener(rl,r),()=>{document.removeEventListener(rl,r)}},[]),{mangaStatus:e}}var kS=6,OU={position:"right",top:335};function FS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=xe(null),o=xe(null),[s,u]=N(!1),l=xe(!1);l.current=s;let c=xe(null),m=xe(!1),g=xe(n.floatBallConfig||OU),p=xe(0),f=xe(0),h=xe(0),y=xe(!1),b=xe(0),v=xe(0),C=xe(0),S=xe(0),x=xe(!1),T=le(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=qe().any||Cr();c.current=setTimeout(()=>{u(w),y.current=!1},E?3e3:0)}},[u,c,y,a]);return z(()=>{a||u(!1)},[a]),z(()=>{if(i.current&&g.current){let w=D3(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),z(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,b.current=Date.now(),h.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,S.current=L.clientY,x.current=!1,(qe().any||Cr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{DS({startX:p.current,startY:f.current,endX:C.current,endY:S.current})||(x.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",I),document.addEventListener("mouseup",k),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},E=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,S.current=L.clientY,x.current))return;let U=L.clientY-f.current+h.current,B=D3(U);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),P(),m.current=!1,clearTimeout(c.current),y.current||T(!1),x.current)return;DS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let B=D3(L.clientY-30);g.current.top=B;let H=await Ln();Br({...H,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},P=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),z(()=>{if(qe().any)return;let w=k=>{k.target===i.current&&!y.current||!l.current&&MS(k)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&MS(k)&&c.current)){if(m.current){y.current=!1;return}k.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function DS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>kS||i>kS}function BS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function _S(){let[e,t]=N(!1);return z(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var LS="hasShownFloatingBallGuide",NU="2024-01-06";function OS(e,t){let[n,r]=N(!1),a=le(()=>{Je(LS,new Date().toISOString()),r(!0)},[r]);z(()=>{if(!e.config.enableShowFloatingBallGuide||Dt()==e.targetLanguage)return;let o=gt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Bt(LS,""),u=await Bt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(S0,o),()=>{document.removeEventListener(S0,o)}},[]);let i=le(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function NS(){document.dispatchEvent(new CustomEvent(S0))}function US(e,t){let n=xe(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=le(()=>{e?.config.floatBallTooltipRule&&(qe().any||Cr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);z(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=le(async()=>{if(!e)return;n.current=n.current+1,m();let h=await ln();l(y=>{let b={...h};return qe().any?b.h5FloatBallMainBtnTooltipShownCount=n.current:b.pcFloatBallMainBtnTooltipShownCount=n.current,b})},[l,m,n,e]),p=ne(()=>qe().any||!r||Cr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||Cr())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Ra(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function D3(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var L3=0;function MS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(L3=Date.now(),!0):Date.now()-L3<100}function jS(e,t){z(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xo,n),()=>{globalThis.document.addEventListener(xo,n)}},[e,t])}function HS(e,t){let n=xe(e);n.current=e,z(()=>{!n.current||!t||Ue("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var PS="imt-float-ball-active";function qS(e){z(()=>{let t=!!document.querySelector(`meta[name='${PS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(PS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(C0,n),()=>{document.removeEventListener(C0,n)}},[])}function zS(e){document.dispatchEvent(new CustomEvent(C0,{detail:{active:e}}))}function UU({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return z(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(ce,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Bm=UU;var Ho="imt-fb";function WS(e){if(globalThis.innerWidth<=385)return d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(VS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(VS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function VS(e){let{t}=O(),[n,r]=N("UntilNext"),a=ad()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Ho}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Ho}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Ho}-close-radio-content mt-3`,children:o.map(s=>d(jU,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ea(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Ho}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Ho}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function jU(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=HU(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Ho}-radio-sel`:`${Ho}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function HU(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var qo="imt-fb";function GS(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${qo}-guide-container`,style:r,children:[d("img",{class:`${qo}-guide-bg ${e.fixedPosition}`,src:qU}),d("div",{class:`${qo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${qo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${qo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` +${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var qU="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MT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GFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var KS="imt-manga";function YS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=le(()=>{if(t(),!a.isPro){if(a.user)return window.open(q6);window.open(j6)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${KS}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${KS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var mi="imt-fb";function M3(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Xe(r,a);let s=pt(r),u=e.ctx,{isFullScreen:l}=_S(),[c,m]=N(!1),g=xe(c);g.current=c;let[p,f]=N(!0),{pageStatus:h}=RS(),y=ii(u,r),b=le(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=le(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:S,active:x,ballRef:T,floatBallConfigRef:w,setActive:E}=FS({handleBallClick:b,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),k=y?.fixedPosition||"right",M=k==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:R}=OS(e.ctx,y),{closeTransform:P,logoContainerTransform:L,settingTransform:U,mangaTransform:B}=BS(y,x||I);HS(u,x);let{tooltipDelay:H,disableTooltip:W,tooltipText:Z,handleShowTooltip:Se}=US(u,h);jS(m,g),qS(E);let q=globalThis.innerWidth<=385;return C?d(ce,{children:d("div",{class:`${mi}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:x||I||c?"all":"none"},ref:S,children:[d(zU,{ctx:u,setVisible:f,closeTransform:P,setActive:E,getModalStyle:()=>QS(w.current.top,300,k)}),d(Pt,{enableMobile:!0,text:Z,position:M,delay:H,onShow:Se,disable:W,children:d("div",{class:`${mi}-btn ${k} btn-animate `,ref:T,style:{transform:L,opacity:x||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),d(GU,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:I}),d("div",{style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:[d(Pt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{od(J6,!0)},children:d(bn,{type:"file"})})}),d(Pt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${mi}-more-button`,onClick:()=>{E(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(YU,{ctx:u,tooltipPosition:M,rule:y,active:x})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:d(Pt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"webReport"}}))}})})}),d(P3,{onClose:()=>{E(!1),m(!1)},isSheet:q,visible:c,getModalStyle:()=>QS(w.current.top,500,k)}),d(GS,{visible:I,top:w.current.top,fixedPosition:k,onClose:()=>{R(),E(!1)}})]})}):null}function zU(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ii(e.ctx,i),c=le(g=>{e.ctx&&o(p=>Ui({...p},g))},[e.ctx,o]),m=le(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(ce,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(WS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function P3(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(Im,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Im,{onClose:e.onClose})})}):null}function VU(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var QS=(e,t,n)=>{let a=VU().height,i={position:"fixed"},o=0;return l6()&&(e=WU.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},WU={position:"right",right:0,top:335};function GU({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=IS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();z(()=>{c||Ln().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),kt(p))})},[c,s]);let g=le(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await tt.get(mt,null);if(At(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!Gd(l)||r||!l?.enable?null:d(ce,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(Pt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"mangaReport"}}))}})})]}),d(YS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var KU="float_ball_upgrade_show_count";function YU(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=xe(!1),[u,l]=N(null),c=ne(()=>pu(n.config),[n]),m=p=>pu(p)?.upgradeShowCountCacheKey||KU;z(()=>{To(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=pu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return z(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wo(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(Pt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||ff,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${mi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(Pt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(ff,"_blank")},children:d(bn,{type:"upgrade"})})})}async function JS(){try{let e=await Ze(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});QU(a,e,n),document.documentElement.appendChild(r)}catch{}}function QU(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=we(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);JU(e,[i]),e.appendChild(r),ya(d(Qi,{lang:t.interfaceLanguage,children:d(ZU,{ctx:n})}),r)}function JU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function ZU(e){let[t,n]=N(!1),r=xe(t);r.current=t;let a=xe(""),i=xe("");z(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xo,u),()=>{globalThis.document.addEventListener(xo,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(P3,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function _m(e){document.dispatchEvent(new CustomEvent(xo,{detail:e||{}}))}function XU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function R3(){let e=await Fr(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await f4(r,t),i=gt(r.url,a?.blockUrls),o=await Mt();if(!a?.enable||i)return JS();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return $U(u,e,o,r),document.documentElement.appendChild(s),s}function ZS(){let e=document.getElementById(F+"-popup");e&&e.remove(),R3()}function $U(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=we(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` `);XU(e,[o]),e.appendChild(a),ya(d(Qi,{lang:t.interfaceLanguage,children:d(M3,{localConfig:n,ctx:r})}),a)}var XS=!1;async function $S(){XS||(XS=!0,R3().catch(e=>{D.error("init popup error",e)}))}var oc=null;function sc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");oc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function I3(){let e=globalThis.location.href;if(!(!oc||oc.url!==e||!oc.subtitleItems.length))return oc}async function eT(){let e=I3();if(!e)return;let t=await Mt();t.downloadSubtitle=e,await kt(t),Ea(Z6)}async function tT(){let e=await Mt();if(e.downloadSubtitle)return e.downloadSubtitle}async function nT(e,t){let n,r;if(t){let a=Am(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Oi(!1,r)}return{siteUrl:location.href,pluginVersion:On(),isMobile:qe().any,platform:_i(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function rT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var F3={};function no(e){let t=Om(e)||{};F3[e.sourceUrl+"_"+e.to]={...t,...e}}function Om(e){return F3[e.sourceUrl+"_"+e.to]}async function aT(e,t){let n=location.href,r=Object.values(F3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:_i(),images:[],version:On()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=Am(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Oi(!1,o)}return a}async function iT(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var uc={width:94,height:80};function oT(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?oT(e.parentElement,t+1):e}function fu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=oT(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=uc.width+"px",c.style.height=uc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-uc.width)/2+"px",c.style.top=l.top-u.top+(l.height-uc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-uc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... @@ -6019,7 +6019,7 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide flex: 1;`),p.addEventListener("input",function(){T.disabled=c(),E&&(E.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let b="";tt.get(mt,null).then(k=>{k&&(b=k.email,f.value=k.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let k=l(this.value);T.disabled=c(),k?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=C.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let x=document.createElement("div");x.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),x.append(C),x.append(S),a.append(x);let T=document.createElement("button");T.className=F+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let k=await sT(e,t,C.checked);T.uploading=!0;try{lT(T,!0),await uT(e,t,p.value,f.value!==b?f.value:"",C.checked,k),ej(s,r,a,i,o)}catch{tj(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,lT(T,!1)}},i.appendChild(T);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function lT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function ej(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let h="";tt.get(mt,null).then(k=>{k&&(h=k.email,f.value=k.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let b=document.createElement("div");b.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),b.append(y),b.append(f),a.append(b);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let k=l(this.value);T.disabled=c(),k?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=C.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let x=document.createElement("div");x.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),x.append(C),x.append(S),a.append(x);let T=document.createElement("button");T.className=F+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let k=await sT(e,t,C.checked);T.uploading=!0;try{lT(T,!0),await uT(e,t,p.value,f.value!==h?f.value:"",C.checked,k),ej(s,r,a,i,o)}catch{tj(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,lT(T,!1)}},i.appendChild(T);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function lT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function ej(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` @@ -6029,7 +6029,7 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Nm(s,e,t,r,a,i,o)},i.append(m)}function _3(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function Um(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var jm=[],cT=[];async function N3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(U3()||jm.includes(t))return"";if(jm.length>=s)return new Promise((l,c)=>{cT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});jm.push(t);try{let u=await ij(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await dT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{jm.shift(),(async()=>{let u=cT.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await N3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function nj(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ft}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${mT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await te({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rj(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aj(e,t,n){let r=await rj(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):te({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await I5(a)})}async function ij(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oj(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await Um(u);no({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nj(e,r,l,n.type);if(c.objectKey&&no({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aj(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(O3()+"/trigger",{method:"POST",body:ud(u),headers:{token:e.user?.token||""}}).then(async g=>(await ji(g,"manga"),g.json())):m=await te({url:O3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),no({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function dT(e,t,n,r,a){let i=U3();if(i)return;Rr("Translating",i);let o=await te({url:O3()+`/${t}/task-state?comicHash=${n}&domain=${mT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Xv(t,r.queryIntervalTime||100),dT(e,t,n,r,a))}function O3(){return ft+"comics"}function oj(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function mT(e){return e.replaceAll(".","_")}var Vt,j3,qm,dc,an=!1;function U3(){return an}var gT=!1;function hT(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!gT&&Vt.injectedCss&&(tr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),gT=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=vT(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await ut(20),await r(i,t))}},100);if(Ue("translate_manga",[{name:"translate_manga"}],e),n(),j3=new MutationObserver(a=>{n()}),j3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;dc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(zo(e,o.target),dc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}qm=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(dc?.unobserve(a),dc?.observe(a)):await zo(e,a)))}}async function zo(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Ds();if(n&&(an=!1),an||fj(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=uj(e,t);u||(s=fu(e,t,"translating")),n&&Ue("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await lj(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await sj(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||fu(e,t,"success")):(u||fu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&(Rr("Error",an),pj(e,l)),u))return;if(l instanceof lc)return fu(e,t,"error",l.type);fu(e,t,"error")}finally{n&&Rr(i,an),s?.remove()}}function bT(){if(!Vt)return;an=!0,j3?.disconnect(),qm?.disconnect(),dc?.disconnect();let e=vT(Vt);for(let t of e)Vo(t)}function Vo(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Vo(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function sj(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await cj(l,c,t.cloneNode(!0))}else o=await CT(t);if(an)return;if(!o||o.size<6*1e4){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await _3(o);return await H3(e,t,s)?!0:s?yT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function yT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await mj(n)||n,u=r||a;try{if(an)return;Rr("Translating",an),B3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};no(l);let m=await N3(e,u,s,a,i,g=>{B3(e,o,g)});return m?(l.targetUrl=m,no(l),await xT(Vt,t,m),Rr("Translated",an),!0):!1}catch(l){if(no({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function H3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl?(await xT(Vt,t,a.targetUrl||""),Rr("Translated",an),!0):!1}function uj(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl}return!1}async function lj(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gj(a,i)){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await H3(e,t,o))return!0;let s=null;if(Rr("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await ji(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await dj(i);else{let m=await te({url:i,responseType:"base64"});s=await ld(m)}if(an)return;if(await MC(s))throw new lc("GIFs not supported","gif_not_supported");let l=await _3(s);if(!o&&(o=l,await H3(e,t,o)))return!0;if(!o)return!1;return yT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function vT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function CT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function cj(e,t,n){return new Promise((r,a)=>{te({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await CT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function xT(e,t,n){try{return await pT(e,t,n)}catch{let a=await hj(n);return pT(e,t,a)}}async function pT(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function dj(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function mj(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gj(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Fd(e.inValidSrcRegex,t):!0}var Hm=0,cc=0;function pj(e,t){if(Hm!=0){cc++;return}if(t.message.indexOf("quota exceeded")>0){fT(e,t);return}cc++,Hm=setTimeout(()=>{if(cc<(Vt.errorTimes||3)){Hm=0,cc=0;return}fT(e,t),cc=0,Hm=0},Vt.errorInterval||3e3)}function fT(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(_n,{detail:r}))}function q3(e){return e.classList.contains("imt-img")||e.hasTranslate}function fj(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function hj(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var bj="showImagePricingModal";function zm(e){document.dispatchEvent(new CustomEvent(bj,{detail:JSON.stringify({trigger:e})}))}var Ha=null;async function ST(e,{srcUrl:t}){if(!oi(e))return;if(!await Ss(e)){zm("image_right_menu");return}if(!Ha){D.error("rightMenu image ele not found",t,Ha);return}if(Ha.translationStatus!=="translating"){if(Ha.hasTranslate){Vo(Ha);return}if(t!==Ha.src)try{let r=new URL(t),a=new URL(Ha.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,Ha.src,r);return}zo(e,Ha,!0,"image_right_menu")}}function TT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Ha=e.target)})}var wT=0;function gc(e){let t=Date.now();if(t-wT<2e3||(wT=t,yj()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,mc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=we();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,mc)}setTimeout(()=>{vj()},100)}function yj(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function vj(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function mc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ET(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var AT=0;async function kT(e){let t=Date.now();if(t-AT<2e3||(AT=t,Cj()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&z3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,z3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=we();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",S=>{S.target==g&&(g.style.display="none")}),e(g,u,l,z3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{xj()},100),m=setTimeout(c,2500)}function Cj(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function xj(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function z3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function V3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",DT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(U6)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(I0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(V6)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)},W3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{LT(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),DT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function DT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}var MT=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},RT=[()=>{Kt.unbind()}],PT=[...RT],Sj=hr(async()=>{await wa()},50),Tj=hr(async()=>{await id()},50),wj=hr(async()=>{await y5()},50),Ej=hr(async()=>{await b5()},50),IT=hr(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),G3=!1,Aj=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!G3&&e&&e.length>0?Cl({text:e}):Cl({})},50),kj=()=>{G3=!0,setTimeout(()=>{G3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(MT)return;MT=!0,X()||l5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(ie+"DocumentMessageUser",UT),document.addEventListener(ie+"DocumentMessageUpdateUser",jT),document.addEventListener(ie+"ChangeSuccessService",HT.bind(null,t)),document.addEventListener(ie+"ChangeService",qT.bind(null,t)),document.addEventListener(_n,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(v0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(vo,Zt.showModal.bind(null,t)),n.addEventListener(ie+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(f6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(h6,Zt.eventUpload.bind(null,t)),n.addEventListener(x0,a=>{xt()||J3(a,t)}),n.addEventListener(b6,VT),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",Aj),document.addEventListener("contextmenu",kj),TT(),xt()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(xt()||n.addEventListener(Gr,Zt.handlePopupInit)),xt()||Yi.rootIframe(L0).handleAsk("throttleRequest",fx)};function FT(e,t){Mj(),Zt.SetupDomListenersForOnce(t,e),X()&&(xt()||(S3(e.config),Pj(e.config))),vr()&&WT(e,t),He()&&S3(e.config)}Zt.handlePopupInit=e=>{$S()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===y0&&Ta(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){mc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Ue(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),BT({method:"retryFailedParagraphs"}),mc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}gc(V3.bind(null,t,o,i,s));return}}};async function Dj(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Lj(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;kT(ET.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;gc(V3.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?gc(Nm.bind(null,"manga",e)):r=="webReport"&&gc(Nm.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Y3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")BT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")v5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")Dj();else if(i.type==="toggleEnableInputTranslation")Lj();else if(i.type==="syncAppSetting")_T(i.data);else if(i.type==="translatePage")Rj(i.data);else if(i.type==="getAsyncTranslationServiceList")a=ws(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=$i(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await Ij(i.data,o)}catch(s){pc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await Fj(o,i.data)}catch(s){pc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await rd(i.data):i.type==="getAsyncDownloadSubtitle"?a=await tT():i.type==="sharePage"?J3({detail:i.data},r):i.type==="switchTranslationMode"?K3(i.data):i.type=="getAsyncAiAssistants"?a=await Wl():i.type=="addAiAssistantAsync"?a=await Bo("add",i.data):i.type=="removeAiAssistantAsync"?a=await Bo("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await Q3(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await zT(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Id("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await cv(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await T5()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await w5()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await dv(i.data)):i.type==="openPopup"?_m({...i.data,open:!0}):i.type==="closePopup"?_m({...i.data,open:!1}):i.type==="togglePopup"?_m({...i.data}):i.type==="getPageStatusAsync"?a=ot():i.type==="restorePage"?Bj():i.type==="getPageLanguageAsync"?a=Dt():i.type==="showFloatBallGuide"?NS():i.type=="getAsyncDetectAndSetLanguage"?a=await NT(i.data):i.type=="setFloatBallActive"?zS(i.data):IT(i.type);a!=null&&i.id&&pc(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{OT()},10)};Zt.handleSecurityPolicyViolation=e=>{Ae.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ue(n.name,[{name:n.name}],{...e})};function Mj(){PT.forEach(e=>{e()}),PT=RT}function Pj(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=F0.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:tl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:nl,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:$u,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:sf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===$u?Sj():i.id===sf?Tj():i.id===nl?wj():i.id===tl?Ej():IT(i.id)},i.key)}}function BT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}async function _T(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await at(Fe(),t)}async function Rj(e){let t=await _T(e);mr(t)}function pc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function Ij({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function Fj(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function Bj(){ot()!=="Original"&&ga()}var Wo={};async function Z3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return xr(n),n}async function GT(e){let t=0,n=0;Xn("Translating");let r=Dt(),a=Z0(),i=[...document.querySelectorAll(".source-text")];if(Hs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(qs(m,c.id)?.remove(),m.appendChild(Pl(e,c.id,!0)))}),await s(l),await ut(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=qs(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Wo[g]={ok:!1,sentence:m},YT(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Wo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function KT(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wo),a=[],i=[];for(let o of r){let s=Wo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wo[o],c.appendChild(Pl(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=qs(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Wo[l]={ok:!1,sentence:u},YT(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Wo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function X3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function YT(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(_n,{detail:i}))}var Vm={};async function QT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return xr(n),n}async function JT(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Vm),n=[];for(let r of t){let a=Vm[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${w0}='${r}']`);o&&o.remove(),n.push(a)}}try{rc(),await Lm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function ZT(e){Object.values(Vm).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=gu(e,t.targetNodes);to(e,i,r,t.rootNodes||[]),Uo(t.targetNodes)}else n==="dual"&&Uo(t.targetNodes)}),Xn("Original")}async function XT(e){Xn("Translating");let t=fl(),n=Da(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;zi(l,e);let c=l.body;if(!c)continue;La(l.documentElement,e.state.translationMode);let m=Pn(e);m.isModifyImage=!1;let g=[];await ci({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await ut(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=Kd(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:km(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await f3(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Vm[p.id]=p)}Lm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function Wm(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Hi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,$3,$T=!1,Gm=null,_j=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Nm(s,e,t,r,a,i,o)},i.append(m)}function _3(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function Um(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var jm=[],cT=[];async function N3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(U3()||jm.includes(t))return"";if(jm.length>=s)return new Promise((l,c)=>{cT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});jm.push(t);try{let u=await ij(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await dT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{jm.shift(),(async()=>{let u=cT.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await N3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function nj(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ft}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${mT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await te({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rj(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aj(e,t,n){let r=await rj(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):te({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await I5(a)})}async function ij(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oj(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await Um(u);no({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nj(e,r,l,n.type);if(c.objectKey&&no({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aj(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(O3()+"/trigger",{method:"POST",body:ud(u),headers:{token:e.user?.token||""}}).then(async g=>(await ji(g,"manga"),g.json())):m=await te({url:O3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),no({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function dT(e,t,n,r,a){let i=U3();if(i)return;Ir("Translating",i);let o=await te({url:O3()+`/${t}/task-state?comicHash=${n}&domain=${mT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Xv(t,r.queryIntervalTime||100),dT(e,t,n,r,a))}function O3(){return ft+"comics"}function oj(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function mT(e){return e.replaceAll(".","_")}var Vt,j3,qm,dc,an=!1;function U3(){return an}var gT=!1;function hT(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!gT&&Vt.injectedCss&&(tr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),gT=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=vT(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await ut(20),await r(i,t))}},100);if(Ue("translate_manga",[{name:"translate_manga"}],e),n(),j3=new MutationObserver(a=>{n()}),j3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;dc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(zo(e,o.target),dc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}qm=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(dc?.unobserve(a),dc?.observe(a)):await zo(e,a)))}}async function zo(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Ds();if(n&&(an=!1),an||fj(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=uj(e,t);u||(s=fu(e,t,"translating")),n&&Ue("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await lj(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await sj(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||fu(e,t,"success")):(u||fu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Ir("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&(Ir("Error",an),pj(e,l)),u))return;if(l instanceof lc)return fu(e,t,"error",l.type);fu(e,t,"error")}finally{n&&Ir(i,an),s?.remove()}}function bT(){if(!Vt)return;an=!0,j3?.disconnect(),qm?.disconnect(),dc?.disconnect();let e=vT(Vt);for(let t of e)Vo(t)}function Vo(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Vo(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function sj(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await cj(l,c,t.cloneNode(!0))}else o=await CT(t);if(an)return;if(!o||o.size<6*1e4){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await _3(o);return await H3(e,t,s)?!0:s?yT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function yT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await mj(n)||n,u=r||a;try{if(an)return;Ir("Translating",an),B3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};no(l);let m=await N3(e,u,s,a,i,g=>{B3(e,o,g)});return m?(l.targetUrl=m,no(l),await xT(Vt,t,m),Ir("Translated",an),!0):!1}catch(l){if(no({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function H3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl?(await xT(Vt,t,a.targetUrl||""),Ir("Translated",an),!0):!1}function uj(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl}return!1}async function lj(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gj(a,i)){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await H3(e,t,o))return!0;let s=null;if(Ir("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await ji(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await dj(i);else{let m=await te({url:i,responseType:"base64"});s=await ld(m)}if(an)return;if(await MC(s))throw new lc("GIFs not supported","gif_not_supported");let l=await _3(s);if(!o&&(o=l,await H3(e,t,o)))return!0;if(!o)return!1;return yT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function vT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function CT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function cj(e,t,n){return new Promise((r,a)=>{te({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await CT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function xT(e,t,n){try{return await pT(e,t,n)}catch{let a=await hj(n);return pT(e,t,a)}}async function pT(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function dj(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function mj(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gj(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Fd(e.inValidSrcRegex,t):!0}var Hm=0,cc=0;function pj(e,t){if(Hm!=0){cc++;return}if(t.message.indexOf("quota exceeded")>0){fT(e,t);return}cc++,Hm=setTimeout(()=>{if(cc<(Vt.errorTimes||3)){Hm=0,cc=0;return}fT(e,t),cc=0,Hm=0},Vt.errorInterval||3e3)}function fT(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(_n,{detail:r}))}function q3(e){return e.classList.contains("imt-img")||e.hasTranslate}function fj(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function hj(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var bj="showImagePricingModal";function zm(e){document.dispatchEvent(new CustomEvent(bj,{detail:JSON.stringify({trigger:e})}))}var Ha=null;async function ST(e,{srcUrl:t}){if(!oi(e))return;if(!await Ss(e)){zm("image_right_menu");return}if(!Ha){D.error("rightMenu image ele not found",t,Ha);return}if(Ha.translationStatus!=="translating"){if(Ha.hasTranslate){Vo(Ha);return}if(t!==Ha.src)try{let r=new URL(t),a=new URL(Ha.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,Ha.src,r);return}zo(e,Ha,!0,"image_right_menu")}}function TT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Ha=e.target)})}var wT=0;function gc(e){let t=Date.now();if(t-wT<2e3||(wT=t,yj()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,mc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=we();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let h=document.createElement("div");h.className=o+" notranslate",g.appendChild(h);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",b=>{b.target==u&&(u.style.display="none")}),e(u,f,h,y,mc)}setTimeout(()=>{vj()},100)}function yj(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function vj(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function mc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ET(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var AT=0;async function kT(e){let t=Date.now();if(t-AT<2e3||(AT=t,Cj()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&z3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,z3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),y=document.createElement("style"),b=we();y.textContent=b.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),h.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},h.addEventListener("click",S=>{S.target==g&&(g.style.display="none")}),e(g,u,l,z3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{xj()},100),m=setTimeout(c,2500)}function Cj(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function xj(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function z3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function V3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",DT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(U6)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(I0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(V6)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)},W3(e,e.config.translationService,!1,f).then(h=>{h?(g=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{LT(h),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),DT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function DT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}var MT=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},RT=[()=>{Kt.unbind()}],PT=[...RT],Sj=br(async()=>{await wa()},50),Tj=br(async()=>{await id()},50),wj=br(async()=>{await y5()},50),Ej=br(async()=>{await b5()},50),IT=br(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),G3=!1,Aj=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!G3&&e&&e.length>0?Cl({text:e}):Cl({})},50),kj=()=>{G3=!0,setTimeout(()=>{G3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(MT)return;MT=!0,X()||l5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(ie+"DocumentMessageUser",UT),document.addEventListener(ie+"DocumentMessageUpdateUser",jT),document.addEventListener(ie+"ChangeSuccessService",HT.bind(null,t)),document.addEventListener(ie+"ChangeService",qT.bind(null,t)),document.addEventListener(_n,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(v0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(vo,Zt.showModal.bind(null,t)),n.addEventListener(ie+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(f6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(h6,Zt.eventUpload.bind(null,t)),n.addEventListener(x0,a=>{xt()||J3(a,t)}),n.addEventListener(b6,VT),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",Aj),document.addEventListener("contextmenu",kj),TT(),xt()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(xt()||n.addEventListener(Gr,Zt.handlePopupInit)),xt()||Yi.rootIframe(L0).handleAsk("throttleRequest",fx)};function FT(e,t){Mj(),Zt.SetupDomListenersForOnce(t,e),X()&&(xt()||(S3(e.config),Pj(e.config))),Cr()&&WT(e,t),He()&&S3(e.config)}Zt.handlePopupInit=e=>{$S()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===y0&&Ta(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){mc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Ue(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),BT({method:"retryFailedParagraphs"}),mc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}gc(V3.bind(null,t,o,i,s));return}}};async function Dj(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Lj(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;kT(ET.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;gc(V3.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?gc(Nm.bind(null,"manga",e)):r=="webReport"&&gc(Nm.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Y3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")BT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")v5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")Dj();else if(i.type==="toggleEnableInputTranslation")Lj();else if(i.type==="syncAppSetting")_T(i.data);else if(i.type==="translatePage")Rj(i.data);else if(i.type==="getAsyncTranslationServiceList")a=ws(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=$i(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await Ij(i.data,o)}catch(s){pc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await Fj(o,i.data)}catch(s){pc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await rd(i.data):i.type==="getAsyncDownloadSubtitle"?a=await tT():i.type==="sharePage"?J3({detail:i.data},r):i.type==="switchTranslationMode"?K3(i.data):i.type=="getAsyncAiAssistants"?a=await Wl():i.type=="addAiAssistantAsync"?a=await Bo("add",i.data):i.type=="removeAiAssistantAsync"?a=await Bo("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await Q3(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await zT(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Id("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await cv(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await T5()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await w5()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await dv(i.data)):i.type==="openPopup"?_m({...i.data,open:!0}):i.type==="closePopup"?_m({...i.data,open:!1}):i.type==="togglePopup"?_m({...i.data}):i.type==="getPageStatusAsync"?a=ot():i.type==="restorePage"?Bj():i.type==="getPageLanguageAsync"?a=Dt():i.type==="showFloatBallGuide"?NS():i.type=="getAsyncDetectAndSetLanguage"?a=await NT(i.data):i.type=="setFloatBallActive"?zS(i.data):IT(i.type);a!=null&&i.id&&pc(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{OT()},10)};Zt.handleSecurityPolicyViolation=e=>{Ae.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ue(n.name,[{name:n.name}],{...e})};function Mj(){PT.forEach(e=>{e()}),PT=RT}function Pj(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=F0.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:tl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:nl,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:$u,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:sf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===$u?Sj():i.id===sf?Tj():i.id===nl?wj():i.id===tl?Ej():IT(i.id)},i.key)}}function BT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}async function _T(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await at(Fe(),t)}async function Rj(e){let t=await _T(e);gr(t)}function pc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function Ij({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function Fj(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function Bj(){ot()!=="Original"&&ga()}var Wo={};async function Z3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Sr(n),n}async function GT(e){let t=0,n=0;Xn("Translating");let r=Dt(),a=Z0(),i=[...document.querySelectorAll(".source-text")];if(Hs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(qs(m,c.id)?.remove(),m.appendChild(Pl(e,c.id,!0)))}),await s(l),await ut(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=qs(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Wo[g]={ok:!1,sentence:m},YT(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Wo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function KT(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wo),a=[],i=[];for(let o of r){let s=Wo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wo[o],c.appendChild(Pl(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=qs(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Wo[l]={ok:!1,sentence:u},YT(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Wo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function X3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function YT(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(_n,{detail:i}))}var Vm={};async function QT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Sr(n),n}async function JT(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Vm),n=[];for(let r of t){let a=Vm[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${w0}='${r}']`);o&&o.remove(),n.push(a)}}try{rc(),await Lm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function ZT(e){Object.values(Vm).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=gu(e,t.targetNodes);to(e,i,r,t.rootNodes||[]),Uo(t.targetNodes)}else n==="dual"&&Uo(t.targetNodes)}),Xn("Original")}async function XT(e){Xn("Translating");let t=fl(),n=Da(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;zi(l,e);let c=l.body;if(!c)continue;La(l.documentElement,e.state.translationMode);let m=Pn(e);m.isModifyImage=!1;let g=[];await ci({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await ut(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=Kd(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:km(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await f3(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Vm[p.id]=p)}Lm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function Wm(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Hi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,$3,$T=!1,Gm=null,_j=` .${F}-input { position: absolute; top: 0; @@ -6081,9 +6081,9 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide box-shadow: 130px 0 var(--loading-color); } } -`;function tw(e){Wm().forEach(t=>{Oj(e,t)})}function Oj(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Gm===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};or.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||Gm===!1)return;let p=Qm(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(qj(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&ew(t,o,g.target)&&(s=0,n1(g,e,t,o))}function m(){$3=l,t.removeEventListener("keyup",$3),t.addEventListener("keyup",$3,!0)}zj(e)}function nw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Km(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var hu;function e1(e){let t=e.parentElement;if(!t)return;hu=document.createElement("div"),hu.className=F+"-input";let n=`
`;hu.innerHTML=Or?.createHTML(n)||n,t.appendChild(hu);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=_j,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function t1(){hu&&hu.remove()}async function Nj(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){i1(e,t,r,"shortcutKey");return}try{let h=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=Km(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=nw(u),S=g.split(C);if(S.length<2)return;if(m=S[S.length-1],c=S[0],S.length>2){let T=g.lastIndexOf(m),w=g.slice(0,T).lastIndexOf(S[S.length-2]);c=g.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let x=g.slice(c.length+1,g.indexOf(m)).trim();if(p=Km(x,u.codeAlias),!p){D.warn("not found alias",x);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};or.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=fa(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?h():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&h());let f=rw(m,u),b=await ze({text:f,pageLangs:["en"]});D.debug("translateContent",f,b);let y={text:f||"",id:0,from:b,to:p,url:"https://google.com",fromByClient:b,force:!0};if(!y.text||y.text.length>5e3)return;e1(l),Je(al,Date.now());try{e.specialAiAssistant=aa(e,e.inputTranslationService,!0);let C=await dr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a1(e),lw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let S=C.uiConfig(e);o1(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(_n,{detail:S}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}async function n1(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=Km(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=nw(r),b=s.split(f);if(b.length<2)return;if(o=b[b.length-1],i=b[0],b.length>2){let h=s.lastIndexOf(o),v=s.slice(0,h).lastIndexOf(b[b.length-2]);i=s.slice(0,v+b[b.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Km(y,r.codeAlias),!u){D.warn("not found alias",y);return}},a=Qm(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=fa(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=rw(o,r),c=await ze({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!$T){$T=!0;let f=await Vj(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(Gm=!1,f==="disable_forever"){let b=await Qt();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}else if(f==="disable_once"){let b=await Qt();b.isShowInputTranslationConsent=!1,await un(b)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(Gm=!1,f==="close_disable_forever"){let b=await Qt();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}return}else if(f==="enable"){let b=await Qt();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await un(b)}else if(f==="close_enable"){let b=await Qt();b.enableInputTranslation=!0,await un(b)}}e1(a),Je(al,Date.now());try{t.specialAiAssistant=aa(t,t.inputTranslationService,!0);let f=await dr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});a1(t),lw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let b=f.uiConfig(t);o1(b.action)&&(b.action="none"),n.document.dispatchEvent(new CustomEvent(_n,{detail:b}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}function ew(e,t,n){if(!n)return!1;if(r1(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`;function tw(e){Wm().forEach(t=>{Oj(e,t)})}function Oj(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Gm===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};or.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||Gm===!1)return;let p=Qm(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(qj(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&ew(t,o,g.target)&&(s=0,n1(g,e,t,o))}function m(){$3=l,t.removeEventListener("keyup",$3),t.addEventListener("keyup",$3,!0)}zj(e)}function nw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Km(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var hu;function e1(e){let t=e.parentElement;if(!t)return;hu=document.createElement("div"),hu.className=F+"-input";let n=`
`;hu.innerHTML=lr?.createHTML(n)||n,t.appendChild(hu);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=_j,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function t1(){hu&&hu.remove()}async function Nj(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){i1(e,t,r,"shortcutKey");return}try{let b=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=Km(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=nw(u),S=g.split(C);if(S.length<2)return;if(m=S[S.length-1],c=S[0],S.length>2){let T=g.lastIndexOf(m),w=g.slice(0,T).lastIndexOf(S[S.length-2]);c=g.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let x=g.slice(c.length+1,g.indexOf(m)).trim();if(p=Km(x,u.codeAlias),!p){D.warn("not found alias",x);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};or.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=fa(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?b():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&b());let f=rw(m,u),h=await ze({text:f,pageLangs:["en"]});D.debug("translateContent",f,h);let y={text:f||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!y.text||y.text.length>5e3)return;e1(l),Je(al,Date.now());try{e.specialAiAssistant=aa(e,e.inputTranslationService,!0);let C=await mr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a1(e),lw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let S=C.uiConfig(e);o1(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(_n,{detail:S}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}async function n1(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=Km(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=nw(r),h=s.split(f);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let b=s.lastIndexOf(o),v=s.slice(0,b).lastIndexOf(h[h.length-2]);i=s.slice(0,v+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Km(y,r.codeAlias),!u){D.warn("not found alias",y);return}},a=Qm(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=fa(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=rw(o,r),c=await ze({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!$T){$T=!0;let f=await Vj(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(Gm=!1,f==="disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="disable_once"){let h=await Qt();h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(Gm=!1,f==="close_disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="enable"){let h=await Qt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="close_enable"){let h=await Qt();h.enableInputTranslation=!0,await un(h)}}e1(a),Je(al,Date.now());try{t.specialAiAssistant=aa(t,t.inputTranslationService,!0);let f=await mr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});a1(t),lw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let h=f.uiConfig(t);o1(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(_n,{detail:h}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}function ew(e,t,n){if(!n)return!1;if(r1(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` `).reverse()[0],o=i.trim(),s=a<=r;D.debug("cursorPosition",r,"textLength",a),D.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return D.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=Uj(i,n);D.debug("Current text node:",i.textContent),D.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=He()?u[0]||u[1]:u[0];D.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else D.debug("Cursor is not within a text node.")}}return!1}function Uj(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function rw(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function aw(e,t){let n=t.innerHTML,r=fa(t);return{html:n.replace(r,e),text:e}}function Ym(e,t,n=!1){let r=fa(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function fa(e){return e.value||e.innerText||e.textContent}async function pa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function jj(e,t,n){await pa(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await pa(10)}async function iw(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await pa(10))}async function ow(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await pa(20),(t.value||t.value==="")&&(t.value=e.text)}async function sw(e,t){r1(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await pa(20))}var uw=[jj.bind(null,["plain"])];function r1(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Hj(e,t){if(r1(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function lw(e,t,n,r){await pa(50),await Hj(t,n),await pa(50);let a=e.rule.inputConfig,i=aw(r,n);try{await pa(50),a?.execCommandDeleteEnable&&!Zn()&&fa(n)?.trim()!=""&&(t.document.execCommand("delete"),await pa(50)),D.debug("clearContent",fa(n))}catch(o){D.error(o)}for(let o of[...uw,ow,sw,iw]){await o(i,n);let s=cw(t);if(!s)return;if(D.debug("setContent",o.name,Ym(i,s),fa(s),i),Ym(i,s))break}}function cw(e){return e.document.activeElement}function a1(e,t=""){Ue("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function qj(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function zj(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Bt(t,"")||Number(await Bt(al,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{Wj()},100),new Promise(m=>{let g=m;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let P=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),U=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${F}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let P=R.attachShadow({mode:"open"}),L=document.createElement("style"),U=we();L.textContent=U.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,P.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let B=document.createElement("div");B.className=F+"-modal-content notranslate "+F+"-modal-content-in-input",s.appendChild(B);let H=document.createElement("span");H.textContent="\xD7",H.className=F+"-close",B.appendChild(H),u=document.createElement("div"),u.className=r+" notranslate",B.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",B.appendChild(c),l=document.createElement("div"),l.className=i,B.appendChild(l),P.appendChild(s),H.onclick=function(){E(),m("close")},P.addEventListener("click",W=>{W.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${gm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Or?.createHTML(f)||f,c.innerHTML=Or?.createHTML("")||"";let b=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});b.innerHTML=Or?.createHTML(y)||y,b.style.cssText="margin-bottom:12px",c.appendChild(b);let h=document.createElement("div");h.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));h.innerHTML=Or?.createHTML(v)||v,c.appendChild(h);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function i1(e,t,n,r){if(zn)return;try{let o=Qm(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;zn=!0;let u=e.config.inputTargetLanguage,l=await ze({text:n,pageLangs:["en"]});D.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;e1(o),Je(al,Date.now());try{if(e.specialAiAssistant=aa(e,e.inputTranslationService,!0),a1(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let m=await dr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,m.text)}else{let m=await dr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,m.text)}}catch(m){if(m instanceof V){let g=m.uiConfig(e);o1(g.action)&&(g.action="none"),document.dispatchEvent(new CustomEvent(_n,{detail:g}))}}finally{zn=!1}}catch(o){throw zn=!1,o}finally{zn=!1,t1()}async function a(o,s,u,l){let c=o.rule.inputConfig,m=aw(l,u);try{await pa(50),c?.execCommandDeleteEnable&&!Zn()&&fa(u)?.trim()!=""&&(s.document.execCommand("delete"),await pa(50)),D.debug("clearContent",fa(u))}catch(g){D.error(g)}for(let g of[...uw,ow,sw,iw]){await g(m,u);let p=cw(s);if(!p)return;if(D.debug("setContent",g.name,Ym(m,p),fa(p),m),Ym(m,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let m=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("delete",!1);let g=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(g),!g.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function o1(e){return e==="retry"||e==="changeService"}function Jm({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&tr(c,a),e.appendChild(l);let m=c;if(s){let g=document.createElement("div");g.id="mount",g.style.display="block",c.appendChild(g),m=g}ya(d(Qi,{lang:t.config.interfaceLanguage,children:d(n,{...r})}),m)}function bu(e){return yu(e).subtitles}function yu(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${M1.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},rq=e=>/]*>[\s\S]*]*>/.test(e),Qw=An({name:Yw,build:nq,detect:rq,helper:M1,parse:tq});var aq="srt",vc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},iq=(e,t)=>{let n=[],r=t.eol||`\r `,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=vc.toMilliseconds(s[2]),u.end=vc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},oq=(e,t)=>{let n="",r=t.eol||`\r `;for(let a=0;a ${vc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},sq=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),Jw=An({name:aq,build:oq,detect:sq,helper:vc,parse:iq});var uq="sub",P1=25,lq=(e,t)=>{t.fps||=P1;let n=t.fps>0?t.fps:P1,r=[],a=t.eol||`\r `,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:P1,r="",a=t.eol||`\r `;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},dq=e=>/^\{\d+\}\{\d+\}.*/.test(e),Zw=An({name:uq,build:cq,detect:dq,parse:lq});var mq="vtt",Cc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},gq=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Cc.toMilliseconds(s[2]),l.end=Cc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},pq=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Cc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},fq=e=>/^\s*WEBVTT\r?\n/.test(e),Xw=An({name:mq,build:pq,detect:fq,helper:Cc,parse:gq});var hq={vtt:Xw,lrc:Gw,smi:Qw,ssa:zw,ass:Vw,sub:Zw,srt:Jw,sbv:Kw,json:Ww},$w=hq;var bq=e=>JSON.parse(JSON.stringify(e)),R1=class{format=$w;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),tg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];mu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ie+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&tr(document,`${t.join(` +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Cc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},fq=e=>/^\s*WEBVTT\r?\n/.test(e),Xw=An({name:mq,build:pq,detect:fq,helper:Cc,parse:gq});var hq={vtt:Xw,lrc:Gw,smi:Qw,ssa:zw,ass:Vw,sub:Zw,srt:Jw,sbv:Kw,json:Ww},$w=hq;var bq=e=>JSON.parse(JSON.stringify(e)),R1=class{format=$w;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),tg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];mu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ie+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&tr(document,`${t.join(` `)}`,F+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await at(Fe(),{});if(this.initConfig(n),await ut(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(pw(r),fw(a));return u&&this.setMemoryCache(o,u),u}catch(r){return D.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!gt(Fe(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle||this.tempEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:this.i18nFormat(`translationServices.${this.ctx.subtitleTranslateService}`)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} @@ -6281,7 +6281,7 @@ ${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lan ${u}`)}),ro(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[re(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Fe()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var lg=class extends yt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=n7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=n7(o,r.itemsPath):s=Cq(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>xc(l,r.textKey)).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:xc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),$e(this.ctx,re(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>xc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=vq(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function n7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Vs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,$e(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return wr(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=m4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Dt(),"en"]});return Hs(t,r)?void 0:(await dr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=ot(),n=await at(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await at(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var cg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=xq(r),o=await ze({text:i.map(u=>u.textContent).join(` +`+n,e):null}function Cq(e,t){if(!t)return null;let n=e[t.startKey||""],r=e[t.endKey||""],a=e[t.textKey||""];if(!(Array.isArray(n)&&n.length==r.length&&r.length==a.length))return null;let o=[],s=t.timeDivisor||1;for(let u=0;u{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Vs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,$e(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Er(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=m4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Dt(),"en"]});return Hs(t,r)?void 0:(await mr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=ot(),n=await at(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await at(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var cg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=xq(r),o=await ze({text:i.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=r7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=await this.translateSubtitle(a,i,re(o));if(this.config.enableHookDownload)try{let u=r7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),re(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ha(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Sc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` `)}},Sc="http://www.w3.org/ns/ttml";function xq(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Sc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Sc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Sc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function r7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Sc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:a7(i),end:a7(o),text:s})}),r}function a7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var dg=class extends yt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=yu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(ct(o,this.ctx.targetLanguage))return null;if($e(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,re(o))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=vu(n.subtitles,bu(u));return n.subtitles=l,ro(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){D.debug("translate subtitle:",a,i,o);return}let s=ha(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} ${s}`)}),ro(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>re(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=wq(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` @@ -6292,13 +6292,13 @@ ${s}`)}),ro(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= `)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},i7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var fg=class extends qa{constructor(t){super(t),new wu(t)}};var hg=class extends qa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Ko.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){D.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Ko.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var bg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),re(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=l1(f,l),h=l1(b,l),v=En(y),C=En(h);u==="duration"&&(C=v+C);let S=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(S||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var yg=class extends yt{hasSubtitle=!1;async mutationVideoChange(){let t=Eq(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&($e(this.ctx,"ja","av"),this.hasSubtitle=!0,pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await te({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Ko.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function Eq(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var vg=class extends yt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&($e(this.ctx,n.language_code),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Aq={youtube:ig,netflix:og,webvtt:Tu,khanacademy:sg,udemy:ug,hulu:gg,mubi:vg,text_track:ao,text_track_dynamic:qa,general:lg,live:wu,ebutt:cg,disneyplus:dg,"fmp4.xml":mg,multi_attach_vtt:pg,twitter:fg,subsrt:hg,xml:bg,av:yg},Cg;async function Iw(e){try{X()&&await ut(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Aq[t.type];if(!n)return;Cg=new n(e)}catch(t){D.error(t)}}async function I1(){Cg?.onPageStatusChange()}async function kq(e,t){if(Cg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&xt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ue("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Dq(){Cg?.onTranslationModeChanged()}u5({autoEnableSubtitleChanged:kq,reloadSubtitleWithTranslationModeChanged:Dq});var fe=null;function bc(){return fe||null}function ag(e){let t=Pn(e);zi(document,e),Lq(e),_q(e,t),Iq(e),Bq(e),Rq(fe,t),Xn("Translated"),Fq(fe),Q8(Su),Mq(fe),I1(),Vq()}function Lq(e){let t=e.rule.initialSelectorGlobalAttributes;if(e.state.translationArea==="main"&&t){let n=Pn(e);e.rule.navHeadEnableTranslate&&Object.entries(t).forEach(([r,a])=>{a.sideHead&&delete t[r]}),j8(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}mu(e)&&zt(document.documentElement,ie+"_rtl",e.targetLanguage)}function Mq(e){let t=e.ctx;c7(t,!0),J8(e),Jv(window.location.href)}function Pq(e){let t=e.ctx;c7(t,!1),Z8()}async function Rq(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=H8(e.ctx,t);if(D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await di(s,e);await di(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await di(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}async function Iq(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Mt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await kt({...t,tempTranslationUrlMatches:[...i]})}}function Fq(e){e.ctx.rule.isTranslateTitle&&(l3(e.ctx),e.titleDynamicObserver=V8(e.ctx))}function Bq(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function x1(e,t){fe&&(e.isRichTranslate=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=Pn(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",La(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function _q(e,t){let n=fl();fe&&(n=fe.id),fe=fe||{},fe.ctx=e,fe.id=n,fe.paragraphQueue=fe.paragraphQueue||[],x1(e,t),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||qq(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||zq(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Uq(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||jq(fe),fe.injectCssToDocument=xg,fe.walkContainer=ci,e.specialAiAssistant=aa(e,e.translationService,!0),window.onerror=Nq(fe,e),window.immersiveTranslateSwitchTranslateState=B1.bind(fe)}function l7(e,t){t.getRootNode()instanceof ShadowRoot?xg(t.getRootNode(),e):xg(t.ownerDocument,e),Oq(e)}function Oq(e){fe||(fe={},fe.ctx=e,fe.id=fl(),F1(fe,e))}function F1(e,t){e.paragraphQueue=[],e.injectCssToDocument=xg,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=B1.bind(e);let n=aa(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=js(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function Su(e=!0){fe&&(Xn("Original"),I1(),Pq(fe),rc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),W8(fe.ctx),qv(),zv(),e&&B1.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Nq(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Su(),n=setTimeout(()=>{ag(t)},e.urlChangeDelay||2e3)),!0}}function Uq(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await g3(e,r.target),n.unobserve(r.target))})}function jq(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{p3(e,o)}),n.unobserve(a)}})})}var o7;function Hq(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(o7),e.translateState=="original"?!1:(Su(e.urlChangeDelay>20),o7=setTimeout(()=>{let a=e.ctx;ag(a)},e.urlChangeDelay),!0)):!1}function qq(e){let t=e.ctx.rule,n=Pn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&Hq(e)||e.interruptEffectDOM)return;let a=Bd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!wr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&wr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(k0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;s7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&v3(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&s7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||ka(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Vs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),u7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&u7(e,i.target)}catch(o){D.error(o)}})}function s7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{y3(n),ci({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{jo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function u7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function y3(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function v3(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function zq(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);s3(i)||(n.unobserve(r.target),Rt.clearMark(a),di(a,e))}})}async function B1(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await ga(),await ut(50),hn({method:"translatePage"});return}this.translateState=e,La(document.documentElement,e),this.inlineIFrames?.forEach(t=>{La(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{nc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function xg(e,t){if(e instanceof HTMLIFrameElement){zi(e.contentDocument,t);return}zi(e,t)}async function Fw(e){let t=xt(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Ws(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Ws(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await m5();return n==="auto"&&(n=await Y8()),a5(n),n}async function Bw(){if(!fe)return;rc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${w0}='${n}']`);i&&i.remove()}}Dm.call(fe,fe.ctx)}async function J3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ue("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Dt()});let r=fe?.ctx||t,a=await Mt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:G8(r)},await kt(a);let o=we().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ea(o)}catch(i){D.error(i)}}async function VT(){let e=await Mt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(y6,{detail:JSON.stringify(e.draft)}))}async function Vq(){try{if(await Do("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ea();await te({url:ft+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){D.error(e)}}function c7(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(ps,{detail:{tempEnableSubtitle:t}}))}var Wq=new AbortController,{signal:Gq}=Wq,wc=0,Ec=0,Yo=!1,io,d7=0,fi=[];function S1(e){Kq(),Wm().forEach(t=>{Sg(e,t)})}function Sg(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Xq(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Sg(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Sg(n,t))}t.document.addEventListener(Xu,s),fi.push(()=>{t.document.removeEventListener(Xu,s)});let u=hr(g=>{if(!(Math.abs(g.clientX-wc)+Math.abs(g.clientY-Ec)<=3)&&(wc=g.clientX,Ec=g.clientY,Yo&&!io&&N1(n,!1,t),o||Yo&&!io)){let p=f7(n.rule,t);if(p){if(O1(p))return;Tg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;O1(p)||(Tg(n,!0,t),N1(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&(d7=Date.now(),Yo=!1),f.length===1&&Kt[p]){let b=Date.now();Yo=!0,io&&clearTimeout(io),io=setTimeout(()=>{let y=d7-b;y>0&&y<=i?Yo=!1:l(g),io=void 0},i)}};if(fi.push(()=>{io&&clearTimeout(io)}),a)return;Tc("mousemove",u,t),fi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Yo=!1}if(Tc("blur",m,t),fi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=O6;Tc("keyup",m7,t),fi.push(()=>{t.removeEventListener("keyup",m7)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),fi.push(()=>{Kt.deleteScope("mouseHover")})}}function Kq(){fi.forEach(e=>e()),fi=[],Kt.setScope("all")}function m7(e){Yo=!1}function Tc(e,t,n=window){return n.addEventListener(e,t,{signal:Gq})}function Tg(e,t,n,r){if(r=r||f7(e.rule,n),!r){D.debug("can not find selection part!");return}if(Qq(e,r,t))return;if(O1(r)){D.debug("exclude dom");return}l7(e,r);let i=bc();i&&(i.setupMouseHoverListener=Sg);let o=Pn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=F1(i,e);ci({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{Bd(n.document.documentElement)!==e.state.translationMode&&La(n.document.documentElement,e.state.translationMode),jo(u,l,!0,"hover").then(m=>{if(m&&!s){s=!0;let g=Date.now();Je(x6,g);let p={translation_service:u?.translationService||""};Ue("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function f7(e,t){return Yq(wc,Ec,e,t)}function Yq(e,t,n,r){let a=gC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=pC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:p7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Zq(e,a)}),!0}function Jq(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Zq(e,t){let n=bc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{nc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function _1(e){return!!(e.host&&e.mode)}function g7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||_1(n))return e;for(;n&&n.nodeName!=="BODY"&&!_1(n)&&v4(n,t);){let r=n.parentNode;if(r&&_1(r))break;n=r}return n}function p7(e,t){return e.nodeType===Node.TEXT_NODE||v4(e,t)?g7(e,t):e}function h7(e,t,n){wc=t.clientX,Ec=t.clientY,Tg(e,!0,n),N1(e,!0,n)}async function N1(e,t,n,r){if(!oi(e))return;let a=fC(wc,Ec,e.rule,n);if(!a||D4(a.src)||a.translationStatus==="translating")return;let i=q3(a);if(i&&!t||i&&!r)return;if(i){Vo(a);return}if(!await Ss(e)){zm("image_mouse_hover");return}zo(e,a,!0,"image_mouse_hover")}function Xq(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Tg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Tc("mousedown",i,t),Tc("mouseup",o,t),fi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Ac=[];function U1(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Ac.push(()=>{document.removeEventListener("click",i)})}function b7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Ac.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function wg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Ac.push(()=>{document.removeEventListener("touchstart",r)})}var ic={touchShortcutsOff:()=>{},"multipleClick.2":U1,"multipleClick.3":U1,"multipleClick.4":U1,"slide.left":b7,"slide.right":b7,"fingers.2":wg,"fingers.3":wg,"fingers.4":wg,"fingers.5":wg};async function WT(e,t=window){try{rz();let n=await ln(),r=D0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=j1(e,n,a.command),o=ic[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{nz(a.command,e,t,l)})})}catch(n){D.error(n)}}function j1(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var $q=()=>{y1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},ez=()=>{C1();let e=new CustomEvent(Gr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},tz=()=>{v1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},y7=0,nz=(e,t,n,r)=>{if(!(new Date().getTime()-y7<200)){if(y7=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")$q();else if(e==="touchShortcutsToggleTranslationMask")tz();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")ez();else if(e==="touchShortcutsToggleTranslateTouchElement")h7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};n1(r,t,n,s)}}};function rz(){Ac.forEach(e=>{e()}),Ac=[]}function kc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(ic).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ei.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d(sa,{className:"select",maxWidth:250,items:ei.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:Ra(f)}),y=ei.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(ye,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(ye,{title:r,description:i||""}),d("div",{class:"nav",children:[d(sa,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})}function H1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=da(),{t:u}=O(),l=pt(t),c=cn(l);return l?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ma,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(kc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||nt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(az,{setSettings:n,config:l,localConfig:o}),d(eo,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function az({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(kc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||nt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function q1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),u=le(g=>{s&&n(p=>Ui({...p},g))},[s,n]),l=ii(s,t),{t:c}=O(),m=le((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ma,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(iz,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(oz,{t:m,rule:l,updateFloatBallRule:u}),d(sz,{t:m,rule:l,updateFloatBallRule:u}),d(uz,{t:m,rule:l,updateFloatBallRule:u})]})})}function iz({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function oz({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);z(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Jt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(la,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ua,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function sz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function uz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function z1(){let e=Oe(),[t,n,r,a,i]=e,[o]=da();Xe(t,n);let[s,u]=N(null),{t:l,lang:c}=O();z(()=>{Ze().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Es(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=D0.filter(b=>{if(b.name==="touch"){let y=Kr(o);return D.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Kr(o);return D.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let x="";v==="finger"?x=j1(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?x=t.generalRule[h]:x=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?x=t.shortcuts[h]:x=g.shortcuts[h];let T=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${h}`));let w,E;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[h],E=m.map(k=>{let M={service:k,name:null};return k.startsWith("custom-ai")&&(M.name=s.config.translationServices[k].name),M})),{command:h,type:v,shortcut:x,title:T,description:C,service:w,serviceIdList:E,disabled:!(X(!0)||ms())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):ms()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>lo(kc,{...h,key:`shortcut-${v}`,onChange:(C,S)=>{n(x=>{if(h.type==="finger"){let w={...x.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...x,generalRule:w}}else if(h.type==="mouseHoverHoldKey"){let w={...x.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...x,generalRule:w}}else if(h.type.startsWith("translateWithCustom")){let T={...x?.shortcuts};if(m.includes(C)){let E=T.translateWithCustomServices||{};return{...x,shortcuts:{...T,translateWithCustomServices:{...E,[h.command]:C}}}}let w={...x,shortcuts:{...T,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}else{let T={...x?.shortcuts},w={...x,shortcuts:{...T,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}}),S||nt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function lz(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function V1(){let[e,t,n,r,a]=Oe(),i=lz(),{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return z(()=>{e&&m()},[e]),d(ce,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(g,F+"-config-"+Os()+".txt")}}}function W1(){let e=Pr(),{t,lang:n}=O();return d(ce,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(y8,{}),d("h1",{children:t("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:r=>{r.preventDefault(),ur(`${Q}docs/CHANGELOG/#${e.replace(/\./ig,"")}`)},children:e}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(cz,{}),d(dz,{})]})]}),d("div",{className:"header-navbar-height"})]})}function cz(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:z6,target:"_blank",children:[d(v8,{}),d("span",{children:e("options.navbar.installApp")})]})}function dz(){let{t:e}=O();return d(Pt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:Q6,target:"_blank",children:[d(C8,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function G1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedMangaSites),c=`
+`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",y=l1(f,l),b=l1(h,l),v=En(y),C=En(b);u==="duration"&&(C=v+C);let S=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(S||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var yg=class extends yt{hasSubtitle=!1;async mutationVideoChange(){let t=Eq(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&($e(this.ctx,"ja","av"),this.hasSubtitle=!0,pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await te({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Ko.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function Eq(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var vg=class extends yt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&($e(this.ctx,n.language_code),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Aq={youtube:ig,netflix:og,webvtt:Tu,khanacademy:sg,udemy:ug,hulu:gg,mubi:vg,text_track:ao,text_track_dynamic:qa,general:lg,live:wu,ebutt:cg,disneyplus:dg,"fmp4.xml":mg,multi_attach_vtt:pg,twitter:fg,subsrt:hg,xml:bg,av:yg},Cg;async function Iw(e){try{X()&&await ut(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Aq[t.type];if(!n)return;Cg=new n(e)}catch(t){D.error(t)}}async function I1(){Cg?.onPageStatusChange()}async function kq(e,t){if(Cg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&xt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ue("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Dq(){Cg?.onTranslationModeChanged()}u5({autoEnableSubtitleChanged:kq,reloadSubtitleWithTranslationModeChanged:Dq});var fe=null;function bc(){return fe||null}function ag(e){let t=Pn(e);zi(document,e),Lq(e),_q(e,t),Iq(e),Bq(e),Rq(fe,t),Xn("Translated"),Fq(fe),Q8(Su),Mq(fe),I1(),Vq()}function Lq(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=Pn(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}j8(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}mu(e)&&zt(document.documentElement,ie+"_rtl",e.targetLanguage)}function Mq(e){let t=e.ctx;c7(t,!0),J8(e),Jv(window.location.href)}function Pq(e){let t=e.ctx;c7(t,!1),Z8()}async function Rq(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=H8(e.ctx,t);if(D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await di(s,e);await di(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await di(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}async function Iq(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Mt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await kt({...t,tempTranslationUrlMatches:[...i]})}}function Fq(e){e.ctx.rule.isTranslateTitle&&(l3(e.ctx),e.titleDynamicObserver=V8(e.ctx))}function Bq(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function x1(e,t){fe&&(e.isRichTranslate=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=Pn(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",La(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function _q(e,t){let n=fl();fe&&(n=fe.id),fe=fe||{},fe.ctx=e,fe.id=n,fe.paragraphQueue=fe.paragraphQueue||[],x1(e,t),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||qq(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||zq(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Uq(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||jq(fe),fe.injectCssToDocument=xg,fe.walkContainer=ci,e.specialAiAssistant=aa(e,e.translationService,!0),window.onerror=Nq(fe,e),window.immersiveTranslateSwitchTranslateState=B1.bind(fe)}function l7(e,t){t.getRootNode()instanceof ShadowRoot?xg(t.getRootNode(),e):xg(t.ownerDocument,e),Oq(e)}function Oq(e){fe||(fe={},fe.ctx=e,fe.id=fl(),F1(fe,e))}function F1(e,t){e.paragraphQueue=[],e.injectCssToDocument=xg,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=B1.bind(e);let n=aa(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=js(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function Su(e=!0){fe&&(Xn("Original"),I1(),Pq(fe),rc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),W8(fe.ctx),qv(),zv(),e&&B1.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Nq(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Su(),n=setTimeout(()=>{ag(t)},e.urlChangeDelay||2e3)),!0}}function Uq(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await g3(e,r.target),n.unobserve(r.target))})}function jq(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{p3(e,o)}),n.unobserve(a)}})})}var o7;function Hq(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(o7),e.translateState=="original"?!1:(Su(e.urlChangeDelay>20),o7=setTimeout(()=>{let a=e.ctx;ag(a)},e.urlChangeDelay),!0)):!1}function qq(e){let t=e.ctx.rule,n=Pn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&Hq(e)||e.interruptEffectDOM)return;let a=Bd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Er(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Er(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(k0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;s7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&v3(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&s7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||ka(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Vs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),u7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&u7(e,i.target)}catch(o){D.error(o)}})}function s7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{y3(n),ci({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{jo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function u7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function y3(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function v3(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function zq(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);s3(i)||(n.unobserve(r.target),Rt.clearMark(a),di(a,e))}})}async function B1(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await ga(),await ut(50),hn({method:"translatePage"});return}this.translateState=e,La(document.documentElement,e),this.inlineIFrames?.forEach(t=>{La(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{nc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function xg(e,t){if(e instanceof HTMLIFrameElement){zi(e.contentDocument,t);return}zi(e,t)}async function Fw(e){let t=xt(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Ws(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Ws(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await m5();return n==="auto"&&(n=await Y8()),a5(n),n}async function Bw(){if(!fe)return;rc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${w0}='${n}']`);i&&i.remove()}}Dm.call(fe,fe.ctx)}async function J3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ue("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Dt()});let r=fe?.ctx||t,a=await Mt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:G8(r)},await kt(a);let o=we().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ea(o)}catch(i){D.error(i)}}async function VT(){let e=await Mt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(y6,{detail:JSON.stringify(e.draft)}))}async function Vq(){try{if(await Do("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ea();await te({url:ft+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){D.error(e)}}function c7(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(ps,{detail:{tempEnableSubtitle:t}}))}var Wq=new AbortController,{signal:Gq}=Wq,wc=0,Ec=0,Yo=!1,io,d7=0,fi=[];function S1(e){Kq(),Wm().forEach(t=>{Sg(e,t)})}function Sg(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Xq(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Sg(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Sg(n,t))}t.document.addEventListener(Xu,s),fi.push(()=>{t.document.removeEventListener(Xu,s)});let u=br(g=>{if(!(Math.abs(g.clientX-wc)+Math.abs(g.clientY-Ec)<=3)&&(wc=g.clientX,Ec=g.clientY,Yo&&!io&&N1(n,!1,t),o||Yo&&!io)){let p=f7(n.rule,t);if(p){if(O1(p))return;Tg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;O1(p)||(Tg(n,!0,t),N1(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&(d7=Date.now(),Yo=!1),f.length===1&&Kt[p]){let h=Date.now();Yo=!0,io&&clearTimeout(io),io=setTimeout(()=>{let y=d7-h;y>0&&y<=i?Yo=!1:l(g),io=void 0},i)}};if(fi.push(()=>{io&&clearTimeout(io)}),a)return;Tc("mousemove",u,t),fi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Yo=!1}if(Tc("blur",m,t),fi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=O6;Tc("keyup",m7,t),fi.push(()=>{t.removeEventListener("keyup",m7)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),fi.push(()=>{Kt.deleteScope("mouseHover")})}}function Kq(){try{fi.forEach(e=>e())}catch{}fi=[],Kt.setScope("all")}function m7(e){Yo=!1}function Tc(e,t,n=window){return n.addEventListener(e,t,{signal:Gq})}function Tg(e,t,n,r){if(r=r||f7(e.rule,n),!r){D.debug("can not find selection part!");return}if(Qq(e,r,t))return;if(O1(r)){D.debug("exclude dom");return}l7(e,r);let i=bc();i&&(i.setupMouseHoverListener=Sg);let o=Pn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=F1(i,e);ci({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{Bd(n.document.documentElement)!==e.state.translationMode&&La(n.document.documentElement,e.state.translationMode),jo(u,l,!0,"hover").then(m=>{if(m&&!s){s=!0;let g=Date.now();Je(x6,g);let p={translation_service:u?.translationService||""};Ue("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function f7(e,t){return Yq(wc,Ec,e,t)}function Yq(e,t,n,r){let a=gC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=pC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:p7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Zq(e,a)}),!0}function Jq(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Zq(e,t){let n=bc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{nc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function _1(e){return!!(e.host&&e.mode)}function g7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||_1(n))return e;for(;n&&n.nodeName!=="BODY"&&!_1(n)&&v4(n,t);){let r=n.parentNode;if(r&&_1(r))break;n=r}return n}function p7(e,t){return e.nodeType===Node.TEXT_NODE||v4(e,t)?g7(e,t):e}function h7(e,t,n){wc=t.clientX,Ec=t.clientY,Tg(e,!0,n),N1(e,!0,n)}async function N1(e,t,n,r){if(!oi(e))return;let a=fC(wc,Ec,e.rule,n);if(!a||D4(a.src)||a.translationStatus==="translating")return;let i=q3(a);if(i&&!t||i&&!r)return;if(i){Vo(a);return}if(!await Ss(e)){zm("image_mouse_hover");return}zo(e,a,!0,"image_mouse_hover")}function Xq(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Tg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Tc("mousedown",i,t),Tc("mouseup",o,t),fi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Ac=[];function U1(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Ac.push(()=>{document.removeEventListener("click",i)})}function b7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Ac.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function wg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Ac.push(()=>{document.removeEventListener("touchstart",r)})}var ic={touchShortcutsOff:()=>{},"multipleClick.2":U1,"multipleClick.3":U1,"multipleClick.4":U1,"slide.left":b7,"slide.right":b7,"fingers.2":wg,"fingers.3":wg,"fingers.4":wg,"fingers.5":wg};async function WT(e,t=window){try{rz();let n=await ln(),r=D0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=j1(e,n,a.command),o=ic[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{nz(a.command,e,t,l)})})}catch(n){D.error(n)}}function j1(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var $q=()=>{y1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},ez=()=>{C1();let e=new CustomEvent(Gr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},tz=()=>{v1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},y7=0,nz=(e,t,n,r)=>{if(!(new Date().getTime()-y7<200)){if(y7=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")$q();else if(e==="touchShortcutsToggleTranslationMask")tz();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")ez();else if(e==="touchShortcutsToggleTranslateTouchElement")h7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};n1(r,t,n,s)}}};function rz(){Ac.forEach(e=>{e()}),Ac=[]}function kc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(ic).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ei.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d(sa,{className:"select",maxWidth:250,items:ei.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let h=g("mouseHoldKey",{key:Ra(f)}),y=ei.includes(o),b=f===o;return o==="Off"&&f===o&&c&&(b=!1),f==="Auto"?h=g("mouseHoldKeyAuto"):f==="Off"?h=g("mouseHoldKeyOff"):f==="OtherCustom"?h=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?h=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(h=g("mouseHoldKeyPressHold")),y||f==="Other"&&(b=!0),{label:h,value:f,selected:b,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(ye,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(ye,{title:r,description:i||""}),d("div",{class:"nav",children:[d(sa,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:b=>{b.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(b.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})}function H1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=da(),{t:u}=O(),l=pt(t),c=cn(l);return l?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ma,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(kc,{onChange:(m,g)=>{n(p=>{let h={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(h.mouseHoverPreferenceKey=m),{...p,generalRule:h}}),g||nt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(az,{setSettings:n,config:l,localConfig:o}),d(eo,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function az({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(kc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||nt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function q1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),u=le(g=>{s&&n(p=>Ui({...p},g))},[s,n]),l=ii(s,t),{t:c}=O(),m=le((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ma,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(iz,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(oz,{t:m,rule:l,updateFloatBallRule:u}),d(sz,{t:m,rule:l,updateFloatBallRule:u}),d(uz,{t:m,rule:l,updateFloatBallRule:u})]})})}function iz({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function oz({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);z(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,h,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(h=>{t.blockUrls=Jt(h,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,h)=>{a(!r),o(p),u(h)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(la,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ua,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function sz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function uz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function z1(){let e=Oe(),[t,n,r,a,i]=e,[o]=da();Xe(t,n);let[s,u]=N(null),{t:l,lang:c}=O();z(()=>{Ze().then(h=>{wn({config:h,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Es(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=D0.filter(h=>{if(h.name==="touch"){let y=Kr(o);return D.debug("isSupportMouseHover",y),!y}else if(h.name==="mouse"){let y=Kr(o);return D.debug("isSupportMouseHover",y),y}else return!0}).map(h=>({name:h.name,shortcuts:h.shortcuts.map(y=>{let b="",v="normal";typeof y=="string"?b=y:(b=y.command,y.type&&(v=y.type));let C="";l(`desc.${b}`)!==`desc.${b}`&&(C=l(`desc.${b}`));let x="";v==="finger"?x=j1(s,t,b):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[b]!==void 0?x=t.generalRule[b]:x=g.generalRule[b]:t?.shortcuts&&t?.shortcuts[b]!==void 0?x=t.shortcuts[b]:x=g.shortcuts[b];let T=l(`browser.${b}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${b}`));let w,E;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[b],E=m.map(k=>{let M={service:k,name:null};return k.startsWith("custom-ai")&&(M.name=s.config.translationServices[k].name),M})),{command:b,type:v,shortcut:x,title:T,description:C,service:w,serviceIdList:E,disabled:!(X(!0)||ms())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):ms()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:h=>{h.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((h,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${h.name}`)}),h.shortcuts.map((b,v)=>lo(kc,{...b,key:`shortcut-${v}`,onChange:(C,S)=>{n(x=>{if(b.type==="finger"){let w={...x.generalRule||{},[b.command]:C||"touchShortcutsOff"};return b.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...x,generalRule:w}}else if(b.type==="mouseHoverHoldKey"){let w={...x.generalRule||{},[b.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...x,generalRule:w}}else if(b.type.startsWith("translateWithCustom")){let T={...x?.shortcuts};if(m.includes(C)){let E=T.translateWithCustomServices||{};return{...x,shortcuts:{...T,translateWithCustomServices:{...E,[b.command]:C}}}}let w={...x,shortcuts:{...T,[b.command]:C}};return C||(w.shortcuts[b.command]=""),w}else{let T={...x?.shortcuts},w={...x,shortcuts:{...T,[b.command]:C}};return C||(w.shortcuts[b.command]=""),w}}),S||nt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function lz(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function V1(){let[e,t,n,r,a]=Oe(),i=lz(),{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return z(()=>{e&&m()},[e]),d(ce,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(g,F+"-config-"+Os()+".txt")}}}function W1(){let e=Rr(),{t,lang:n}=O();return d(ce,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(y8,{}),d("h1",{children:t("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:r=>{r.preventDefault(),ur(`${Q}docs/CHANGELOG/#${e.replace(/\./ig,"")}`)},children:e}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(cz,{}),d(dz,{})]})]}),d("div",{className:"header-navbar-height"})]})}function cz(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:z6,target:"_blank",children:[d(v8,{}),d("span",{children:e("options.navbar.installApp")})]})}function dz(){let{t:e}=O();return d(Pt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:Q6,target:"_blank",children:[d(C8,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function G1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedMangaSites),c=``,m=[...l.map((p,f)=>` ${p.name} ${f!==l.length-1?", ":""} - `),c].join(""),g=oi(u,!0);return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ma,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:bf})+m,children:d("div",{class:"px-6",children:d(v7,{config:u.config,ctx:u})})}),d(v7,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:bf})+"
"+m}}),d(mz,{ctx:u})]})})}function v7({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Te(me),u=ii(t,r),{t:l}=O(),c=le((g,p)=>l("floatBallOptions."+g,p),[]),m=le(g=>{t&&a(p=>Ui({...p},g))},[t,a]);return u?d(ce,{children:d("div",{class:`nav ${n}`,children:[d(ye,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function mz({ctx:e}){let{t}=O();return oi(e,!0)?d(ce,{children:[d(ma,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:yf}),children:d("div",{class:"px-6",children:[d(C7,{ctx:e}),d(x7,{ctx:e,styles:{paddingTop:0}})]})}),d(C7,{ctx:e,className:"image-tools-enable"}),d(x7,{ctx:e,className:"image-tools-enable"}),d(gz,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:yf})}})]}):null}function C7({ctx:e,className:t}){let[n,r,a,i,o]=Te(me),s=e.rule.imageRule,{t:u}=O();return d(ce,{children:d("div",{class:`nav ${t}`,children:[d(ye,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function gz({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Te(me),p=e.config.generalRule.imageRule||{};z(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},b=(v,C,S,x)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(S=>{p.blockToolsUrls=Jt(S,p.blockToolsUrls)}),l(S=>({...S,generalRule:{...S.generalRule,"imageRule.add":{...S.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},h=(v,C,S)=>{r(!n),i(v),s(S)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(la,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:b,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ua,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:h})]})}function x7({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Te(me);return d("div",{class:`nav ${t}`,style:n,children:[d(ye,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function S7(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Mi,n)}catch{}}async function T7(){await S7();let e=document.getElementById("mount");e&&(async()=>{tp(O8);let t=await Ze();t.debug&&D.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ue("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),zi(document,n),ya(d(Qi,{lang:t.interfaceLanguage,children:d(pz,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function pz(e){let t=Io(),{t:n,lang:r}=O(),a=Pr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:oi(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];fz(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(hm,{}),"#services":d(Kh,{}),"#ai":d(Jh,{}),"#mouse_hover":d(H1,{}),"#input":d(Zh,{}),"#shortcuts":d(z1,{}),"#floating":d(q1,{}),"#import_export":d(Rh,{}),"#about":d($h,{}),"#advanced":d(e3,{}),"#developer":d(Xh,{}),"#subtitle":d(a3,{}),"#manga":d(G1,{}),"#contact":d(t3,{}),"#download_config":d(V1,{})};return u||delete m["#manga"],d(rt,{children:[d(W1,{}),d(ce,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),ur(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:ul,onClick:g=>{g.preventDefault(),ur(ul)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),ur(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Cf,onClick:g=>{g.preventDefault(),ur(Cf)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(S4,{value:t,defaultCase:d(hm,{}),cases:m})})]})})]})}function fz(e){let t=xe(0),n=xe(0),r=xe(),a=le(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await c5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);z(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),z(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}T7();})(); + `),c].join(""),g=oi(u,!0);return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ma,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:bf})+m,children:d("div",{class:"px-6",children:d(v7,{config:u.config,ctx:u})})}),d(v7,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:bf})+"
"+m}}),d(mz,{ctx:u})]})})}function v7({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Te(me),u=ii(t,r),{t:l}=O(),c=le((g,p)=>l("floatBallOptions."+g,p),[]),m=le(g=>{t&&a(p=>Ui({...p},g))},[t,a]);return u?d(ce,{children:d("div",{class:`nav ${n}`,children:[d(ye,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function mz({ctx:e}){let{t}=O();return oi(e,!0)?d(ce,{children:[d(ma,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:yf}),children:d("div",{class:"px-6",children:[d(C7,{ctx:e}),d(x7,{ctx:e,styles:{paddingTop:0}})]})}),d(C7,{ctx:e,className:"image-tools-enable"}),d(x7,{ctx:e,className:"image-tools-enable"}),d(gz,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:yf})}})]}):null}function C7({ctx:e,className:t}){let[n,r,a,i,o]=Te(me),s=e.rule.imageRule,{t:u}=O();return d(ce,{children:d("div",{class:`nav ${t}`,children:[d(ye,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function gz({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Te(me),p=e.config.generalRule.imageRule||{};z(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},h=(v,C,S,x)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(S=>{p.blockToolsUrls=Jt(S,p.blockToolsUrls)}),l(S=>({...S,generalRule:{...S.generalRule,"imageRule.add":{...S.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},b=(v,C,S)=>{r(!n),i(v),s(S)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(la,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:h,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ua,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:b})]})}function x7({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Te(me);return d("div",{class:`nav ${t}`,style:n,children:[d(ye,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function S7(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Mi,n)}catch{}}async function T7(){await S7();let e=document.getElementById("mount");e&&(async()=>{tp(O8);let t=await Ze();t.debug&&D.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ue("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),zi(document,n),ya(d(Qi,{lang:t.interfaceLanguage,children:d(pz,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function pz(e){let t=Io(),{t:n,lang:r}=O(),a=Rr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:oi(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];fz(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(hm,{}),"#services":d(Kh,{}),"#ai":d(Jh,{}),"#mouse_hover":d(H1,{}),"#input":d(Zh,{}),"#shortcuts":d(z1,{}),"#floating":d(q1,{}),"#import_export":d(Rh,{}),"#about":d($h,{}),"#advanced":d(e3,{}),"#developer":d(Xh,{}),"#subtitle":d(a3,{}),"#manga":d(G1,{}),"#contact":d(t3,{}),"#download_config":d(V1,{})};return u||delete m["#manga"],d(rt,{children:[d(W1,{}),d(ce,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),ur(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:ul,onClick:g=>{g.preventDefault(),ur(ul)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),ur(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Cf,onClick:g=>{g.preventDefault(),ur(Cf)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(S4,{value:t,defaultCase:d(hm,{}),cases:m})})]})})]})}function fz(e){let t=xe(0),n=xe(0),r=xe(),a=le(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await c5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);z(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),z(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}T7();})(); /*! Bundled license information: js-yaml/dist/js-yaml.mjs: diff --git a/dist/chrome/popup.js b/dist/chrome/popup.js index ce508cd..ae92300 100644 --- a/dist/chrome/popup.js +++ b/dist/chrome/popup.js @@ -1,4 +1,4 @@ -(()=>{var eC=Object.defineProperty;var tC=(e,t)=>{for(var n in t)eC(e,n,{get:t[n],enumerable:!0})};var A={BUILD_TIME:"2024-11-22T10:30:05.000Z",VERSION:"1.11.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var eC=Object.defineProperty;var tC=(e,t)=>{for(var n in t)eC(e,n,{get:t[n],enumerable:!0})};var A={BUILD_TIME:"2024-11-25T09:06:11.000Z",VERSION:"1.11.7",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,23 +5447,23 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var rC=Object.create,Bd=Object.defineProperty,aC=Object.getOwnPropertyDescriptor,y4=Object.getOwnPropertyNames,iC=Object.getPrototypeOf,oC=Object.prototype.hasOwnProperty,sC=(e,t)=>function(){return t||(0,e[y4(e)[0]])((t={exports:{}}).exports,t),t.exports},uC=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Fd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y4(t))!oC.call(e,a)&&a!==n&&Bd(e,a,{get:()=>t[a],enumerable:!(r=aC(t,a))||r.enumerable});return e},lC=(e,t,n)=>(Fd(e,t,"default"),n&&Fd(n,t,"default")),x4=(e,t,n)=>(n=e!=null?rC(iC(e)):{},Fd(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),v4=sC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(w,E=void 0){super(E),this.createItem=w}get(w){return this.has(w)||this.set(w,this.createItem(w)),super.get(w)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,w)=>(...E)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):w.singleCallbackArg||E.length<=1&&w.singleCallbackArg!==!1?C.resolve(E[0]):C.resolve(E)},c=C=>C==1?"argument":"arguments",d=(C,w)=>function(k,...P){if(P.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${P.length}`);return new Promise((F,M)=>{if(w.fallbackToNoCallback)try{k[C](...P,l({resolve:F,reject:M},w))}catch{k[C](...P),w.fallbackToNoCallback=!1,w.noCallback=!0,F()}else w.noCallback?(k[C](...P),F()):k[C](...P,l({resolve:F,reject:M},w))})},m=(C,w,E)=>new Proxy(w,{apply(k,P,F){return E.call(P,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,w={},E={})=>{let k=Object.create(null),P={has(M,I){return I in C||I in k},get(M,I,L){if(I in k)return k[I];if(!(I in C))return;let N=C[I];if(typeof N=="function")if(typeof w[I]=="function")N=m(C,C[I],w[I]);else if(p(E,I)){let B=d(I,E[I]);N=m(C,C[I],B)}else N=N.bind(C);else if(typeof N=="object"&&N!==null&&(p(w,I)||p(E,I)))N=g(N,w[I],E[I]);else if(p(E,"*"))N=g(N,w[I],E["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(B){C[I]=B}}),N;return k[I]=N,N},set(M,I,L,N){return I in k?k[I]=L:C[I]=L,!0},defineProperty(M,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(M,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,P)},h=C=>({addListener(w,E,...k){w.addListener(C.get(E),...k)},hasListener(w,E){return w.hasListener(C.get(E))},removeListener(w,E){w.removeListener(C.get(E))}}),b=new s(C=>typeof C!="function"?C:function(E){let k=g(E,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(E,k,P){let F=!1,M,I=new Promise(j=>{M=function(G){F=!0,j(G)}}),L;try{L=C(E,k,M)}catch(j){L=Promise.reject(j)}let N=L!==!0&&u(L);if(L!==!0&&!N&&!F)return!1;let B=j=>{j.then(G=>{P(G)},G=>{let z;G&&(G instanceof Error||typeof G.message=="string")?z=G.message:z="An unexpected error occurred",P({__mozWebExtensionPolyfillReject__:!0,message:z})}).catch(G=>{})};return B(N?L:I),!0}),y=({reject:C,resolve:w},E)=>{i.runtime.lastError?i.runtime.lastError.message===r?w():C(new Error(i.runtime.lastError.message)):E&&E.__mozWebExtensionPolyfillReject__?C(new Error(E.message)):w(E)},x=(C,w,E,...k)=>{if(k.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((P,F)=>{let M=y.bind(null,{resolve:P,reject:F});k.push(M),E.sendMessage(...k)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:x.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:x.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},T={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":T},services:{"*":T},websites:{"*":T}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),S4={};uC(S4,{default:()=>el});var cC=x4(v4());lC(S4,x4(v4()));var{default:b4,...dC}=cC,el=b4!==void 0?b4:dC;globalThis.immersiveTranslateBrowserAPI=el;var il,Fe,A4,mC,gs,T4,k4,nl={},D4=[],pC=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ma(e,t){for(var n in t)e[n]=t[n];return e}function L4(e){var t=e.parentNode;t&&t.removeChild(e)}function fs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?il.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return tl(e,o,r,a,null)}function tl(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++A4};return a==null&&Fe.vnode!=null&&Fe.vnode(i),i}function Gt(e){return e.children}function hi(e,t){this.props=e,this.context=t}function Xi(e,t){if(t==null)return e.__?Xi(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?tl(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:ol}),n.__[e]}function V(e){return hs=1,bC(G4,e)}function bC(e,t,n){var r=bs(eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):G4(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Lt,!Lt.u)){Lt.u=!0;var a=Lt.shouldComponentUpdate;Lt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function re(e,t){var n=bs(eo++,3);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__H.__h.push(n))}function ys(e,t){var n=bs(eo++,4);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__h.push(n))}function Te(e){return hs=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=bs(eo++,7);return jd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return hs=8,ye(function(){return e},t)}function ul(e){var t=Lt.context[e.__c],n=bs(eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Lt)),t.props.value):e.__}function yC(){for(var e;e=W4.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sl),e.__H.__h.forEach(Nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Lt=null,N4&&N4(e)},Fe.__r=function(e){j4&&j4(e),eo=0;var t=(Lt=e.__c).__H;t&&(Od===Lt?(t.__h=[],Lt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ol,n.__N=n.i=void 0})):(t.__h.forEach(sl),t.__h.forEach(Nd),t.__h=[])),Od=Lt},Fe.diffed=function(e){U4&&U4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(W4.push(t)!==1&&O4===Fe.requestAnimationFrame||((O4=Fe.requestAnimationFrame)||xC)(yC)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ol&&(n.__=n.__V),n.i=void 0,n.__V=ol})),Od=Lt=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(sl),n.__h=n.__h.filter(function(r){return!r.__||Nd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Fe.__e(r,n.__v)}}),H4&&H4(e,t)},Fe.unmount=function(e){q4&&q4(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{sl(r)}catch(a){t=a}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var z4=typeof requestAnimationFrame=="function";function xC(e){var t,n=function(){clearTimeout(r),z4&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);z4&&(t=requestAnimationFrame(n))}function sl(e){var t=Lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Lt=t}function Nd(e){var t=Lt;e.__c=e.__(),Lt=t}function jd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function G4(e,t){return typeof t=="function"?t(e):t}function ll(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function Le(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():A}var xe=Le();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):xe.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function ca(){return xe.PROD==="1"}function Ud(){return xe.PROD_API==="1"}function V4(){return xe.HAS_CSP_ERROR=="1"}function lt(){if(xe.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function cl(){return typeof Deno<"u"}var jO=Le().PROD==="1",to=Le().PROD!=="1";function dl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function K4(){return xe.IMMERSIVE_TRANSLATE_JSSDK==="1"}var Hd=/iPhone/i,Y4=/iPod/i,Q4=/iPad/i,J4=/\biOS-universal(?:.+)Mac\b/i,qd=/\bAndroid(?:.+)Mobile\b/i,Z4=/Android/i,no=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ml=/Silk/i,da=/Windows Phone/i,X4=/\bWindows(?:.+)ARM\b/i,$4=/BlackBerry/i,e3=/BB10/i,t3=/Opera Mini/i,n3=/\b(CriOS|Chrome)(?:.+)Mobile/i,r3=/Mobile(?:.+)Firefox\b/i,a3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function vC(e){return t=>t.test(e)}function We(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=vC(n),i={apple:{phone:a(Hd)&&!a(da),ipod:a(Y4),tablet:!a(Hd)&&(a(Q4)||a3(t))&&!a(da),universal:a(J4),device:(a(Hd)||a(Y4)||a(Q4)||a(J4)||a3(t))&&!a(da)},amazon:{phone:a(no),tablet:!a(no)&&a(ml),device:a(no)||a(ml)},android:{phone:!a(da)&&a(no)||!a(da)&&a(qd),tablet:!a(da)&&!a(no)&&!a(qd)&&(a(ml)||a(Z4)),device:!a(da)&&(a(no)||a(ml)||a(qd)||a(Z4))||a(/\bokhttp\b/i)},windows:{phone:a(da),tablet:a(X4),device:a(da)||a(X4)},other:{blackberry:a($4),blackberry10:a(e3),opera:a(t3),firefox:a(r3),chrome:a(n3),device:a($4)||a(e3)||a(t3)||a(r3)||a(n3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zd="DENO",pl="CHROME",gl="FIREFOX";function i3(e){let t=pl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=gl:/deno/i.test(n)&&(t=zd)}catch{}return e===pl&&t===pl||e===gl&&t===gl||e===zd&&t===zd}function o3(){return i3(pl)}function s3(){return typeof Deno<"u"}function Gn(){return Le().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:i3(gl)}function Vn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function xs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var u3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},l3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:u3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:u3,query:()=>{},sendMessage:()=>{}}};var ee;s3()?ee=l3:ee=globalThis.immersiveTranslateBrowserAPI;var J="immersiveTranslate",bi="Immersive Translate",_="immersive-translate";var g3="pdf/index.html";var $t="immersivetranslate.com",SC=`https://config.${$t}/`,rN=`https://app.${$t}/`,ie=ca()||Ud()?`https://${$t}/`:`https://test.${$t}/`,fl=`https://dash.${$t}/`,it=ca()||Ud()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,f3=`https://github.com/${_}/${_}/`,h3=`https://s.${$t}/`,aN=`https://onboarding.${$t}/`,b3=J+"DeeplGlobalState",Wd=J+"BingGlobalState",Gd=J+"YandexGlobalState",Vd=J+"BaiduQianfanGlobalConfigStorageKey",y3=J+"SiliconCloudGlobalConfigStorageKey",x3=J+"ZhipuGlobalConfigStorageKey";var Kd=J+"GoogleAccessToken",v3=J+"AuthFlow",S3=_+"-config-latest.json",TC=J+"AuthState",hl=J+"IframeMessage",iN=J+"WaitForRateLimit",T3=J+"DocumentMessageAsk",It=J+"DocumentMessageTellThirdParty",mn=J+"showError",yi=J+"showModal",bl=J+"showToast",C3=J+"DocumentMessageThirdPartyTell",w3=J+"DocumentMessageEventUpload",oN=J+"DocumentMessageTypeStopJsSDK",CC=J+"DocumentMessageHandler",yl=J+"DocumentSetFloatBallActive",xl=`${J}Share`,vl=`${J}ShowFloatBallGuide`,ro=J+"DocumentMessageTempEnableSubtitleChanged",vs=`${J}ToggleMouseHoverTranslateDirectly`,E3=`${J}ReqDraft`,A3=`${J}ResDraft`,wC=`${J}Container`,k3=`${J}SpecifiedContainer`,Sl="buildinConfig",Ss="localConfig",Yd="openOptionsPage",D3="translateMangaMenuId",Qd="openAboutPage";var Jd="openEbookViewer",Zd="openEbookBuilder";var xi=`${J}PageTranslatedStatus`,Ts=`${J}MangaTranslatedStatus`,sN=`${J}PageUrlChanged`,br=`${J}ReceiveCommand`,L3=J+"LastUseMouseHoverTime",Cs=J+"LastUseInputTime",sr=J+"LastUseManualTranslatePageTime",ws=`${J}PopupReceiveMessage`,vi=J+"DocumentMessageEventTogglePopup",Es=`${SC}default_config.json`,uN=`${J}Mark`,Kn=`${J}Root`,P3=`${J}Walked`,lN=`data-${_}-walked`,M3=`${J}Paragraph`,R3=`data-${_}-paragraph`,ao=`data-${_}-translation-element-mark`,F3=`${J}TranslationElementMark`,cN=`${J}TranslatedMark`,Xd=`${_}-input-injected-css`,B3=`${J}LoadingId`,$d=`data-${_}-loading-id`,I3=`${J}ErrorId`,Tl=`data-${_}-error-id`,EC=`${J}AtomicBlockMark`,_3=`${J}ExcludeMark`,dN=`data-${_}-exclude-mark`,AC=`${J}StayOriginalMark`,mN=`${J}PreWhitespaceMark`,Cl=`${J}InlineMark`,O3=`${J}BlockMark`,pN=`${J}Left`,gN=`${J}Right`,fN=`${J}Width`,hN=`${J}Height`,bN=`${J}Top`,yN=`${J}FontSize`,N3="lastRunTime";var xN=`${J}GlobalStyleMark`,io=["@","#"],wl=" --- ",j3=` -`,Pt=`${_}-target-wrapper`,vN=`${_}-pdf-target-container`,El=`${_}-target-inner`,SN=`${_}-source-wrapper`,em=`${_}-target-translation-block-wrapper`,TN=`${_}-root-translation-theme`,oo=`${J}RootTranslationTheme`,U3=`${_}-target-translation-vertical-block-wrapper`,CN=`${_}-target-translation-pdf-block-wrapper`,H3=`${_}-target-translation-pre-whitespace`,tm=`${_}-target-translation-inline-wrapper`;var q3={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var z3=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],W3=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",fl,fl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",wN=ie+"docs/communities/",EN=f3+"issues/1809",AN=f3+"issues/1179",Al={type:J+"ChildFrameToRootFrameIdentifier"},nm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],As=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],G3=["ctrl","alt","shift","cmd","command","option","control"];var kl=ca()?fl+"#general":"http://localhost:8000/dist/userscript/options/#general",rm="user_from_plugin",dt="user_info",Dl=ie+"accounts/login?from=plugin",V3=fl+"#general",kN=ie+"accounts/login?from=plugin&return_url="+encodeURIComponent(V3),K3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Y3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",ks=ie+"profile/",Ll=ie+"auth/pricing/",An=ie+"pricing/",kC=ie+"download/",DC=ie+"topup?type=open_ai&",LC=ie+"topup?type=deepl&",Q3=ie+"topup?type=comics&",PC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",J3=An+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",DN=kC+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",LN=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Pl=An+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",am=An+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",PN=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Z3=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",X3=DC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",$3=LC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",e1=ie+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",MC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",im=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",MN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",RN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",FN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",t1=ie+"docs/usage/",BN=ie+"docs/communities/",Ds=Le().TRANSLATE_FILE_URL,IN=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",n1=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",r1=`${Ds}download-subtitle/`,a1=`${Ds}pdf-pro/`,i1=`${Ds}text/`,Si=["deepl","openai","gemini","claude"],RC="G-BHWL0KMJB8",FC="7pr-olTJR6GKAjIW48UD0Q",c3="G-MKMD9LWFTR",d3="sitc4WmvShWYwfU0dANM3Q",m3="G-V5H2F5MJFJ",p3="UBjpGOLISEaY5LVXNj3WvQ";function Ml(){return K4()?[`https://www.google-analytics.com/mp/collect?measurement_id=${RC}&api_secret=${FC}`]:ca?[`https://www.google-analytics.com/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${m3}&api_secret=${p3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${m3}&api_secret=${p3}`]}var Ls=`https://analytics.${$t}/collect`,_N=`${ie}activities/components/image-pro`;var o1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",s1="0VmM83i2D1ICuYBf";function u1(e){let t=ee.runtime.getURL(g3),n=new URL(t);return e&&(e.startsWith("http")||!Gn())&&n.searchParams.set("file",e),n.href}var Ti=J+"CacheKey_";function Ci(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BC(){let e=ee.storage.local.refresh;e&&e()}function om(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ti)).filter(r=>r!==Ti+dt);if(n.length>0)return ee.storage.local.remove(n)}}var mt={get:Ci,set:wi,getExpired:om,setExpired:sm,remove:um,clear:lm,refresh:BC};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function l1(e){if(e){let t=new Date(e.createTime),n=IC(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function IC(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ps(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ht(t)}function so(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Rl(e,t){let n=so(),r=setTimeout(()=>n.reject(new cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function pt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var c1=class{#e=0;#t=[];#n=[];#r=so();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tuw,bgBlue:()=>mw,bgBrightBlack:()=>hw,bgBrightBlue:()=>vw,bgBrightCyan:()=>Tw,bgBrightGreen:()=>yw,bgBrightMagenta:()=>Sw,bgBrightRed:()=>bw,bgBrightWhite:()=>Cw,bgBrightYellow:()=>xw,bgCyan:()=>gw,bgGreen:()=>cw,bgMagenta:()=>pw,bgRed:()=>lw,bgRgb24:()=>kw,bgRgb8:()=>Ew,bgWhite:()=>fw,bgYellow:()=>dw,black:()=>VC,blue:()=>JC,bold:()=>jC,brightBlack:()=>p1,brightBlue:()=>aw,brightCyan:()=>ow,brightGreen:()=>nw,brightMagenta:()=>iw,brightRed:()=>tw,brightWhite:()=>sw,brightYellow:()=>rw,cyan:()=>XC,dim:()=>UC,getColorEnabled:()=>OC,gray:()=>ew,green:()=>YC,hidden:()=>WC,inverse:()=>zC,italic:()=>HC,magenta:()=>ZC,red:()=>KC,reset:()=>NC,rgb24:()=>Aw,rgb8:()=>ww,setColorEnabled:()=>_C,strikethrough:()=>GC,stripColor:()=>Lw,underline:()=>qC,white:()=>$C,yellow:()=>QC});var{Deno:d1}=globalThis,m1=typeof d1?.noColor=="boolean"?d1.noColor:!0,dm=!m1;function _C(e){m1||(dm=e)}function OC(){return dm}function Me(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Re(e,t){return dm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function NC(e){return Re(e,Me([0],0))}function jC(e){return Re(e,Me([1],22))}function UC(e){return Re(e,Me([2],22))}function HC(e){return Re(e,Me([3],23))}function qC(e){return Re(e,Me([4],24))}function zC(e){return Re(e,Me([7],27))}function WC(e){return Re(e,Me([8],28))}function GC(e){return Re(e,Me([9],29))}function VC(e){return Re(e,Me([30],39))}function KC(e){return Re(e,Me([31],39))}function YC(e){return Re(e,Me([32],39))}function QC(e){return Re(e,Me([33],39))}function JC(e){return Re(e,Me([34],39))}function ZC(e){return Re(e,Me([35],39))}function XC(e){return Re(e,Me([36],39))}function $C(e){return Re(e,Me([37],39))}function ew(e){return p1(e)}function p1(e){return Re(e,Me([90],39))}function tw(e){return Re(e,Me([91],39))}function nw(e){return Re(e,Me([92],39))}function rw(e){return Re(e,Me([93],39))}function aw(e){return Re(e,Me([94],39))}function iw(e){return Re(e,Me([95],39))}function ow(e){return Re(e,Me([96],39))}function sw(e){return Re(e,Me([97],39))}function uw(e){return Re(e,Me([40],49))}function lw(e){return Re(e,Me([41],49))}function cw(e){return Re(e,Me([42],49))}function dw(e){return Re(e,Me([43],49))}function mw(e){return Re(e,Me([44],49))}function pw(e){return Re(e,Me([45],49))}function gw(e){return Re(e,Me([46],49))}function fw(e){return Re(e,Me([47],49))}function hw(e){return Re(e,Me([100],49))}function bw(e){return Re(e,Me([101],49))}function yw(e){return Re(e,Me([102],49))}function xw(e){return Re(e,Me([103],49))}function vw(e){return Re(e,Me([104],49))}function Sw(e){return Re(e,Me([105],49))}function Tw(e){return Re(e,Me([106],49))}function Cw(e){return Re(e,Me([107],49))}function Fa(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function ww(e,t){return Re(e,Me([38,5,Fa(t)],39))}function Ew(e,t){return Re(e,Me([48,5,Fa(t)],49))}function Aw(e,t){return typeof t=="number"?Re(e,Me([38,2,t>>16&255,t>>8&255,t&255],39)):Re(e,Me([38,2,Fa(t.r),Fa(t.g),Fa(t.b)],39))}function kw(e,t){return typeof t=="number"?Re(e,Me([48,2,t>>16&255,t>>8&255,t&255],49)):Re(e,Me([48,2,Fa(t.r),Fa(t.g),Fa(t.b)],49))}var Dw=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Lw(e){return e.replace(Dw,"")}var mm=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Pw={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function pm(e,t){let n={...Pw,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new mm(a,n.maxAttempts)}var ma=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function gm(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2|t[r]>>6],n+=ma[t[r]&63];return r===a+1&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2],n+="="),n}var Mw=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Fw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0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DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\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C80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,fm={Space_Separator:Mw,ID_Start:Rw,ID_Continue:Fw},_t={isSpaceSeparator(e){return typeof e=="string"&&fm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||fm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||fm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},bm,kn,ga,Bl,Ba,yr,en,vm,Rs,Bw=function(e,t){bm=String(e),kn="start",ga=[],Bl=0,Ba=1,yr=0,en=void 0,vm=void 0,Rs=void 0;do en=Iw(),Nw[kn]();while(en.type!=="eof");return typeof t=="function"?ym({"":Rs},"",t):Rs};function ym(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;afunction(){return t||(0,e[y4(e)[0]])((t={exports:{}}).exports,t),t.exports},uC=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Fd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y4(t))!oC.call(e,a)&&a!==n&&Bd(e,a,{get:()=>t[a],enumerable:!(r=aC(t,a))||r.enumerable});return e},lC=(e,t,n)=>(Fd(e,t,"default"),n&&Fd(n,t,"default")),v4=(e,t,n)=>(n=e!=null?rC(iC(e)):{},Fd(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),x4=sC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(w,E=void 0){super(E),this.createItem=w}get(w){return this.has(w)||this.set(w,this.createItem(w)),super.get(w)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,w)=>(...E)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):w.singleCallbackArg||E.length<=1&&w.singleCallbackArg!==!1?C.resolve(E[0]):C.resolve(E)},c=C=>C==1?"argument":"arguments",d=(C,w)=>function(k,...P){if(P.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${P.length}`);return new Promise((F,M)=>{if(w.fallbackToNoCallback)try{k[C](...P,l({resolve:F,reject:M},w))}catch{k[C](...P),w.fallbackToNoCallback=!1,w.noCallback=!0,F()}else w.noCallback?(k[C](...P),F()):k[C](...P,l({resolve:F,reject:M},w))})},m=(C,w,E)=>new Proxy(w,{apply(k,P,F){return E.call(P,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,w={},E={})=>{let k=Object.create(null),P={has(M,I){return I in C||I in k},get(M,I,L){if(I in k)return k[I];if(!(I in C))return;let N=C[I];if(typeof N=="function")if(typeof w[I]=="function")N=m(C,C[I],w[I]);else if(p(E,I)){let B=d(I,E[I]);N=m(C,C[I],B)}else N=N.bind(C);else if(typeof N=="object"&&N!==null&&(p(w,I)||p(E,I)))N=g(N,w[I],E[I]);else if(p(E,"*"))N=g(N,w[I],E["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(B){C[I]=B}}),N;return k[I]=N,N},set(M,I,L,N){return I in k?k[I]=L:C[I]=L,!0},defineProperty(M,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(M,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,P)},h=C=>({addListener(w,E,...k){w.addListener(C.get(E),...k)},hasListener(w,E){return w.hasListener(C.get(E))},removeListener(w,E){w.removeListener(C.get(E))}}),b=new s(C=>typeof C!="function"?C:function(E){let k=g(E,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(E,k,P){let F=!1,M,I=new Promise(j=>{M=function(G){F=!0,j(G)}}),L;try{L=C(E,k,M)}catch(j){L=Promise.reject(j)}let N=L!==!0&&u(L);if(L!==!0&&!N&&!F)return!1;let B=j=>{j.then(G=>{P(G)},G=>{let z;G&&(G instanceof Error||typeof G.message=="string")?z=G.message:z="An unexpected error occurred",P({__mozWebExtensionPolyfillReject__:!0,message:z})}).catch(G=>{})};return B(N?L:I),!0}),y=({reject:C,resolve:w},E)=>{i.runtime.lastError?i.runtime.lastError.message===r?w():C(new Error(i.runtime.lastError.message)):E&&E.__mozWebExtensionPolyfillReject__?C(new Error(E.message)):w(E)},v=(C,w,E,...k)=>{if(k.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((P,F)=>{let M=y.bind(null,{resolve:P,reject:F});k.push(M),E.sendMessage(...k)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},T={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":T},services:{"*":T},websites:{"*":T}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),S4={};uC(S4,{default:()=>el});var cC=v4(x4());lC(S4,v4(x4()));var{default:b4,...dC}=cC,el=b4!==void 0?b4:dC;globalThis.immersiveTranslateBrowserAPI=el;var il,Fe,A4,mC,gs,T4,k4,nl={},D4=[],pC=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ma(e,t){for(var n in t)e[n]=t[n];return e}function L4(e){var t=e.parentNode;t&&t.removeChild(e)}function fs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?il.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return tl(e,o,r,a,null)}function tl(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++A4};return a==null&&Fe.vnode!=null&&Fe.vnode(i),i}function Gt(e){return e.children}function hi(e,t){this.props=e,this.context=t}function Xi(e,t){if(t==null)return e.__?Xi(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?tl(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:ol}),n.__[e]}function V(e){return hs=1,bC(G4,e)}function bC(e,t,n){var r=bs(eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):G4(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Lt,!Lt.u)){Lt.u=!0;var a=Lt.shouldComponentUpdate;Lt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function re(e,t){var n=bs(eo++,3);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__H.__h.push(n))}function ys(e,t){var n=bs(eo++,4);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__h.push(n))}function Te(e){return hs=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=bs(eo++,7);return jd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return hs=8,ye(function(){return e},t)}function ul(e){var t=Lt.context[e.__c],n=bs(eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Lt)),t.props.value):e.__}function yC(){for(var e;e=W4.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sl),e.__H.__h.forEach(Nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Lt=null,N4&&N4(e)},Fe.__r=function(e){j4&&j4(e),eo=0;var t=(Lt=e.__c).__H;t&&(Od===Lt?(t.__h=[],Lt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ol,n.__N=n.i=void 0})):(t.__h.forEach(sl),t.__h.forEach(Nd),t.__h=[])),Od=Lt},Fe.diffed=function(e){U4&&U4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(W4.push(t)!==1&&O4===Fe.requestAnimationFrame||((O4=Fe.requestAnimationFrame)||vC)(yC)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ol&&(n.__=n.__V),n.i=void 0,n.__V=ol})),Od=Lt=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(sl),n.__h=n.__h.filter(function(r){return!r.__||Nd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Fe.__e(r,n.__v)}}),H4&&H4(e,t)},Fe.unmount=function(e){q4&&q4(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{sl(r)}catch(a){t=a}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var z4=typeof requestAnimationFrame=="function";function vC(e){var t,n=function(){clearTimeout(r),z4&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);z4&&(t=requestAnimationFrame(n))}function sl(e){var t=Lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Lt=t}function Nd(e){var t=Lt;e.__c=e.__(),Lt=t}function jd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function G4(e,t){return typeof t=="function"?t(e):t}function ll(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function Le(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():A}var ve=Le();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):ve.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function ca(){return ve.PROD==="1"}function Ud(){return ve.PROD_API==="1"}function V4(){return ve.HAS_CSP_ERROR=="1"}function lt(){if(ve.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function cl(){return typeof Deno<"u"}var jO=Le().PROD==="1",to=Le().PROD!=="1";function dl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function K4(){return ve.IMMERSIVE_TRANSLATE_JSSDK==="1"}var Hd=/iPhone/i,Y4=/iPod/i,Q4=/iPad/i,J4=/\biOS-universal(?:.+)Mac\b/i,qd=/\bAndroid(?:.+)Mobile\b/i,Z4=/Android/i,no=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ml=/Silk/i,da=/Windows Phone/i,X4=/\bWindows(?:.+)ARM\b/i,$4=/BlackBerry/i,e3=/BB10/i,t3=/Opera Mini/i,n3=/\b(CriOS|Chrome)(?:.+)Mobile/i,r3=/Mobile(?:.+)Firefox\b/i,a3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function xC(e){return t=>t.test(e)}function We(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=xC(n),i={apple:{phone:a(Hd)&&!a(da),ipod:a(Y4),tablet:!a(Hd)&&(a(Q4)||a3(t))&&!a(da),universal:a(J4),device:(a(Hd)||a(Y4)||a(Q4)||a(J4)||a3(t))&&!a(da)},amazon:{phone:a(no),tablet:!a(no)&&a(ml),device:a(no)||a(ml)},android:{phone:!a(da)&&a(no)||!a(da)&&a(qd),tablet:!a(da)&&!a(no)&&!a(qd)&&(a(ml)||a(Z4)),device:!a(da)&&(a(no)||a(ml)||a(qd)||a(Z4))||a(/\bokhttp\b/i)},windows:{phone:a(da),tablet:a(X4),device:a(da)||a(X4)},other:{blackberry:a($4),blackberry10:a(e3),opera:a(t3),firefox:a(r3),chrome:a(n3),device:a($4)||a(e3)||a(t3)||a(r3)||a(n3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zd="DENO",pl="CHROME",gl="FIREFOX";function i3(e){let t=pl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=gl:/deno/i.test(n)&&(t=zd)}catch{}return e===pl&&t===pl||e===gl&&t===gl||e===zd&&t===zd}function o3(){return i3(pl)}function s3(){return typeof Deno<"u"}function Vn(){return Le().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:i3(gl)}function Kn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function vs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var u3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},l3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:u3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:u3,query:()=>{},sendMessage:()=>{}}};var ee;s3()?ee=l3:ee=globalThis.immersiveTranslateBrowserAPI;var J="immersiveTranslate",bi="Immersive Translate",_="immersive-translate";var g3="pdf/index.html";var $t="immersivetranslate.com",SC=`https://config.${$t}/`,rN=`https://app.${$t}/`,ie=ca()||Ud()?`https://${$t}/`:`https://test.${$t}/`,fl=`https://dash.${$t}/`,it=ca()||Ud()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,f3=`https://github.com/${_}/${_}/`,h3=`https://s.${$t}/`,aN=`https://onboarding.${$t}/`,b3=J+"DeeplGlobalState",Wd=J+"BingGlobalState",Gd=J+"YandexGlobalState",Vd=J+"BaiduQianfanGlobalConfigStorageKey",y3=J+"SiliconCloudGlobalConfigStorageKey",v3=J+"ZhipuGlobalConfigStorageKey";var Kd=J+"GoogleAccessToken",x3=J+"AuthFlow",S3=_+"-config-latest.json",TC=J+"AuthState",hl=J+"IframeMessage",iN=J+"WaitForRateLimit",T3=J+"DocumentMessageAsk",It=J+"DocumentMessageTellThirdParty",mn=J+"showError",yi=J+"showModal",bl=J+"showToast",C3=J+"DocumentMessageThirdPartyTell",w3=J+"DocumentMessageEventUpload",oN=J+"DocumentMessageTypeStopJsSDK",CC=J+"DocumentMessageHandler",yl=J+"DocumentSetFloatBallActive",vl=`${J}Share`,xl=`${J}ShowFloatBallGuide`,ro=J+"DocumentMessageTempEnableSubtitleChanged",xs=`${J}ToggleMouseHoverTranslateDirectly`,E3=`${J}ReqDraft`,A3=`${J}ResDraft`,wC=`${J}Container`,k3=`${J}SpecifiedContainer`,Sl="buildinConfig",Ss="localConfig",Yd="openOptionsPage",D3="translateMangaMenuId",Qd="openAboutPage";var Jd="openEbookViewer",Zd="openEbookBuilder";var vi=`${J}PageTranslatedStatus`,Ts=`${J}MangaTranslatedStatus`,sN=`${J}PageUrlChanged`,br=`${J}ReceiveCommand`,L3=J+"LastUseMouseHoverTime",Cs=J+"LastUseInputTime",ur=J+"LastUseManualTranslatePageTime",ws=`${J}PopupReceiveMessage`,xi=J+"DocumentMessageEventTogglePopup",Es=`${SC}default_config.json`,uN=`${J}Mark`,Yn=`${J}Root`,P3=`${J}Walked`,lN=`data-${_}-walked`,M3=`${J}Paragraph`,R3=`data-${_}-paragraph`,ao=`data-${_}-translation-element-mark`,F3=`${J}TranslationElementMark`,cN=`${J}TranslatedMark`,Xd=`${_}-input-injected-css`,B3=`${J}LoadingId`,$d=`data-${_}-loading-id`,I3=`${J}ErrorId`,Tl=`data-${_}-error-id`,EC=`${J}AtomicBlockMark`,_3=`${J}ExcludeMark`,dN=`data-${_}-exclude-mark`,AC=`${J}StayOriginalMark`,mN=`${J}PreWhitespaceMark`,Cl=`${J}InlineMark`,O3=`${J}BlockMark`,pN=`${J}Left`,gN=`${J}Right`,fN=`${J}Width`,hN=`${J}Height`,bN=`${J}Top`,yN=`${J}FontSize`,N3="lastRunTime";var vN=`${J}GlobalStyleMark`,io=["@","#"],wl=" --- ",j3=` +`,Pt=`${_}-target-wrapper`,xN=`${_}-pdf-target-container`,El=`${_}-target-inner`,SN=`${_}-source-wrapper`,em=`${_}-target-translation-block-wrapper`,TN=`${_}-root-translation-theme`,oo=`${J}RootTranslationTheme`,U3=`${_}-target-translation-vertical-block-wrapper`,CN=`${_}-target-translation-pdf-block-wrapper`,H3=`${_}-target-translation-pre-whitespace`,tm=`${_}-target-translation-inline-wrapper`;var q3={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var z3=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],W3=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",fl,fl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",wN=ie+"docs/communities/",EN=f3+"issues/1809",AN=f3+"issues/1179",Al={type:J+"ChildFrameToRootFrameIdentifier"},nm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],As=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],G3=["ctrl","alt","shift","cmd","command","option","control"];var kl=ca()?fl+"#general":"http://localhost:8000/dist/userscript/options/#general",rm="user_from_plugin",dt="user_info",Dl=ie+"accounts/login?from=plugin",V3=fl+"#general",kN=ie+"accounts/login?from=plugin&return_url="+encodeURIComponent(V3),K3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Y3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",ks=ie+"profile/",Ll=ie+"auth/pricing/",An=ie+"pricing/",kC=ie+"download/",DC=ie+"topup?type=open_ai&",LC=ie+"topup?type=deepl&",Q3=ie+"topup?type=comics&",PC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",J3=An+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",DN=kC+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",LN=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Pl=An+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",am=An+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",PN=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Z3=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",X3=DC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",$3=LC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",e1=ie+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",MC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",im=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",MN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",RN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",FN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",t1=ie+"docs/usage/",BN=ie+"docs/communities/",Ds=Le().TRANSLATE_FILE_URL,IN=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",n1=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",r1=`${Ds}download-subtitle/`,a1=`${Ds}pdf-pro/`,i1=`${Ds}text/`,Si=["deepl","openai","gemini","claude"],RC="G-BHWL0KMJB8",FC="7pr-olTJR6GKAjIW48UD0Q",c3="G-MKMD9LWFTR",d3="sitc4WmvShWYwfU0dANM3Q",m3="G-V5H2F5MJFJ",p3="UBjpGOLISEaY5LVXNj3WvQ";function Ml(){return K4()?[`https://www.google-analytics.com/mp/collect?measurement_id=${RC}&api_secret=${FC}`]:ca?[`https://www.google-analytics.com/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${m3}&api_secret=${p3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${m3}&api_secret=${p3}`]}var Ls=`https://analytics.${$t}/collect`,_N=`${ie}activities/components/image-pro`;var o1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",s1="0VmM83i2D1ICuYBf";function u1(e){let t=ee.runtime.getURL(g3),n=new URL(t);return e&&(e.startsWith("http")||!Vn())&&n.searchParams.set("file",e),n.href}var Ti=J+"CacheKey_";function Ci(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BC(){let e=ee.storage.local.refresh;e&&e()}function om(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ti)).filter(r=>r!==Ti+dt);if(n.length>0)return ee.storage.local.remove(n)}}var mt={get:Ci,set:wi,getExpired:om,setExpired:sm,remove:um,clear:lm,refresh:BC};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function l1(e){if(e){let t=new Date(e.createTime),n=IC(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function IC(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ps(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ht(t)}function so(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Rl(e,t){let n=so(),r=setTimeout(()=>n.reject(new cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function pt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var c1=class{#e=0;#t=[];#n=[];#r=so();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tuw,bgBlue:()=>mw,bgBrightBlack:()=>hw,bgBrightBlue:()=>xw,bgBrightCyan:()=>Tw,bgBrightGreen:()=>yw,bgBrightMagenta:()=>Sw,bgBrightRed:()=>bw,bgBrightWhite:()=>Cw,bgBrightYellow:()=>vw,bgCyan:()=>gw,bgGreen:()=>cw,bgMagenta:()=>pw,bgRed:()=>lw,bgRgb24:()=>kw,bgRgb8:()=>Ew,bgWhite:()=>fw,bgYellow:()=>dw,black:()=>VC,blue:()=>JC,bold:()=>jC,brightBlack:()=>p1,brightBlue:()=>aw,brightCyan:()=>ow,brightGreen:()=>nw,brightMagenta:()=>iw,brightRed:()=>tw,brightWhite:()=>sw,brightYellow:()=>rw,cyan:()=>XC,dim:()=>UC,getColorEnabled:()=>OC,gray:()=>ew,green:()=>YC,hidden:()=>WC,inverse:()=>zC,italic:()=>HC,magenta:()=>ZC,red:()=>KC,reset:()=>NC,rgb24:()=>Aw,rgb8:()=>ww,setColorEnabled:()=>_C,strikethrough:()=>GC,stripColor:()=>Lw,underline:()=>qC,white:()=>$C,yellow:()=>QC});var{Deno:d1}=globalThis,m1=typeof d1?.noColor=="boolean"?d1.noColor:!0,dm=!m1;function _C(e){m1||(dm=e)}function OC(){return dm}function Me(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Re(e,t){return dm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function NC(e){return Re(e,Me([0],0))}function jC(e){return Re(e,Me([1],22))}function UC(e){return Re(e,Me([2],22))}function HC(e){return Re(e,Me([3],23))}function qC(e){return Re(e,Me([4],24))}function zC(e){return Re(e,Me([7],27))}function WC(e){return Re(e,Me([8],28))}function GC(e){return Re(e,Me([9],29))}function VC(e){return Re(e,Me([30],39))}function KC(e){return Re(e,Me([31],39))}function YC(e){return Re(e,Me([32],39))}function QC(e){return Re(e,Me([33],39))}function JC(e){return Re(e,Me([34],39))}function ZC(e){return Re(e,Me([35],39))}function XC(e){return Re(e,Me([36],39))}function $C(e){return Re(e,Me([37],39))}function ew(e){return p1(e)}function p1(e){return Re(e,Me([90],39))}function tw(e){return Re(e,Me([91],39))}function nw(e){return Re(e,Me([92],39))}function rw(e){return Re(e,Me([93],39))}function aw(e){return Re(e,Me([94],39))}function iw(e){return Re(e,Me([95],39))}function ow(e){return Re(e,Me([96],39))}function sw(e){return Re(e,Me([97],39))}function uw(e){return Re(e,Me([40],49))}function lw(e){return Re(e,Me([41],49))}function cw(e){return Re(e,Me([42],49))}function dw(e){return Re(e,Me([43],49))}function mw(e){return Re(e,Me([44],49))}function pw(e){return Re(e,Me([45],49))}function gw(e){return Re(e,Me([46],49))}function fw(e){return Re(e,Me([47],49))}function hw(e){return Re(e,Me([100],49))}function bw(e){return Re(e,Me([101],49))}function yw(e){return Re(e,Me([102],49))}function vw(e){return Re(e,Me([103],49))}function xw(e){return Re(e,Me([104],49))}function Sw(e){return Re(e,Me([105],49))}function Tw(e){return Re(e,Me([106],49))}function Cw(e){return Re(e,Me([107],49))}function Fa(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function ww(e,t){return Re(e,Me([38,5,Fa(t)],39))}function Ew(e,t){return Re(e,Me([48,5,Fa(t)],49))}function Aw(e,t){return typeof t=="number"?Re(e,Me([38,2,t>>16&255,t>>8&255,t&255],39)):Re(e,Me([38,2,Fa(t.r),Fa(t.g),Fa(t.b)],39))}function kw(e,t){return typeof t=="number"?Re(e,Me([48,2,t>>16&255,t>>8&255,t&255],49)):Re(e,Me([48,2,Fa(t.r),Fa(t.g),Fa(t.b)],49))}var Dw=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Lw(e){return e.replace(Dw,"")}var mm=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Pw={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function pm(e,t){let n={...Pw,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new mm(a,n.maxAttempts)}var ma=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function gm(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2|t[r]>>6],n+=ma[t[r]&63];return r===a+1&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2],n+="="),n}var Mw=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0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u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\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uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Fw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uD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F57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC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={Space_Separator:Mw,ID_Start:Rw,ID_Continue:Fw},_t={isSpaceSeparator(e){return typeof e=="string"&&fm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||fm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||fm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},bm,kn,ga,Bl,Ba,yr,en,xm,Rs,Bw=function(e,t){bm=String(e),kn="start",ga=[],Bl=0,Ba=1,yr=0,en=void 0,xm=void 0,Rs=void 0;do en=Iw(),Nw[kn]();while(en.type!=="eof");return typeof t=="function"?ym({"":Rs},"",t):Rs};function ym(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=fa();if(!_t.isHexDigit(n))throw bt(q());e+=q()}return String.fromCodePoint(parseInt(e,16))}var Nw={start(){if(en.type==="eof")throw Ai();hm()},beforePropertyName(){switch(en.type){case"identifier":case"string":vm=en.value,kn="afterPropertyName";return;case"punctuator":Fl();return;case"eof":throw Ai()}},afterPropertyName(){if(en.type==="eof")throw Ai();kn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Ai();hm()},beforeArrayValue(){if(en.type==="eof")throw Ai();if(en.type==="punctuator"&&en.value==="]"){Fl();return}hm()},afterPropertyValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforePropertyName";return;case"}":Fl()}},afterArrayValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforeArrayValue";return;case"]":Fl()}},end(){}};function hm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Rs===void 0)Rs=e;else{let t=ga[ga.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,vm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ga.push(e),Array.isArray(e)?kn="beforeArrayValue":kn="beforePropertyName";else{let t=ga[ga.length-1];t==null?kn="end":Array.isArray(t)?kn="afterArrayValue":kn="afterPropertyValue"}}function Fl(){ga.pop();let e=ga[ga.length-1];e==null?kn="end":Array.isArray(e)?kn="afterArrayValue":kn="afterPropertyValue"}function bt(e){return Sm(e===void 0?`JSON5: invalid end of input at ${Ba}:${yr}`:`JSON5: invalid character '${jw(e)}' at ${Ba}:${yr}`)}function Ai(){return Sm(`JSON5: invalid end of input at ${Ba}:${yr}`)}function g1(){return yr-=5,Sm(`JSON5: invalid identifier character at ${Ba}:${yr}`)}function jw(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Sm(e){let t=new SyntaxError(e);return t.lineNumber=Ba,t.columnNumber=yr,t}var Uw=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let x=0;xh[x]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let x of b){let S=l(x,g);if(S!==void 0){let T=m(x)+":";s!==""&&(T+=" "),T+=S,f.push(T)}}let y;if(f.length===0)y="{}";else{let x;if(s==="")x=f.join(","),y="{"+x+"}";else{let S=`, -`+a;x=f.join(S),y=`{ -`+a+x+`, -`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!_t.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),Zw=(e,t)=>{for(var n in t)Cm(e,n,{get:t[n],enumerable:!0})},Tm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kw(t))!Qw.call(e,a)&&a!==n&&Cm(e,a,{get:()=>t[a],enumerable:!(r=Vw(t,a))||r.enumerable});return e},Xw=(e,t,n)=>(Tm(e,t,"default"),n&&Tm(n,t,"default")),y1=(e,t,n)=>(n=e!=null?Gw(Yw(e)):{},Tm(t||!e||!e.__esModule?Cm(n,"default",{value:e,enumerable:!0}):n,e)),x1=Jw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof _l=="object"&&_l&&_l.Object===Object&&_l,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(E,k,P){var F,M,I,L,N,B,j=0,G=!1,z=!1,ue=!0;if(typeof E!="function")throw new TypeError(n);k=w(k)||0,S(P)&&(G=!!P.leading,z="maxWait"in P,I=z?h(w(P.maxWait)||0,k):I,ue="trailing"in P?!!P.trailing:ue);function le(fe){var he=F,we=M;return F=M=void 0,j=fe,L=E.apply(we,he),L}function O(fe){return j=fe,N=setTimeout(Ee,k),G?le(fe):L}function H(fe){var he=fe-B,we=fe-j,Ue=k-he;return z?b(Ue,I-we):Ue}function Y(fe){var he=fe-B,we=fe-j;return B===void 0||he>=k||he<0||z&&we>=I}function Ee(){var fe=f();if(Y(fe))return ge(fe);N=setTimeout(Ee,H(fe))}function ge(fe){return N=void 0,ue&&F?le(fe):(F=M=void 0,L)}function je(){N!==void 0&&clearTimeout(N),j=0,F=B=M=N=void 0}function de(){return N===void 0?L:ge(f())}function me(){var fe=f(),he=Y(fe);if(F=arguments,M=this,B=fe,he){if(N===void 0)return O(B);if(z)return N=setTimeout(Ee,k),le(B)}return N===void 0&&(N=setTimeout(Ee,k)),L}return me.cancel=je,me.flush=de,me}function x(E,k,P){var F=!0,M=!0;if(typeof E!="function")throw new TypeError(n);return S(P)&&(F="leading"in P?!!P.leading:F,M="trailing"in P?!!P.trailing:M),y(E,k,{leading:F,maxWait:k,trailing:M})}function S(E){var k=typeof E;return!!E&&(k=="object"||k=="function")}function T(E){return!!E&&typeof E=="object"}function C(E){return typeof E=="symbol"||T(E)&&g.call(E)==a}function w(E){if(typeof E=="number")return E;if(C(E))return r;if(S(E)){var k=typeof E.valueOf=="function"?E.valueOf():E;E=S(k)?k+"":k}if(typeof E!="string")return E===0?E:+E;E=E.replace(i,"");var P=s.test(E);return P||u.test(E)?l(E.slice(2),P?2:8):o.test(E)?r:+E}t.exports=x}),v1={};Zw(v1,{default:()=>Yn});var $w=y1(x1());Xw(v1,y1(x1()));var{default:b1,...eE}=$w,Yn=b1!==void 0?b1:eE;var Ol=globalThis||(typeof window<"u"?window:self),tE=Object.create,Em=Object.defineProperty,nE=Object.getOwnPropertyDescriptor,rE=Object.getOwnPropertyNames,aE=Object.getPrototypeOf,iE=Object.prototype.hasOwnProperty,oE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sE=(e,t)=>{for(var n in t)Em(e,n,{get:t[n],enumerable:!0})},wm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of rE(t))!iE.call(e,a)&&a!==n&&Em(e,a,{get:()=>t[a],enumerable:!(r=nE(t,a))||r.enumerable});return e},uE=(e,t,n)=>(wm(e,t,"default"),n&&wm(n,t,"default")),T1=(e,t,n)=>(n=e!=null?tE(aE(e)):{},wm(t||!e||!e.__esModule?Em(n,"default",{value:e,enumerable:!0}):n,e)),C1=oE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,E,k){var P,F,M,I,L,N,B=0,j=!1,G=!1,z=!0;if(typeof w!="function")throw new TypeError(n);E=C(E)||0,x(k)&&(j=!!k.leading,G="maxWait"in k,M=G?h(C(k.maxWait)||0,E):M,z="trailing"in k?!!k.trailing:z);function ue(me){var fe=P,he=F;return P=F=void 0,B=me,I=w.apply(he,fe),I}function le(me){return B=me,L=setTimeout(Y,E),j?ue(me):I}function O(me){var fe=me-N,he=me-B,we=E-fe;return G?b(we,M-he):we}function H(me){var fe=me-N,he=me-B;return N===void 0||fe>=E||fe<0||G&&he>=M}function Y(){var me=f();if(H(me))return Ee(me);L=setTimeout(Y,O(me))}function Ee(me){return L=void 0,z&&P?ue(me):(P=F=void 0,I)}function ge(){L!==void 0&&clearTimeout(L),B=0,P=N=F=L=void 0}function je(){return L===void 0?I:Ee(f())}function de(){var me=f(),fe=H(me);if(P=arguments,F=this,N=me,fe){if(L===void 0)return le(N);if(G)return L=setTimeout(Y,E),ue(N)}return L===void 0&&(L=setTimeout(Y,E)),I}return de.cancel=ge,de.flush=je,de}function x(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function S(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||S(w)&&g.call(w)==a}function C(w){if(typeof w=="number")return w;if(T(w))return r;if(x(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=x(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var k=s.test(w);return k||u.test(w)?l(w.slice(2),k?2:8):o.test(w)?r:+w}t.exports=y}),w1={};sE(w1,{default:()=>_n});var lE=T1(C1());uE(w1,T1(C1()));var{default:S1,...cE}=lE,_n=S1!==void 0?S1:cE;var dE=Object.create,km=Object.defineProperty,mE=Object.getOwnPropertyDescriptor,pE=Object.getOwnPropertyNames,gE=Object.getPrototypeOf,fE=Object.prototype.hasOwnProperty,hE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bE=(e,t)=>{for(var n in t)km(e,n,{get:t[n],enumerable:!0})},Am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pE(t))!fE.call(e,a)&&a!==n&&km(e,a,{get:()=>t[a],enumerable:!(r=mE(t,a))||r.enumerable});return e},yE=(e,t,n)=>(Am(e,t,"default"),n&&Am(n,t,"default")),A1=(e,t,n)=>(n=e!=null?dE(gE(e)):{},Am(t||!e||!e.__esModule?km(n,"default",{value:e,enumerable:!0}):n,e)),k1=hE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(O,H){var Y={};for(var Ee in O)H.indexOf(Ee)>=0||Object.prototype.hasOwnProperty.call(O,Ee)&&(Y[Ee]=O[Ee]);return Y}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(O){return typeof O>"u"?"undefined":l(O)}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O>"u"?"undefined":l(O)},h=Object.assign||function(O){for(var H=1;H'+Ee+"
",we.onclick=function(){return M(Ue,he)},we.listener=function(K){(k(K)||P(K))&&N()},F(we,he),je&&je<1&&(je=1),!me&&je&&S(je).then(function(){return M(Ue,he)})},j=d.force=function(O,H){var Y=O.type,Ee=Y===void 0?5:Y,ge=O.text,je=O.buttonText,de=je===void 0?"OK":je,me=O.callback,fe=O.position,he=fe===void 0?f.positions.force||he.top:fe;T(),N();var we=document.createElement("div"),Ue=C();we.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ge+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(w[Ee]),be.innerHTML=de,be.onclick=function(){M(Ue,he),L(),me?me():H&&H()},we.appendChild(K),we.appendChild(be),we.listener=function(tt){k(tt)&&be.click()},F(we,he),I()},G=d.confirm=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Yes":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.confirm||Ue.top:we;T(),N();var K=document.createElement("div"),be=C();K.id=be;var tt=document.createElement("div");tt.classList.add(f.classes.textbox),tt.classList.add(f.classes.backgroundInfo),tt.innerHTML='
'+Ee+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=je,Ye.onclick=function(){M(be,Ue),L(),fe?fe():H&&H()};var Se=document.createElement("div");Se.classList.add(f.classes.button),Se.classList.add(f.classes.elementHalf),Se.classList.add(f.classes.backgroundError),Se.innerHTML=me,Se.onclick=function(){M(be,Ue),L(),he?he():Y&&Y()},K.appendChild(tt),K.appendChild(Ye),K.appendChild(Se),K.listener=function(vt){k(vt)?Ye.click():P(vt)&&Se.click()},F(K,Ue),I(K,Ue)},z=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Submit":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.input||Ue.top:we,K=p(O,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),N();var be=document.createElement("div"),tt=C();be.id=tt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+Ee+"
";var Se=document.createElement("input");Se.classList.add(f.classes.inputField),Se.setAttribute("autocapitalize",K.autocapitalize||"none"),Se.setAttribute("autocomplete",K.autocomplete||"off"),Se.setAttribute("autocorrect",K.autocorrect||"off"),Se.setAttribute("autofocus",K.autofocus||"true"),Se.setAttribute("inputmode",K.inputmode||"verbatim"),Se.setAttribute("max",K.max||""),Se.setAttribute("maxlength",K.maxlength||""),Se.setAttribute("min",K.min||""),Se.setAttribute("minlength",K.minlength||""),Se.setAttribute("placeholder",K.placeholder||""),Se.setAttribute("spellcheck",K.spellcheck||"default"),Se.setAttribute("step",K.step||"any"),Se.setAttribute("type",K.type||"text"),Se.value=K.value||"",K.allowed&&(Se.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",Cn=K.allowed,or=0;or'+Y+"
",he.appendChild(Ue),de.forEach(function(be,tt){var Ye=be.type,Se=Ye===void 0?1:Ye,vt=be.text,zt=be.handler,Dt=document.createElement("div");Dt.classList.add(w[Se]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=de[tt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Se&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){M(we,fe),L(),zt()},he.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ge,K.onclick=function(){M(we,fe),L(),je?je():H&&H()},he.appendChild(K),he.listener=function(be){P(be)&&K.click()},F(he,fe),I(he,fe)},le=d.date=function(O,H,Y){var Ee=O.value,ge=Ee===void 0?new Date:Ee,je=O.submitText,de=je===void 0?"OK":je,me=O.cancelText,fe=me===void 0?"Cancel":me,he=O.submitCallback,we=O.cancelCallback,Ue=O.position,K=Ue===void 0?f.positions.date||K.top:Ue;T(),N();var be="▾",tt=document.createElement("div"),Ye=document.createElement("div"),Se=document.createElement("div"),vt=function(St){tt.innerHTML=f.dateMonths[St.getMonth()],Ye.innerHTML=St.getDate(),Se.innerHTML=St.getFullYear()},zt=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+1,0).getDate(),Wn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Wn)>et&&(Wn=et.toString()),St.target.textContent=Wn,Number(Wn)<1&&(Wn="1"),ge.setDate(Number(Wn))},Dt=function(St){var et=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=et,ge.setFullYear(Number(et))},Bt=function(St){vt(ge)},Cn=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+St+1,0).getDate();ge.getDate()>et&&ge.setDate(et),ge.setMonth(ge.getMonth()+St),vt(ge)},or=function(St){ge.setDate(ge.getDate()+St),vt(ge)},ps=function(St){var et=ge.getFullYear()+St;et<0?ge.setFullYear(0):ge.setFullYear(ge.getFullYear()+St),vt(ge)},Ur=document.createElement("div"),gi=C();Ur.id=gi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var hr=document.createElement("div");hr.classList.add(f.classes.button),hr.classList.add(f.classes.elementThird),hr.classList.add(f.classes.dateSelectorUp),hr.innerHTML=be;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=be;var zn=document.createElement("div");zn.classList.add(f.classes.button),zn.classList.add(f.classes.elementThird),zn.classList.add(f.classes.dateSelectorUp),zn.innerHTML=be,tt.classList.add(f.classes.element),tt.classList.add(f.classes.elementThird),tt.innerHTML=f.dateMonths[ge.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ge.getDate(),Se.classList.add(f.classes.element),Se.classList.add(f.classes.elementThird),Se.setAttribute("contentEditable",!0),Se.addEventListener("input",Dt),Se.addEventListener("blur",Bt),Se.innerHTML=ge.getFullYear();var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementThird),oa.innerHTML=be;var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementThird),sa.innerHTML=be;var fi=document.createElement("div");fi.classList.add(f.classes.button),fi.classList.add(f.classes.elementThird),fi.innerHTML=be,hr.onclick=function(){return Cn(1)},dn.onclick=function(){return or(1)},zn.onclick=function(){return ps(1)},oa.onclick=function(){return Cn(-1)},sa.onclick=function(){return or(-1)},fi.onclick=function(){return ps(-1)};var wn=document.createElement("div");wn.classList.add(f.classes.button),wn.classList.add(f.classes.elementHalf),wn.classList.add(f.classes.backgroundSuccess),wn.innerHTML=de,wn.onclick=function(){M(gi,K),L(),he?he(ge):H&&H(ge)};var ua=document.createElement("div");ua.classList.add(f.classes.button),ua.classList.add(f.classes.elementHalf),ua.classList.add(f.classes.backgroundError),ua.innerHTML=fe,ua.onclick=function(){M(gi,K),L(),we?we(ge):Y&&Y(ge)},cn.appendChild(hr),cn.appendChild(dn),cn.appendChild(zn),cn.appendChild(tt),cn.appendChild(Ye),cn.appendChild(Se),cn.appendChild(oa),cn.appendChild(sa),cn.appendChild(fi),Qi.appendChild(cn),Ur.appendChild(Qi),Ur.appendChild(wn),Ur.appendChild(ua),Ur.listener=function(St){k(St)?wn.click():P(St)&&ua.click()},F(Ur,K),I(Ur,K)};d.default={alert:B,force:j,confirm:G,input:z,select:ue,date:le,setOptions:y,hideAlerts:N}}])})}).call(r,a(0)(n))}])})}),D1={};bE(D1,{default:()=>Nl});var xE=A1(k1());yE(D1,A1(k1()));var{default:E1,...vE}=xE,Nl=E1!==void 0?E1:vE;var jl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Fs(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Dm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function L1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;iuo[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),SE=e=>Object.keys(uo).find(t=>uo[t]===e),TE=e=>Object.keys(vr).find(t=>vr[t]===e);function I1(e){F1=e||"all"}function Bs(){return F1||"all"}function CE(){return ot.slice(0)}function wE(){return ot.map(e=>SE(e)||TE(e)||String.fromCharCode(e))}function EE(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Is(o))})})}),e}function AE(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function kE(e){return typeof e=="string"&&(e=Is(e)),ot.indexOf(e)!==-1}function DE(e,t){let n,r;e||(e=Bs());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in vr)vr[r]===t&&(ha[r]=!1)}}function _1(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Pm(n)});else if(typeof e=="object")e.key&&Pm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Pm({key:e,scope:n,method:r,splitKey:"+"})}}var Pm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Lm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Is(u);if(!Tt[l])return;t||(t=Bs());let c=s>1?Dm(vr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&L1(d.mods,c)))})};function M1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function R1(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ha.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ul[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in vr)vr[i]===r&&(ha[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Ul[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=Bs();if(n)for(let i=0;i-1}function ha(e,t,n){ot=[];let r=Lm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&_1(e,i);s1&&(a=Dm(vr,e)),e=e[e.length-1],e=e==="*"?"*":Is(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!PE(o)&&window&&(B1.push(o),Fs(o,"keydown",p=>{R1(p,o)},d),P1||(P1=!0,Fs(window,"focus",()=>{ot=[]},d),Fs(window,"click",()=>{ot=[]},!1)),Fs(o,"keyup",p=>{R1(p,o),LE(p)},d))}function ME(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Mm={getPressedKeyString:wE,setScope:I1,getScope:Bs,deleteScope:DE,getPressedKeyCodes:CE,getAllKeyCodes:EE,isPressed:kE,filter:AE,trigger:ME,unbind:_1,keyMap:uo,modifier:vr,modifierMap:Ul};for(let e in Mm)Object.prototype.hasOwnProperty.call(Mm,e)&&(ha[e]=Mm[e]);if(typeof window<"u"){let e=window.hotkeys;ha.noConflict=t=>(t&&window.hotkeys===ha&&(window.hotkeys=e),ha),window.hotkeys=ha}var On=ha;var RE={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},N1={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Dn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ia={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=W.getVersionPrecision(e),a=W.getVersionPrecision(t),i=Math.max(r,a),o=0,s=W.map([e,t],u=>{let l=i-W.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return W.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return RE[e]}static getBrowserTypeByAlias(e){return N1[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,FE=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(r,e),version:W.getSecondMatch(r,e)}}}],BE=FE,IE=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Dn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Dn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:Dn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Dn.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),r={name:Dn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Dn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),r={name:Dn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Dn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:Dn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Dn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Dn.Linux}}},{test:[/CrOS/],describe(){return{name:Dn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.PlayStation4,version:t}}}],_E=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],OE=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ia.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ia.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ia.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ia.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ia.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ia.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ia.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],NE=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(BE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(IE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(_E,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(OE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=W.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=W.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=W.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=W.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(W.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},O1=NE,jE=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new O1(e,t)}static parse(e){return new O1(e).getResult()}static get BROWSER_MAP(){return N1}static get ENGINE_MAP(){return Ia}static get OS_MAP(){return Dn}static get PLATFORMS_MAP(){return Ot}},lo=jE;var{entries:V1,setPrototypeOf:j1,isFrozen:UE,getPrototypeOf:HE,getOwnPropertyDescriptor:qE}=Object,{freeze:Ln,seal:Tr,create:zE}=Object,{apply:Om,construct:Nm}=typeof Reflect<"u"&&Reflect;Om||(Om=function(e,t,n){return e.apply(t,n)});Ln||(Ln=function(e){return e});Tr||(Tr=function(e){return e});Nm||(Nm=function(e,t){return new e(...t)});var WE=lr(Array.prototype.forEach),U1=lr(Array.prototype.pop),_s=lr(Array.prototype.push),zl=lr(String.prototype.toLowerCase),Rm=lr(String.prototype.toString),GE=lr(String.prototype.match),Sr=lr(String.prototype.replace),VE=lr(String.prototype.indexOf),KE=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),Os=YE(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),$E=Tr(/\${[\w\W]*}/gm),e8=Tr(/^data-[\-\w.\u00B7-\uFFFF]/),t8=Tr(/^aria-[\-\w]+$/),K1=Tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),n8=Tr(/^(?:\w+script|data):/i),r8=Tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y1=Tr(/^html$/i),G1=Object.freeze({__proto__:null,MUSTACHE_EXPR:ZE,ERB_EXPR:XE,TMPLIT_EXPR:$E,DATA_ATTR:e8,ARIA_ATTR:t8,IS_ALLOWED_URI:K1,IS_SCRIPT_OR_DATA:n8,ATTR_WHITESPACE:r8,DOCTYPE_NAME:Y1}),a8=()=>typeof window>"u"?null:window,i8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function Q1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a8(),t=R=>Q1(R);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Hl(g,"cloneNode"),b=Hl(g,"nextSibling"),f=Hl(g,"childNodes"),y=Hl(g,"parentNode");if(typeof o=="function"){let R=a.createElement("template");R.content&&R.content.ownerDocument&&(a=R.content.ownerDocument)}let x,S="",{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:E}=a,{importNode:k}=n,P={};t.isSupported=typeof V1=="function"&&typeof y=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:j}=G1,{IS_ALLOWED_URI:G}=G1,z=null,ue=Ne({},[...H1,...Fm,...Bm,...Im,...q1]),le=null,O=Ne({},[...z1,..._m,...W1,...ql]),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,Ee=null,ge=!0,je=!0,de=!1,me=!0,fe=!1,he=!1,we=!1,Ue=!1,K=!1,be=!1,tt=!1,Ye=!0,Se=!1,vt="user-content-",zt=!0,Dt=!1,Bt={},Cn=null,or=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ps=null,Ur=Ne({},["audio","video","img","source","image","track"]),gi=null,Qi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",zn=dn,oa=!1,sa=null,fi=Ne({},[cn,hr,dn],Rm),wn,ua=["application/xhtml+xml","text/html"],St="text/html",et,Wn=null,Q5=a.createElement("form"),s4=function(R){return R instanceof RegExp||R instanceof Function},Pd=function(R){if(!(Wn&&Wn===R)){if((!R||typeof R!="object")&&(R={}),R=co(R),wn=ua.indexOf(R.PARSER_MEDIA_TYPE)===-1?wn=St:wn=R.PARSER_MEDIA_TYPE,et=wn==="application/xhtml+xml"?Rm:zl,z="ALLOWED_TAGS"in R?Ne({},R.ALLOWED_TAGS,et):ue,le="ALLOWED_ATTR"in R?Ne({},R.ALLOWED_ATTR,et):O,sa="ALLOWED_NAMESPACES"in R?Ne({},R.ALLOWED_NAMESPACES,Rm):fi,gi="ADD_URI_SAFE_ATTR"in R?Ne(co(Qi),R.ADD_URI_SAFE_ATTR,et):Qi,ps="ADD_DATA_URI_TAGS"in R?Ne(co(Ur),R.ADD_DATA_URI_TAGS,et):Ur,Cn="FORBID_CONTENTS"in R?Ne({},R.FORBID_CONTENTS,et):or,Y="FORBID_TAGS"in R?Ne({},R.FORBID_TAGS,et):{},Ee="FORBID_ATTR"in R?Ne({},R.FORBID_ATTR,et):{},Bt="USE_PROFILES"in R?R.USE_PROFILES:!1,ge=R.ALLOW_ARIA_ATTR!==!1,je=R.ALLOW_DATA_ATTR!==!1,de=R.ALLOW_UNKNOWN_PROTOCOLS||!1,me=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=R.SAFE_FOR_TEMPLATES||!1,he=R.WHOLE_DOCUMENT||!1,K=R.RETURN_DOM||!1,be=R.RETURN_DOM_FRAGMENT||!1,tt=R.RETURN_TRUSTED_TYPE||!1,Ue=R.FORCE_BODY||!1,Ye=R.SANITIZE_DOM!==!1,Se=R.SANITIZE_NAMED_PROPS||!1,zt=R.KEEP_CONTENT!==!1,Dt=R.IN_PLACE||!1,G=R.ALLOWED_URI_REGEXP||K1,zn=R.NAMESPACE||dn,H=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(je=!1),be&&(K=!0),Bt&&(z=Ne({},[...q1]),le=[],Bt.html===!0&&(Ne(z,H1),Ne(le,z1)),Bt.svg===!0&&(Ne(z,Fm),Ne(le,_m),Ne(le,ql)),Bt.svgFilters===!0&&(Ne(z,Bm),Ne(le,_m),Ne(le,ql)),Bt.mathMl===!0&&(Ne(z,Im),Ne(le,W1),Ne(le,ql))),R.ADD_TAGS&&(z===ue&&(z=co(z)),Ne(z,R.ADD_TAGS,et)),R.ADD_ATTR&&(le===O&&(le=co(le)),Ne(le,R.ADD_ATTR,et)),R.ADD_URI_SAFE_ATTR&&Ne(gi,R.ADD_URI_SAFE_ATTR,et),R.FORBID_CONTENTS&&(Cn===or&&(Cn=co(Cn)),Ne(Cn,R.FORBID_CONTENTS,et)),zt&&(z["#text"]=!0),he&&Ne(z,["html","head","body"]),z.table&&(Ne(z,["tbody"]),delete Y.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=R.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else x===void 0&&(x=i8(p,r)),x!==null&&typeof S=="string"&&(S=x.createHTML(""));Ln&&Ln(R),Wn=R}},u4=Ne({},["mi","mo","mn","ms","mtext"]),l4=Ne({},["foreignobject","desc","title","annotation-xml"]),J5=Ne({},["title","style","font","a","script"]),Xu=Ne({},Fm);Ne(Xu,Bm),Ne(Xu,QE);let Md=Ne({},Im);Ne(Md,JE);let Z5=function(R){let oe=y(R);(!oe||!oe.tagName)&&(oe={namespaceURI:zn,tagName:"template"});let Q=zl(R.tagName),Je=zl(oe.tagName);return sa[R.namespaceURI]?R.namespaceURI===hr?oe.namespaceURI===dn?Q==="svg":oe.namespaceURI===cn?Q==="svg"&&(Je==="annotation-xml"||u4[Je]):!!Xu[Q]:R.namespaceURI===cn?oe.namespaceURI===dn?Q==="math":oe.namespaceURI===hr?Q==="math"&&l4[Je]:!!Md[Q]:R.namespaceURI===dn?oe.namespaceURI===hr&&!l4[Je]||oe.namespaceURI===cn&&!u4[Je]?!1:!Md[Q]&&(J5[Q]||!Xu[Q]):!!(wn==="application/xhtml+xml"&&sa[R.namespaceURI]):!1},Ji=function(R){_s(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},Rd=function(R,oe){try{_s(t.removed,{attribute:oe.getAttributeNode(R),from:oe})}catch{_s(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(R),R==="is"&&!le[R])if(K||be)try{Ji(oe)}catch{}else try{oe.setAttribute(R,"")}catch{}},c4=function(R){let oe,Q;if(Ue)R=""+R;else{let En=GE(R,/^[\r\n\t ]+/);Q=En&&En[0]}wn==="application/xhtml+xml"&&zn===dn&&(R=''+R+"");let Je=x?x.createHTML(R):R;if(zn===dn)try{oe=new m().parseFromString(Je,wn)}catch{}if(!oe||!oe.documentElement){oe=T.createDocument(zn,"template",null);try{oe.documentElement.innerHTML=oa?S:Je}catch{}}let Wt=oe.body||oe.documentElement;return R&&Q&&Wt.insertBefore(a.createTextNode(Q),Wt.childNodes[0]||null),zn===dn?E.call(oe,he?"html":"body")[0]:he?oe.documentElement:Wt},d4=function(R){return C.call(R.ownerDocument||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},X5=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},$u=function(R){return typeof s=="object"?R instanceof s:R&&typeof R=="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},la=function(R,oe,Q){P[R]&&WE(P[R],Je=>{Je.call(t,oe,Q,Wn)})},m4=function(R){let oe;if(la("beforeSanitizeElements",R,null),X5(R))return Ji(R),!0;let Q=et(R.nodeName);if(la("uponSanitizeElement",R,{tagName:Q,allowedTags:z}),R.hasChildNodes()&&!$u(R.firstElementChild)&&(!$u(R.content)||!$u(R.content.firstElementChild))&&Qn(/<[/\w]/g,R.innerHTML)&&Qn(/<[/\w]/g,R.textContent))return Ji(R),!0;if(!z[Q]||Y[Q]){if(!Y[Q]&&g4(Q)&&(H.tagNameCheck instanceof RegExp&&Qn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q)))return!1;if(zt&&!Cn[Q]){let Je=y(R)||R.parentNode,Wt=f(R)||R.childNodes;if(Wt&&Je){let En=Wt.length;for(let In=En-1;In>=0;--In)Je.insertBefore(h(Wt[In],!0),b(R))}}return Ji(R),!0}return R instanceof u&&!Z5(R)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,R.innerHTML)?(Ji(R),!0):(fe&&R.nodeType===3&&(oe=R.textContent,oe=Sr(oe,F," "),oe=Sr(oe,M," "),oe=Sr(oe,I," "),R.textContent!==oe&&(_s(t.removed,{element:R.cloneNode()}),R.textContent=oe)),la("afterSanitizeElements",R,null),!1)},p4=function(R,oe,Q){if(Ye&&(oe==="id"||oe==="name")&&(Q in a||Q in Q5))return!1;if(!(je&&!Ee[oe]&&Qn(L,oe))&&!(ge&&Qn(N,oe))){if(!le[oe]||Ee[oe]){if(!(g4(R)&&(H.tagNameCheck instanceof RegExp&&Qn(H.tagNameCheck,R)||H.tagNameCheck instanceof Function&&H.tagNameCheck(R))&&(H.attributeNameCheck instanceof RegExp&&Qn(H.attributeNameCheck,oe)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(oe))||oe==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Qn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q))))return!1}else if(!gi[oe]&&!Qn(G,Sr(Q,j,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&R!=="script"&&VE(Q,"data:")===0&&ps[R])&&!(de&&!Qn(B,Sr(Q,j,"")))&&Q)return!1}return!0},g4=function(R){return R.indexOf("-")>0},f4=function(R){let oe,Q,Je,Wt;la("beforeSanitizeAttributes",R,null);let{attributes:En}=R;if(!En)return;let In={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le};for(Wt=En.length;Wt--;){oe=En[Wt];let{name:Xt,namespaceURI:Zi}=oe;if(Q=Xt==="value"?oe.value:KE(oe.value),Je=et(Xt),In.attrName=Je,In.attrValue=Q,In.keepAttr=!0,In.forceKeepAttr=void 0,la("uponSanitizeAttribute",R,In),Q=In.attrValue,In.forceKeepAttr||(Rd(Xt,R),!In.keepAttr))continue;if(!me&&Qn(/\/>/i,Q)){Rd(Xt,R);continue}fe&&(Q=Sr(Q,F," "),Q=Sr(Q,M," "),Q=Sr(Q,I," "));let h4=et(R.nodeName);if(p4(h4,Je,Q)){if(Se&&(Je==="id"||Je==="name")&&(Rd(Xt,R),Q=vt+Q),x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(h4,Je)){case"TrustedHTML":{Q=x.createHTML(Q);break}case"TrustedScriptURL":{Q=x.createScriptURL(Q);break}}try{Zi?R.setAttributeNS(Zi,Xt,Q):R.setAttribute(Xt,Q),U1(t.removed)}catch{}}}la("afterSanitizeAttributes",R,null)},$5=function R(oe){let Q,Je=d4(oe);for(la("beforeSanitizeShadowDOM",oe,null);Q=Je.nextNode();)la("uponSanitizeShadowNode",Q,null),!m4(Q)&&(Q.content instanceof i&&R(Q.content),f4(Q));la("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(R){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,Je,Wt,En;if(oa=!R,oa&&(R=""),typeof R!="string"&&!$u(R))if(typeof R.toString=="function"){if(R=R.toString(),typeof R!="string")throw Os("dirty is not a string, aborting")}else throw Os("toString is not a function");if(!t.isSupported)return R;if(we||Pd(oe),t.removed=[],typeof R=="string"&&(Dt=!1),Dt){if(R.nodeName){let Zi=et(R.nodeName);if(!z[Zi]||Y[Zi])throw Os("root node is forbidden and cannot be sanitized in-place")}}else if(R instanceof s)Q=c4(""),Je=Q.ownerDocument.importNode(R,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?Q=Je:Q.appendChild(Je);else{if(!K&&!fe&&!he&&R.indexOf("<")===-1)return x&&tt?x.createHTML(R):R;if(Q=c4(R),!Q)return K?null:tt?S:""}Q&&Ue&&Ji(Q.firstChild);let In=d4(Dt?R:Q);for(;Wt=In.nextNode();)m4(Wt)||(Wt.content instanceof i&&$5(Wt.content),f4(Wt));if(Dt)return R;if(K){if(be)for(En=w.call(Q.ownerDocument);Q.firstChild;)En.appendChild(Q.firstChild);else En=Q;return(le.shadowroot||le.shadowrootmod)&&(En=k.call(n,En,!0)),En}let Xt=he?Q.outerHTML:Q.innerHTML;return he&&z["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(Y1,Q.ownerDocument.doctype.name)&&(Xt=" -`+Xt),fe&&(Xt=Sr(Xt,F," "),Xt=Sr(Xt,M," "),Xt=Sr(Xt,I," ")),x&&tt?x.createHTML(Xt):Xt},t.setConfig=function(R){Pd(R),we=!0},t.clearConfig=function(){Wn=null,we=!1},t.isValidAttribute=function(R,oe,Q){Wn||Pd({});let Je=et(R),Wt=et(oe);return p4(Je,Wt,Q)},t.addHook=function(R,oe){typeof oe=="function"&&(P[R]=P[R]||[],_s(P[R],oe))},t.removeHook=function(R){if(P[R])return U1(P[R])},t.removeHooks=function(R){P[R]&&(P[R]=[])},t.removeAllHooks=function(){P={}},t}var nt=Q1();var o8=Object.create,Um=Object.defineProperty,s8=Object.getOwnPropertyDescriptor,u8=Object.getOwnPropertyNames,l8=Object.getPrototypeOf,c8=Object.prototype.hasOwnProperty,Hm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of u8(t))!c8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=s8(t,a))||r.enumerable});return e},m8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),Z1=(e,t,n)=>(n=e!=null?o8(l8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),p8=Hm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var be=this._getInnerText(K);if(!(be.length<25)){var tt=this._getNodeAncestors(K,5);if(tt.length!==0){var Ye=0;Ye+=1,Ye+=be.split(",").length,Ye+=Math.min(Math.floor(be.length/100),3),this._forEachNode(tt,function(Se,vt){if(!(!Se.tagName||!Se.parentNode||typeof Se.parentNode.tagName>"u")){if(typeof Se.readability>"u"&&(this._initializeNode(Se),h.push(Se)),vt===0)var zt=1;else vt===1?zt=2:zt=vt*3;Se.readability.contentScore+=Ye/zt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(T,0,x),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,E=!1,k;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),E=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var P=[],F=1;F=.75&&P.push(this._getNodeAncestors(b[F]));var M=3;if(P.length>=M)for(k=w.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=M){w=k;break}k=k.parentNode}w.readability||this._initializeNode(w),k=w.parentNode;for(var N=w.readability.contentScore,B=N/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var j=k.readability.contentScore;if(jN){w=k;break}N=k.readability.contentScore,k=k.parentNode}for(k=w.parentNode;k.tagName!="BODY"&&k.children.length==1;)w=k,k=w.parentNode;w.readability||this._initializeNode(w)}var G=a.createElement("DIV");i&&(G.id="readability-content");var z=Math.max(10,w.readability.contentScore*.2);k=w.parentNode;for(var ue=k.children,le=0,O=ue.length;le=z)Y=!0;else if(H.nodeName==="P"){var ge=this._getLinkDensity(H),je=this._getInnerText(H),de=je.length;(de>80&&ge<.25||de<80&&de>0&&ge===0&&je.search(/\.( |$)/)!==-1)&&(Y=!0)}}Y&&(this.log("Appending node:",H),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(H.nodeName)===-1&&(this.log("Altering sibling:",H,"to div."),H=this._setNodeTag(H,"DIV")),G.appendChild(H),ue=k.children,le-=1,O-=1)}if(this._debug&&this.log("Article content pre-prep: "+G.innerHTML),this._prepArticle(G),this._debug&&this.log("Article content post-prep: "+G.innerHTML),E)w.id="readability-page-1",w.className="page";else{var me=a.createElement("DIV");for(me.id="readability-page-1",me.className="page";G.firstChild;)me.appendChild(G.firstChild);G.appendChild(me)}this._debug&&this.log("Article content after paging: "+G.innerHTML);var fe=!0,he=this._getInnerText(G,!0).length;if(he0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),x=0;x1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||f===1&&C<75||f>1;if(s&&w){for(var E=0;E1)return w;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),g8=Hm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),X1=Hm((e,t)=>{var n=p8(),r=g8();t.exports={Readability:n,isProbablyReaderable:r}}),$1={};d8($1,{Readability:()=>Wl,default:()=>n2,isProbablyReaderable:()=>t2});var e2=Z1(X1());m8($1,Z1(X1()));var{Readability:Wl,isProbablyReaderable:t2}=e2,{default:J1,...f8}=e2,n2=J1!==void 0?J1:f8;var h8=Nl.alert;var mo=console,qm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),mo.debug(ur.dim(bi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ns=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&mo.log(ur.dim(bi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&mo.log(ur.green(bi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&mo.warn(ur.yellow(bi+" WARN:"),...t)}error(...t){this.#e<=3&&mo.error(ur.red(bi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&mo.error(ur.red(bi+" FATAL:"),...t)}timing(){return this.level===0?new qm:{reset:()=>{},stop:()=>{}}}},D=new Ns;var r2=["*://*/*","*","*://*"],i2="immersive-translate-wildcard-placeholder.com";function zm(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>r2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(r2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return y8(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,i2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=b8(l+":",a2(p),a2(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function a2(e){return e.replaceAll(i2,"*")}function b8(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return zm(e,t)!==null}function y8(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Gl={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var v8="";function pn(){return v8||Gl.version}function js(){return ee.runtime.getManifest().version}var S8="";function po(){return S8||globalThis.navigator.userAgent}function Us(){return po().includes("ImtFxiOS")}function o2(){let t=po().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Wm(){return po().includes("ImtFxAndroid")}function s2(){let e=po();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function u2(){let t=po().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Hs(){let e=po();if(Us()||Wm()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Jn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Gm={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},l2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Vm={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Km={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Jn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Jn[a]}else return"auto";else return Jn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var c2=J+"SyncStoreKey_";function Ut(e,t){let n=c2+e;return ee.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=c2+e;return ee.storage.sync.set({[n]:t})}var d2=J+"StoreKey_";function ki(e,t){let n=d2+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function m2(e,t){let n=d2+e;return ee.storage.local.set({[n]:t})}var UH=g2(2),p2=g2(3);function g2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var T8=/\s+/g,C8=/[\t\n\v\f\r ]+/g;function f2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?w8:E8;return String(e).replace(t.style==="html"?C8:T8,t.trim?A8(n):n)}function w8(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function E8(){return" "}function A8(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var h2={}.hasOwnProperty;function k8(e){return e==null?"":f2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function D8(e){return p2(" "+k8(e)+" ")}function L8(e){let t=D8(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function _8(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function O8(e,t,n,r){t=j8(t,n,r);let a=[],i;if(t)for(i in t)Vl.call(t,i)&&a.push([i,N8(e,t[i])]);return a.length===0?Qm():a.sort(U8)}function N8(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of J8){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?w2(e)?"zh-TW":"zh-CN":t:"auto"}var A2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jm=new Map(A2),Z8=new Map(A2.map(([e,t])=>[t,e]));function k2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>Z8.get(s));!t&&t!==0&&(t=25);let a=Yl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jm.keys()]},o=x2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Jm.get(d)}}let[s,u]=o[0],l=Jm.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function _a(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function X8(e,t){return e<>>32-t}function Jl(e,t,n,r,a,i){return _a(X8(_a(_a(t,e),_a(r,i)),a),n)}function gn(e,t,n,r,a,i,o){return Jl(t&n|~t&r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return Jl(t&r|n&~r,e,t,a,i,o)}function hn(e,t,n,r,a,i,o){return Jl(t^n^r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return Jl(n^(t|~r),e,t,a,i,o)}function Ql(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zm(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Ql(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Ql(a.concat(Zm(t)),512+t.length*8),D2(Ql(i.concat(o),512+128))}function L2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xm(e){return unescape(encodeURIComponent(e))}function P2(e){return $8(Xm(e))}function tA(e){return L2(P2(e))}function M2(e,t){return eA(Xm(e),Xm(t))}function nA(e,t){return L2(M2(e,t))}function Zn(e,t,n){return t?n?M2(t,e):nA(t,e):n?P2(e):tA(e)}var Zl=["caiyun","cai"],R2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],go={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:ie+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`&&q(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw bt(q());case void 0:throw bt(q())}return q()}function Ow(){let e="",t=fa();if(!_t.isHexDigit(t)||(e+=q(),t=fa(),!_t.isHexDigit(t)))throw bt(q());return e+=q(),String.fromCodePoint(parseInt(e,16))}function vm(){let e="",t=4;for(;t-- >0;){let n=fa();if(!_t.isHexDigit(n))throw bt(q());e+=q()}return String.fromCodePoint(parseInt(e,16))}var Nw={start(){if(en.type==="eof")throw Ai();hm()},beforePropertyName(){switch(en.type){case"identifier":case"string":xm=en.value,kn="afterPropertyName";return;case"punctuator":Fl();return;case"eof":throw Ai()}},afterPropertyName(){if(en.type==="eof")throw Ai();kn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Ai();hm()},beforeArrayValue(){if(en.type==="eof")throw Ai();if(en.type==="punctuator"&&en.value==="]"){Fl();return}hm()},afterPropertyValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforePropertyName";return;case"}":Fl()}},afterArrayValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforeArrayValue";return;case"]":Fl()}},end(){}};function hm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Rs===void 0)Rs=e;else{let t=ga[ga.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,xm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ga.push(e),Array.isArray(e)?kn="beforeArrayValue":kn="beforePropertyName";else{let t=ga[ga.length-1];t==null?kn="end":Array.isArray(t)?kn="afterArrayValue":kn="afterPropertyValue"}}function Fl(){ga.pop();let e=ga[ga.length-1];e==null?kn="end":Array.isArray(e)?kn="afterArrayValue":kn="afterPropertyValue"}function bt(e){return Sm(e===void 0?`JSON5: invalid end of input at ${Ba}:${yr}`:`JSON5: invalid character '${jw(e)}' at ${Ba}:${yr}`)}function Ai(){return Sm(`JSON5: invalid end of input at ${Ba}:${yr}`)}function g1(){return yr-=5,Sm(`JSON5: invalid identifier character at ${Ba}:${yr}`)}function jw(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Sm(e){let t=new SyntaxError(e);return t.lineNumber=Ba,t.columnNumber=yr,t}var Uw=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let S=l(v,g);if(S!==void 0){let T=m(v)+":";s!==""&&(T+=" "),T+=S,f.push(T)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, +`+a;v=f.join(S),y=`{ +`+a+v+`, +`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!_t.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),Zw=(e,t)=>{for(var n in t)Cm(e,n,{get:t[n],enumerable:!0})},Tm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kw(t))!Qw.call(e,a)&&a!==n&&Cm(e,a,{get:()=>t[a],enumerable:!(r=Vw(t,a))||r.enumerable});return e},Xw=(e,t,n)=>(Tm(e,t,"default"),n&&Tm(n,t,"default")),y1=(e,t,n)=>(n=e!=null?Gw(Yw(e)):{},Tm(t||!e||!e.__esModule?Cm(n,"default",{value:e,enumerable:!0}):n,e)),v1=Jw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof _l=="object"&&_l&&_l.Object===Object&&_l,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(E,k,P){var F,M,I,L,N,B,j=0,G=!1,z=!1,ue=!0;if(typeof E!="function")throw new TypeError(n);k=w(k)||0,S(P)&&(G=!!P.leading,z="maxWait"in P,I=z?h(w(P.maxWait)||0,k):I,ue="trailing"in P?!!P.trailing:ue);function le(fe){var he=F,we=M;return F=M=void 0,j=fe,L=E.apply(we,he),L}function O(fe){return j=fe,N=setTimeout(Ee,k),G?le(fe):L}function H(fe){var he=fe-B,we=fe-j,Ue=k-he;return z?b(Ue,I-we):Ue}function Y(fe){var he=fe-B,we=fe-j;return B===void 0||he>=k||he<0||z&&we>=I}function Ee(){var fe=f();if(Y(fe))return ge(fe);N=setTimeout(Ee,H(fe))}function ge(fe){return N=void 0,ue&&F?le(fe):(F=M=void 0,L)}function je(){N!==void 0&&clearTimeout(N),j=0,F=B=M=N=void 0}function de(){return N===void 0?L:ge(f())}function me(){var fe=f(),he=Y(fe);if(F=arguments,M=this,B=fe,he){if(N===void 0)return O(B);if(z)return N=setTimeout(Ee,k),le(B)}return N===void 0&&(N=setTimeout(Ee,k)),L}return me.cancel=je,me.flush=de,me}function v(E,k,P){var F=!0,M=!0;if(typeof E!="function")throw new TypeError(n);return S(P)&&(F="leading"in P?!!P.leading:F,M="trailing"in P?!!P.trailing:M),y(E,k,{leading:F,maxWait:k,trailing:M})}function S(E){var k=typeof E;return!!E&&(k=="object"||k=="function")}function T(E){return!!E&&typeof E=="object"}function C(E){return typeof E=="symbol"||T(E)&&g.call(E)==a}function w(E){if(typeof E=="number")return E;if(C(E))return r;if(S(E)){var k=typeof E.valueOf=="function"?E.valueOf():E;E=S(k)?k+"":k}if(typeof E!="string")return E===0?E:+E;E=E.replace(i,"");var P=s.test(E);return P||u.test(E)?l(E.slice(2),P?2:8):o.test(E)?r:+E}t.exports=v}),x1={};Zw(x1,{default:()=>Qn});var $w=y1(v1());Xw(x1,y1(v1()));var{default:b1,...eE}=$w,Qn=b1!==void 0?b1:eE;var Ol=globalThis||(typeof window<"u"?window:self),tE=Object.create,Em=Object.defineProperty,nE=Object.getOwnPropertyDescriptor,rE=Object.getOwnPropertyNames,aE=Object.getPrototypeOf,iE=Object.prototype.hasOwnProperty,oE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sE=(e,t)=>{for(var n in t)Em(e,n,{get:t[n],enumerable:!0})},wm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of rE(t))!iE.call(e,a)&&a!==n&&Em(e,a,{get:()=>t[a],enumerable:!(r=nE(t,a))||r.enumerable});return e},uE=(e,t,n)=>(wm(e,t,"default"),n&&wm(n,t,"default")),T1=(e,t,n)=>(n=e!=null?tE(aE(e)):{},wm(t||!e||!e.__esModule?Em(n,"default",{value:e,enumerable:!0}):n,e)),C1=oE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,E,k){var P,F,M,I,L,N,B=0,j=!1,G=!1,z=!0;if(typeof w!="function")throw new TypeError(n);E=C(E)||0,v(k)&&(j=!!k.leading,G="maxWait"in k,M=G?h(C(k.maxWait)||0,E):M,z="trailing"in k?!!k.trailing:z);function ue(me){var fe=P,he=F;return P=F=void 0,B=me,I=w.apply(he,fe),I}function le(me){return B=me,L=setTimeout(Y,E),j?ue(me):I}function O(me){var fe=me-N,he=me-B,we=E-fe;return G?b(we,M-he):we}function H(me){var fe=me-N,he=me-B;return N===void 0||fe>=E||fe<0||G&&he>=M}function Y(){var me=f();if(H(me))return Ee(me);L=setTimeout(Y,O(me))}function Ee(me){return L=void 0,z&&P?ue(me):(P=F=void 0,I)}function ge(){L!==void 0&&clearTimeout(L),B=0,P=N=F=L=void 0}function je(){return L===void 0?I:Ee(f())}function de(){var me=f(),fe=H(me);if(P=arguments,F=this,N=me,fe){if(L===void 0)return le(N);if(G)return L=setTimeout(Y,E),ue(N)}return L===void 0&&(L=setTimeout(Y,E)),I}return de.cancel=ge,de.flush=je,de}function v(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function S(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||S(w)&&g.call(w)==a}function C(w){if(typeof w=="number")return w;if(T(w))return r;if(v(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=v(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var k=s.test(w);return k||u.test(w)?l(w.slice(2),k?2:8):o.test(w)?r:+w}t.exports=y}),w1={};sE(w1,{default:()=>_n});var lE=T1(C1());uE(w1,T1(C1()));var{default:S1,...cE}=lE,_n=S1!==void 0?S1:cE;var dE=Object.create,km=Object.defineProperty,mE=Object.getOwnPropertyDescriptor,pE=Object.getOwnPropertyNames,gE=Object.getPrototypeOf,fE=Object.prototype.hasOwnProperty,hE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bE=(e,t)=>{for(var n in t)km(e,n,{get:t[n],enumerable:!0})},Am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pE(t))!fE.call(e,a)&&a!==n&&km(e,a,{get:()=>t[a],enumerable:!(r=mE(t,a))||r.enumerable});return e},yE=(e,t,n)=>(Am(e,t,"default"),n&&Am(n,t,"default")),A1=(e,t,n)=>(n=e!=null?dE(gE(e)):{},Am(t||!e||!e.__esModule?km(n,"default",{value:e,enumerable:!0}):n,e)),k1=hE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(O,H){var Y={};for(var Ee in O)H.indexOf(Ee)>=0||Object.prototype.hasOwnProperty.call(O,Ee)&&(Y[Ee]=O[Ee]);return Y}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(O){return typeof O>"u"?"undefined":l(O)}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O>"u"?"undefined":l(O)},h=Object.assign||function(O){for(var H=1;H'+Ee+"
",we.onclick=function(){return M(Ue,he)},we.listener=function(K){(k(K)||P(K))&&N()},F(we,he),je&&je<1&&(je=1),!me&&je&&S(je).then(function(){return M(Ue,he)})},j=d.force=function(O,H){var Y=O.type,Ee=Y===void 0?5:Y,ge=O.text,je=O.buttonText,de=je===void 0?"OK":je,me=O.callback,fe=O.position,he=fe===void 0?f.positions.force||he.top:fe;T(),N();var we=document.createElement("div"),Ue=C();we.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ge+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(w[Ee]),be.innerHTML=de,be.onclick=function(){M(Ue,he),L(),me?me():H&&H()},we.appendChild(K),we.appendChild(be),we.listener=function(tt){k(tt)&&be.click()},F(we,he),I()},G=d.confirm=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Yes":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.confirm||Ue.top:we;T(),N();var K=document.createElement("div"),be=C();K.id=be;var tt=document.createElement("div");tt.classList.add(f.classes.textbox),tt.classList.add(f.classes.backgroundInfo),tt.innerHTML='
'+Ee+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=je,Ye.onclick=function(){M(be,Ue),L(),fe?fe():H&&H()};var Se=document.createElement("div");Se.classList.add(f.classes.button),Se.classList.add(f.classes.elementHalf),Se.classList.add(f.classes.backgroundError),Se.innerHTML=me,Se.onclick=function(){M(be,Ue),L(),he?he():Y&&Y()},K.appendChild(tt),K.appendChild(Ye),K.appendChild(Se),K.listener=function(xt){k(xt)?Ye.click():P(xt)&&Se.click()},F(K,Ue),I(K,Ue)},z=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Submit":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.input||Ue.top:we,K=p(O,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),N();var be=document.createElement("div"),tt=C();be.id=tt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+Ee+"
";var Se=document.createElement("input");Se.classList.add(f.classes.inputField),Se.setAttribute("autocapitalize",K.autocapitalize||"none"),Se.setAttribute("autocomplete",K.autocomplete||"off"),Se.setAttribute("autocorrect",K.autocorrect||"off"),Se.setAttribute("autofocus",K.autofocus||"true"),Se.setAttribute("inputmode",K.inputmode||"verbatim"),Se.setAttribute("max",K.max||""),Se.setAttribute("maxlength",K.maxlength||""),Se.setAttribute("min",K.min||""),Se.setAttribute("minlength",K.minlength||""),Se.setAttribute("placeholder",K.placeholder||""),Se.setAttribute("spellcheck",K.spellcheck||"default"),Se.setAttribute("step",K.step||"any"),Se.setAttribute("type",K.type||"text"),Se.value=K.value||"",K.allowed&&(Se.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",Cn=K.allowed,sr=0;sr'+Y+"
",he.appendChild(Ue),de.forEach(function(be,tt){var Ye=be.type,Se=Ye===void 0?1:Ye,xt=be.text,zt=be.handler,Dt=document.createElement("div");Dt.classList.add(w[Se]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=de[tt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Se&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=xt,Dt.onclick=function(){M(we,fe),L(),zt()},he.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ge,K.onclick=function(){M(we,fe),L(),je?je():H&&H()},he.appendChild(K),he.listener=function(be){P(be)&&K.click()},F(he,fe),I(he,fe)},le=d.date=function(O,H,Y){var Ee=O.value,ge=Ee===void 0?new Date:Ee,je=O.submitText,de=je===void 0?"OK":je,me=O.cancelText,fe=me===void 0?"Cancel":me,he=O.submitCallback,we=O.cancelCallback,Ue=O.position,K=Ue===void 0?f.positions.date||K.top:Ue;T(),N();var be="▾",tt=document.createElement("div"),Ye=document.createElement("div"),Se=document.createElement("div"),xt=function(St){tt.innerHTML=f.dateMonths[St.getMonth()],Ye.innerHTML=St.getDate(),Se.innerHTML=St.getFullYear()},zt=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+1,0).getDate(),Gn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Gn)>et&&(Gn=et.toString()),St.target.textContent=Gn,Number(Gn)<1&&(Gn="1"),ge.setDate(Number(Gn))},Dt=function(St){var et=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=et,ge.setFullYear(Number(et))},Bt=function(St){xt(ge)},Cn=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+St+1,0).getDate();ge.getDate()>et&&ge.setDate(et),ge.setMonth(ge.getMonth()+St),xt(ge)},sr=function(St){ge.setDate(ge.getDate()+St),xt(ge)},ps=function(St){var et=ge.getFullYear()+St;et<0?ge.setFullYear(0):ge.setFullYear(ge.getFullYear()+St),xt(ge)},Ur=document.createElement("div"),gi=C();Ur.id=gi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var hr=document.createElement("div");hr.classList.add(f.classes.button),hr.classList.add(f.classes.elementThird),hr.classList.add(f.classes.dateSelectorUp),hr.innerHTML=be;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=be;var Wn=document.createElement("div");Wn.classList.add(f.classes.button),Wn.classList.add(f.classes.elementThird),Wn.classList.add(f.classes.dateSelectorUp),Wn.innerHTML=be,tt.classList.add(f.classes.element),tt.classList.add(f.classes.elementThird),tt.innerHTML=f.dateMonths[ge.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ge.getDate(),Se.classList.add(f.classes.element),Se.classList.add(f.classes.elementThird),Se.setAttribute("contentEditable",!0),Se.addEventListener("input",Dt),Se.addEventListener("blur",Bt),Se.innerHTML=ge.getFullYear();var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementThird),oa.innerHTML=be;var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementThird),sa.innerHTML=be;var fi=document.createElement("div");fi.classList.add(f.classes.button),fi.classList.add(f.classes.elementThird),fi.innerHTML=be,hr.onclick=function(){return Cn(1)},dn.onclick=function(){return sr(1)},Wn.onclick=function(){return ps(1)},oa.onclick=function(){return Cn(-1)},sa.onclick=function(){return sr(-1)},fi.onclick=function(){return ps(-1)};var wn=document.createElement("div");wn.classList.add(f.classes.button),wn.classList.add(f.classes.elementHalf),wn.classList.add(f.classes.backgroundSuccess),wn.innerHTML=de,wn.onclick=function(){M(gi,K),L(),he?he(ge):H&&H(ge)};var ua=document.createElement("div");ua.classList.add(f.classes.button),ua.classList.add(f.classes.elementHalf),ua.classList.add(f.classes.backgroundError),ua.innerHTML=fe,ua.onclick=function(){M(gi,K),L(),we?we(ge):Y&&Y(ge)},cn.appendChild(hr),cn.appendChild(dn),cn.appendChild(Wn),cn.appendChild(tt),cn.appendChild(Ye),cn.appendChild(Se),cn.appendChild(oa),cn.appendChild(sa),cn.appendChild(fi),Qi.appendChild(cn),Ur.appendChild(Qi),Ur.appendChild(wn),Ur.appendChild(ua),Ur.listener=function(St){k(St)?wn.click():P(St)&&ua.click()},F(Ur,K),I(Ur,K)};d.default={alert:B,force:j,confirm:G,input:z,select:ue,date:le,setOptions:y,hideAlerts:N}}])})}).call(r,a(0)(n))}])})}),D1={};bE(D1,{default:()=>Nl});var vE=A1(k1());yE(D1,A1(k1()));var{default:E1,...xE}=vE,Nl=E1!==void 0?E1:xE;var jl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Fs(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Dm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function L1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;iuo[e.toLowerCase()]||xr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),SE=e=>Object.keys(uo).find(t=>uo[t]===e),TE=e=>Object.keys(xr).find(t=>xr[t]===e);function I1(e){F1=e||"all"}function Bs(){return F1||"all"}function CE(){return ot.slice(0)}function wE(){return ot.map(e=>SE(e)||TE(e)||String.fromCharCode(e))}function EE(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Is(o))})})}),e}function AE(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function kE(e){return typeof e=="string"&&(e=Is(e)),ot.indexOf(e)!==-1}function DE(e,t){let n,r;e||(e=Bs());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in xr)xr[r]===t&&(ha[r]=!1)}}function _1(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Pm(n)});else if(typeof e=="object")e.key&&Pm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Pm({key:e,scope:n,method:r,splitKey:"+"})}}var Pm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Lm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Is(u);if(!Tt[l])return;t||(t=Bs());let c=s>1?Dm(xr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&L1(d.mods,c)))})};function M1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function R1(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ha.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ul[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in xr)xr[i]===r&&(ha[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Ul[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=Bs();if(n)for(let i=0;i-1}function ha(e,t,n){ot=[];let r=Lm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&_1(e,i);s1&&(a=Dm(xr,e)),e=e[e.length-1],e=e==="*"?"*":Is(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!PE(o)&&window&&(B1.push(o),Fs(o,"keydown",p=>{R1(p,o)},d),P1||(P1=!0,Fs(window,"focus",()=>{ot=[]},d),Fs(window,"click",()=>{ot=[]},!1)),Fs(o,"keyup",p=>{R1(p,o),LE(p)},d))}function ME(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Mm={getPressedKeyString:wE,setScope:I1,getScope:Bs,deleteScope:DE,getPressedKeyCodes:CE,getAllKeyCodes:EE,isPressed:kE,filter:AE,trigger:ME,unbind:_1,keyMap:uo,modifier:xr,modifierMap:Ul};for(let e in Mm)Object.prototype.hasOwnProperty.call(Mm,e)&&(ha[e]=Mm[e]);if(typeof window<"u"){let e=window.hotkeys;ha.noConflict=t=>(t&&window.hotkeys===ha&&(window.hotkeys=e),ha),window.hotkeys=ha}var On=ha;var RE={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},N1={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Dn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ia={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=W.getVersionPrecision(e),a=W.getVersionPrecision(t),i=Math.max(r,a),o=0,s=W.map([e,t],u=>{let l=i-W.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return W.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return RE[e]}static getBrowserTypeByAlias(e){return N1[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,FE=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(r,e),version:W.getSecondMatch(r,e)}}}],BE=FE,IE=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Dn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Dn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:Dn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Dn.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),r={name:Dn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Dn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),r={name:Dn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Dn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:Dn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Dn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Dn.Linux}}},{test:[/CrOS/],describe(){return{name:Dn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.PlayStation4,version:t}}}],_E=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],OE=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ia.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ia.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ia.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ia.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ia.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ia.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ia.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],NE=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(BE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(IE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(_E,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(OE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=W.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=W.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=W.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=W.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(W.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},O1=NE,jE=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new O1(e,t)}static parse(e){return new O1(e).getResult()}static get BROWSER_MAP(){return N1}static get ENGINE_MAP(){return Ia}static get OS_MAP(){return Dn}static get PLATFORMS_MAP(){return Ot}},lo=jE;var{entries:V1,setPrototypeOf:j1,isFrozen:UE,getPrototypeOf:HE,getOwnPropertyDescriptor:qE}=Object,{freeze:Ln,seal:Tr,create:zE}=Object,{apply:Om,construct:Nm}=typeof Reflect<"u"&&Reflect;Om||(Om=function(e,t,n){return e.apply(t,n)});Ln||(Ln=function(e){return e});Tr||(Tr=function(e){return e});Nm||(Nm=function(e,t){return new e(...t)});var WE=cr(Array.prototype.forEach),U1=cr(Array.prototype.pop),_s=cr(Array.prototype.push),zl=cr(String.prototype.toLowerCase),Rm=cr(String.prototype.toString),GE=cr(String.prototype.match),Sr=cr(String.prototype.replace),VE=cr(String.prototype.indexOf),KE=cr(String.prototype.trim),Jn=cr(RegExp.prototype.test),Os=YE(TypeError);function cr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),$E=Tr(/\${[\w\W]*}/gm),e8=Tr(/^data-[\-\w.\u00B7-\uFFFF]/),t8=Tr(/^aria-[\-\w]+$/),K1=Tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),n8=Tr(/^(?:\w+script|data):/i),r8=Tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y1=Tr(/^html$/i),G1=Object.freeze({__proto__:null,MUSTACHE_EXPR:ZE,ERB_EXPR:XE,TMPLIT_EXPR:$E,DATA_ATTR:e8,ARIA_ATTR:t8,IS_ALLOWED_URI:K1,IS_SCRIPT_OR_DATA:n8,ATTR_WHITESPACE:r8,DOCTYPE_NAME:Y1}),a8=()=>typeof window>"u"?null:window,i8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function Q1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a8(),t=R=>Q1(R);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Hl(g,"cloneNode"),b=Hl(g,"nextSibling"),f=Hl(g,"childNodes"),y=Hl(g,"parentNode");if(typeof o=="function"){let R=a.createElement("template");R.content&&R.content.ownerDocument&&(a=R.content.ownerDocument)}let v,S="",{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:E}=a,{importNode:k}=n,P={};t.isSupported=typeof V1=="function"&&typeof y=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:j}=G1,{IS_ALLOWED_URI:G}=G1,z=null,ue=Ne({},[...H1,...Fm,...Bm,...Im,...q1]),le=null,O=Ne({},[...z1,..._m,...W1,...ql]),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,Ee=null,ge=!0,je=!0,de=!1,me=!0,fe=!1,he=!1,we=!1,Ue=!1,K=!1,be=!1,tt=!1,Ye=!0,Se=!1,xt="user-content-",zt=!0,Dt=!1,Bt={},Cn=null,sr=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ps=null,Ur=Ne({},["audio","video","img","source","image","track"]),gi=null,Qi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",Wn=dn,oa=!1,sa=null,fi=Ne({},[cn,hr,dn],Rm),wn,ua=["application/xhtml+xml","text/html"],St="text/html",et,Gn=null,Q5=a.createElement("form"),s4=function(R){return R instanceof RegExp||R instanceof Function},Pd=function(R){if(!(Gn&&Gn===R)){if((!R||typeof R!="object")&&(R={}),R=co(R),wn=ua.indexOf(R.PARSER_MEDIA_TYPE)===-1?wn=St:wn=R.PARSER_MEDIA_TYPE,et=wn==="application/xhtml+xml"?Rm:zl,z="ALLOWED_TAGS"in R?Ne({},R.ALLOWED_TAGS,et):ue,le="ALLOWED_ATTR"in R?Ne({},R.ALLOWED_ATTR,et):O,sa="ALLOWED_NAMESPACES"in R?Ne({},R.ALLOWED_NAMESPACES,Rm):fi,gi="ADD_URI_SAFE_ATTR"in R?Ne(co(Qi),R.ADD_URI_SAFE_ATTR,et):Qi,ps="ADD_DATA_URI_TAGS"in R?Ne(co(Ur),R.ADD_DATA_URI_TAGS,et):Ur,Cn="FORBID_CONTENTS"in R?Ne({},R.FORBID_CONTENTS,et):sr,Y="FORBID_TAGS"in R?Ne({},R.FORBID_TAGS,et):{},Ee="FORBID_ATTR"in R?Ne({},R.FORBID_ATTR,et):{},Bt="USE_PROFILES"in R?R.USE_PROFILES:!1,ge=R.ALLOW_ARIA_ATTR!==!1,je=R.ALLOW_DATA_ATTR!==!1,de=R.ALLOW_UNKNOWN_PROTOCOLS||!1,me=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=R.SAFE_FOR_TEMPLATES||!1,he=R.WHOLE_DOCUMENT||!1,K=R.RETURN_DOM||!1,be=R.RETURN_DOM_FRAGMENT||!1,tt=R.RETURN_TRUSTED_TYPE||!1,Ue=R.FORCE_BODY||!1,Ye=R.SANITIZE_DOM!==!1,Se=R.SANITIZE_NAMED_PROPS||!1,zt=R.KEEP_CONTENT!==!1,Dt=R.IN_PLACE||!1,G=R.ALLOWED_URI_REGEXP||K1,Wn=R.NAMESPACE||dn,H=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(je=!1),be&&(K=!0),Bt&&(z=Ne({},[...q1]),le=[],Bt.html===!0&&(Ne(z,H1),Ne(le,z1)),Bt.svg===!0&&(Ne(z,Fm),Ne(le,_m),Ne(le,ql)),Bt.svgFilters===!0&&(Ne(z,Bm),Ne(le,_m),Ne(le,ql)),Bt.mathMl===!0&&(Ne(z,Im),Ne(le,W1),Ne(le,ql))),R.ADD_TAGS&&(z===ue&&(z=co(z)),Ne(z,R.ADD_TAGS,et)),R.ADD_ATTR&&(le===O&&(le=co(le)),Ne(le,R.ADD_ATTR,et)),R.ADD_URI_SAFE_ATTR&&Ne(gi,R.ADD_URI_SAFE_ATTR,et),R.FORBID_CONTENTS&&(Cn===sr&&(Cn=co(Cn)),Ne(Cn,R.FORBID_CONTENTS,et)),zt&&(z["#text"]=!0),he&&Ne(z,["html","head","body"]),z.table&&(Ne(z,["tbody"]),delete Y.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=R.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=i8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Ln&&Ln(R),Gn=R}},u4=Ne({},["mi","mo","mn","ms","mtext"]),l4=Ne({},["foreignobject","desc","title","annotation-xml"]),J5=Ne({},["title","style","font","a","script"]),Xu=Ne({},Fm);Ne(Xu,Bm),Ne(Xu,QE);let Md=Ne({},Im);Ne(Md,JE);let Z5=function(R){let oe=y(R);(!oe||!oe.tagName)&&(oe={namespaceURI:Wn,tagName:"template"});let Q=zl(R.tagName),Je=zl(oe.tagName);return sa[R.namespaceURI]?R.namespaceURI===hr?oe.namespaceURI===dn?Q==="svg":oe.namespaceURI===cn?Q==="svg"&&(Je==="annotation-xml"||u4[Je]):!!Xu[Q]:R.namespaceURI===cn?oe.namespaceURI===dn?Q==="math":oe.namespaceURI===hr?Q==="math"&&l4[Je]:!!Md[Q]:R.namespaceURI===dn?oe.namespaceURI===hr&&!l4[Je]||oe.namespaceURI===cn&&!u4[Je]?!1:!Md[Q]&&(J5[Q]||!Xu[Q]):!!(wn==="application/xhtml+xml"&&sa[R.namespaceURI]):!1},Ji=function(R){_s(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},Rd=function(R,oe){try{_s(t.removed,{attribute:oe.getAttributeNode(R),from:oe})}catch{_s(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(R),R==="is"&&!le[R])if(K||be)try{Ji(oe)}catch{}else try{oe.setAttribute(R,"")}catch{}},c4=function(R){let oe,Q;if(Ue)R=""+R;else{let En=GE(R,/^[\r\n\t ]+/);Q=En&&En[0]}wn==="application/xhtml+xml"&&Wn===dn&&(R=''+R+"");let Je=v?v.createHTML(R):R;if(Wn===dn)try{oe=new m().parseFromString(Je,wn)}catch{}if(!oe||!oe.documentElement){oe=T.createDocument(Wn,"template",null);try{oe.documentElement.innerHTML=oa?S:Je}catch{}}let Wt=oe.body||oe.documentElement;return R&&Q&&Wt.insertBefore(a.createTextNode(Q),Wt.childNodes[0]||null),Wn===dn?E.call(oe,he?"html":"body")[0]:he?oe.documentElement:Wt},d4=function(R){return C.call(R.ownerDocument||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},X5=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},$u=function(R){return typeof s=="object"?R instanceof s:R&&typeof R=="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},la=function(R,oe,Q){P[R]&&WE(P[R],Je=>{Je.call(t,oe,Q,Gn)})},m4=function(R){let oe;if(la("beforeSanitizeElements",R,null),X5(R))return Ji(R),!0;let Q=et(R.nodeName);if(la("uponSanitizeElement",R,{tagName:Q,allowedTags:z}),R.hasChildNodes()&&!$u(R.firstElementChild)&&(!$u(R.content)||!$u(R.content.firstElementChild))&&Jn(/<[/\w]/g,R.innerHTML)&&Jn(/<[/\w]/g,R.textContent))return Ji(R),!0;if(!z[Q]||Y[Q]){if(!Y[Q]&&g4(Q)&&(H.tagNameCheck instanceof RegExp&&Jn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q)))return!1;if(zt&&!Cn[Q]){let Je=y(R)||R.parentNode,Wt=f(R)||R.childNodes;if(Wt&&Je){let En=Wt.length;for(let In=En-1;In>=0;--In)Je.insertBefore(h(Wt[In],!0),b(R))}}return Ji(R),!0}return R instanceof u&&!Z5(R)||(Q==="noscript"||Q==="noembed")&&Jn(/<\/no(script|embed)/i,R.innerHTML)?(Ji(R),!0):(fe&&R.nodeType===3&&(oe=R.textContent,oe=Sr(oe,F," "),oe=Sr(oe,M," "),oe=Sr(oe,I," "),R.textContent!==oe&&(_s(t.removed,{element:R.cloneNode()}),R.textContent=oe)),la("afterSanitizeElements",R,null),!1)},p4=function(R,oe,Q){if(Ye&&(oe==="id"||oe==="name")&&(Q in a||Q in Q5))return!1;if(!(je&&!Ee[oe]&&Jn(L,oe))&&!(ge&&Jn(N,oe))){if(!le[oe]||Ee[oe]){if(!(g4(R)&&(H.tagNameCheck instanceof RegExp&&Jn(H.tagNameCheck,R)||H.tagNameCheck instanceof Function&&H.tagNameCheck(R))&&(H.attributeNameCheck instanceof RegExp&&Jn(H.attributeNameCheck,oe)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(oe))||oe==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Jn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q))))return!1}else if(!gi[oe]&&!Jn(G,Sr(Q,j,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&R!=="script"&&VE(Q,"data:")===0&&ps[R])&&!(de&&!Jn(B,Sr(Q,j,"")))&&Q)return!1}return!0},g4=function(R){return R.indexOf("-")>0},f4=function(R){let oe,Q,Je,Wt;la("beforeSanitizeAttributes",R,null);let{attributes:En}=R;if(!En)return;let In={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le};for(Wt=En.length;Wt--;){oe=En[Wt];let{name:Xt,namespaceURI:Zi}=oe;if(Q=Xt==="value"?oe.value:KE(oe.value),Je=et(Xt),In.attrName=Je,In.attrValue=Q,In.keepAttr=!0,In.forceKeepAttr=void 0,la("uponSanitizeAttribute",R,In),Q=In.attrValue,In.forceKeepAttr||(Rd(Xt,R),!In.keepAttr))continue;if(!me&&Jn(/\/>/i,Q)){Rd(Xt,R);continue}fe&&(Q=Sr(Q,F," "),Q=Sr(Q,M," "),Q=Sr(Q,I," "));let h4=et(R.nodeName);if(p4(h4,Je,Q)){if(Se&&(Je==="id"||Je==="name")&&(Rd(Xt,R),Q=xt+Q),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(h4,Je)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}try{Zi?R.setAttributeNS(Zi,Xt,Q):R.setAttribute(Xt,Q),U1(t.removed)}catch{}}}la("afterSanitizeAttributes",R,null)},$5=function R(oe){let Q,Je=d4(oe);for(la("beforeSanitizeShadowDOM",oe,null);Q=Je.nextNode();)la("uponSanitizeShadowNode",Q,null),!m4(Q)&&(Q.content instanceof i&&R(Q.content),f4(Q));la("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(R){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,Je,Wt,En;if(oa=!R,oa&&(R=""),typeof R!="string"&&!$u(R))if(typeof R.toString=="function"){if(R=R.toString(),typeof R!="string")throw Os("dirty is not a string, aborting")}else throw Os("toString is not a function");if(!t.isSupported)return R;if(we||Pd(oe),t.removed=[],typeof R=="string"&&(Dt=!1),Dt){if(R.nodeName){let Zi=et(R.nodeName);if(!z[Zi]||Y[Zi])throw Os("root node is forbidden and cannot be sanitized in-place")}}else if(R instanceof s)Q=c4(""),Je=Q.ownerDocument.importNode(R,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?Q=Je:Q.appendChild(Je);else{if(!K&&!fe&&!he&&R.indexOf("<")===-1)return v&&tt?v.createHTML(R):R;if(Q=c4(R),!Q)return K?null:tt?S:""}Q&&Ue&&Ji(Q.firstChild);let In=d4(Dt?R:Q);for(;Wt=In.nextNode();)m4(Wt)||(Wt.content instanceof i&&$5(Wt.content),f4(Wt));if(Dt)return R;if(K){if(be)for(En=w.call(Q.ownerDocument);Q.firstChild;)En.appendChild(Q.firstChild);else En=Q;return(le.shadowroot||le.shadowrootmod)&&(En=k.call(n,En,!0)),En}let Xt=he?Q.outerHTML:Q.innerHTML;return he&&z["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Jn(Y1,Q.ownerDocument.doctype.name)&&(Xt=" +`+Xt),fe&&(Xt=Sr(Xt,F," "),Xt=Sr(Xt,M," "),Xt=Sr(Xt,I," ")),v&&tt?v.createHTML(Xt):Xt},t.setConfig=function(R){Pd(R),we=!0},t.clearConfig=function(){Gn=null,we=!1},t.isValidAttribute=function(R,oe,Q){Gn||Pd({});let Je=et(R),Wt=et(oe);return p4(Je,Wt,Q)},t.addHook=function(R,oe){typeof oe=="function"&&(P[R]=P[R]||[],_s(P[R],oe))},t.removeHook=function(R){if(P[R])return U1(P[R])},t.removeHooks=function(R){P[R]&&(P[R]=[])},t.removeAllHooks=function(){P={}},t}var nt=Q1();var o8=Object.create,Um=Object.defineProperty,s8=Object.getOwnPropertyDescriptor,u8=Object.getOwnPropertyNames,l8=Object.getPrototypeOf,c8=Object.prototype.hasOwnProperty,Hm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of u8(t))!c8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=s8(t,a))||r.enumerable});return e},m8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),Z1=(e,t,n)=>(n=e!=null?o8(l8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),p8=Hm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var be=this._getInnerText(K);if(!(be.length<25)){var tt=this._getNodeAncestors(K,5);if(tt.length!==0){var Ye=0;Ye+=1,Ye+=be.split(",").length,Ye+=Math.min(Math.floor(be.length/100),3),this._forEachNode(tt,function(Se,xt){if(!(!Se.tagName||!Se.parentNode||typeof Se.parentNode.tagName>"u")){if(typeof Se.readability>"u"&&(this._initializeNode(Se),h.push(Se)),xt===0)var zt=1;else xt===1?zt=2:zt=xt*3;Se.readability.contentScore+=Ye/zt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(T,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,E=!1,k;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),E=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var P=[],F=1;F=.75&&P.push(this._getNodeAncestors(b[F]));var M=3;if(P.length>=M)for(k=w.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=M){w=k;break}k=k.parentNode}w.readability||this._initializeNode(w),k=w.parentNode;for(var N=w.readability.contentScore,B=N/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var j=k.readability.contentScore;if(jN){w=k;break}N=k.readability.contentScore,k=k.parentNode}for(k=w.parentNode;k.tagName!="BODY"&&k.children.length==1;)w=k,k=w.parentNode;w.readability||this._initializeNode(w)}var G=a.createElement("DIV");i&&(G.id="readability-content");var z=Math.max(10,w.readability.contentScore*.2);k=w.parentNode;for(var ue=k.children,le=0,O=ue.length;le=z)Y=!0;else if(H.nodeName==="P"){var ge=this._getLinkDensity(H),je=this._getInnerText(H),de=je.length;(de>80&&ge<.25||de<80&&de>0&&ge===0&&je.search(/\.( |$)/)!==-1)&&(Y=!0)}}Y&&(this.log("Appending node:",H),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(H.nodeName)===-1&&(this.log("Altering sibling:",H,"to div."),H=this._setNodeTag(H,"DIV")),G.appendChild(H),ue=k.children,le-=1,O-=1)}if(this._debug&&this.log("Article content pre-prep: "+G.innerHTML),this._prepArticle(G),this._debug&&this.log("Article content post-prep: "+G.innerHTML),E)w.id="readability-page-1",w.className="page";else{var me=a.createElement("DIV");for(me.id="readability-page-1",me.className="page";G.firstChild;)me.appendChild(G.firstChild);G.appendChild(me)}this._debug&&this.log("Article content after paging: "+G.innerHTML);var fe=!0,he=this._getInnerText(G,!0).length;if(he0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||f===1&&C<75||f>1;if(s&&w){for(var E=0;E1)return w;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),g8=Hm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),X1=Hm((e,t)=>{var n=p8(),r=g8();t.exports={Readability:n,isProbablyReaderable:r}}),$1={};d8($1,{Readability:()=>Wl,default:()=>n2,isProbablyReaderable:()=>t2});var e2=Z1(X1());m8($1,Z1(X1()));var{Readability:Wl,isProbablyReaderable:t2}=e2,{default:J1,...f8}=e2,n2=J1!==void 0?J1:f8;var h8=Nl.alert;var mo=console,qm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=lr.green;r>1e4?a=lr.red:r>1e3&&(a=lr.yellow),mo.debug(lr.dim(bi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ns=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&mo.log(lr.dim(bi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&mo.log(lr.green(bi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&mo.warn(lr.yellow(bi+" WARN:"),...t)}error(...t){this.#e<=3&&mo.error(lr.red(bi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&mo.error(lr.red(bi+" FATAL:"),...t)}timing(){return this.level===0?new qm:{reset:()=>{},stop:()=>{}}}},D=new Ns;var r2=["*://*/*","*","*://*"],i2="immersive-translate-wildcard-placeholder.com";function zm(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>r2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(r2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return y8(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,i2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=b8(l+":",a2(p),a2(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function a2(e){return e.replaceAll(i2,"*")}function b8(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return zm(e,t)!==null}function y8(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Gl={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.7",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var x8="";function pn(){return x8||Gl.version}function js(){return ee.runtime.getManifest().version}var S8="";function po(){return S8||globalThis.navigator.userAgent}function Us(){return po().includes("ImtFxiOS")}function o2(){let t=po().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Wm(){return po().includes("ImtFxAndroid")}function s2(){let e=po();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function u2(){let t=po().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Hs(){let e=po();if(Us()||Wm()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Zn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Gm={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},l2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Vm={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Km={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Zn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Zn[a]}else return"auto";else return Zn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var c2=J+"SyncStoreKey_";function Ut(e,t){let n=c2+e;return ee.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=c2+e;return ee.storage.sync.set({[n]:t})}var d2=J+"StoreKey_";function ki(e,t){let n=d2+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function m2(e,t){let n=d2+e;return ee.storage.local.set({[n]:t})}var UH=g2(2),p2=g2(3);function g2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var T8=/\s+/g,C8=/[\t\n\v\f\r ]+/g;function f2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?w8:E8;return String(e).replace(t.style==="html"?C8:T8,t.trim?A8(n):n)}function w8(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function E8(){return" "}function A8(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var h2={}.hasOwnProperty;function k8(e){return e==null?"":f2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function D8(e){return p2(" "+k8(e)+" ")}function L8(e){let t=D8(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function _8(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function O8(e,t,n,r){t=j8(t,n,r);let a=[],i;if(t)for(i in t)Vl.call(t,i)&&a.push([i,N8(e,t[i])]);return a.length===0?Qm():a.sort(U8)}function N8(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of J8){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?w2(e)?"zh-TW":"zh-CN":t:"auto"}var A2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jm=new Map(A2),Z8=new Map(A2.map(([e,t])=>[t,e]));function k2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>Z8.get(s));!t&&t!==0&&(t=25);let a=Yl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jm.keys()]},o=v2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Jm.get(d)}}let[s,u]=o[0],l=Jm.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function _a(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function X8(e,t){return e<>>32-t}function Jl(e,t,n,r,a,i){return _a(X8(_a(_a(t,e),_a(r,i)),a),n)}function gn(e,t,n,r,a,i,o){return Jl(t&n|~t&r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return Jl(t&r|n&~r,e,t,a,i,o)}function hn(e,t,n,r,a,i,o){return Jl(t^n^r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return Jl(n^(t|~r),e,t,a,i,o)}function Ql(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zm(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Ql(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Ql(a.concat(Zm(t)),512+t.length*8),D2(Ql(i.concat(o),512+128))}function L2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xm(e){return unescape(encodeURIComponent(e))}function P2(e){return $8(Xm(e))}function tA(e){return L2(P2(e))}function M2(e,t){return eA(Xm(e),Xm(t))}function nA(e,t){return L2(M2(e,t))}function Xn(e,t,n){return t?n?M2(t,e):nA(t,e):n?P2(e):tA(e)}var Zl=["caiyun","cai"],R2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],go={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:ie+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Cr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:ie+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: @@ -5479,8 +5479,8 @@ select.text-gray-6 { {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:ie+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ie+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function F2(e,t,n){let r=rA(e,t),a=[],i={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of r)(i.tempSentences.reduce((u,l)=>u+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function rA(e,t){let n=[],r=[];for(let a=0;a0?ht){let y=[];$m(b,t,y);for(let x=0;x0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$m(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:iA([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var Xl=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(Cr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&<()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Cr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=go);let h=ep(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function B2(e,t,n){return Xl(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:aA(r.config,n))}function aA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function I2(e,t,n="en",r){return Xl(e,t,n).find(o=>o.id===r)}function zs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function _2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function O2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Si.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function iA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var fo=[],Pq=1e3*3600*24;async function $l(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function N2(e){let t=`${_}-${e.service}@${e.from}->${e.to}`;return await uA(t,{...e,createAt:new Date().getTime()})}async function j2(e){let t=Zn(e.originalText),n=`${_}-${e.service}@${e.from}->${e.to}`;return await sA(n,t)}async function sA(e,t){let n=await $l(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function uA(e,t){let n=await $l(e);return(await U2()).includes(e)||await lA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function lA(e){let t="cache_list",n=await $l(_+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),fo.push(e)},a.onerror=i=>{n.close()}}async function U2(){if(fo&&fo.length>0)return fo;let e=await $l(_+"-cacheList","cache_list");return fo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),fo}async function H2(){try{let t=(await U2()).map(r=>cA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function cA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function at(){try{let e=[Le().EBOOK_BUILDER_URL,Le().EBOOK_VIEWER_URL,Le().SUBTITLE_BUILDER_URL,Le().HTML_VIEWER_URL,Le().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];ca()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ec="Original";function Ve(){return ec}function Pn(e){ec=e,z2(ec);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:ec})});document.dispatchEvent(t)}var q2="Original";function ho(){return q2}function cr(e,t){if(t)return;q2=e;let n=new CustomEvent(Ts,{detail:e});document.dispatchEvent(n)}var G2="auto",tc="auto",W2="auto";function V2(e){G2=e}function Xn(e){tc=e}function ct(){return tc!=="auto"?tc:W2!=="auto"?W2:G2}function nc(){return tc}var Ws=new Map,qr=class{fromType;logger;constructor(t,n=!1){this.logger=new Ns,n&&this.logger.setLevel("debug"),this.fromType=t,Ws.has(t)||(Ws.set(t,new Map),ee.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=np(s),{type:m,name:p}=d;if(m!==t)return!1;let g=np(o),b=Ws.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,x={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,x);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,x).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ws.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new tp(`${i}:${t}`,this.logger);return Ws.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},tp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=np(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ee.runtime.sendMessage(o);return K2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ee.tabs.sendMessage(i,o);return K2(o,s,this.logger)}}};function K2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function np(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ba(e){return e?.id?.endsWith("pdfWebPage")||!1}function Di(e){try{if(!e||!ba(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var _e={},zr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),rt(sr,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),rt(sr,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),rt(sr,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),rt(sr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ba(a?.rule)){let s=Di(a.rule);bo(!0,s||o);return}await _e.toggleTranslatePage(r),rt(sr,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),rt(sr,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),rt(sr,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),rt(sr,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),rt(sr,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(xl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(vs,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")at()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!at())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}})):n===D3&&await _e.translateSelectImage(a,r)}};function Y2(e){Object.assign(_e,e)}function Q2(e){Object.assign(_e,e)}function J2(e){Object.assign(_e,e)}var dA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=ct();return _e.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Xn(r),ct();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Di(a?.rule)}}},rc,ac;function Z2(){let e=ic();at()||mA(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function ic(){return rc||(rc=new qr("content_script",!1).getConnection("main",zr),rc)}function mA(){return ac||(ac=new qr("content_script",!1).getConnection("main_sync",dA,{sync:!0}),ac)}var pA=new Map;function oc(e){let t=gA(64),n=new CustomEvent(T3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{pA.set(t,(i,o)=>{i?a(i):r(o)})})}function gA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Z({url:sc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function fA(e,t){return Math.floor(Math.random()*(t-e+1))+e}var hA=30,ap="RATE_LIMITER_TICKS",yo=class e{static strictTicks={};static clearStrictTicks(){wr(ap,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Li(ap)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await wr(ap,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=fA(4,hA);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ut(e){return await ic().sendMessage("background:main",e)}function Z(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,va(e)):ut({method:"fetch",data:e})}function dr(){return ne()?wt():ut({method:"getConfig"})}function Ht(e){return ne()?ja(e):ut({method:"setUserConfig",data:e})}function Mt(){return ne()?yn():ut({method:"getUserConfig"})}function Mn(){return ne()?Vt():ut({method:"getLocalConfig"})}function xa(e){return ne()?Rt(e):ut({method:"setLocalConfig",data:e})}function X2(e){return ne()?mc(e):ut({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Yl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||lt()){if(e.translateService&&!Zl.includes(e.translateService))return Promise.resolve("auto");let r=k2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ut({method:"detectLanguage",data:e});return Promise.resolve(t)}function $2(){return ut({method:"detectTabLanguage"})}async function uc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(ne()||lt()){let n=e.substring(0,200);t=await ya.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function z2(e){let t=new CustomEvent(xi,{detail:e});if(document.dispatchEvent(t),ne())return;ic().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function eb(e){return ne()?j2(e):ut({method:"queryParagraphCache",data:e})}async function tb(e){if(ne()){await N2(e);return}return ut({method:"setParagraphCache",data:e})}async function nb(){if(ne())return Promise.resolve();await ut({method:"mockRequest"})}function Na(e=!1,t=""){return document.querySelector(`meta[name=${_}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):ut({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function lc(e=""){return ne()||lt()?Le().OPTIONS_URL:ee.runtime.getURL("options.html")}function ip(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function cc(e=!1){return ne()?(ee.extra.openAboutPage(e),Promise.resolve()):ut({method:"openAboutPage"})}function Wr(e){return ne()?(ee.extra.openInTab(e),Promise.resolve()):ut({method:"openInTab",data:e})}function rb(e=!1){return ne()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):ut({method:"openEbookViewerPage"})}function ab(e=!1){return ne()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):ut({method:"openEbookBuilderPage"})}function ib(e){lt()}function bo(e=!1,t){return ne()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):ut({method:"openPdfViewerPage",data:{url:t}})}function ob(e=!1){return ne()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):ut({method:"openSubtitleBuilderPage"})}function Gs(e){return ne()?Promise.resolve():ut({method:"setBadge",data:{text:e}})}function sb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ut({method:"autoSyncLatestConfig"})}function dc(e,t=!1){return ne()?ee.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function ub(e,t){return ne()||xe.MOCK==="1"?yo.getDelay(e,t):ut({method:"getDelay",data:{key:e,options:t}})}async function lb(){return ne()?!1:ut({method:"getIsSupportIsOnToolbar"})}async function cb(){return ne()?!1:ut({method:"getIsOnToolbar"})}async function op(){if(!ne())return ut({method:"updateVideoSubtitleStatus"})}function Vs({targetLanguage:e,text:t}){ne()||ut({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ks(){ne()||ut({method:"updateImageMenu"})}var db={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(b.length>t){let y=[];$m(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$m(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:iA([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var Xl=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(Cr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&<()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Cr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=go);let h=ep(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function B2(e,t,n){return Xl(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:aA(r.config,n))}function aA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function I2(e,t,n="en",r){return Xl(e,t,n).find(o=>o.id===r)}function zs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function _2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function O2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Si.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function iA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var fo=[],Pq=1e3*3600*24;async function $l(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function N2(e){let t=`${_}-${e.service}@${e.from}->${e.to}`;return await uA(t,{...e,createAt:new Date().getTime()})}async function j2(e){let t=Xn(e.originalText),n=`${_}-${e.service}@${e.from}->${e.to}`;return await sA(n,t)}async function sA(e,t){let n=await $l(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function uA(e,t){let n=await $l(e);return(await U2()).includes(e)||await lA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function lA(e){let t="cache_list",n=await $l(_+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),fo.push(e)},a.onerror=i=>{n.close()}}async function U2(){if(fo&&fo.length>0)return fo;let e=await $l(_+"-cacheList","cache_list");return fo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),fo}async function H2(){try{let t=(await U2()).map(r=>cA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function cA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function at(){try{let e=[Le().EBOOK_BUILDER_URL,Le().EBOOK_VIEWER_URL,Le().SUBTITLE_BUILDER_URL,Le().HTML_VIEWER_URL,Le().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];ca()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ec="Original";function Ve(){return ec}function Pn(e){ec=e,z2(ec);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:ec})});document.dispatchEvent(t)}var q2="Original";function ho(){return q2}function dr(e,t){if(t)return;q2=e;let n=new CustomEvent(Ts,{detail:e});document.dispatchEvent(n)}var G2="auto",tc="auto",W2="auto";function V2(e){G2=e}function $n(e){tc=e}function ct(){return tc!=="auto"?tc:W2!=="auto"?W2:G2}function nc(){return tc}var Ws=new Map,qr=class{fromType;logger;constructor(t,n=!1){this.logger=new Ns,n&&this.logger.setLevel("debug"),this.fromType=t,Ws.has(t)||(Ws.set(t,new Map),ee.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=np(s),{type:m,name:p}=d;if(m!==t)return!1;let g=np(o),b=Ws.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ws.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new tp(`${i}:${t}`,this.logger);return Ws.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},tp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=np(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ee.runtime.sendMessage(o);return K2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ee.tabs.sendMessage(i,o);return K2(o,s,this.logger)}}};function K2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function np(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ba(e){return e?.id?.endsWith("pdfWebPage")||!1}function Di(e){try{if(!e||!ba(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var _e={},zr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),rt(ur,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),rt(ur,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),rt(ur,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),rt(ur,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ba(a?.rule)){let s=Di(a.rule);bo(!0,s||o);return}await _e.toggleTranslatePage(r),rt(ur,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),rt(ur,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),rt(ur,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),rt(ur,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),rt(ur,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(vl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(xs,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")at()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!at())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}})):n===D3&&await _e.translateSelectImage(a,r)}};function Y2(e){Object.assign(_e,e)}function Q2(e){Object.assign(_e,e)}function J2(e){Object.assign(_e,e)}var dA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=ct();return _e.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return $n(r),ct();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Di(a?.rule)}}},rc,ac;function Z2(){let e=ic();at()||mA(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function ic(){return rc||(rc=new qr("content_script",!1).getConnection("main",zr),rc)}function mA(){return ac||(ac=new qr("content_script",!1).getConnection("main_sync",dA,{sync:!0}),ac)}var pA=new Map;function oc(e){let t=gA(64),n=new CustomEvent(T3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{pA.set(t,(i,o)=>{i?a(i):r(o)})})}function gA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Z({url:sc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function fA(e,t){return Math.floor(Math.random()*(t-e+1))+e}var hA=30,ap="RATE_LIMITER_TICKS",yo=class e{static strictTicks={};static clearStrictTicks(){wr(ap,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Li(ap)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await wr(ap,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=fA(4,hA);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ut(e){return await ic().sendMessage("background:main",e)}function Z(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):ut({method:"fetch",data:e})}function mr(){return ne()?wt():ut({method:"getConfig"})}function Ht(e){return ne()?ja(e):ut({method:"setUserConfig",data:e})}function Mt(){return ne()?yn():ut({method:"getUserConfig"})}function Mn(){return ne()?Vt():ut({method:"getLocalConfig"})}function va(e){return ne()?Rt(e):ut({method:"setLocalConfig",data:e})}function X2(e){return ne()?mc(e):ut({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Yl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||lt()){if(e.translateService&&!Zl.includes(e.translateService))return Promise.resolve("auto");let r=k2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ut({method:"detectLanguage",data:e});return Promise.resolve(t)}function $2(){return ut({method:"detectTabLanguage"})}async function uc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(ne()||lt()){let n=e.substring(0,200);t=await ya.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function z2(e){let t=new CustomEvent(vi,{detail:e});if(document.dispatchEvent(t),ne())return;ic().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function eb(e){return ne()?j2(e):ut({method:"queryParagraphCache",data:e})}async function tb(e){if(ne()){await N2(e);return}return ut({method:"setParagraphCache",data:e})}async function nb(){if(ne())return Promise.resolve();await ut({method:"mockRequest"})}function Na(e=!1,t=""){return document.querySelector(`meta[name=${_}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):ut({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function lc(e=""){return ne()||lt()?Le().OPTIONS_URL:ee.runtime.getURL("options.html")}function ip(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function cc(e=!1){return ne()?(ee.extra.openAboutPage(e),Promise.resolve()):ut({method:"openAboutPage"})}function Wr(e){return ne()?(ee.extra.openInTab(e),Promise.resolve()):ut({method:"openInTab",data:e})}function rb(e=!1){return ne()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):ut({method:"openEbookViewerPage"})}function ab(e=!1){return ne()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):ut({method:"openEbookBuilderPage"})}function ib(e){lt()}function bo(e=!1,t){return ne()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):ut({method:"openPdfViewerPage",data:{url:t}})}function ob(e=!1){return ne()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):ut({method:"openSubtitleBuilderPage"})}function Gs(e){return ne()?Promise.resolve():ut({method:"setBadge",data:{text:e}})}function sb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ut({method:"autoSyncLatestConfig"})}function dc(e,t=!1){return ne()?ee.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function ub(e,t){return ne()||ve.MOCK==="1"?yo.getDelay(e,t):ut({method:"getDelay",data:{key:e,options:t}})}async function lb(){return ne()?!1:ut({method:"getIsSupportIsOnToolbar"})}async function cb(){return ne()?!1:ut({method:"getIsOnToolbar"})}async function op(){if(!ne())return ut({method:"updateVideoSubtitleStatus"})}function Vs({targetLanguage:e,text:t}){ne()||ut({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ks(){ne()||ut({method:"updateImageMenu"})}var db={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5492,7 +5492,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u548C\u5BFC\u822A\u6761\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F\u4E0E\u9876\u90E8\u5BFC\u822A\u83DC\u5355"};var mb={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F"};var mb={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5506,7 +5506,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u548C\u5C0E\u822A\u689D\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04\u8207\u9802\u90E8\u5C0E\u822A\u83DC\u55AE"};var pb={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u958B\u555F\u5074\u908A\u6B04\u7FFB\u8B6F"};var pb={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5519,7 +5519,7 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","subtitle.ytAIAsrProTooltip":"This feature is only available to Pro users, <1>click here to upgrade to a member.","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)"};var vA=[{code:"zh-CN",messages:db},{code:"zh-TW",messages:mb},{code:"en",messages:pb}],gb=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ua={};for(let e of vA)Ua[e.code]=e.messages;function SA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=CA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:_+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function fb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function TA(e,t,n,r){if(!Ua.hasOwnProperty(t)&&!Ua.hasOwnProperty(n))return e;let a=fb(Ua,t,e);return a===e&&t!==n&&(a=fb(Ua,n,e)),SA(a,r)}function CA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return TA(t,e,"en",n)}function hb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function bb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Si.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)",disableNavTranslate:"Close sidebar translation",enableNavTranslate:"Enable sidebar translation"};var xA=[{code:"zh-CN",messages:db},{code:"zh-TW",messages:mb},{code:"en",messages:pb}],gb=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ua={};for(let e of xA)Ua[e.code]=e.messages;function SA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=CA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:_+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function fb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function TA(e,t,n,r){if(!Ua.hasOwnProperty(t)&&!Ua.hasOwnProperty(n))return e;let a=fb(Ua,t,e);return a===e&&t!==n&&(a=fb(Ua,n,e)),SA(a,r)}function CA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return TA(t,e,"en",n)}function hb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function bb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Si.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Si.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:_,href:Q3})];sp(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

@@ -5528,11 +5528,11 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad

${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:_,href:Pl}));else{let d="";u=="AI"?d=X3:d=$3,o?l.push(r("proQuotaError.trail",{brandId:_,href:im})):l.push(r("proQuotaError.package",{brandId:_,href:d,translationService:u})),sp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function sp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||bb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:hb(i,"YYYY-MM-DD HH:mm:ss")}))}function pc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function yb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function xb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function gc(e){let{mimeType:t,base64:n}=wA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await pm(vb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await vb(e);return t}async function vb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=pc(e.body):r=="urlSearchParams"?a.body=yb(e.body):r=="blob"&&e.body&&(a.body=gc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of EA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){D.error("parse response failed",h)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*EA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,AA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Ys(e){return e.then(void 0,function(){}),e}function DA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function PA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function MA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ha(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function mr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function xo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),mr(e,RA),t[1]=e[0]>>>1,xt(e,t),mr(e,FA),t[1]=e[0]>>>1,xt(e,t)}var hc=[2277735313,289559509],bc=[1291169091,658871167],wb=[0,5],BA=[0,1390208809],IA=[0,944331445];function _A(e,t){var n=MA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function OA(e){var t;return fc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function NA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function jA(e){return typeof e!="function"}function UA(e,t){var n=Ys(new Promise(function(r){var a=Date.now();Sb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function qA(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ob()}function vc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Dr(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function fp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Qs(){var e=window;return NA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Nb(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function zA(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function WA(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Js(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function GA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function VA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function KA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function hp(){var e=vc(),t=Nb(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function YA(){return ZA()?-4:QA()}function QA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(JA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=XA(a),u=s[0],l=s[1],c=Ys(u.then(function(d){return $A(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function JA(){return Dr()&&!fp()&&!WA()}function ZA(){return Dr()&&Js()&&Qs()}function XA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Eb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Ib(g)&&Ys(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Eb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function $A(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function P7(){var e=new Date().getFullYear();return Math.max(kr(new Date(e,0,1).getTimezoneOffset()),kr(new Date(e,6,1).getTimezoneOffset()))}function M7(){try{return!!window.sessionStorage}catch{return!0}}function R7(){try{return!!window.localStorage}catch{return!0}}function F7(){if(!(Ob()||qA()))try{return!!window.indexedDB}catch{return!0}}function B7(){return!!window.openDatabase}function I7(){return navigator.cpuClass}function _7(){var e=navigator.platform;return e==="MacIntel"&&Dr()&&!fp()?GA()?"iPad":"iPhone":e}function O7(){return navigator.vendor||""}function N7(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function q7(){return Dr()||hp()}function z7(e){var t;return Er(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Ar(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},kb(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function sp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||bb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:hb(i,"YYYY-MM-DD HH:mm:ss")}))}function pc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function yb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function vb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function gc(e){let{mimeType:t,base64:n}=wA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await pm(xb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await xb(e);return t}async function xb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=pc(e.body):r=="urlSearchParams"?a.body=yb(e.body):r=="blob"&&e.body&&(a.body=gc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of EA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){D.error("parse response failed",h)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*EA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,AA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Ys(e){return e.then(void 0,function(){}),e}function DA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function PA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function MA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ha(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function pr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function vo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function er(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];vt(e,t),pr(e,RA),t[1]=e[0]>>>1,vt(e,t),pr(e,FA),t[1]=e[0]>>>1,vt(e,t)}var hc=[2277735313,289559509],bc=[1291169091,658871167],wb=[0,5],BA=[0,1390208809],IA=[0,944331445];function _A(e,t){var n=MA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function OA(e){var t;return fc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function NA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function jA(e){return typeof e!="function"}function UA(e,t){var n=Ys(new Promise(function(r){var a=Date.now();Sb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function qA(){var e=window,t=navigator;return tr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ob()}function xc(){var e=window,t=navigator;return tr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Dr(){var e=window,t=navigator;return tr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function fp(){var e=window,t=e.HTMLElement,n=e.Document;return tr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Qs(){var e=window;return NA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Nb(){var e,t,n=window;return tr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function zA(){var e=window;return tr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function WA(){var e=window;return tr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Js(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return tr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function GA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return tr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function VA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function KA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function hp(){var e=xc(),t=Nb(),n=window,r=navigator,a="connection";return e?tr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?tr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function YA(){return ZA()?-4:QA()}function QA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(JA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=XA(a),u=s[0],l=s[1],c=Ys(u.then(function(d){return $A(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function JA(){return Dr()&&!fp()&&!WA()}function ZA(){return Dr()&&Js()&&Qs()}function XA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Eb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Ib(g)&&Ys(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Eb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function $A(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function P7(){var e=new Date().getFullYear();return Math.max(kr(new Date(e,0,1).getTimezoneOffset()),kr(new Date(e,6,1).getTimezoneOffset()))}function M7(){try{return!!window.sessionStorage}catch{return!0}}function R7(){try{return!!window.localStorage}catch{return!0}}function F7(){if(!(Ob()||qA()))try{return!!window.indexedDB}catch{return!0}}function B7(){return!!window.openDatabase}function I7(){return navigator.cpuClass}function _7(){var e=navigator.platform;return e==="MacIntel"&&Dr()&&!fp()?GA()?"iPad":"iPhone":e}function O7(){return navigator.vendor||""}function N7(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function q7(){return Dr()||hp()}function z7(e){var t;return Er(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Ar(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},kb(r),u=0;u')}function ak(){return navigator.pdfViewerEnabled}function ik(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ok(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(sk())return-3;try{return e.canMakePayments()?1:0}catch(t){return uk(t)}}var sk=n7;function uk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function lk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Ub=-1,Hb=-2,ck=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),mk=["FRAGMENT_SHADER","VERTEX_SHADER"],pk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],qb="WEBGL_debug_renderer_info",gk="WEBGL_polygon_mode";function fk(e){var t,n,r,a,i,o,s=e.cache,u=zb(s);if(!u)return Ub;if(!Gb(u))return Hb;var l=Wb()?null:u.getExtension(qb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function hk(e){var t=e.cache,n=zb(t);if(!n)return Ub;if(!Gb(n))return Hb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Bb,"/npm-monitoring"),!0),e.send()}catch{}}function Fk(e){var t;return e===void 0&&(e={}),Er(this,void 0,void 0,function(){var n,r,a;return Ar(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Rk(),n=e.delayFallback,r=e.debug,[4,Pk(n)];case 1:return i.sent(),a=Tk({cache:{},debug:r}),[2,Mk(a,r)]}})})}var bp={load:Fk,hashComponents:Vb,componentsToDebugString:Dk};async function Zs(){let e=await Ut("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Ut("installedAt","");return n||(n=await ki("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await _k(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var Bk=10;async function To(){let e=await Ut("userTag","");if(e)return e;let{fakeUserId:t}=await Zs(),r=t.charCodeAt(0)%Bk;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Ik(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Ok(i,e)}catch{return Ik(64)}}function Ok(e,t=32){let n="";for(let a=0;a{}),wc)}async function Xs(e,t){try{let n=Le(),r=n.INSTALL_FROM==="firefox_store";if(Hs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=at(),s=n.PROD==="1",u=pn(),l=new Date,{fakeUserId:c,installedAt:d}=await Zs(),m=await To(),p=await Co(),g=await wo(),h=new Date(d),b=qa(h),f=qa(l),y=b===f,x=24*60*60*1e3,S=l.getTime()-h.getTime()<7*x,T=l.getTime()-h.getTime()<30*x,C=l.getTime()-h.getTime()<365*x,w=Ml(),E="";typeof navigator<"u"&&(E=window.navigator.userAgent);let k=lo.parse(E),P=e.map(F=>{let M=F.params||{};if(k.os&&(M.os_name=k.os.name||"unknown",M.os_version=k.os.version||"unknown",M.os_version_name=k.os.versionName||"unknown"),k.browser){M.browser_name=k.browser.name||"unknown",M.browser_version=k.browser.version||"unknown";let I=Hs();I&&(M.browser_name=I.name,M.browser_version=I.version)}if(k.platform&&(M.platform_type=k.platform.type||"unknown"),k.engine&&(M.engine_name=k.engine.name||"unknown",M.engine_version=k.engine.version||"unknown"),u&&(M.version=u),n.INSTALL_FROM&&(M.install_from=n.INSTALL_FROM),b){M.install_day=Sc(h);let I=Cc(h);M.install_week=`${I.year}${I.week}`}return M.userscript=i.toString(),y?M.is_new_user_today="1":M.is_new_user_today="0",M.is_new_user_this_week=S?"1":"0",M.is_new_user_this_month=T?"1":"0",M.is_new_user_this_year=C?"1":"0",o?M.main_frame=0:M.main_frame=1,m&&(M.ab_tag=m),p&&(M.ab_group=p),M.campaign=g||"none",{...F,params:M}});w.forEach(async F=>{let M=await $s({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:P})})}),t&&Uk(c,P)}catch{}}async function jk(e){return await Nk().sendMessage("background:main",e)}function $s(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,va(e)):jk({method:"fetch",data:e})}function Uk(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Tc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);$s({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Ec={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function G7(){for(var e=0,t=["rec2020","p3","srgb"];e')}function ak(){return navigator.pdfViewerEnabled}function ik(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ok(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(sk())return-3;try{return e.canMakePayments()?1:0}catch(t){return uk(t)}}var sk=n7;function uk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function lk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Ub=-1,Hb=-2,ck=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),mk=["FRAGMENT_SHADER","VERTEX_SHADER"],pk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],qb="WEBGL_debug_renderer_info",gk="WEBGL_polygon_mode";function fk(e){var t,n,r,a,i,o,s=e.cache,u=zb(s);if(!u)return Ub;if(!Gb(u))return Hb;var l=Wb()?null:u.getExtension(qb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function hk(e){var t=e.cache,n=zb(t);if(!n)return Ub;if(!Gb(n))return Hb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Bb,"/npm-monitoring"),!0),e.send()}catch{}}function Fk(e){var t;return e===void 0&&(e={}),Er(this,void 0,void 0,function(){var n,r,a;return Ar(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Rk(),n=e.delayFallback,r=e.debug,[4,Pk(n)];case 1:return i.sent(),a=Tk({cache:{},debug:r}),[2,Mk(a,r)]}})})}var bp={load:Fk,hashComponents:Vb,componentsToDebugString:Dk};async function Zs(){let e=await Ut("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Ut("installedAt","");return n||(n=await ki("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await _k(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var Bk=10;async function To(){let e=await Ut("userTag","");if(e)return e;let{fakeUserId:t}=await Zs(),r=t.charCodeAt(0)%Bk;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Ik(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Ok(i,e)}catch{return Ik(64)}}function Ok(e,t=32){let n="";for(let a=0;a{}),wc)}async function Xs(e,t){try{let n=Le(),r=n.INSTALL_FROM==="firefox_store";if(Hs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=at(),s=n.PROD==="1",u=pn(),l=new Date,{fakeUserId:c,installedAt:d}=await Zs(),m=await To(),p=await Co(),g=await wo(),h=new Date(d),b=qa(h),f=qa(l),y=b===f,v=24*60*60*1e3,S=l.getTime()-h.getTime()<7*v,T=l.getTime()-h.getTime()<30*v,C=l.getTime()-h.getTime()<365*v,w=Ml(),E="";typeof navigator<"u"&&(E=window.navigator.userAgent);let k=lo.parse(E),P=e.map(F=>{let M=F.params||{};if(k.os&&(M.os_name=k.os.name||"unknown",M.os_version=k.os.version||"unknown",M.os_version_name=k.os.versionName||"unknown"),k.browser){M.browser_name=k.browser.name||"unknown",M.browser_version=k.browser.version||"unknown";let I=Hs();I&&(M.browser_name=I.name,M.browser_version=I.version)}if(k.platform&&(M.platform_type=k.platform.type||"unknown"),k.engine&&(M.engine_name=k.engine.name||"unknown",M.engine_version=k.engine.version||"unknown"),u&&(M.version=u),n.INSTALL_FROM&&(M.install_from=n.INSTALL_FROM),b){M.install_day=Sc(h);let I=Cc(h);M.install_week=`${I.year}${I.week}`}return M.userscript=i.toString(),y?M.is_new_user_today="1":M.is_new_user_today="0",M.is_new_user_this_week=S?"1":"0",M.is_new_user_this_month=T?"1":"0",M.is_new_user_this_year=C?"1":"0",o?M.main_frame=0:M.main_frame=1,m&&(M.ab_tag=m),p&&(M.ab_group=p),M.campaign=g||"none",{...F,params:M}});w.forEach(async F=>{let M=await $s({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:P})})}),t&&Uk(c,P)}catch{}}async function jk(e){return await Nk().sendMessage("background:main",e)}function $s(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):jk({method:"fetch",data:e})}function Uk(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Tc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);$s({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Ec={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5775,19 +5775,19 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{sideHead:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{sideHead:"1","default-translate":"no"},nav:{sideHead:"1","default-translate":"no"}},navHeadEnableTranslate:!0,selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.5]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ"],translationMode:"translation"},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` `},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"}},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"im.zendesk",matches:"https://immersivetranslate.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"],"excludeSelectors.add":["blockquote"]},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{generalSetting:{startKey:"start",endKey:"end",textKey:"text",timeDivisor:1e3},attachRule:{appendSelector:".video-wrapper",injectedGlobalCSS:[".closed-captions {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 15%;}"]}}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};var Qb="userConfig",Ac="userPromptPool",kc="userObjectPool";async function Dc(){let e=await ty(Qb)||{},t=await Li(Ac)||{},n=await Li(kc)||{};return qk(e,t,n)}async function Jb(e){let{userConfig:t,promptPool:n,objectPool:r}=await yp(e);await ey(Qb,t),await wr(Ac,n),await wr(kc,r)}function yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Zb(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Xb(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function qk(e,t,n){return Zb(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Xb(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Zb(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Xb(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function za(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=$b(r);for(let o of i)delete a[o]}),n}function xp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=$b(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function $b(e){let t=Cr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=go.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function ry(){if(xe.PROD==="1")return{};let e={};if(xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(xe.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=xe.DEEPL_PROXY_ENDPOINT),xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}xe.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=xe.IMMERSIVE_TRANSLATE_SERVICE);let t={};return xe.DEBUG==="1"&&(t.debug=!0,t.cache=!1),xe.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await ee.storage.local.get(Ss);if(e[Ss]){let t=e[Ss],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await ee.storage.local.set({[Ss]:e})}async function mc(e){await ee.storage.local.set({[Sl]:e})}async function ay(){return xe.DEBUG==="1"?void 0:(await ee.storage.local.get(Sl))[Sl]}async function Lc(){let e=await ay(),n={...await vp(),...Ec,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function wt(){let e=await ay(),t={...Ec,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let N=new Date(e.buildinConfigUpdatedAt),B=new Date(t.buildinConfigUpdatedAt);N>B&&(t=e)}let n=await Gk(t);t.targetLanguage=n;let r=await mt.get(dt,null),a={};if(!ne()&&ee.commands&&ee.commands.getAll){let N=await ee.commands.getAll();for(let B of N)B.name&&B.shortcut&&(a[B.name]=B.shortcut)}let i=await vp(),o=ry(),s=await yn(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Vt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let N=await zk();d.interfaceLanguage=N}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await ki("translage_page_daily",0)),w=Number(await Ut(sr,0)),E;w>0&&(Date.now()-w0&&(Date.now()-C0){let N=l.tempTranslationUrlMatches.filter(B=>new Date(B.expiredAt)>c);if(N.length>0){let B=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(B)?B:[B],G=Array.from(new Set(j.concat(N.map(z=>z.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:G}}}let M=Object.assign(i,t);Gr({rule:t,valueIsArray:N=>Array.isArray(i[N]),getMergedValue:N=>i[N],onMergedResult:(N,B)=>{N!="generalRule"&&(M[N]=B)}}),Gr({rule:t.generalRule,valueIsArray:N=>Array.isArray(i.generalRule[N]),getMergedValue:N=>i.generalRule[N],onMergedResult:(N,B)=>{M.generalRule[N]=B}}),Yk(M,T),Vk(r,d,M);let I=Object.keys(M),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let N of I){let B=N;if(B==="generalRule")typeof d[B]=="object"&&(M[B]=Mc(M[B],d[B]));else if(B==="translationServices")Kk(d,M);else if(typeof d[B]!="string"&&typeof d[B]!="boolean"&&typeof d[B]!="number"&&L.includes(B))d[B]&&(M[B]=Object.assign(M[B],d[B])),B==="shortcuts"&&(ne()||lt()?M[B]={...M[B],...a}:M[B]={...a});else if(B==="rules"){if(Array.isArray(d[B])){let j=M.rules||[],G={};for(let ue of j)ue.id&&(G[ue.id]=ue);let z=d[B].map(ue=>ue.id&&G[ue.id]?sy(M.generalRule,G[ue.id],ue):ue);M[B]=[...z,...M[B]]}if(xe.PROD==="0"&&xe.DEV_RULES){let j=JSON.parse(xe.DEV_RULES);M[B]=[...j,...M[B]]}}else d[B]!==void 0&&(M[B]=d[B])}return M.donateUrl=t.donateUrl,M.minVersion=t.minVersion,M.feedbackUrl=t.feedbackUrl,M.rawUserConfig=s,M}function yn(){return Dc()}function ja(e){return Jb(e)}async function ey(e,t){await ee.storage.sync.set({[e]:t})}async function ty(e){return(await ee.storage.sync.get(e))[e]}async function wr(e,t){await ee.storage.local.set({[e]:t})}async function Li(e){return(await ee.storage.local.get(e))[e]}var iy={};function Pc(e){return iy[e]}function oy(e,t){iy[e]=t}var zk=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>gb.find(a=>a===r));return n||"en"},vp=async()=>{let e={...Ec,buildinConfigUpdatedAt:xe.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function Wk(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function Gk(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=ny(l,r[s]))}),Gr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=ny(l,n[s]))}),Gr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function Yk(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function ny(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Sp(e){return e.replace(//g,">")}var Rc=!1,Qk=ne();function uy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function Jk(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&ly(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Wa(i,Cl)){if(a===!0)return!0;continue}if(eu(i.nodeName,t.inlineTags))return!0;if(!Tp(i,t))return!1}}return!0}function Cp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(eu(e.nodeName,n)||Tp(e,t)){if(Wa(e,O3)||eu(e.nodeName,["BR"]))return!1;if(Wa(e,Cl))return!0;if(Tp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return Jk(e,t)}else return Wa(e,Cl);return!1}function ly(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Wa(e,_3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Wa(e,k3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||eu(e.nodeName,i))}function Fc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!dy(r)&&r.length>=n}function cy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(dy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function dy(e){for(let t=0;t127)return!1;return!0}function my(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function py(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function gy(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function fy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function hy(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Wa(e,t,n=!1){return wp(e,t,"1",n)}function wp(e,t,n,r=!1){return Rc&&!r?e[Kn]?e[Kn]?.[t]===n:!1:e.dataset?.[t]===n}function Eo(e){return(e.innerText||e.textContent||"").trim()}function Ep(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Bc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Rc&&!r?(e[Kn]||(e[Kn]={}),e[Kn][t]||(e[Kn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function by(e,t,n=!1){if(Rc&&!n){if(!e[Kn]||!e[Kn][t])return;delete e[Kn][t]}else delete e.dataset[t]}function yy(e,t,n=!1){return Rc&&!n?!e[Kn]||!e[Kn][t]?void 0:e[Kn][t]:e.dataset[t]}function Tp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!eu(e.nodeName,n)}function De(){if(!globalThis||!globalThis.location)return"https://example.com";if(!at())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Fn(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Ga(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(Qk){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${_}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function eu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function xy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function vy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ly(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Sy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Ty(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var wy=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(wy=!0)});function Ic(){return wy}var pr=Cy;function Ay(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(Xk(t,o))return"";i=Ey(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(b=>{let f=Ey(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";return}u=f,l+=g(b)||""}),h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};var Qb="userConfig",Ac="userPromptPool",kc="userObjectPool";async function Dc(){let e=await ty(Qb)||{},t=await Li(Ac)||{},n=await Li(kc)||{};return qk(e,t,n)}async function Jb(e){let{userConfig:t,promptPool:n,objectPool:r}=await yp(e);await ey(Qb,t),await wr(Ac,n),await wr(kc,r)}function yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Zb(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Xb(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function qk(e,t,n){return Zb(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Xb(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Zb(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Xb(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function za(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=$b(r);for(let o of i)delete a[o]}),n}function vp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=$b(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function $b(e){let t=Cr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=go.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function ry(){if(ve.PROD==="1")return{};let e={};if(ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:ve.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:ve.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:ve.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(ve.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=ve.DEEPL_PROXY_ENDPOINT),ve.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=ve.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),ve.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:ve.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}ve.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=ve.IMMERSIVE_TRANSLATE_SERVICE);let t={};return ve.DEBUG==="1"&&(t.debug=!0,t.cache=!1),ve.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await ee.storage.local.get(Ss);if(e[Ss]){let t=e[Ss],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await ee.storage.local.set({[Ss]:e})}async function mc(e){await ee.storage.local.set({[Sl]:e})}async function ay(){return ve.DEBUG==="1"?void 0:(await ee.storage.local.get(Sl))[Sl]}async function Lc(){let e=await ay(),n={...await xp(),...Ec,buildinConfigUpdatedAt:ve.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function wt(){let e=await ay(),t={...Ec,buildinConfigUpdatedAt:ve.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let N=new Date(e.buildinConfigUpdatedAt),B=new Date(t.buildinConfigUpdatedAt);N>B&&(t=e)}let n=await Gk(t);t.targetLanguage=n;let r=await mt.get(dt,null),a={};if(!ne()&&ee.commands&&ee.commands.getAll){let N=await ee.commands.getAll();for(let B of N)B.name&&B.shortcut&&(a[B.name]=B.shortcut)}let i=await xp(),o=ry(),s=await yn(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Vt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let N=await zk();d.interfaceLanguage=N}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let v=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,v=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await ki("translage_page_daily",0)),w=Number(await Ut(ur,0)),E;w>0&&(Date.now()-w0&&(Date.now()-C0){let N=l.tempTranslationUrlMatches.filter(B=>new Date(B.expiredAt)>c);if(N.length>0){let B=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(B)?B:[B],G=Array.from(new Set(j.concat(N.map(z=>z.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:G}}}let M=Object.assign(i,t);Gr({rule:t,valueIsArray:N=>Array.isArray(i[N]),getMergedValue:N=>i[N],onMergedResult:(N,B)=>{N!="generalRule"&&(M[N]=B)}}),Gr({rule:t.generalRule,valueIsArray:N=>Array.isArray(i.generalRule[N]),getMergedValue:N=>i.generalRule[N],onMergedResult:(N,B)=>{M.generalRule[N]=B}}),Yk(M,T),Vk(r,d,M);let I=Object.keys(M),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let N of I){let B=N;if(B==="generalRule")typeof d[B]=="object"&&(M[B]=Mc(M[B],d[B]));else if(B==="translationServices")Kk(d,M);else if(typeof d[B]!="string"&&typeof d[B]!="boolean"&&typeof d[B]!="number"&&L.includes(B))d[B]&&(M[B]=Object.assign(M[B],d[B])),B==="shortcuts"&&(ne()||lt()?M[B]={...M[B],...a}:M[B]={...a});else if(B==="rules"){if(Array.isArray(d[B])){let j=M.rules||[],G={};for(let ue of j)ue.id&&(G[ue.id]=ue);let z=d[B].map(ue=>ue.id&&G[ue.id]?sy(M.generalRule,G[ue.id],ue):ue);M[B]=[...z,...M[B]]}if(ve.PROD==="0"&&ve.DEV_RULES){let j=JSON.parse(ve.DEV_RULES);M[B]=[...j,...M[B]]}}else d[B]!==void 0&&(M[B]=d[B])}return M.donateUrl=t.donateUrl,M.minVersion=t.minVersion,M.feedbackUrl=t.feedbackUrl,M.rawUserConfig=s,M}function yn(){return Dc()}function ja(e){return Jb(e)}async function ey(e,t){await ee.storage.sync.set({[e]:t})}async function ty(e){return(await ee.storage.sync.get(e))[e]}async function wr(e,t){await ee.storage.local.set({[e]:t})}async function Li(e){return(await ee.storage.local.get(e))[e]}var iy={};function Pc(e){return iy[e]}function oy(e,t){iy[e]=t}var zk=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>gb.find(a=>a===r));return n||"en"},xp=async()=>{let e={...Ec,buildinConfigUpdatedAt:ve.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function Wk(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function Gk(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=ny(l,r[s]))}),Gr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=ny(l,n[s]))}),Gr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function Yk(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function ny(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Sp(e){return e.replace(//g,">")}var Rc=!1,Qk=ne();function uy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function Jk(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&ly(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Wa(i,Cl)){if(a===!0)return!0;continue}if(eu(i.nodeName,t.inlineTags))return!0;if(!Tp(i,t))return!1}}return!0}function Cp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(eu(e.nodeName,n)||Tp(e,t)){if(Wa(e,O3)||eu(e.nodeName,["BR"]))return!1;if(Wa(e,Cl))return!0;if(Tp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return Jk(e,t)}else return Wa(e,Cl);return!1}function ly(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Wa(e,_3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Wa(e,k3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||eu(e.nodeName,i))}function Fc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!dy(r)&&r.length>=n}function cy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(dy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function dy(e){for(let t=0;t127)return!1;return!0}function my(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function py(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function gy(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function fy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function hy(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Wa(e,t,n=!1){return wp(e,t,"1",n)}function wp(e,t,n,r=!1){return Rc&&!r?e[Yn]?e[Yn]?.[t]===n:!1:e.dataset?.[t]===n}function Eo(e){return(e.innerText||e.textContent||"").trim()}function Ep(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Bc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Rc&&!r?(e[Yn]||(e[Yn]={}),e[Yn][t]||(e[Yn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function by(e,t,n=!1){if(Rc&&!n){if(!e[Yn]||!e[Yn][t])return;delete e[Yn][t]}else delete e.dataset[t]}function yy(e,t,n=!1){return Rc&&!n?!e[Yn]||!e[Yn][t]?void 0:e[Yn][t]:e.dataset[t]}function Tp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!eu(e.nodeName,n)}function De(){if(!globalThis||!globalThis.location)return"https://example.com";if(!at())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Fn(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Ga(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(Qk){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${_}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function eu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function vy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function xy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ly(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Sy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Ty(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var wy=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(wy=!0)});function Ic(){return wy}var Nn=Cy;function Ay(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(Xk(t,o))return"";i=Ey(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(b=>{let f=Ey(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";return}u=f,l+=g(b)||""}),h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` `).filter(b=>!!b.trim()).length>1)return t.innerHTML;return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=Fy(u,a)}else s+=l}}function ky(e,t,n,r,a){return!e||!t?"":t.replace(Fy(n,a)||"",r)}var Ap=globalThis.document?.createElement("div");function Zk(e){return Ap?(Ap.innerHTML=pr?.createHTML(e)||e,Ap?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Dy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||Zk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Ly(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function Py(e,t,n,r){let a="";return n?a=My(e,t,n):a=Ry(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function My(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?My(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Ry(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Ry(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Fy(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=Fy(u,a)}else s+=l}}function ky(e,t,n,r,a){return!e||!t?"":t.replace(Fy(n,a)||"",r)}var Ap=globalThis.document?.createElement("div");function Zk(e){return Ap?(Ap.innerHTML=Nn?.createHTML(e)||e,Ap?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Dy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||Zk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Ly(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function Py(e,t,n,r){let a="";return n?a=My(e,t,n):a=Ry(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function My(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?My(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Ry(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Ry(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Fy(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` `)<0?r=nt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=nt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function Xk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ey(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function _c(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function kp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Gr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function By(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?kp(e.rule):e.rule}function Oc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var $k=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Vr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!$k.includes(n.display):tr(e,r)}}var At=tr;function Mi(e){return!!e.shadowRoot}function Va(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function tu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Kr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Pi(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Kr(n,t)}function ko(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Dp(e){let{rule:t}=e,n=eD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function eD(e){let t=e.config.loadingTheme;return`${_}-loading-${t}`}function nu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Pt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,B3,t.toString());let i=Dp(e);return a.append(n?" ...":nt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${$d}='${t}']`)}function Iy(){document.querySelectorAll(`[${$d}]`).forEach(t=>{t.remove()})}function _y(){document.querySelectorAll(`.${Pt}-error`).forEach(t=>{t.remove()})}function Oy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ga(n)&&t.push(n)}),t}function Lp(e,t){return t?tD(e):nD(e)}function tD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Ny(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Sp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function nD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Ny(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Sp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Pp(e,t){return t?rD(e):aD(e)}function rD(e){let{text:t,variables:n}=e,r=Oc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function aD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Ny(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||hy(l)||my(l)||fy(l)||py(l)||gy(l)||oD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Fc(i?.trim(),n,r)}function Ri(e){return e.nodeType===Node.ELEMENT_NODE}function jy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Ut("fakeUserId","")}async function iD(){return await Ut("installedAt","")}async function jc(e,t){let r=Le().INSTALL_FROM,a=pn(),i=await iD(),o=await Lr(),s=await wt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await To(),m=await wo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await Co();return g&&(p.abGroup=g),p}function ru(e,t){let[n,r]=V();return re(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!lt()&&ne()||We().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=sD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function sD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Hy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function qy(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Nc[e]=setTimeout(()=>{n("")},t)})}function Wy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ka(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Hc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Fi(){return Wm()?"imtAndroid":Us()?"imtIOS":ne()?"userscript":lt()?"safari":Gn()?"firefox":o3()?"chrome":"other"}function Yr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function qc(e){return e?.getAttribute("imt-state")||""}function Qr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function zc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Gy(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Qa(e){if(e.beta)return!1;if(lt()&&e.spVersion)return Ya(js(),e.spVersion);if(s2()&&e.gspVersion){let t=u2();if(t)return Ya(t,e.gspVersion)}if(Us()&&e.ispVersion){let t=o2();if(t)return Ya(t,e.ispVersion)}return!1}function Ya(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Fp(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),Ks())}async function Vy(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),uD(a.toString())}function uD(e){try{lt()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ky(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Yy(e){return ht(e)}function Wc(e){return Array.isArray(e)?e:e?[e]:[]}function Gc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Qy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Mc(e,t){let n={...e};return $y(n,t),lD(n,t),n}function sy(e,t,n){let r={...e};return Gr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Gr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function lD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;$y(e,a)}function Gr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Jy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=Jy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Wc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Zy(u))return;d=Bp(c,l)}else if(s=="remove_v"){if(!Zy(u))return;d=Xy(c,l)}else s==="add"?d=Bp(c,l):s=="remove"&&(d=Xy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Bp(c,l):d=l,r(o,d)})}function $y(e,t){return Gr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Bp(e,t){let n;if(Array.isArray(e)){let r=Wc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Jy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Zy(e){let t=pn();return e&&Ya(t,e)}function Xy(e,t){if(Array.isArray(e)){let n=Wc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Mo="input is invalid type",Ip=typeof window=="object",Ja=Ip?window:{};Ja.JS_SHA256_NO_WINDOW&&(Ip=!1);var cD=!Ip&&typeof self=="object",dD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;dD?Ja=global:cD&&(Ja=self);var BV=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,IV=typeof define=="function"&&define.amd,au=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),mD=[-2147483648,8388608,32768,128],Pr=[24,16,8,0],Kc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Yc=["hex","array","digest","arrayBuffer"],nn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});au&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var e9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},n9=function(e){var t=e9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=mD[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+Kc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Kc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Kc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+Kc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=pe[e>>28&15]+pe[e>>24&15]+pe[e>>20&15]+pe[e>>16&15]+pe[e>>12&15]+pe[e>>8&15]+pe[e>>4&15]+pe[e&15]+pe[t>>28&15]+pe[t>>24&15]+pe[t>>20&15]+pe[t>>16&15]+pe[t>>12&15]+pe[t>>8&15]+pe[t>>4&15]+pe[t&15]+pe[n>>28&15]+pe[n>>24&15]+pe[n>>20&15]+pe[n>>16&15]+pe[n>>12&15]+pe[n>>8&15]+pe[n>>4&15]+pe[n&15]+pe[r>>28&15]+pe[r>>24&15]+pe[r>>20&15]+pe[r>>16&15]+pe[r>>12&15]+pe[r>>8&15]+pe[r>>4&15]+pe[r&15]+pe[a>>28&15]+pe[a>>24&15]+pe[a>>20&15]+pe[a>>16&15]+pe[a>>12&15]+pe[a>>8&15]+pe[a>>4&15]+pe[a&15]+pe[i>>28&15]+pe[i>>24&15]+pe[i>>20&15]+pe[i>>16&15]+pe[i>>12&15]+pe[i>>8&15]+pe[i>>4&15]+pe[i&15]+pe[o>>28&15]+pe[o>>24&15]+pe[o>>20&15]+pe[o>>16&15]+pe[o>>12&15]+pe[o>>8&15]+pe[o>>4&15]+pe[o&15];return this.is224||(u+=pe[s>>28&15]+pe[s>>24&15]+pe[s>>20&15]+pe[s>>16&15]+pe[s>>12&15]+pe[s>>8&15]+pe[s>>4&15]+pe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Qc(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Mo);if(au&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!au||!ArrayBuffer.isView(e)))throw new Error(Mo)}else throw new Error(Mo);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Qc.prototype=new rn;Qc.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Ro=n9();Ro.sha256=Ro;Ro.sha224=n9(!0);Ro.sha256.hmac=r9();Ro.sha224.hmac=r9(!0);var a9=Ro;var i9=a9.sha256;function Nn(e){return Promise.resolve(i9(e))}function Fo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function nr(e,t){let n=i9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function o9(e,t){let n=await nr(e,t);return Fo(n)}async function Jc(e,t){let n=pD(t),r=await nr(e,n);return Fo(r)}function pD(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var gD={lang:"en"};function _p(e){let t=Object.assign({},gD,e),[n,r]=V(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var fD=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--fD,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var Op=$i(null),Za=e=>{let{t,setLang:n,lang:r}=_p({lang:e.lang});return v(Op.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return ul(Op)}function l9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Mr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=hD(e,a)),i||(i=bD(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function hD(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=jp({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function bD(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function jp(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function c9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Zc(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&s9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&s9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await yn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await xa(n),await ja(i)}catch{return!1}return a}async function d9(){return(await Mn()).aiAssistants||[]}async function yD(e,t){(await Promise.allSettled(e.map(r=>Z({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Zc("add",a,t)}})}async function xD(e,t,n=!0){e||(e=await wt()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await TD();i=await SD(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&yD(o,t)}var Ta=_n(xD,1500);function s9(e){return Ya(js(),e.extensionVersion)}function vD(e,t){return t?!Ya(e.version,t):!1}function SD(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{vD(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function TD(){return(await Z({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var CD=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function p9(e,t,n,r,a){let i={...t},o=jp(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,c9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=l9(i,i.langOverrides,n),o||CD.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function rr(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Bo(t,o),f=Bo(t,g),y=s,x=Object.keys(u);for(let K of x){let be=u[K];if(Bo(t,be)){y=K;break}}let S=l,T=Object.keys(c);for(let K of T){let be=c[K];if(be&&Bo(t,be)){S=K;break}}let C=Bo(t,d),w=m9(t,d);w||(w=Ze(t,W3)),w||(w=Ze(t,n.blockUrls));let E=m9(t,n.inputTranslationUrlPattern);E||(E=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),P=Object.keys(p),F={};for(let K of P){let be=p[K];if(be&&be.matches)for(let tt of be.matches)F[tt]=K}let M=Object.keys(F),I=zm(t,M);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&Xn(F[I]));let L=a.hostname,N=await Nn(L),B=a.pathname+a.search+a.hash,j=await Nn(B),G=`https://${N}.com/${j}`,z=await Vt(),ue=await Lc(),le=n.translationStartMode,O=ED(z,n);z.aiAssistants=AD(O,n),le==="dynamic"&&f&&(le="immediate");let H=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let Ee=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Ee=n.subtitleTranslateService);let ge=await mt.get(dt,null),je=!1;ge&&(je=ht(ge));let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:H,mouseHoverTranslationService:Y,subtitleTranslateService:Ee,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:G,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:z};ge&&(de.user=ge,je?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(K=>!de.config.generalRule.bodyTranslateTags.includes(K)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let me=n.translationServices[de.translationService]||{};me.immediateTranslationTextCount!==void 0&&wD(me.immediateTranslationTextCount)&&me.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCount),de.translationService==="deepl"&&(me&&me.authKey&&me.authKey.startsWith("immersive_")||me&&me.provider==="pro"&&de.user?.token)&&me.immediateTranslationTextCountForImmersiveDeepl!==void 0&&me.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCountForImmersiveDeepl),me&&me.translationDebounce&&typeof me.translationDebounce=="number"&&(de.state.translationDebounce=me.translationDebounce);let fe=ue.immediateTranslationTextCount;n.immediateTranslationTextCount!==fe&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,we;globalThis.PDFViewerApplication?we=he.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?we=he.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?we=he.find(K=>K.pageType=="ebookBuilder"):we=he.find(K=>Bo(t,K)),we&&we.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(we&&(de.rule=Mc(Ue,we)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(K=>!de.rule.bodyTranslateTags.includes(K)&&!de.rule.forceTranslateTags.includes(K))),de.rule.mainFrameSelector){let K=document.querySelector(de.rule.mainFrameSelector);K&&(de.mainFrame=K)}return de}function Bo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Bc(i)?!1:!!(a&&a.length>0&&Bc(a))}function m9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Bc(r))}function wD(e){return typeof e=="number"}function ED(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function AD(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Qy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function g9(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function Xc(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(Up(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Up(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var Hp={get:(e,t,n)=>ee.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ee.storage[n].set({[e]:t})};function $c(e,t,n){let[r]=V(()=>typeof t=="function"?t():t),[a]=V(n),[i,o]=V(r),[s,u]=V(!1),[l,c]=V("");re(()=>{Hp.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),Hp.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function qp(e,t,n){let r=[];return function(){let[i,o,s,u]=$c(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return re(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function f9(e,t){return qp(e,t,"sync")}var kD="userConfig",DD=null,LD=f9(kD,DD);function Rr(e){let[t,n,r,a]=LD(),[i,o]=V();re(()=>{(async function(){let u=await Dc();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&zp(l);let{userConfig:c,promptPool:d,objectPool:m}=await yp(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await wr(Ac,d),await wr(kc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function zp(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var PD=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(ws,{detail:{tabId:a,payload:e}})))},e0;function h9(){iu()}function iu(){return e0||(e0=new qr("popup",!1).getConnection("main_sync",PD),e0)}var t0="DROP_DOWN_DEFAULT_VALUE";function Wp(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Te(null);return v("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:t0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==t0){s.current.value=t0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:t0,label:e.label}].concat(a).map((u,l)=>v("option",{value:u.value,children:u.label},"option-"+l))})}function Io(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var MD=({date:e})=>{let{t}=se(),[n,r]=V(!1);return re(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:v("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},RD=({minVersion:e})=>{let{t}=se();return v("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},FD=()=>{let{t:e}=se();return v("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ie+"docs/installation/"})}})},BD=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return v("p",{class:"text-sm",children:[r("failToSyncRules")," ",v("a",{onClick:t,children:r("retry")}),v("br",{}),r("failedReason"),"\uFF1A",e,v("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Gp(e){let{isShowError:t,request:n}=e,[r,a]=V(null),{t:i}=se(),[o,s]=V(null),[u,l]=V(null),[c,d]=V(""),[m,p]=V(!1),[g,h]=V(!1),[b,f]=V(!1),[y,x]=V(null),[S,T]=V(null),C=pn(),w=async()=>{d("");let E=o;if(o===null)try{let k=await n({url:Es});k?(s(k),E=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return re(()=>{wt().then(E=>{let k=E.buildinConfigUpdatedAt;x(E);let P=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Es}).then(F=>{let M=F,I=M.minVersion,L=C;s(M);let N=M.latestVersion;if(N&&(Io(L,N)?T(!0):T(!1)),Io(L,I)){let B=M.buildinConfigUpdatedAt;new Date(B)>P?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),re(()=>{wt().then(E=>{x(E),Ta(E)})},[r]),y?v("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?v(FD,{}):c?t===!1?null:v(BD,{handleSyncing:w,message:c,date:r||""}):g?t===!1?null:v(RD,{minVersion:o.minVersion}):u===null||u===!0?null:m?v(MD,{date:r}):null}):null}function ID(){return navigator.userAgent.indexOf("Mac")!==-1}var b9={Alt:"\u2325"};function _o(e=""){return ID()?Object.keys(b9).reduce((t,n)=>t.replace(n,b9[n]),e):e}var n0='',Oo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODcz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yj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",v9="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var _D="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?v("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${_D}-logo-img`,children:[v("path",{fill:"none",d:"M0 0h24v24H0z"}),v("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("g",{"clip-path":"url(#clip0_2589_9951)",children:v("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),v("defs",{children:v("clipPath",{id:"clip0_2589_9951",children:v("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),v("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?v("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("g",{id:"manhua",children:[v("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),v("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?v("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),v("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),v("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),v("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),v("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),v("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),v("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),v("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),v("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),v("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),v("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),v("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?v("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[v("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),v("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),v("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),v("defs",{children:v("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#272727"}),v("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var S9=v("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),v("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),v("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),v("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var T9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),C9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[v("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),v("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),v("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),w9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),v("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),E9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var A9=v("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),v("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),k9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[v("g",{"clip-path":"url(#clip0_13006_12686)",children:[v("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),v("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),v("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),v("defs",{children:[v("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#FFEAB5"}),v("stop",{offset:"1","stop-color":"#F9C235"})]}),v("clipPath",{id:"clip0_13006_12686",children:v("rect",{width:"12",height:"12",fill:"white"})})]})]}),D9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[v("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),v("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),v("defs",{children:v("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#222222"}),v("stop",{offset:"1","stop-color":"#696969"})]})})]}),L9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:v("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function No(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function P9(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Qa(t)&&!r?v("div",{}):v("div",{class:"flex items-center",children:[v("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(ks,`${e.type}_user_info`);return}e.onOpenUrl(Dl,`${e.type}_user_info`)},children:[v("img",{src:n?x9:y9}),v("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),v(OD,{...e})]})}function OD(e){let{t}=se(),n=ye(()=>No(e.config),[e.config]);return e.isProUser?v("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(ks,`${e.type}_pro_logo`)},children:v("img",{src:Oo})}):n?v("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||An)},children:[v(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),v("span",{children:n.title})]}):v("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(An,`${e.type}_user_upgrade`)},children:[k9,v("span",{children:t("popup.upgrade")})]})}var Xa=(e,t,n,r)=>{let a=l2[e]||e,i=Gm[e]||e,o=Vm[e],s=Km[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vp(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Vm,a="zh-CN"):n==="zh-TW"?(r=Km,a="zh-TW"):(r=Gm,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=F2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=j3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Kr(this.serviceConfig);if(f.tempSentences.forEach((B,j)=>{let G=Lp({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(G&&G.text&&G.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:B,from:T,to:f.to})}let P="";w&&w.length>=2?P=E.map((B,j)=>{let{item:G}=B;return j===E.length-1?G.text:G.text+w[0]+(j+1)+w[1]}).join(""):P=E.map(({item:B})=>B.text).join(C);let F=await this.translate({text:P,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:M}=F,I=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let j=new RegExp(B,"g");I=M.split(j)}else I=M.split(C);let L=[];if(I.length>E.length){for(let B=0;BB.text);return k=Kr(this.serviceConfig,!0),L.forEach((B,j)=>{let G=E[j],z=G.index,ue=G.variables||{};Object.keys(ue).length>0&&(B=Pp({text:B,delimiters:k,variables:ue},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[z]=B}),{sourceTempSentences:f.tempSentences,text:N,from:F.from,to:F.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let E=0;E{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Kr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Lp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Kr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Pp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var M9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ou=class e extends Ae{static langMap=new Map(M9);maxTextGroupLength=50;static langMapReverse=new Map(M9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Nn(a)].join(` -`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Nn(c)].join(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function Xk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ey(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function _c(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function kp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Gr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function By(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?kp(e.rule):e.rule}function Oc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var $k=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function nr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Vr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(nr(e,i))return!1;if(nr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!nr(e,o)),c;function d(){return n&&n.display?!!$k.includes(n.display):nr(e,r)}}var At=nr;function Mi(e){return!!e.shadowRoot}function Va(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function tu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Kr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Pi(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Kr(n,t)}function ko(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Dp(e){let{rule:t}=e,n=eD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function eD(e){let t=e.config.loadingTheme;return`${_}-loading-${t}`}function nu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Pt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,B3,t.toString());let i=Dp(e);return a.append(n?" ...":nt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${$d}='${t}']`)}function Iy(){document.querySelectorAll(`[${$d}]`).forEach(t=>{t.remove()})}function _y(){document.querySelectorAll(`.${Pt}-error`).forEach(t=>{t.remove()})}function Oy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ga(n)&&t.push(n)}),t}function Lp(e,t){return t?tD(e):nD(e)}function tD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Ny(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Sp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function nD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Ny(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Sp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Pp(e,t){return t?rD(e):aD(e)}function rD(e){let{text:t,variables:n}=e,r=Oc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function aD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Ny(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||hy(l)||my(l)||fy(l)||py(l)||gy(l)||oD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Fc(i?.trim(),n,r)}function Ri(e){return e.nodeType===Node.ELEMENT_NODE}function jy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Ut("fakeUserId","")}async function iD(){return await Ut("installedAt","")}async function jc(e,t){let r=Le().INSTALL_FROM,a=pn(),i=await iD(),o=await Lr(),s=await wt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await To(),m=await wo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await Co();return g&&(p.abGroup=g),p}function ru(e,t){let[n,r]=V();return re(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!lt()&&ne()||We().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=sD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function sD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Hy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function qy(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Nc[e]=setTimeout(()=>{n("")},t)})}function Wy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ka(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Hc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Fi(){return Wm()?"imtAndroid":Us()?"imtIOS":ne()?"userscript":lt()?"safari":Vn()?"firefox":o3()?"chrome":"other"}function Yr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function qc(e){return e?.getAttribute("imt-state")||""}function Qr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function zc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(nr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Gy(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Qa(e){if(e.beta)return!1;if(lt()&&e.spVersion)return Ya(js(),e.spVersion);if(s2()&&e.gspVersion){let t=u2();if(t)return Ya(t,e.gspVersion)}if(Us()&&e.ispVersion){let t=o2();if(t)return Ya(t,e.ispVersion)}return!1}function Ya(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Fp(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),Ks())}async function Vy(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),uD(a.toString())}function uD(e){try{lt()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ky(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Yy(e){return ht(e)}function Wc(e){return Array.isArray(e)?e:e?[e]:[]}function Gc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Qy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Mc(e,t){let n={...e};return $y(n,t),lD(n,t),n}function sy(e,t,n){let r={...e};return Gr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Gr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function lD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;$y(e,a)}function Gr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Jy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=Jy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Wc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Zy(u))return;d=Bp(c,l)}else if(s=="remove_v"){if(!Zy(u))return;d=Xy(c,l)}else s==="add"?d=Bp(c,l):s=="remove"&&(d=Xy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Bp(c,l):d=l,r(o,d)})}function $y(e,t){return Gr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Bp(e,t){let n;if(Array.isArray(e)){let r=Wc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Jy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Zy(e){let t=pn();return e&&Ya(t,e)}function Xy(e,t){if(Array.isArray(e)){let n=Wc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Mo="input is invalid type",Ip=typeof window=="object",Ja=Ip?window:{};Ja.JS_SHA256_NO_WINDOW&&(Ip=!1);var cD=!Ip&&typeof self=="object",dD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;dD?Ja=global:cD&&(Ja=self);var BV=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,IV=typeof define=="function"&&define.amd,au=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),mD=[-2147483648,8388608,32768,128],Pr=[24,16,8,0],Kc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Yc=["hex","array","digest","arrayBuffer"],nn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});au&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var e9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},n9=function(e){var t=e9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=mD[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+Kc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Kc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Kc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+Kc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=pe[e>>28&15]+pe[e>>24&15]+pe[e>>20&15]+pe[e>>16&15]+pe[e>>12&15]+pe[e>>8&15]+pe[e>>4&15]+pe[e&15]+pe[t>>28&15]+pe[t>>24&15]+pe[t>>20&15]+pe[t>>16&15]+pe[t>>12&15]+pe[t>>8&15]+pe[t>>4&15]+pe[t&15]+pe[n>>28&15]+pe[n>>24&15]+pe[n>>20&15]+pe[n>>16&15]+pe[n>>12&15]+pe[n>>8&15]+pe[n>>4&15]+pe[n&15]+pe[r>>28&15]+pe[r>>24&15]+pe[r>>20&15]+pe[r>>16&15]+pe[r>>12&15]+pe[r>>8&15]+pe[r>>4&15]+pe[r&15]+pe[a>>28&15]+pe[a>>24&15]+pe[a>>20&15]+pe[a>>16&15]+pe[a>>12&15]+pe[a>>8&15]+pe[a>>4&15]+pe[a&15]+pe[i>>28&15]+pe[i>>24&15]+pe[i>>20&15]+pe[i>>16&15]+pe[i>>12&15]+pe[i>>8&15]+pe[i>>4&15]+pe[i&15]+pe[o>>28&15]+pe[o>>24&15]+pe[o>>20&15]+pe[o>>16&15]+pe[o>>12&15]+pe[o>>8&15]+pe[o>>4&15]+pe[o&15];return this.is224||(u+=pe[s>>28&15]+pe[s>>24&15]+pe[s>>20&15]+pe[s>>16&15]+pe[s>>12&15]+pe[s>>8&15]+pe[s>>4&15]+pe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Qc(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Mo);if(au&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!au||!ArrayBuffer.isView(e)))throw new Error(Mo)}else throw new Error(Mo);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Qc.prototype=new rn;Qc.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Ro=n9();Ro.sha256=Ro;Ro.sha224=n9(!0);Ro.sha256.hmac=r9();Ro.sha224.hmac=r9(!0);var a9=Ro;var i9=a9.sha256;function jn(e){return Promise.resolve(i9(e))}function Fo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rr(e,t){let n=i9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function o9(e,t){let n=await rr(e,t);return Fo(n)}async function Jc(e,t){let n=pD(t),r=await rr(e,n);return Fo(r)}function pD(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var gD={lang:"en"};function _p(e){let t=Object.assign({},gD,e),[n,r]=V(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var fD=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--fD,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var Op=$i(null),Za=e=>{let{t,setLang:n,lang:r}=_p({lang:e.lang});return x(Op.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return ul(Op)}function l9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Mr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=hD(e,a)),i||(i=bD(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function hD(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=jp({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function bD(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function jp(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function c9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Zc(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&s9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&s9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await yn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await va(n),await ja(i)}catch{return!1}return a}async function d9(){return(await Mn()).aiAssistants||[]}async function yD(e,t){(await Promise.allSettled(e.map(r=>Z({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Zc("add",a,t)}})}async function vD(e,t,n=!0){e||(e=await wt()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await TD();i=await SD(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&yD(o,t)}var Ta=_n(vD,1500);function s9(e){return Ya(js(),e.extensionVersion)}function xD(e,t){return t?!Ya(e.version,t):!1}function SD(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{xD(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function TD(){return(await Z({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var CD=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function p9(e,t,n,r,a){let i={...t},o=jp(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,c9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=l9(i,i.langOverrides,n),o||CD.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function ar(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Bo(t,o),f=Bo(t,g),y=s,v=Object.keys(u);for(let K of v){let be=u[K];if(Bo(t,be)){y=K;break}}let S=l,T=Object.keys(c);for(let K of T){let be=c[K];if(be&&Bo(t,be)){S=K;break}}let C=Bo(t,d),w=m9(t,d);w||(w=Ze(t,W3)),w||(w=Ze(t,n.blockUrls));let E=m9(t,n.inputTranslationUrlPattern);E||(E=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),P=Object.keys(p),F={};for(let K of P){let be=p[K];if(be&&be.matches)for(let tt of be.matches)F[tt]=K}let M=Object.keys(F),I=zm(t,M);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&$n(F[I]));let L=a.hostname,N=await jn(L),B=a.pathname+a.search+a.hash,j=await jn(B),G=`https://${N}.com/${j}`,z=await Vt(),ue=await Lc(),le=n.translationStartMode,O=ED(z,n);z.aiAssistants=AD(O,n),le==="dynamic"&&f&&(le="immediate");let H=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let Ee=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Ee=n.subtitleTranslateService);let ge=await mt.get(dt,null),je=!1;ge&&(je=ht(ge));let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:H,mouseHoverTranslationService:Y,subtitleTranslateService:Ee,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:G,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:z};ge&&(de.user=ge,je?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(K=>!de.config.generalRule.bodyTranslateTags.includes(K)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let me=n.translationServices[de.translationService]||{};me.immediateTranslationTextCount!==void 0&&wD(me.immediateTranslationTextCount)&&me.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCount),de.translationService==="deepl"&&(me&&me.authKey&&me.authKey.startsWith("immersive_")||me&&me.provider==="pro"&&de.user?.token)&&me.immediateTranslationTextCountForImmersiveDeepl!==void 0&&me.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCountForImmersiveDeepl),me&&me.translationDebounce&&typeof me.translationDebounce=="number"&&(de.state.translationDebounce=me.translationDebounce);let fe=ue.immediateTranslationTextCount;n.immediateTranslationTextCount!==fe&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,we;globalThis.PDFViewerApplication?we=he.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?we=he.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?we=he.find(K=>K.pageType=="ebookBuilder"):we=he.find(K=>Bo(t,K)),we&&we.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(we&&(de.rule=Mc(Ue,we)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(K=>!de.rule.bodyTranslateTags.includes(K)&&!de.rule.forceTranslateTags.includes(K))),de.rule.mainFrameSelector){let K=document.querySelector(de.rule.mainFrameSelector);K&&(de.mainFrame=K)}return de}function Bo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Bc(i)?!1:!!(a&&a.length>0&&Bc(a))}function m9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Bc(r))}function wD(e){return typeof e=="number"}function ED(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function AD(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Qy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function g9(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function Xc(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(Up(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Up(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var Hp={get:(e,t,n)=>ee.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ee.storage[n].set({[e]:t})};function $c(e,t,n){let[r]=V(()=>typeof t=="function"?t():t),[a]=V(n),[i,o]=V(r),[s,u]=V(!1),[l,c]=V("");re(()=>{Hp.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),Hp.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function qp(e,t,n){let r=[];return function(){let[i,o,s,u]=$c(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return re(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function f9(e,t){return qp(e,t,"sync")}var kD="userConfig",DD=null,LD=f9(kD,DD);function Rr(e){let[t,n,r,a]=LD(),[i,o]=V();re(()=>{(async function(){let u=await Dc();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&zp(l);let{userConfig:c,promptPool:d,objectPool:m}=await yp(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await wr(Ac,d),await wr(kc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function zp(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var PD=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(ws,{detail:{tabId:a,payload:e}})))},e0;function h9(){iu()}function iu(){return e0||(e0=new qr("popup",!1).getConnection("main_sync",PD),e0)}var t0="DROP_DOWN_DEFAULT_VALUE";function Wp(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Te(null);return x("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:t0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==t0){s.current.value=t0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:t0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function Io(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var MD=({date:e})=>{let{t}=se(),[n,r]=V(!1);return re(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},RD=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},FD=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ie+"docs/installation/"})}})},BD=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Gp(e){let{isShowError:t,request:n}=e,[r,a]=V(null),{t:i}=se(),[o,s]=V(null),[u,l]=V(null),[c,d]=V(""),[m,p]=V(!1),[g,h]=V(!1),[b,f]=V(!1),[y,v]=V(null),[S,T]=V(null),C=pn(),w=async()=>{d("");let E=o;if(o===null)try{let k=await n({url:Es});k?(s(k),E=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return re(()=>{wt().then(E=>{let k=E.buildinConfigUpdatedAt;v(E);let P=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Es}).then(F=>{let M=F,I=M.minVersion,L=C;s(M);let N=M.latestVersion;if(N&&(Io(L,N)?T(!0):T(!1)),Io(L,I)){let B=M.buildinConfigUpdatedAt;new Date(B)>P?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),re(()=>{wt().then(E=>{v(E),Ta(E)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(FD,{}):c?t===!1?null:x(BD,{handleSyncing:w,message:c,date:r||""}):g?t===!1?null:x(RD,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(MD,{date:r}):null}):null}function ID(){return navigator.userAgent.indexOf("Mac")!==-1}var b9={Alt:"\u2325"};function _o(e=""){return ID()?Object.keys(b9).reduce((t,n)=>t.replace(n,b9[n]),e):e}var n0='',Oo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctM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xMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var _D="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${_D}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var S9=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var T9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),C9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),w9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),E9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var A9=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),k9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),D9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),L9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function No(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function P9(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Qa(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(ks,`${e.type}_user_info`);return}e.onOpenUrl(Dl,`${e.type}_user_info`)},children:[x("img",{src:n?v9:y9}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(OD,{...e})]})}function OD(e){let{t}=se(),n=ye(()=>No(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(ks,`${e.type}_pro_logo`)},children:x("img",{src:Oo})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||An)},children:[x(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(An,`${e.type}_user_upgrade`)},children:[k9,x("span",{children:t("popup.upgrade")})]})}var Xa=(e,t,n,r)=>{let a=l2[e]||e,i=Gm[e]||e,o=Vm[e],s=Km[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vp(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Vm,a="zh-CN"):n==="zh-TW"?(r=Km,a="zh-TW"):(r=Gm,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=F2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=j3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Kr(this.serviceConfig);if(f.tempSentences.forEach((B,j)=>{let G=Lp({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(G&&G.text&&G.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:B,from:T,to:f.to})}let P="";w&&w.length>=2?P=E.map((B,j)=>{let{item:G}=B;return j===E.length-1?G.text:G.text+w[0]+(j+1)+w[1]}).join(""):P=E.map(({item:B})=>B.text).join(C);let F=await this.translate({text:P,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:M}=F,I=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let j=new RegExp(B,"g");I=M.split(j)}else I=M.split(C);let L=[];if(I.length>E.length){for(let B=0;BB.text);return k=Kr(this.serviceConfig,!0),L.forEach((B,j)=>{let G=E[j],z=G.index,ue=G.variables||{};Object.keys(ue).length>0&&(B=Pp({text:B,delimiters:k,variables:ue},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[z]=B}),{sourceTempSentences:f.tempSentences,text:N,from:F.from,to:F.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let E=0;E{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Kr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Lp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Kr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Pp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var M9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ou=class e extends Ae{static langMap=new Map(M9);maxTextGroupLength=50;static langMapReverse=new Map(M9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await jn(a)].join(` +`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await jn(c)].join(` `),p=await o9(d,`TC3${n}`),g=await Jc(i,p),h=await Jc("tc3_request",g),b=await Jc(m,h),f=await Z({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var R9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ND={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},su=class e extends Ae{static langMap=new Map(R9);static langMapReverse=new Map(R9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await Z({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:ND,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var F9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],uu=class e extends Ae{static langMap=new Map(F9);static langMapReverse=new Map(F9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await Z({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function jD(e,t){return t?e+(t-e%t):e}function UD(e,t){return e.split(t).length-1}function Kp(e){let t=Date.now(),n=1;for(let r of e)n+=UD(r,"i");return jD(t,n)}function HD(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Yp(){return HD(1e6,1e8)}var Qp="https://www2.deepl.com/jsonrpc",Jp="auto",B9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function qD(e=B9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Zp(e){return qD()[e.toLowerCase()]}var zD={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function WD(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function GD(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function VD(e,t,n,r,a,i,o){let s=Yp(),u=GD(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Kp(t);let c=await Z({retry:2,method:"POST",url:e,body:WD(u),headers:zD}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function I9(e,t,n,r=Jp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:VD(e,t,Zp(n),Zp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var _9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jo=class e extends Ae{static langMap=new Map(_9);static langMapReverse=new Map(_9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Qp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(Qp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await I9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var lu=class e extends Ae{static langMap=new Map(rp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ya.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Le(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=O9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await Z({url:sc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Le(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=O9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` `));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await Z({url:sc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function O9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Xp(){return Math.random()>=.001}var Uo=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Xp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await nb(),!Xp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var j9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],$p=new Map(j9),N9=new Map(j9.map(([e,t])=>[t,e])),eg=class e extends Ae{static langMap=$p;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await Z({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:$p.get(r)||"auto",target_lang:$p.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:N9.get(o.source_lang),to:N9.get(o.target_lang)}}else throw new U(i.msg)}},r0=eg;var tg="https://{s}bing.com",W9=tg+"/translator",KD=tg+"/ttranslatev3",YD=tg+"/tspellcheckv3",a0="bingGlobalConfig",G9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],U9=new Map(G9),H9=new Map(G9.map(([e,t])=>[t,e])),q9=1e3,Fr,Ho;function ng(e,t){return e.replace("{s}",t?t+".":"")}async function QD(){if(!Fr){let n=await ee.storage.local.get(a0);return n&&(Fr=n[a0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Fr;return Date.now()-e>t}async function z9(){let e,t,n,r,a,i,o,s,u,l;try{let c=ng(W9,e),d=await Z({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Fr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ee.storage.local.set({[a0]:Fr}),Fr}function JD(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Fr;return ng(e?YD:KD,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Fr.count++:"")}function ZD(e,t,n,r){let{token:a,key:i}=Fr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function V9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>q9)throw new Error(`The supported maximum length of text is ${q9}. Please shorten the text.`);Ho||(Ho=z9()),await Ho,await QD()&&(Ho=z9(),await Ho),t=t||"auto",n=n||"zh-CN",t=U9.get(t)||t,n=U9.get(n)||n;let a=JD(!1),i=ZD(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:ng(W9,Fr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await Z({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Fr=null,Ho=null,await ee.storage.local.remove(a0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, @@ -5796,7 +5796,7 @@ Translate the content to {{to}} Language: `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:H9.get(m.language),to:H9.get(d.to)}}function $a(e){return e!=null}function Q9(e,t,n){return`${e.type}#${t}#${n}`}function J9(e,t,n,r,a){return{body:a,id:r,type:Q9(e,t,n)}}function XD(e,t,n,r){return{id:n,response:r,type:Q9(e,"ask",t)}}function Z9(e,t,n,r){if($a(r)){let a=r.type;if($a(a)&&$a(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function $D(e,t,n){if($a(n)){let r=n.type;if($a(r)&&$a(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function eL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function tL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;$D(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function nL(e,t,n,r){let a=i=>{let o=i.data;Z9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function K9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Z9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(XD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function rL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(J9(t,"tell",n,i,r),a)}async function Y9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await tL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(J9(n,"ask",r,s,a),i),u}var ei=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;K9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if($a(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Y9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(nL(this.thisWindow,this.protocol,t,n))}tell(t,n){rL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(K9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Y9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){eL(this.listeners)}};var X9;async function $9(){if(at()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ei.iframe(Al,"*",{targetWindow:t});X9=n,await ei.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function e6(){return X9}var i0=new Map;async function rg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),i0.has(t))return i0.get(t);let n=Z(e);i0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{i0.delete(t)},3e3)}}async function t6(e){return rg(e)}async function Jr(e){if(at()){let n=e6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return rg(e)}else return rg(e)}function n6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function s0(e){await um(e)}async function Zr(e,t){let n=await om(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return o0(e,t)}return o0(e,t)}async function o0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await sm(e,n,i-1e3),n}var aL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ag=new Map(aL),Br=class extends Ae{static langMap=ag;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await s0(Wd)}async translate(t){let{text:n,from:r,to:a}=t;return n?await V9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Zr(Wd,async()=>{let t=await Jr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return n6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ag.get(n)||"auto",o=ag.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Z({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var iL=["chinese","english","japanese","korean","french","spanish","deutsch"],Xr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},u0=e=>Xr.chinese.test(e),oL=e=>Xr.english.test(e),sL=e=>Xr.japanese.test(e),uL=e=>Xr.korean.test(e),lL=e=>Xr.french.test(e),cL=e=>Xr.deutsch.test(e),dL=e=>Xr.spanish.test(e),BZ={chinese:xr(u0),english:xr(oL),japanese:xr(sL),korean:xr(uL),french:xr(lL),spanish:xr(dL),deutsch:xr(cL)},r6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,IZ=new RegExp(`^(\\d|\\s|${r6.source})+$`),mL=new RegExp(`${Xr.chinese.source}|${Xr.japanese.source}|${Xr.korean.source}`),_Z=xr(e=>(e.replace(new RegExp(r6,"g")," ").replace(new RegExp(mL,"g")," x ").match(/\S+/g)||"").length),OZ=[...iL,"others","matchAll"];var i6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],cu=new Map(i6),pL=new Map(i6.map(([e,t])=>[t,e])),ig=class extends Ae{static langMap=cu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=it;immersiveTranslateDeeplProApiUrl=it+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:cu.get(n)||"",target_lang:cu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:cu.get(n)||"auto",target_lang:cu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await Z({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>og(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Br({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&pL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ca()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},qo=ig;function og(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&u0(e[0])&&a6(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&u0(e[e.length-1])&&a6(e,"\u300A")==1?e+"\u300B":e}function a6(e,t){return e.split(t).length-1}var gL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],sg=new Map(gL),ug=class extends Ae{static langMap=sg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:sg.get(r)||r,to:sg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Z(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:H9.get(m.language),to:H9.get(d.to)}}function $a(e){return e!=null}function Q9(e,t,n){return`${e.type}#${t}#${n}`}function J9(e,t,n,r,a){return{body:a,id:r,type:Q9(e,t,n)}}function XD(e,t,n,r){return{id:n,response:r,type:Q9(e,"ask",t)}}function Z9(e,t,n,r){if($a(r)){let a=r.type;if($a(a)&&$a(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function $D(e,t,n){if($a(n)){let r=n.type;if($a(r)&&$a(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function eL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function tL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;$D(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function nL(e,t,n,r){let a=i=>{let o=i.data;Z9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function K9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Z9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(XD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function rL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(J9(t,"tell",n,i,r),a)}async function Y9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await tL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(J9(n,"ask",r,s,a),i),u}var ei=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;K9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if($a(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Y9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(nL(this.thisWindow,this.protocol,t,n))}tell(t,n){rL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(K9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Y9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){eL(this.listeners)}};var X9;async function $9(){if(at()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ei.iframe(Al,"*",{targetWindow:t});X9=n,await ei.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function e6(){return X9}var i0=new Map;async function rg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Xn(e.body)),i0.has(t))return i0.get(t);let n=Z(e);i0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{i0.delete(t)},3e3)}}async function t6(e){return rg(e)}async function Jr(e){if(at()){let n=e6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return rg(e)}else return rg(e)}function n6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function s0(e){await um(e)}async function Zr(e,t){let n=await om(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return o0(e,t)}return o0(e,t)}async function o0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await sm(e,n,i-1e3),n}var aL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ag=new Map(aL),Br=class extends Ae{static langMap=ag;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await s0(Wd)}async translate(t){let{text:n,from:r,to:a}=t;return n?await V9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Zr(Wd,async()=>{let t=await Jr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return n6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ag.get(n)||"auto",o=ag.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Z({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var iL=["chinese","english","japanese","korean","french","spanish","deutsch"],Xr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},u0=e=>Xr.chinese.test(e),oL=e=>Xr.english.test(e),sL=e=>Xr.japanese.test(e),uL=e=>Xr.korean.test(e),lL=e=>Xr.french.test(e),cL=e=>Xr.deutsch.test(e),dL=e=>Xr.spanish.test(e),BZ={chinese:vr(u0),english:vr(oL),japanese:vr(sL),korean:vr(uL),french:vr(lL),spanish:vr(dL),deutsch:vr(cL)},r6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,IZ=new RegExp(`^(\\d|\\s|${r6.source})+$`),mL=new RegExp(`${Xr.chinese.source}|${Xr.japanese.source}|${Xr.korean.source}`),_Z=vr(e=>(e.replace(new RegExp(r6,"g")," ").replace(new RegExp(mL,"g")," x ").match(/\S+/g)||"").length),OZ=[...iL,"others","matchAll"];var i6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],cu=new Map(i6),pL=new Map(i6.map(([e,t])=>[t,e])),ig=class extends Ae{static langMap=cu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=it;immersiveTranslateDeeplProApiUrl=it+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:cu.get(n)||"",target_lang:cu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:cu.get(n)||"auto",target_lang:cu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await Z({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>og(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Br({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&pL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ca()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},qo=ig;function og(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&u0(e[0])&&a6(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&u0(e[e.length-1])&&a6(e,"\u300A")==1?e+"\u300B":e}function a6(e,t){return e.split(t).length-1}var gL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],sg=new Map(gL),ug=class extends Ae{static langMap=sg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:sg.get(r)||r,to:sg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Z(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` `)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},o6=ug;var fL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],lg=new Map(fL),cg=class extends Ae{static langMap=lg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:lg.get(a)||a};r!=="auto"&&(i.from=lg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await Z(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},s6=cg;var hL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],zo=new Map(hL),dg=class extends Ae{static langMap=zo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!zo.get(r)?(i=(await Z({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||zo.get(r)||r,target:zo.get(a)||a})):u.body=JSON.stringify({text:s,source:zo.get(r),target:zo.get(a)||a});let l=await Z(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},u6=dg;function l6(e){let t=e.split(` @@ -5807,20 +5807,20 @@ Translate the content to {{to}} Language: %% `;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let d=i?.sourceProgram,m=["subtitle","videoSubtitle"].includes(d),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),m&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let g="",h="",b=s.includes("{{json}}"),f=s.includes("{{yaml}}");if(_c(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",b){let E=[],k=c.imt_json_item||"";m&&(k=c.imt_subtitle_json_item||k);for(let P=0;PP==="from"?u:P==="to"?l+" Language":P==="text"?n:P=="json"?g:P=="yaml"?h:c[P]===""?"":c[P]||k).replace(/{{(.+?)}}/g,(k,P)=>c[P]||k)}}async rawRequest(t){return await Z(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`)}s=w(s);let y=w(this.systemPrompt),v=await this.handleOptions(y,s,t);D.debug("request options",v),D.debug("request body",v.body);let S=await this.rawRequest(v),T=this.parseResponse(S),C=await this.interceptResponse(T,{...t,text:p});if(C.handled)return{from:r,to:a,text:C.result||""};if(T=this.filterContent(n,T,s,p),D.debug("filterContent after",T),T&&(T=bL(n,T),T=_2(T)),!b&&!f||!T)return{from:r,to:a,text:T||n};try{let E={};if(b){D.debug("extractValidJson before",T);let F=this.extractValidJson(T);D.debug("parse before",T),E=Il.parse(F)}else if(f){D.debug("parseYAML before",T);let F=this.extractValidYaml(T);E=l6(F)}let k=c.imt_trans_field;m&&(k=c.imt_sub_trans_field||k);let P=c.imt_source_field;return m&&(P=c.imt_sub_source_field||P),T=this.restoreText(p,E,k,this.translationTextSeparator,P),{from:r,to:a,text:T}}catch(E){return D.error("parse response failed",T,E),{from:r,to:a,text:T}}function w(E){return E.replace(/{{(.+?)}}/g,(k,P)=>P==="from"?u:P==="to"?l+" Language":P==="text"?n:P=="json"?g:P=="yaml"?h:c[P]===""?"":c[P]||k).replace(/{{(.+?)}}/g,(k,P)=>c[P]||k)}}async rawRequest(t){return await Z(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Zn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ti=mg;function bL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var yL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],c6=new Map(yL),pg=class extends ti{static langMap=c6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=it+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return c6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Zn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!qo.langMap.has(n.to)||!qo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new qo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},d6=pg;function sn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function xL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ni(e,t){return e<>>32-t}function $r(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Wo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function m6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Go(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ea(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var p6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?sn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return $r(a(m,r),t)},this.b64=function(m){return ta(a(m),n)},this.any=function(m,p){return ea(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return $r(i(m,p),t)},this.b64_hmac=function(m,p){return ta(i(m,p),n)},this.any_hmac=function(m,p,g){return ea(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?sn(m):m,m6(o(Go(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?sn(m):m,p=r?sn(p):p,g=Go(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Go(p)),512+p.length*8),m6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Ca(c)),512+c.length*8),Wo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(E=x(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,P[w]=E[w]^1549556828;return C=x(k.concat(Ca(T)),512+T.length*8),Wo(x(P.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,P,F,M,I,L,N,B,j,G,z;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,B=0;B32&&(S=s(S,b.length*8));x<32;x+=1)T[x]=S[x]^909522486,C[x]=S[x]^1549556828;return y=s(T.concat(Ca(f)),1024+f.length*8),Wo(s(C.concat(y),1024+512))}function s(b,f){var y,x,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),P=new u(0,0),F=new u(0,0),M=new u(0,0),I=new u(0,0),L=new u(0,0),N=new u(0,0),B=new u(0,0),j=new u(0,0),G=new u(0,0),z=new u(0,0),ue=new u(0,0),le=new u(0,0),O=new u(0,0),H=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)T[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(x>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=x&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,x,S){var T=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(C>>>16),E=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|E<<16}function h(b,f,y,x,S,T){var C=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),E=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),k=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(T.h>>>16)+(E>>>16);b.l=C&65535|w<<16,b.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return $r(u(h,r))},this.b64=function(h){return ta(u(h,r),n)},this.any=function(h,b){return ea(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return $r(l(h,b))},this.b64_hmac=function(h,b){return ta(l(h,b),n)},this.any_hmac=function(h,b,f){return ea(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?sn(h):h,c(d(Go(h),h.length*8))}function l(h,b){h=r?sn(h):h,b=r?sn(b):b;var f,y,x=Go(h),S=Array(16),T=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)S[f]=x[f]^909522486,T[f]=x[f]^1549556828;return y=d(S.concat(Go(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,S,T=1732584193,C=4023233417,w=2562383102,E=271733878,k=3285377520,P,F,M,I,L,N,B,j,G,z;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new p6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Z({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var vL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},gg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=gg(t);if(r)return Array.isArray(n)?`${r}=${n.map(gg).sort().join(`&${r}=`)}`:`${r}=${gg(n)}`}).filter(t=>t).join("&"),Vo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await Nn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Fo(await nr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Xn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ti=mg;function bL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var yL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],c6=new Map(yL),pg=class extends ti{static langMap=c6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=it+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return c6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Xn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!qo.langMap.has(n.to)||!qo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new qo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},d6=pg;function sn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function vL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ni(e,t){return e<>>32-t}function $r(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Wo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function m6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Go(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ea(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var p6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?sn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return $r(a(m,r),t)},this.b64=function(m){return ta(a(m),n)},this.any=function(m,p){return ea(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return $r(i(m,p),t)},this.b64_hmac=function(m,p){return ta(i(m,p),n)},this.any_hmac=function(m,p,g){return ea(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?sn(m):m,m6(o(Go(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?sn(m):m,p=r?sn(p):p,g=Go(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Go(p)),512+p.length*8),m6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Ca(c)),512+c.length*8),Wo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(E=v(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,P[w]=E[w]^1549556828;return C=v(k.concat(Ca(T)),512+T.length*8),Wo(v(P.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,P,F,M,I,L,N,B,j,G,z;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,B=0;B32&&(S=s(S,b.length*8));v<32;v+=1)T[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(T.concat(Ca(f)),1024+f.length*8),Wo(s(C.concat(y),1024+512))}function s(b,f){var y,v,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),P=new u(0,0),F=new u(0,0),M=new u(0,0),I=new u(0,0),L=new u(0,0),N=new u(0,0),B=new u(0,0),j=new u(0,0),G=new u(0,0),z=new u(0,0),ue=new u(0,0),le=new u(0,0),O=new u(0,0),H=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)T[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=v&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,v,S){var T=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),E=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|E<<16}function h(b,f,y,v,S,T){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),E=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T.h>>>16)+(E>>>16);b.l=C&65535|w<<16,b.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return $r(u(h,r))},this.b64=function(h){return ta(u(h,r),n)},this.any=function(h,b){return ea(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return $r(l(h,b))},this.b64_hmac=function(h,b){return ta(l(h,b),n)},this.any_hmac=function(h,b,f){return ea(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?sn(h):h,c(d(Go(h),h.length*8))}function l(h,b){h=r?sn(h):h,b=r?sn(b):b;var f,y,v=Go(h),S=Array(16),T=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,T[f]=v[f]^1549556828;return y=d(S.concat(Go(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,T=1732584193,C=4023233417,w=2562383102,E=271733878,k=3285377520,P,F,M,I,L,N,B,j,G,z;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new p6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Z({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var xL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},gg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=gg(t);if(r)return Array.isArray(n)?`${r}=${n.map(gg).sort().join(`&${r}=`)}`:`${r}=${gg(n)}`}).filter(t=>t).join("&"),Vo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await jn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Fo(await rr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=fg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new U(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Nn(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return vL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await nr(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await nr(r,i),s=await nr(a,o);return nr(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var f6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],hg=new Map(f6),SL=new Map(f6.map(([e,t])=>[t,e])),bg=class extends Ae{static langMap=hg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Vo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Z({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=hg.get(r),o={TargetLanguage:hg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Vo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Z({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=SL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},h6=bg;var b6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],yg=new Map(b6),TL=new Map(b6.map(([e,t])=>[t,e])),mu=class extends Ae{static langMap=yg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=yg.get(r)||"detect",o=yg.get(a)||a,u=await Z({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=TL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var CL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],xg=new Map(CL),pu=class extends Ae{static langMap=xg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:xg.get(r)||r,target_lang:xg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Z({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:og(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var y6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],vg=new Map(y6),wL=new Map(y6.map(([e,t])=>[t,e])),Sg=class extends Ae{static langMap=vg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Zn(a+o+n+i);this.domain&&(l=Zn(a+o+n+this.domain+i));let c=new URLSearchParams({from:vg.get(s)||"auto",to:vg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Z({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:wL.get(g)||g,to:u,text:h.join(` -`)}}},x6=Sg;var Bi=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?EL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function EL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var v6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Tg=class extends Bi{static langMap=new Map(v6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:v6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},S6=Tg;var AL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(AL),Cg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Z({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},T6=Cg;var C6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],wg=new Map(C6),kL=new Map(C6.map(([e,t])=>[t,e]));function DL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Eg=class extends Ae{static langMap=wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=LL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+DL(n)+i+o+this.appSecret,u=await Nn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:wg.get(r)||"auto",to:wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Z({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await jn(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return xL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await rr(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await rr(r,i),s=await rr(a,o);return rr(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var f6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],hg=new Map(f6),SL=new Map(f6.map(([e,t])=>[t,e])),bg=class extends Ae{static langMap=hg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Vo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Z({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=hg.get(r),o={TargetLanguage:hg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Vo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Z({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=SL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},h6=bg;var b6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],yg=new Map(b6),TL=new Map(b6.map(([e,t])=>[t,e])),mu=class extends Ae{static langMap=yg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=yg.get(r)||"detect",o=yg.get(a)||a,u=await Z({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=TL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var CL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],vg=new Map(CL),pu=class extends Ae{static langMap=vg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:vg.get(r)||r,target_lang:vg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Z({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:og(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var y6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],xg=new Map(y6),wL=new Map(y6.map(([e,t])=>[t,e])),Sg=class extends Ae{static langMap=xg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Xn(a+o+n+i);this.domain&&(l=Xn(a+o+n+this.domain+i));let c=new URLSearchParams({from:xg.get(s)||"auto",to:xg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Z({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:wL.get(g)||g,to:u,text:h.join(` +`)}}},v6=Sg;var Bi=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?EL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function EL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var x6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Tg=class extends Bi{static langMap=new Map(x6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:x6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},S6=Tg;var AL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(AL),Cg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Z({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},T6=Cg;var C6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],wg=new Map(C6),kL=new Map(C6.map(([e,t])=>[t,e]));function DL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Eg=class extends Ae{static langMap=wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=LL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+DL(n)+i+o+this.appSecret,u=await jn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:wg.get(r)||"auto",to:wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Z({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` `),from:kL.get(g),to:a}}};function LL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var kg=class extends Ae{static langMap=Ag;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Ag.get(r)||"auto",to:Ag.get(a)||a},o=new URLSearchParams(i),s=await Z({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},A6=kg;var gu=class extends Bi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Dg=class extends ti{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Dg;var k6=_+"-gemini-fake-user-key",PL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],D6=new Map(PL),Lg=class extends c0{static langMap=D6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=it+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return D6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ci(k6,""),this.fakeId||(this.fakeId=ML(10),await wi(k6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function ML(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Jr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Mg.get(r)+"-"}${Mg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Z({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var BL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],R6=new Map(BL),hu=class extends ti{static langMap=R6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Zr(Vd+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Jr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return R6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(o0(Vd+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var IL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F6=new Map(IL),jn=class extends ti{static langMap=F6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return F6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends jn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await nr(t,"TC3"+this.secret_key),a=await nr(this.service,r),i=await nr("tc3_request",a),o=await nr(n,i);return Fo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Nn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},A6=kg;var gu=class extends Bi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Dg=class extends ti{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Dg;var k6=_+"-gemini-fake-user-key",PL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],D6=new Map(PL),Lg=class extends c0{static langMap=D6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=it+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return D6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ci(k6,""),this.fakeId||(this.fakeId=ML(10),await wi(k6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function ML(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Jr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Mg.get(r)+"-"}${Mg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Z({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var BL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],R6=new Map(BL),hu=class extends ti{static langMap=R6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Zr(Vd+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Jr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return R6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(o0(Vd+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var IL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F6=new Map(IL),Un=class extends ti{static langMap=F6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return F6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends Un{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await rr(t,"TC3"+this.secret_key),a=await rr(this.service,r),i=await rr("tc3_request",a),o=await rr(n,i);return Fo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await jn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await Nn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await jn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5828,51 +5828,51 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var m0=class extends jn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(y3,async()=>{let t=await Jr({responseType:"json",url:`${it}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Rg=["glm-4-flash"],p0=class extends jn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Rg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Rg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(x3,async()=>{let t=await Jr({responseType:"json",url:`${it}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Br.langMap.has(n.to)||!Br.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Br(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Rg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:Uo,mock2:Uo,custom:gu,google:uu,transmart:lu,deepl:qo,volc:h6,volcAlpha:mu,bing:Br,tencent:ou,tenAlpha:su,baidu:x6,caiyun:S6,cai:T6,openl:r0,youdao:w6,you:A6,d:jo,dpro:jo,deeplx:pu,niu:o6,azure:s6,openai:d6,gemini:L6,claude:M6,papago:u6,aliyun:du,yandex:fu,qianfan:hu,"custom-ai":jn,deepseek:jn,"aliyun-bailian":jn,doubao:jn,hunyuan:d0,siliconcloud:m0,lingyiwanwu:jn,zhipu:p0};globalThis.TranslationServicesClass=g0;var ri={};Object.keys(Cr).forEach(e=>{ri[e]={...Cr[e],class:g0[e]}});function f0(e,t){let n=Jn;if(ri[e]&&ri[e].class&&ri[e].class.langMap&&ri[e].class.langMap.size>0){let r=ri[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Jn}async function na(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function B6(e,t){for(let n of e)try{return await na({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Fg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ri[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function _L(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),Ta(a,t.localConfig,!1),d=p9(m,d,{sourceLanguage:_L(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(g&&(E.refresh=!0),h&&(E.debug=!0),E.text&&(E.text=OL(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,S=ht(t.user),T;try{T=new ri[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(E){if(n){b.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let P of b){let F=E instanceof U?new U(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(F,null,P)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){x++;let k=l;l==="openl"&&(k=l+"-"+d.codename||r0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(k=P+"-"+k);let F=null;try{F=await Rl(eb({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(M){D.warn("query cache DB error, but it's ok",M)}if(F){let M={...E,text:F.translatedText};f.sentences[x]=M,n&&n(null,M,E)}else b.push(E)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(E,k,P)=>{if(n&&n(E,k,P),!E&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||r0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(F=M+"-"+F),o.cache&&Rl(tb({translatedText:k.text,from:P.from,to:P.to,detectedFrom:k.from,key:Zn(P.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let E of w?.sentences||[]){let k=f.sentences.findIndex(P=>!P);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=E}return f}function OL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function I6({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=f0(t.config.translationService,t.config.targetLanguage),s=Jn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return v("div",{class:"flex mt-4 items-center",children:[v(NL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),v("img",{src:v9,style:{maxWidth:"unset"},class:"mx-2"}),v(jL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function NL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),v("div",{class:"language-select-container",children:[v("label",{children:a}),v("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Xa(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Xa(r,e.interfaceLanguage)+` (${t("languages.auto")})`),v("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function jL(e){return v("div",{class:"language-select-container",children:[v("label",{children:e.label}),v("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Xa(t,e.interfaceLanguage);return v("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ai(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),v("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>v("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Bg;function Wg(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function W6(e,t=","){return e.map(Wg).join(t)}var G6=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function b0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function y0(e,t="@media "){return t+ar(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ar(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function UL(){}var un={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function V6(e){return e.match(/[-=:;]/g)?.length||0}function Ug(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(V6(e),15)<<18}var HL=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Gg({n:e,i:t,v:n=[]},r,a,i){e&&(e=Wg({n:e,i:t,v:n})),i=[...ar(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ar(u&&y0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|Ug(l):s=="dark"?1073741824:l[0]=="@"?Ug(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~HL.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Vg=new Map;function _6(e){if(e.d){let t=[],n=Ig(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Ig(r,i=>Ig(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):_g(i,o)}return _g(o,i)})):r,"&"),r=>_g(r,e.n?"."+G6(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Ig(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function _g(e,t){return e.replace(/&/g,t)}var O6=new Intl.Collator("en",{numeric:!0});function qL(e,t){for(var n=0,r=e.length;n>1;0>=K6(e[a],t)?n=a+1:r=a}return r}function K6(e,t){let n=e.p&un.o;return n==(t.p&un.o)&&(n==un.b||n==un.o)?0:e.p-t.p||e.o-t.o||O6.compare(N6(e.n),N6(t.n))||O6.compare(j6(e.n),j6(t.n))}function N6(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function j6(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Og(e,t){return Math.round(parseInt(e,16)*t)}function ii(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[Og(e.substr(1,i),o),Og(e.substr(1+i,i),o),Og(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Y6(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let x=o[y];if(y[0]=="@"){if(!x)continue;if(y[1]=="a"){m.push(...J6(s,u,Yg(""+x),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ar(x))m.push(...i(S,{n:s,p:(b=un[y[7]],u&~un.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ar(x).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:un.d,o:0,r:[y],d:i(x,{p:un.d},d).map(_6).join("")});continue}if(y[1]=="f"){m.push(...ar(x).map(S=>({p:un.d,o:0,r:[y],d:i(S,{p:un.d},d).map(_6).join("")})));continue}}if(typeof x!="object"||Array.isArray(x))y=="label"&&x?s=x+b0(JSON.stringify([u,c,o])):(x||x===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:V6(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ar(x).map(S=>d.s(y,Q6(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(T,C)=>{let w=d.theme("screens",C);return w?(S|=67108864,y0(w,"")):T}),S|=Ug(y)),m.push(...i(x,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(x,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(K6)}(e,Gg(t,n,r,a),n)}function Q6(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ii(s):""+ar(s).filter(u=>Object(u)!==u)})}function Kg(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Hg(e,t,n=un.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=Vg.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=Gg(u,l,c,d),Kg(Hg(Yg(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ar(d),...ar(g.r)],p:(h=c,b=g.p??c,h&~un.o|b)}}):Y6(p,u,l,c,d):[{c:Wg(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(qL(i,s),0,s);return i}function J6(e,t,n,r,a,i,o,s){return Kg((s?n.flatMap(u=>Hg([u],r,a,i,o)):Hg(n,r,a,i,o)).map(u=>u.p&un.o&&(u.n||t==un.b)?{...u,p:u.p&~un.o|t,o:0}:u),e)}function zL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=Gg(i,o,t);return n&&J6(s,t,n,o,u,l,c,r)},Vg.set(e,a),e}function Ng(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(WL),i:a}))}}function WL(e,t,n){return n.indexOf(e)==t}var U6=new Map;function Yg(e){let t=U6.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&Ng(n,r)),a=s+1};for(;s1?d.slice(0,-1)+b0(JSON.stringify([d,m])):d+"("+W6(m)+")",un.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),U6.set(e,t=r[0])}return t}function Z6(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function X6(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Z6(e,t,n=>jg(n).trim()):t.filter(Boolean).reduce((n,r)=>n+jg(r),e?jg(e):"")}function jg(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=X6(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var une=$6("@"),lne=$6("~");function $6(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return W6(Yg(n+e+"("+X6(r,a)+")"))}}function qg(e,t){return Array.isArray(e)?H6(Z6(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?H6(e):[e]}var GL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function H6(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=GL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function ex(e,...t){var n;let r=qg(e,t),a=(r.find(i=>i.label)?.label||"css")+b0(JSON.stringify(r));return n=(i,o)=>Kg(r.flatMap(s=>Y6(s,i,o,un.o)),a),Vg.set(a,n),a}var cne=new Proxy(function(e,t){return q6("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return q6(t,n,r)}}});function q6(e,t,n){return{toString(){return ex({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,VL(t,n)]}function VL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):zg(n,1)}):n=>e||{[n[1]]:zg(n,2)}}function zg(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,r){return[e,KL(t,n,r)]}function KL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=tx(e||a[1]),s=i.theme(o,a.$$)??Ko(a.$$,o,i);if(s!=null)return a._=zg(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,YL(t,n)]}function YL(e={},t){return(n,r)=>{let{section:a=tx(n[0]).replace("-","")+"Color"}=e,[i,o]=QL(n.$$);if(!i)return;let s=r.theme(a,i)||Ko(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Ko(o,l,r),p=t||(({_:h})=>{let b=bu(c,h);return d?{[d]:b}:b});n._={value:ii(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ii(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ii(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ii(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function QL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ko(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=h0(Q6(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function tx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function h0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>h0(n)+r+h0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var dne=Symbol();var nx=new Proxy(UL,{apply(e,t,n){return Bg(n[0])},get(e,t){let n=Bg[t];return typeof n=="function"?function(){return n.apply(Bg,arguments)}:n}});var mne=function e(t){return new Proxy(function(n,...r){return z6(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return z6(t,r,a,i)}}})}();function z6(e,t,n,r){return{toString(){let a=qg(n,r),i=G6(t+b0(JSON.stringify([t,a])));return(typeof e=="function"?e:nx)(ex({[`@keyframes ${i}`]:qg(n,r)})),i}}}var rx={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...ir(4,"rem",4,.5,.5),...ir(12,"rem",4,5),14:"3.5rem",...ir(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...ir(200,"",100,0,50),...ir(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...ir(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...yu(2,6),...yu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...yu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...yu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...ir(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...ir(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:ir(200,"",100,0,50),scale:{...ir(150,"",100,0,50),...ir(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:ir(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...yu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...ir(50,"",1,0,10),auto:"auto"}};function yu(e,t){let n={};do for(var r=1;rt(e)}var Pne={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${rx.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${rx.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Rne=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ko(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[y0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",x0),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",ax),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",ux),te("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",sx),te("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",ux),te("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",sx),te("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>x0(ax(e))),X("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",ix),X("(content|items|self)-",e=>({["align-"+e[1]]:ix(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",Yo("padding")),te("-?m([xytrbl])?(?:$|-)","margin",Yo("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=ar(e))[1]=="string"?{fontFamily:Ir(e)}:{fontFamily:Ir(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...oi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),X("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ii(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",x0),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ii(n[0])}-radius`]:t,[`border-${Ii(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...oi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},Yo("border","Color")),Qt("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",Yo("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ii(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ii(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ii(t("ringOffsetColor","","#fff")),"--tw-ring-color":ii(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Ir(e),"--tw-shadow-colored":Ir(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),X("mix-blend-","mixBlendMode"),...ox(),...ox("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Ir(e),transitionTimingFunction:e._=="none"?void 0:Ir(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Ir(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Ir),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Ir),te("delay(?:$|-)","transitionDelay","transitionDelay",Ir),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Ir(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",Jg),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":lx(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Jg()})),te("-?(rotate)-","rotate",Qg),te("-?(translate-[xy])-","translate",Qg),te("-?(skew-[xy])-","skew",Qg),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",x0),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...oi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",Yo("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Yo("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...oi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function x0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function ax(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ii(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Ir(e){return e&&""+(e._||e)}function ix({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Yo(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...bu(e+"-"+Ii(a[0])+t,r),...bu(e+"-"+Ii(a[1])+t,r)}:bu(e+t,r)}}function ox(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...oi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>te(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ar(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Qg({1:e,_:t}){return{["--tw-"+e]:t,...Jg()}}function Jg(){return{...oi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":lx()}),transform:"var(--tw-transform)"}}function lx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function sx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function ux({1:e}){return`repeat(${e},minmax(0,1fr))`}function oi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var v0=globalThis||(typeof window<"u"?window:self),XL=Object.create,Xg=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,eP=Object.getOwnPropertyNames,tP=Object.getPrototypeOf,nP=Object.prototype.hasOwnProperty,rP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aP=(e,t)=>{for(var n in t)Xg(e,n,{get:t[n],enumerable:!0})},Zg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eP(t))!nP.call(e,a)&&a!==n&&Xg(e,a,{get:()=>t[a],enumerable:!(r=$L(t,a))||r.enumerable});return e},iP=(e,t,n)=>(Zg(e,t,"default"),n&&Zg(n,t,"default")),dx=(e,t,n)=>(n=e!=null?XL(tP(e)):{},Zg(t||!e||!e.__esModule?Xg(n,"default",{value:e,enumerable:!0}):n,e)),mx=rP((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof v0=="object"&&v0.global===v0?v0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var x=b.result;x=h?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=x:location=x,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),px={};aP(px,{default:()=>S0});var oP=dx(mx());iP(px,dx(mx()));var{default:cx,...sP}=oP,S0=cx!==void 0?cx:sP;function Lx(e){return typeof e>"u"||e===null}function uP(e){return typeof e=="object"&&e!==null}function lP(e){return Array.isArray(e)?e:Lx(e)?[]:[e]}function cP(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n{let t=await Jr({responseType:"json",url:`${it}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Rg=["glm-4-flash"],p0=class extends Un{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Rg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Rg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(v3,async()=>{let t=await Jr({responseType:"json",url:`${it}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Br.langMap.has(n.to)||!Br.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Br(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Rg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:Uo,mock2:Uo,custom:gu,google:uu,transmart:lu,deepl:qo,volc:h6,volcAlpha:mu,bing:Br,tencent:ou,tenAlpha:su,baidu:v6,caiyun:S6,cai:T6,openl:r0,youdao:w6,you:A6,d:jo,dpro:jo,deeplx:pu,niu:o6,azure:s6,openai:d6,gemini:L6,claude:M6,papago:u6,aliyun:du,yandex:fu,qianfan:hu,"custom-ai":Un,deepseek:Un,"aliyun-bailian":Un,doubao:Un,hunyuan:d0,siliconcloud:m0,lingyiwanwu:Un,zhipu:p0};globalThis.TranslationServicesClass=g0;var ri={};Object.keys(Cr).forEach(e=>{ri[e]={...Cr[e],class:g0[e]}});function f0(e,t){let n=Zn;if(ri[e]&&ri[e].class&&ri[e].class.langMap&&ri[e].class.langMap.size>0){let r=ri[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Zn}async function na(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function B6(e,t){for(let n of e)try{return await na({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Fg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ri[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function _L(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),Ta(a,t.localConfig,!1),d=p9(m,d,{sourceLanguage:_L(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(g&&(E.refresh=!0),h&&(E.debug=!0),E.text&&(E.text=OL(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ht(t.user),T;try{T=new ri[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(E){if(n){b.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let P of b){let F=E instanceof U?new U(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(F,null,P)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){v++;let k=l;l==="openl"&&(k=l+"-"+d.codename||r0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(k=P+"-"+k);let F=null;try{F=await Rl(eb({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(M){D.warn("query cache DB error, but it's ok",M)}if(F){let M={...E,text:F.translatedText};f.sentences[v]=M,n&&n(null,M,E)}else b.push(E)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(E,k,P)=>{if(n&&n(E,k,P),!E&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||r0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(F=M+"-"+F),o.cache&&Rl(tb({translatedText:k.text,from:P.from,to:P.to,detectedFrom:k.from,key:Xn(P.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let E of w?.sentences||[]){let k=f.sentences.findIndex(P=>!P);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=E}return f}function OL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function I6({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=f0(t.config.translationService,t.config.targetLanguage),s=Zn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(NL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:x9,style:{maxWidth:"unset"},class:"mx-2"}),x(jL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function NL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Xa(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Xa(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function jL(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Xa(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ai(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Bg;function Wg(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function W6(e,t=","){return e.map(Wg).join(t)}var G6=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function b0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function y0(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function UL(){}var un={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function V6(e){return e.match(/[-=:;]/g)?.length||0}function Ug(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(V6(e),15)<<18}var HL=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Gg({n:e,i:t,v:n=[]},r,a,i){e&&(e=Wg({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&y0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|Ug(l):s=="dark"?1073741824:l[0]=="@"?Ug(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~HL.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Vg=new Map;function _6(e){if(e.d){let t=[],n=Ig(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Ig(r,i=>Ig(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):_g(i,o)}return _g(o,i)})):r,"&"),r=>_g(r,e.n?"."+G6(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Ig(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function _g(e,t){return e.replace(/&/g,t)}var O6=new Intl.Collator("en",{numeric:!0});function qL(e,t){for(var n=0,r=e.length;n>1;0>=K6(e[a],t)?n=a+1:r=a}return r}function K6(e,t){let n=e.p&un.o;return n==(t.p&un.o)&&(n==un.b||n==un.o)?0:e.p-t.p||e.o-t.o||O6.compare(N6(e.n),N6(t.n))||O6.compare(j6(e.n),j6(t.n))}function N6(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function j6(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Og(e,t){return Math.round(parseInt(e,16)*t)}function ii(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[Og(e.substr(1,i),o),Og(e.substr(1+i,i),o),Og(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Y6(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...J6(s,u,Yg(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ir(v))m.push(...i(S,{n:s,p:(b=un[y[7]],u&~un.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:un.d,o:0,r:[y],d:i(v,{p:un.d},d).map(_6).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(S=>({p:un.d,o:0,r:[y],d:i(S,{p:un.d},d).map(_6).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+b0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:V6(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(S=>d.s(y,Q6(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(T,C)=>{let w=d.theme("screens",C);return w?(S|=67108864,y0(w,"")):T}),S|=Ug(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(K6)}(e,Gg(t,n,r,a),n)}function Q6(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ii(s):""+ir(s).filter(u=>Object(u)!==u)})}function Kg(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Hg(e,t,n=un.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=Vg.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=Gg(u,l,c,d),Kg(Hg(Yg(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~un.o|b)}}):Y6(p,u,l,c,d):[{c:Wg(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(qL(i,s),0,s);return i}function J6(e,t,n,r,a,i,o,s){return Kg((s?n.flatMap(u=>Hg([u],r,a,i,o)):Hg(n,r,a,i,o)).map(u=>u.p&un.o&&(u.n||t==un.b)?{...u,p:u.p&~un.o|t,o:0}:u),e)}function zL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=Gg(i,o,t);return n&&J6(s,t,n,o,u,l,c,r)},Vg.set(e,a),e}function Ng(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(WL),i:a}))}}function WL(e,t,n){return n.indexOf(e)==t}var U6=new Map;function Yg(e){let t=U6.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&Ng(n,r)),a=s+1};for(;s1?d.slice(0,-1)+b0(JSON.stringify([d,m])):d+"("+W6(m)+")",un.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),U6.set(e,t=r[0])}return t}function Z6(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function X6(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Z6(e,t,n=>jg(n).trim()):t.filter(Boolean).reduce((n,r)=>n+jg(r),e?jg(e):"")}function jg(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=X6(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var une=$6("@"),lne=$6("~");function $6(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return W6(Yg(n+e+"("+X6(r,a)+")"))}}function qg(e,t){return Array.isArray(e)?H6(Z6(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?H6(e):[e]}var GL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function H6(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=GL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function ev(e,...t){var n;let r=qg(e,t),a=(r.find(i=>i.label)?.label||"css")+b0(JSON.stringify(r));return n=(i,o)=>Kg(r.flatMap(s=>Y6(s,i,o,un.o)),a),Vg.set(a,n),a}var cne=new Proxy(function(e,t){return q6("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return q6(t,n,r)}}});function q6(e,t,n){return{toString(){return ev({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,VL(t,n)]}function VL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):zg(n,1)}):n=>e||{[n[1]]:zg(n,2)}}function zg(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,r){return[e,KL(t,n,r)]}function KL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=tv(e||a[1]),s=i.theme(o,a.$$)??Ko(a.$$,o,i);if(s!=null)return a._=zg(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,YL(t,n)]}function YL(e={},t){return(n,r)=>{let{section:a=tv(n[0]).replace("-","")+"Color"}=e,[i,o]=QL(n.$$);if(!i)return;let s=r.theme(a,i)||Ko(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Ko(o,l,r),p=t||(({_:h})=>{let b=bu(c,h);return d?{[d]:b}:b});n._={value:ii(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ii(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ii(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ii(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function QL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ko(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=h0(Q6(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function tv(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function h0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>h0(n)+r+h0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var dne=Symbol();var nv=new Proxy(UL,{apply(e,t,n){return Bg(n[0])},get(e,t){let n=Bg[t];return typeof n=="function"?function(){return n.apply(Bg,arguments)}:n}});var mne=function e(t){return new Proxy(function(n,...r){return z6(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return z6(t,r,a,i)}}})}();function z6(e,t,n,r){return{toString(){let a=qg(n,r),i=G6(t+b0(JSON.stringify([t,a])));return(typeof e=="function"?e:nv)(ev({[`@keyframes ${i}`]:qg(n,r)})),i}}}var rv={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...yu(2,6),...yu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...yu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...yu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...yu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function yu(e,t){let n={};do for(var r=1;rt(e)}var Pne={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${rv.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${rv.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Rne=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ko(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[y0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",v0),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",av),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",uv),te("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",sv),te("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",uv),te("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",sv),te("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>v0(av(e))),X("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",iv),X("(content|items|self)-",e=>({["align-"+e[1]]:iv(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",Yo("padding")),te("-?m([xytrbl])?(?:$|-)","margin",Yo("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Ir(e)}:{fontFamily:Ir(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...oi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),X("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ii(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",v0),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ii(n[0])}-radius`]:t,[`border-${Ii(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...oi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},Yo("border","Color")),Qt("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",Yo("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ii(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ii(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ii(t("ringOffsetColor","","#fff")),"--tw-ring-color":ii(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Ir(e),"--tw-shadow-colored":Ir(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),X("mix-blend-","mixBlendMode"),...ov(),...ov("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Ir(e),transitionTimingFunction:e._=="none"?void 0:Ir(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Ir(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Ir),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Ir),te("delay(?:$|-)","transitionDelay","transitionDelay",Ir),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Ir(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",Jg),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":lv(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Jg()})),te("-?(rotate)-","rotate",Qg),te("-?(translate-[xy])-","translate",Qg),te("-?(skew-[xy])-","skew",Qg),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",v0),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...oi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",Yo("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Yo("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...oi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function v0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function av(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ii(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Ir(e){return e&&""+(e._||e)}function iv({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Yo(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...bu(e+"-"+Ii(a[0])+t,r),...bu(e+"-"+Ii(a[1])+t,r)}:bu(e+t,r)}}function ov(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...oi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>te(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Qg({1:e,_:t}){return{["--tw-"+e]:t,...Jg()}}function Jg(){return{...oi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":lv()}),transform:"var(--tw-transform)"}}function lv(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function sv({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function uv({1:e}){return`repeat(${e},minmax(0,1fr))`}function oi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var x0=globalThis||(typeof window<"u"?window:self),XL=Object.create,Xg=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,eP=Object.getOwnPropertyNames,tP=Object.getPrototypeOf,nP=Object.prototype.hasOwnProperty,rP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aP=(e,t)=>{for(var n in t)Xg(e,n,{get:t[n],enumerable:!0})},Zg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eP(t))!nP.call(e,a)&&a!==n&&Xg(e,a,{get:()=>t[a],enumerable:!(r=$L(t,a))||r.enumerable});return e},iP=(e,t,n)=>(Zg(e,t,"default"),n&&Zg(n,t,"default")),dv=(e,t,n)=>(n=e!=null?XL(tP(e)):{},Zg(t||!e||!e.__esModule?Xg(n,"default",{value:e,enumerable:!0}):n,e)),mv=rP((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof x0=="object"&&x0.global===x0?x0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),pv={};aP(pv,{default:()=>S0});var oP=dv(mv());iP(pv,dv(mv()));var{default:cv,...sP}=oP,S0=cv!==void 0?cv:sP;function Lv(e){return typeof e>"u"||e===null}function uP(e){return typeof e=="object"&&e!==null}function lP(e){return Array.isArray(e)?e:Lv(e)?[]:[e]}function cP(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function ef(e,t){return Jt.repeat(" ",t-e.length)+e}function xP(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=$g(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+ef((e.line-u+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function xu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Pv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}xu.prototype=Object.create(Error.prototype);xu.prototype.constructor=xu;xu.prototype.toString=function(e){return this.name+": "+Pv(this,e)};var Hn=xu;function $g(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function ef(e,t){return Jt.repeat(" ",t-e.length)+e}function vP(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=$g(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+ef((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=$g(e.buffer,r[o],a[o],e.position,d),s+=Jt.repeat(" ",t.indent)+ef((e.line+1).toString(),c)+" | "+l.str+` `,s+=Jt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=$g(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Jt.repeat(" ",t.indent)+ef((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var vP=xP,SP=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],TP=["scalar","sequence","mapping"];function CP(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function wP(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(SP.indexOf(n)===-1)throw new Un('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=CP(t.styleAliases||null),TP.indexOf(this.kind)===-1)throw new Un('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xn=wP;function gx(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function EP(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),VP=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KP(e){return!(e===null||!VP.test(e)||e[e.length-1]==="_")}function YP(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var QP=/^[-+]?[0-9]+e/;function JP(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),QP.test(n)?n.replace("e",".e"):n}function ZP(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var XP=new xn("tag:yaml.org,2002:float",{kind:"scalar",resolve:KP,construct:YP,predicate:ZP,represent:JP,defaultStyle:"lowercase"}),$P=PP.extend({implicit:[BP,NP,GP,XP]}),eM=$P,Mx=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Rx=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tM(e){return e===null?!1:Mx.exec(e)!==null||Rx.exec(e)!==null}function nM(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=Mx.exec(e),t===null&&(t=Rx.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function rM(e){return e.toISOString()}var aM=new xn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tM,construct:nM,instanceOf:Date,represent:rM});function iM(e){return e==="<<"||e===null}var oM=new xn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iM}),uf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function sM(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=uf;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function uM(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=uf,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function lM(e){var t="",n=0,r,a,i=e.length,o=uf;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function cM(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var dM=new xn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sM,construct:uM,predicate:cM,represent:lM}),mM=Object.prototype.hasOwnProperty,pM=Object.prototype.toString;function gM(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Nx=new Array(256),jx=new Array(256);for(_i=0;_i<256;_i++)Nx[_i]=bx(_i)?1:0,jx[_i]=bx(_i);var _i;function FM(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fx,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ux(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=vP(n),new Un(t,n)}function ve(e,t){throw Ux(e,t)}function w0(e,t){e.onWarning&&e.onWarning.call(null,Ux(e,t))}var yx={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&w0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],_x.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),ui.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),Ox.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function si(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` -`,t-1))}function BM(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Hn(p)||Jo(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Hn(a)||n&&Jo(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Hn(a)||n&&Jo(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Hn(r))break}else{if(e.position===e.lineStart&&k0(e)||n&&Jo(p))break;if(ra(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(si(e,i,o,!1),cf(e,e.line-u),i=o=e.position,s=!1),Oi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return si(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function IM(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(si(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ra(n)?(si(e,r,a,!0),cf(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&k0(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function _M(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return si(e,n,e.position,!0),e.position++,!0;if(s===92){if(si(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ra(s))qt(e,!1,t);else if(s<256&&Nx[s])e.result+=jx[s],e.position++;else if((o=PM(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=LM(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=RM(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else ra(s)?(si(e,n,r,!0),cf(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&k0(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function OM(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Hn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,Xo(e,t,T0,!1,!0),b=e.tag,h=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),Xo(e,t,T0,!1,!0),f=e.result),p?Zo(e,s,g,b,h,f,r,a,i):d?s.push(Zo(e,null,g,b,h,f,r,a,i)):s.push(h),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function NM(e,t){var n,r,a=tf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)tf===a?a=d===43?fx:EM:ve(e,"repeat of a chomping mode identifier");else if((c=MM(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Oi(d)){do d=e.input.charCodeAt(++e.position);while(Oi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ra(d)&&d!==0)}for(;d!==0;){for(lf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ra(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),VP=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KP(e){return!(e===null||!VP.test(e)||e[e.length-1]==="_")}function YP(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var QP=/^[-+]?[0-9]+e/;function JP(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),QP.test(n)?n.replace("e",".e"):n}function ZP(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var XP=new vn("tag:yaml.org,2002:float",{kind:"scalar",resolve:KP,construct:YP,predicate:ZP,represent:JP,defaultStyle:"lowercase"}),$P=PP.extend({implicit:[BP,NP,GP,XP]}),eM=$P,Mv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Rv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tM(e){return e===null?!1:Mv.exec(e)!==null||Rv.exec(e)!==null}function nM(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=Mv.exec(e),t===null&&(t=Rv.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function rM(e){return e.toISOString()}var aM=new vn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tM,construct:nM,instanceOf:Date,represent:rM});function iM(e){return e==="<<"||e===null}var oM=new vn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iM}),uf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function sM(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=uf;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function uM(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=uf,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function lM(e){var t="",n=0,r,a,i=e.length,o=uf;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function cM(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var dM=new vn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sM,construct:uM,predicate:cM,represent:lM}),mM=Object.prototype.hasOwnProperty,pM=Object.prototype.toString;function gM(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Nv=new Array(256),jv=new Array(256);for(_i=0;_i<256;_i++)Nv[_i]=bv(_i)?1:0,jv[_i]=bv(_i);var _i;function FM(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Uv(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xP(n),new Hn(t,n)}function xe(e,t){throw Uv(e,t)}function w0(e,t){e.onWarning&&e.onWarning.call(null,Uv(e,t))}var yv={YAML:function(e,t,n){var r,a,i;e.version!==null&&xe(e,"duplication of %YAML directive"),n.length!==1&&xe(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&xe(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&xe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&w0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&xe(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],_v.test(r)||xe(e,"ill-formed tag handle (first argument) of the TAG directive"),ui.call(e.tagMap,r)&&xe(e,'there is a previously declared suffix for "'+r+'" tag handle'),Ov.test(a)||xe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{xe(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function si(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` +`,t-1))}function BM(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),qn(p)||Jo(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),qn(a)||n&&Jo(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),qn(a)||n&&Jo(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),qn(r))break}else{if(e.position===e.lineStart&&k0(e)||n&&Jo(p))break;if(ra(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(si(e,i,o,!1),cf(e,e.line-u),i=o=e.position,s=!1),Oi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return si(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function IM(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(si(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ra(n)?(si(e,r,a,!0),cf(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&k0(e)?xe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);xe(e,"unexpected end of the stream within a single quoted scalar")}function _M(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return si(e,n,e.position,!0),e.position++,!0;if(s===92){if(si(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ra(s))qt(e,!1,t);else if(s<256&&Nv[s])e.result+=jv[s],e.position++;else if((o=PM(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=LM(s))>=0?i=(i<<4)+o:xe(e,"expected hexadecimal character");e.result+=RM(i),e.position++}else xe(e,"unknown escape sequence");n=r=e.position}else ra(s)?(si(e,n,r,!0),cf(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&k0(e)?xe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}xe(e,"unexpected end of the stream within a double quoted scalar")}function OM(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&xe(e,"expected the node content, but found ','"):xe(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),qn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,Xo(e,t,T0,!1,!0),b=e.tag,h=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),Xo(e,t,T0,!1,!0),f=e.result),p?Zo(e,s,g,b,h,f,r,a,i):d?s.push(Zo(e,null,g,b,h,f,r,a,i)):s.push(h),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}xe(e,"unexpected end of the stream within a flow collection")}function NM(e,t){var n,r,a=tf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)tf===a?a=d===43?fv:EM:xe(e,"repeat of a chomping mode identifier");else if((c=MM(d))>=0)c===0?xe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?xe(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Oi(d)){do d=e.input.charCodeAt(++e.position);while(Oi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ra(d)&&d!==0)}for(;d!==0;){for(lf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ra(d)){u++;continue}if(e.lineIndentt)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),Xo(e,t,C0,!0,a)&&(b?g=e.result:h=e.result),b||(Zo(e,d,m,p,g,h,o,s,u),p=g=h=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function zM(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Hn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;Oi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ra(o));break}if(ra(o))break;for(n=e.position;o!==0&&!Hn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&lf(e),ui.call(yx,r)?yx[r](e,r,a):w0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),Xo(e,e.lineIndent-1,C0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&kM.test(e.input.slice(t,e.position))&&w0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&k0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Hx(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)xe(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),Xo(e,t,C0,!0,a)&&(b?g=e.result:h=e.result),b||(Zo(e,d,m,p,g,h,o,s,u),p=g=h=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)xe(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&xe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):xe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function zM(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!qn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&xe(e,"directive name must not be less than one character in length");o!==0;){for(;Oi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ra(o));break}if(ra(o))break;for(n=e.position;o!==0&&!qn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&lf(e),ui.call(yv,r)?yv[r](e,r,a):w0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&xe(e,"directives end mark is expected"),Xo(e,e.lineIndent-1,C0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&kM.test(e.input.slice(t,e.position))&&w0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&k0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Hv(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Jx(e){var t=/^\n* /;return t.test(e)}var Zx=1,of=2,Xx=3,$x=4,Qo=5;function vR(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=yR(xu(e,0))&&xR(xu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=xu(e,u),!Cu(l))return Qo;h=h&&Cx(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=xu(e,u),l===Su)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Cu(l))return Qo;h=h&&Cx(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?Zx:i===Tu?Qo:of:n>9&&Jx(e)?Qo:o?i===Tu?Qo:of:m?$x:Xx}function SR(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Tu?'""':"''";if(!e.noCompatMode&&(dR.indexOf(t)!==-1||mR.test(t)))return e.quotingType===Tu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return bR(e,l)}switch(vR(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Zx:return t;case of:return"'"+t.replace(/'/g,"''")+"'";case Xx:return"|"+wx(t,e.indent)+Ex(Sx(t,i));case $x:return">"+wx(t,e.indent)+Ex(Sx(TR(t,o),i));case Qo:return'"'+CR(t)+'"';default:throw new Un("impossible error: invalid scalar style")}}()}function wx(e,t){var n=Jx(e)?String(t):"",r=e[e.length-1]===` +`+Jt.repeat(" ",e.indent*t)}function bR(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Jv(e){var t=/^\n* /;return t.test(e)}var Zv=1,of=2,Xv=3,$v=4,Qo=5;function xR(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=yR(vu(e,0))&&vR(vu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=vu(e,u),!Cu(l))return Qo;h=h&&Cv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=vu(e,u),l===Su)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Cu(l))return Qo;h=h&&Cv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?Zv:i===Tu?Qo:of:n>9&&Jv(e)?Qo:o?i===Tu?Qo:of:m?$v:Xv}function SR(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Tu?'""':"''";if(!e.noCompatMode&&(dR.indexOf(t)!==-1||mR.test(t)))return e.quotingType===Tu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return bR(e,l)}switch(xR(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Zv:return t;case of:return"'"+t.replace(/'/g,"''")+"'";case Xv:return"|"+wv(t,e.indent)+Ev(Sv(t,i));case $v:return">"+wv(t,e.indent)+Ev(Sv(TR(t,o),i));case Qo:return'"'+CR(t)+'"';default:throw new Hn("impossible error: invalid scalar style")}}()}function wv(e,t){var n=Jv(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function Ex(e){return e[e.length-1]===` +`}function Ev(e){return e[e.length-1]===` `?e.slice(0,-1):e}function TR(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,Ax(e.slice(0,l),t)}(),a=e[0]===` +`);return l=l!==-1?l:e.length,n.lastIndex=l,Av(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+Ax(u,t),a=i}return r}function Ax(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+Av(u,t),a=i}return r}function Av(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function CR(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=xu(e,a),r=vn[n],!r&&Cu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||gR(n);return t}function wR(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function kx(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=af(e,t)),e.dump&&Su===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function ER(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function AR(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Un("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Su===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=af(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Su===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function Dx(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Dx(e,n,!1)||Dx(e,n,!0);var s=zx.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(AR(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(ER(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?kx(e,t-1,e.dump,a):kx(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(wR(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&SR(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Un("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function kR(e,t){var n=[],r=[],a,i;for(sf(e,n,r),a=0,i=r.length;ac.selected),[r,a]=V(!1),i=Te(null),[o,s]=V(ev),[u,l]=V(0);return ys(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,x=t.length*b+f*3,S=g+d.height;if(x>m.clientHeight-S){let T=Math.min(y,x);l(m.clientHeight-g-T-h)}else l(0);s(Math.max(ev,y))}},[i.current,r,t]),re(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),v("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[v("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[v(nv,{item:n,isDefault:!0}),L9]}),v(RR,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function RR(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Te(null);return re(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;uv(nv,{item:o,onClick:e.onClick},o.value))})}function nv(e){let t=e.item,{t:n}=se();return t?v("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&v("img",{class:"custom-select-item-img",src:t.img}),v("span",{children:[t.label,t.isShowProOrCustom&&v("span",{class:"custom-select-item-pro",children:["(",v("img",{src:Oo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&v("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var FR={more:"data:image/png;base64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qaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/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KYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function D0(e){let t=FR[e];return t}function rv(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=OR(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?v("div",{class:"translation-service-container mt-3",children:[v(av,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),v(BR,{...e,currentTranslationService:a})]}):null}function av(e){let t=ye(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=Mr(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return v("div",{class:`min-select-container ${e.class||""}`,children:[v("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?v(tv,{className:"translate-service",items:t}):v(ai,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function BR({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=_R(e,o),l=IR(e,o),c=ke((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:v(Gt,{children:d.map(({label:m,items:p},g)=>v(av,{label:m,items:p,ctx:e},"field-"+g))})}function IR(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function _R(e,t){let{lang:n}=se();return ye(()=>{let a=I2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Cr,ep,e,n,t])}function OR({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?B2(t,"translationService",c):[],[t,c]),m=ke(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Qa(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=O2(f,e,g,l,!0),x=D0(f.id);f.id.startsWith("custom-ai")&&(x=D0("custom-ai")),f.id.startsWith("mock")&&(x="");let S=Si.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:x,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:D0("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function iv(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ov(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=NR(e),[o,s]=V(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return v("div",{class:"flex justify-between mt-5",children:[v(ai,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),v("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function NR({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&Xc(e)){c=iv(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(x=>Ze(e,x)),m=!!y.find(x=>Ze(e,x))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],x=y.filter(T=>T.match!==f),S=!1;x.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...x]})},[r]),b=ke((f,y)=>{if(f==="default"){s(T=>{let C={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:pf(e,C.matches),excludeMatches:pf(e,C.excludeMatches)}}}),h();return}let x=f,S=x==="matches"?"excludeMatches":"matches";l&&s(T=>{let C={...T.translationUrlPattern};return C[S]=pf(e,C[S]),C[x]=Gc(y,C[x]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...C}}}),x==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):x==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function pf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function sv(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",gf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=gf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:gf(n)},r,a);return jR(i)}catch{return Promise.reject("Encryption failed")}}function jR(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=Sc(y);let B=Cc(y);L.install_week=`${B.year}${B.week}`}if(n.user){let B=l1(n.user);B&&Object.keys(B).forEach(j=>{L[j]=B[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let j=new URL(B);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...I,params:L}});if(i)return;P.forEach(async I=>{let L=await Z({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:M})})}),n.config.enableSelfServiceReport&&UR(p,M),n.config.enablePerformanceReport&&zR(n,M)}catch(r){D.debug("report error",r)}}function UR(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};uv(r);let a=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var HR=Date.now(),qR=["translate_page","translate_video_subtitle"];function zR(e,t){try{t.forEach(async n=>{if(!qR.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};uv(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-HR},s=await sv(JSON.stringify(o),o1,s1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function uv(e){return e?.install_day&&(e.install_day=Tc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var WR=1e5;async function Ea(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GR(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:E,onFrame:k,onIgnoreElement:P,id:F,isLongHtml:M}=w,I=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let j=N(B);return j==NodeFilter.FILTER_ACCEPT?ft.mark(B,F,p):$R(B,j,r)&&x(),j}),L=E;if(N(L)===NodeFilter.FILTER_REJECT)return;for(ft.mark(L,F,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:G}=y(I,L,u);if(j)L=j;else break;if(!G)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){k&&k(j),x(),ff(g,!0),L=I.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&hf(j,s),d&&yf(j,d));let G=Vr(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(G&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(G=!1),At(j,o)&&!G){S(j);let le=null;for(;!(le=I.nextSibling())&&I.parentNode(););L=le;continue}let z=Mi(j);if(!lv(g,j)||G){x(j);let le=G?j:j.parentElement;le&&le.childNodes.length>0&&T(g,le,le.immersiveTranslateComputedStyle||null)}z&&j.shadowRoot?.mode==="open"&&(G?k?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&At(j,r.likePreSelectors)&&l&&(M||QR(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=I.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function N(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ri(B)){if(d){let ue=Object.keys(d);if(ue.length>0&&At(B,ue))for(let O of ue){let H=d[O];if(B.matches(O)){let Y=d[O],Ee=Object.keys(Y);for(let ge of Ee){let je=Y[ge];B.getAttribute(ge)!==je&&(je===null?B.removeAttribute(ge):B.setAttribute(ge,je))}break}}}if(!w.force&&ft.isMarked(B,F)||jy(B,F)||L0(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Ga(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let ue=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=ue,bf(ue))return P&&P(B),NodeFilter.FILTER_REJECT;let le=Vr(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},ue||null);if(B.isBlock=le,At(B,o)&&le)return NodeFilter.FILTER_REJECT}let j=B.getBoundingClientRect(),{width:G,height:z}=j;return B.nodeName==="IMG"&&(G>48&&z>48?B.immersiveTranslateComputedStyle={display:"block"}:G>0&&z>0&&m!==!1&&(B.setAttribute("width",G),B.setAttribute("height",z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(G>0&&G<4||z>0&&z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let j=B.textContent?.trim();if(!j)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let G=B.parentNode;if(G.getBoundingClientRect){let{width:z,height:ue}=G.getBoundingClientRect();if(z>0&&z<4||ue>0&&ue<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JR(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){D.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(w,E,k){let P=E.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(E))if(h=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,x(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,x(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};return{currentNode:E,isMatchedSelection:!0}}function x(w){let E=g.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let P=E;P>=0;P--){let M=g.flatNodes[P]?.textContent?.trim()||"";if(!M||new RegExp(r.skipTrailTextRegex).test(M)){g.flatNodes.splice(P,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eF(w,r);let P=[...g.flatNodes],F=g.flatNodes.filter(M=>w.parentNode?.contains(M));F.length>0&&P.length!=F.length&&(g.flatNodes=F,g.flatNodes.original=P)}let k=YR(g,a,r);k&&n&&n(k),ff(g)}function S(w){if(!lv(g,w)){x(),ff(g);let E=w.parentNode;E&&T(g,E,E.computedStyle)}g.flatNodes.push(w)}function T(w,E,k){w.commonAncestorContainer=E;let P=C(k);w.isPreWhitespace=P}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function lv(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mi(t));let r=KR(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GR(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VR(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function hf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KR(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mi(t)):!1}function YR(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=zc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VR(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WR){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Wy(o)}}else return null}function ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function bf(e){return e.display==="none"}var ft={_marked_key:P3,isMarked(e,t){return wp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return by(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QR(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function JR(e,t,n){let r=e.textContent||"",a=qy(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=uy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function dv(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),d=e.querySelector(u);if(d)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let h=d.innerText||d.textContent||"";if(!h.trim()||XR(d,a,i,o)||!cy(h,n,r))continue}d.getAttribute(m)!==p&&(p===null?d.removeAttribute(m):d.setAttribute(m,p))}}}function yf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function L0(e,t){return ZR(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function ZR(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(Hc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function wu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function XR(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&L0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Fc(o,t,n))return!0}}return!1}function $R(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Vr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Vr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function xf(e,t,n=[],r){let a=["notranslate"];return r&&a.push(H3),e&&(a.push(`${_}-target-translation-theme-${e}`),t?a.push(`${tm}-theme-${e}`):a.push(`${em}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(tm):a.push(em),a}function vf(e){let t=["notranslate",El];return e&&t.push(`${_}-target-translation-theme-${e}-inner`),t}function mv(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Pi(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),C=f[T-1]===" ",w=f[T+S.length]===" ",k=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),P=Number(k);if(isNaN(P))return S;let F=o[P];if(F&&F.type==="element"){let M=nt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(M=" "+M),w||(M=M+" "),M}else D.error("variable type not supported",F,S);return S}));let y=xf(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(U3);let x=vf(i);return Sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:x,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function P0(e,t,n,r,a){let i=t.original||t,o=Ay(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function pv(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function gv(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=nt.sanitize(Oc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Py(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Pi(t);if(c.length>2){let d=c[2];return tF({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=mv(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function Tf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),S=p[x-1]===" ",T=p[x+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],E=Number(w);if(isNaN(E))return y;let k=o[Number(E)];if(k&&k.type==="element"){let P=nt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(P=" "+P),T||(P=P+" "),P}else if(k&&k.type==="text"){let P=k.value;return S||(P=" "+P),T||(P=P+" "),P}else D.error("variable type not supported",k,y);return y}));let b=xf(l,n,r||[],s),f=vf(l);return Sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Cf(e){let t=e[e.length-1];return t?t.text:""}function fv(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Wl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nF(u.content,t),n&&(r=bv(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Gy(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function hv(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function nF(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rF(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return zc(i,document.body,t)}function rF(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function bv(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(wl)||wf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Eu="";async function wf(e){let t=document.title;if(!t||t.includes(wl))return;Eu!==t&&(Eu=t);let n=await Ie({text:t,pageLangs:[ct(),"en"]});if(!ko(e,n))try{let r=await na({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Eu,document.title=r.text+wl+Eu)}catch(r){throw r}}function xv(e){e.rule.isTranslateTitle&&(document.title=Eu)}function $o(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function M0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function CR(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=vu(e,a),r=xn[n],!r&&Cu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||gR(n);return t}function wR(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function kv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=af(e,t)),e.dump&&Su===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function ER(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function AR(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Hn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Su===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=af(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Su===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function Dv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Dv(e,n,!1)||Dv(e,n,!0);var s=zv.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(AR(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(ER(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?kv(e,t-1,e.dump,a):kv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(wR(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&SR(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Hn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function kR(e,t){var n=[],r=[],a,i;for(sf(e,n,r),a=0,i=r.length;ac.selected),[r,a]=V(!1),i=Te(null),[o,s]=V(ex),[u,l]=V(0);return ys(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let T=Math.min(y,v);l(m.clientHeight-g-T-h)}else l(0);s(Math.max(ex,y))}},[i.current,r,t]),re(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(nx,{item:n,isDefault:!0}),L9]}),x(RR,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function RR(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Te(null);return re(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(nx,{item:o,onClick:e.onClick},o.value))})}function nx(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:Oo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var FR={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOCsAJrhxmHSsGI6T0Uva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NuE3L/5D0vSpymm5QooRzZiqKm83rzvzl8hoTV+9PH6BBGBVs0GGJUvvqL/juvNvT0Sxr777uk+RvXTf/24oxQ7H/6CpBQqmuqZKE6MP6Ha1lCqaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkS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Kb5Bt+qBEyYLDAPu6SPrvBoBRT+qJTG0GS7dyyG5qg6S3ehztC888z4fC4s+Sf7erYPeE8G/BERC/K7H+aZTa6qtThlbh/D8igukz3y7i3+B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function D0(e){let t=FR[e];return t}function rx(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=OR(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(ax,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(BR,{...e,currentTranslationService:a})]}):null}function ax(e){let t=ye(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=Mr(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(tx,{className:"translate-service",items:t}):x(ai,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function BR({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=_R(e,o),l=IR(e,o),c=ke((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Gt,{children:d.map(({label:m,items:p},g)=>x(ax,{label:m,items:p,ctx:e},"field-"+g))})}function IR(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function _R(e,t){let{lang:n}=se();return ye(()=>{let a=I2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Cr,ep,e,n,t])}function OR({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?B2(t,"translationService",c):[],[t,c]),m=ke(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Qa(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=O2(f,e,g,l,!0),v=D0(f.id);f.id.startsWith("custom-ai")&&(v=D0("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Si.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:D0("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function ix(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ox(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=NR(e),[o,s]=V(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(ai,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function NR({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&Xc(e)){c=ix(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>Ze(e,v)),m=!!y.find(v=>Ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(T=>T.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=ke((f,y)=>{if(f==="default"){s(T=>{let C={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:pf(e,C.matches),excludeMatches:pf(e,C.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(T=>{let C={...T.translationUrlPattern};return C[S]=pf(e,C[S]),C[v]=Gc(y,C[v]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function pf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function sx(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",gf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=gf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:gf(n)},r,a);return jR(i)}catch{return Promise.reject("Encryption failed")}}function jR(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Sc(y);let B=Cc(y);L.install_week=`${B.year}${B.week}`}if(n.user){let B=l1(n.user);B&&Object.keys(B).forEach(j=>{L[j]=B[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let j=new URL(B);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...I,params:L}});if(i)return;P.forEach(async I=>{let L=await Z({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:M})})}),n.config.enableSelfServiceReport&&UR(p,M),n.config.enablePerformanceReport&&zR(n,M)}catch(r){D.debug("report error",r)}}function UR(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};ux(r);let a=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var HR=Date.now(),qR=["translate_page","translate_video_subtitle"];function zR(e,t){try{t.forEach(async n=>{if(!qR.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};ux(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-HR},s=await sx(JSON.stringify(o),o1,s1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function ux(e){return e?.install_day&&(e.install_day=Tc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var WR=1e5;async function Ea(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GR(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:E,onFrame:k,onIgnoreElement:P,id:F,isLongHtml:M}=w,I=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let j=N(B);return j==NodeFilter.FILTER_ACCEPT?ft.mark(B,F,p):$R(B,j,r)&&v(),j}),L=E;if(N(L)===NodeFilter.FILTER_REJECT)return;for(ft.mark(L,F,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:G}=y(I,L,u);if(j)L=j;else break;if(!G)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){k&&k(j),v(),ff(g,!0),L=I.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&hf(j,s),d&&yf(j,d));let G=Vr(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(G&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(G=!1),At(j,o)&&!G){S(j);let le=null;for(;!(le=I.nextSibling())&&I.parentNode(););L=le;continue}let z=Mi(j);if(!lx(g,j)||G){v(j);let le=G?j:j.parentElement;le&&le.childNodes.length>0&&T(g,le,le.immersiveTranslateComputedStyle||null)}z&&j.shadowRoot?.mode==="open"&&(G?k?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&At(j,r.likePreSelectors)&&l&&(M||QR(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=I.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function N(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ri(B)){if(d){let ue=Object.keys(d);if(ue.length>0&&At(B,ue))for(let O of ue){let H=d[O];if(B.matches(O)){let Y=d[O],Ee=Object.keys(Y);for(let ge of Ee){let je=Y[ge];B.getAttribute(ge)!==je&&(je===null?B.removeAttribute(ge):B.setAttribute(ge,je))}break}}}if(!w.force&&ft.isMarked(B,F)||jy(B,F)||L0(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Ga(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let ue=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=ue,bf(ue))return P&&P(B),NodeFilter.FILTER_REJECT;let le=Vr(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},ue||null);if(B.isBlock=le,At(B,o)&&le)return NodeFilter.FILTER_REJECT}let j=B.getBoundingClientRect(),{width:G,height:z}=j;return B.nodeName==="IMG"&&(G>48&&z>48?B.immersiveTranslateComputedStyle={display:"block"}:G>0&&z>0&&m!==!1&&(B.setAttribute("width",G),B.setAttribute("height",z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(G>0&&G<4||z>0&&z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let j=B.textContent?.trim();if(!j)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let G=B.parentNode;if(G.getBoundingClientRect){let{width:z,height:ue}=G.getBoundingClientRect();if(z>0&&z<4||ue>0&&ue<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JR(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){D.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&v();function y(w,E,k){let P=E.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(E))if(h=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,v(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,v(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};return{currentNode:E,isMatchedSelection:!0}}function v(w){let E=g.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let P=E;P>=0;P--){let M=g.flatNodes[P]?.textContent?.trim()||"";if(!M||new RegExp(r.skipTrailTextRegex).test(M)){g.flatNodes.splice(P,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eF(w,r);let P=[...g.flatNodes],F=g.flatNodes.filter(M=>w.parentNode?.contains(M));F.length>0&&P.length!=F.length&&(g.flatNodes=F,g.flatNodes.original=P)}let k=YR(g,a,r);k&&n&&n(k),ff(g)}function S(w){if(!lx(g,w)){v(),ff(g);let E=w.parentNode;E&&T(g,E,E.computedStyle)}g.flatNodes.push(w)}function T(w,E,k){w.commonAncestorContainer=E;let P=C(k);w.isPreWhitespace=P}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function lx(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mi(t));let r=KR(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GR(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VR(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function hf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KR(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mi(t)):!1}function YR(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=zc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VR(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WR){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Wy(o)}}else return null}function ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function bf(e){return e.display==="none"}var ft={_marked_key:P3,isMarked(e,t){return wp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return by(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QR(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=Nn?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function JR(e,t,n){let r=e.textContent||"",a=qy(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=uy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function dx(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||XR(p,a,i,o)||!cy(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function yf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function L0(e,t){return ZR(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function ZR(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(Hc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function wu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function XR(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&L0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Fc(o,t,n))return!0}}return!1}function $R(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Vr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Vr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function vf(e,t,n=[],r){let a=["notranslate"];return r&&a.push(H3),e&&(a.push(`${_}-target-translation-theme-${e}`),t?a.push(`${tm}-theme-${e}`):a.push(`${em}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(tm):a.push(em),a}function xf(e){let t=["notranslate",El];return e&&t.push(`${_}-target-translation-theme-${e}-inner`),t}function mx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Pi(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),C=f[T-1]===" ",w=f[T+S.length]===" ",k=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),P=Number(k);if(isNaN(P))return S;let F=o[P];if(F&&F.type==="element"){let M=nt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(M=" "+M),w||(M=M+" "),M}else D.error("variable type not supported",F,S);return S}));let y=vf(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(U3);let v=xf(i);return Sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function P0(e,t,n,r,a){let i=t.original||t,o=Ay(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function px(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function gx(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=nt.sanitize(Oc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Py(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Pi(t);if(c.length>2){let d=c[2];return tF({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=mx(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function Tf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",T=p[v+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],E=Number(w);if(isNaN(E))return y;let k=o[Number(E)];if(k&&k.type==="element"){let P=nt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(P=" "+P),T||(P=P+" "),P}else if(k&&k.type==="text"){let P=k.value;return S||(P=" "+P),T||(P=P+" "),P}else D.error("variable type not supported",k,y);return y}));let b=vf(l,n,r||[],s),f=xf(l);return Sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Cf(e){let t=e[e.length-1];return t?t.text:""}function fx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Wl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nF(u.content,t),n&&(r=bx(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Gy(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function hx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function nF(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rF(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return zc(i,document.body,t)}function rF(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function bx(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(wl)||wf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Eu="";async function wf(e){let t=document.title;if(!t||t.includes(wl))return;Eu!==t&&(Eu=t);let n=await Ie({text:t,pageLangs:[ct(),"en"]});if(!ko(e,n))try{let r=await na({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Eu,document.title=r.text+wl+Eu)}catch(r){throw r}}function vx(e){e.rule.isTranslateTitle&&(document.title=Eu)}function $o(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function M0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function vv(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function xx(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${_}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function R0(e){let t=By(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function ln(e){let t=e.rule;e.isRichTranslate&&(t=kp(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aF={sanitize:e=>e};async function Df(e,t){if(e.interruptEffectDOM)return;let n=ln(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{Ef(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),to&&Et(t,"consumeContainer",e.id)}function Ef(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ga(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Xd}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Yr(t.contentWindow?.document.documentElement,e.translateState),Aa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),Aa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function Aa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=ln(t.ctx),o=0;if(l(t,e,n))return;if(Ri(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ri(d)&&(a&&hf(d,a),i&&yf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Df(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else to&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Ef(t,c.shadowRoot,n),!1;if(d==="iframe")return Ef(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return wu(c,m.selectors);if(m.containerSelectors&&wu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(We()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){hv(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=ln(c.ctx);return!!(L0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Au(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=es(e,t.targetNodes,s);li(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=es(e,t.targetNodes);li(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),Mf(t)}catch(s){D.error(s)}}}function Af(e){return!e||!Ri(e)?!1:e.classList.contains(Pt)}function es(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function li(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iF=Yn(F0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oF(t.rootNodes)||t.stepState>=2)return;t.stepState=2,to&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Pi(i),u=i.config.translationServices[i.translationService],l=P0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:R0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Pf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Kr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sF(e,t.text),Lf(e,t,r)):(to&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oF(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ri(t)&&t.classList.contains(Pt):!1}function sF(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Lf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),to&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,M3,"1",!0),n=="hover"){F0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iF.call(e,e.ctx,a)}async function F0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=uF(e,u.toString());l&&lF.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function uF(e,t){return e.find(n=>n.id===t)}function lF(e,t,n,r,a,i){let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),Mf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Pt),m.setAttribute(ao,"1");let p=gv(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),$o(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aF.sanitize(p);m.innerHTML=pr?.createHTML(g)||g,c.targetNodes=[m],Au(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,I3,m.toString()),p.classList.add("notranslate",Pt,Pt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Af(g)||li(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cF(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${_}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function R0(e){let t=By(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function ln(e){let t=e.rule;e.isRichTranslate&&(t=kp(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aF={sanitize:e=>e};async function Df(e,t){if(e.interruptEffectDOM)return;let n=ln(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{Ef(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),to&&Et(t,"consumeContainer",e.id)}function Ef(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ga(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Xd}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Yr(t.contentWindow?.document.documentElement,e.translateState),Aa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),Aa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function Aa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=ln(t.ctx),o=0;if(l(t,e,n))return;if(Ri(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ri(d)&&(a&&hf(d,a),i&&yf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Df(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else to&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Ef(t,c.shadowRoot,n),!1;if(d==="iframe")return Ef(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return wu(c,m.selectors);if(m.containerSelectors&&wu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(We()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){hx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=ln(c.ctx);return!!(L0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Au(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=es(e,t.targetNodes,s);li(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=es(e,t.targetNodes);li(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),Mf(t)}catch(s){D.error(s)}}}function Af(e){return!e||!Ri(e)?!1:e.classList.contains(Pt)}function es(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function li(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iF=Qn(F0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oF(t.rootNodes)||t.stepState>=2)return;t.stepState=2,to&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Pi(i),u=i.config.translationServices[i.translationService],l=P0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:R0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Pf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Kr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sF(e,t.text),Lf(e,t,r)):(to&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oF(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ri(t)&&t.classList.contains(Pt):!1}function sF(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Lf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),to&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,M3,"1",!0),n=="hover"){F0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iF.call(e,e.ctx,a)}async function F0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=uF(e,u.toString());l&&lF.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function uF(e,t){return e.find(n=>n.id===t)}function lF(e,t,n,r,a,i){let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),Mf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Pt),m.setAttribute(ao,"1");let p=gx(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),$o(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aF.sanitize(p);m.innerHTML=Nn?.createHTML(g)||g,c.targetNodes=[m],Au(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,I3,m.toString()),p.classList.add("notranslate",Pt,Pt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Af(g)||li(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cF(a,c).replaceAll(` `,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,x=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),T=`
<${d.targetWrapperTag} class="${_}-error notranslate"> +`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),T=`<${d.targetWrapperTag} class="${_}-error notranslate"> <${d.targetWrapperTag} class="${_}-error-wrapper"> - ${x} + ${v}    @@ -5881,8 +5881,8 @@ x-tc-action:`+this.action.toLowerCase()+` ${S} - `;p.innerHTML=pr?.createHTML(T)||T}}}var Sv="";async function Pf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=Sv.slice(0,e.rule?.detectTextBufferLength)+" "+o),Sv=s;let u=await Ie({text:s,minLength:15,pageLangs:[ct(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Lo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Lo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=nc();r.isDetectParagraphLanguage&&(m="auto");let p=ct(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Zl.includes(e.translationService)&&(ne()||lt())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Oa(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Oa(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function ku(){kf=0}var kf=0;function cF(e,t){kf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),kf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(mn,{detail:r}))}return n}function Mf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,dF(t,`[${R3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function dF(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function Tv(e,t,n,r,a){let i=t,o=q3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${_}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=xy(m);s+=`--${_}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; + `;p.innerHTML=Nn?.createHTML(T)||T}}}var Sx="";async function Pf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=Sx.slice(0,e.rule?.detectTextBufferLength)+" "+o),Sx=s;let u=await Ie({text:s,minLength:15,pageLangs:[ct(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Lo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Lo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=nc();r.isDetectParagraphLanguage&&(m="auto");let p=ct(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Zl.includes(e.translationService)&&(ne()||lt())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Oa(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Oa(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function ku(){kf=0}var kf=0;function cF(e,t){kf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),kf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(mn,{detail:r}))}return n}function Mf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,dF(t,`[${R3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function dF(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function Tx(e,t,n,r,a){let i=t,o=q3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${_}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=vy(m);s+=`--${_}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${_}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5895,11 +5895,11 @@ x-tc-action:`+this.action.toLowerCase()+` [imt-state="dual"] .${_}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?Fn(e,l,_+"-user-custom-style"):a&&Fn(e,"",_+"-user-custom-style")}function ts(e,t){let r=Le().IMMERSIVE_TRANSLATE_INJECTED_CSS;Fn(e,r,_+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Tv(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?Fn(e,l,_+"-user-custom-style"):a&&Fn(e,"",_+"-user-custom-style")}function ts(e,t){let r=Le().IMMERSIVE_TRANSLATE_INJECTED_CSS;Fn(e,r,_+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Tx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&Fn(e,s,_+"-dynamic-injected-css")}async function Cv(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:Eo(document.body),pageLangs:t})),e}var mF=[];function wv(e){mF.push(e)}var Rf;function Ev(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=ln(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Du(e,i,t,r)}),Rf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&tr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Bf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Du(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Vr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Po(r,u.parentElement);c&&(ft.clearToParentMark(u,c),Du(e,c,t,r));continue}Du(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||Du(e,o,t,r)})}),Rf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Du(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Ff(t),Ea({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Av(){Rf?.disconnect()}var pF=` +`+t.rule.additionalInjectedCss)),s&&Fn(e,s,_+"-dynamic-injected-css")}async function Cx(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:Eo(document.body),pageLangs:t})),e}var mF=[];function wx(e){mF.push(e)}var Rf;function Ex(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=ln(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Du(e,i,t,r)}),Rf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&nr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Bf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Du(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Vr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Po(r,u.parentElement);c&&(ft.clearToParentMark(u,c),Du(e,c,t,r));continue}Du(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||Du(e,o,t,r)})}),Rf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Du(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Ff(t),Ea({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Ax(){Rf?.disconnect()}var pF=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5982,10 +5982,10 @@ ${s}} max-width: fit-content; } } -`,If="immersive-translate-toastify-shadow-root",_f=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(If)){let t=document.getElementById(If);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=If,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=pF,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function I0(e){e=e||{},new _f({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function kv(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:hl,payload:e},"*")});let n=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(n)}function Of(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&On(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var Noe=1e3*3600*24;async function Dv(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[N3]:t.toISOString()}),await Nf(),ne()||await sb()}catch(t){D.error("run cron task failed",t)}}async function Nf(){try{let e=await dr(),t=await Z({url:Es});Ta(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=ee.runtime.getManifest().version;Io(s,o)?i>r?(await ee.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),zr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function jf(){let e=["bingGlobalConfig","baiduGlobalConfig",b3,Kd];for(let t of e)await ee.storage.local.remove(t);ne()||await H2(),await lm()}var use=Le().REDIRECT_URL;var Wse=$i([]);function Pv(e){let[t,n]=V(null);return re(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),re(()=>{wt().then(r=>{n(r)})},[e]),t}function Mv(){let[e,t]=V(null);return re(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var Lu=class extends hi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),v(xF,{error:this.error,info:this.info})):this.props.children}};function xF({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return v("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),v("div",{style:{marginTop:10},children:[n("error.configError"),v("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var vF=_n(SF,1e3);async function SF(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=za(t.proSyncAPIKey,t);return await Uf(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await Fv(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),Ky(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=za(t.proSyncAPIKey,t);return await Uf(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Yy(n)&&vF(n.token,e,t)},[e,n])}function TF(){let[e,t]=V(null);return re(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function Fv(e){return(location.href?.indexOf("popup.html")>0?va:Z)({responseType:"json",url:it+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Uf(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?va:Z)({responseType:"json",url:it+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function _0(e){let{onClose:t}=e,[n,r]=V("Original"),[a,i,o,s]=Rr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});ns(a,i);let[u,l]=V(null),[c,d]=V(globalThis.location.href),[m,p]=V("auto"),[g,h]=V(null),b=Te(!1);re(()=>{!g||b.current||(b.current=!0,He("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,b]);let f=I=>{r(I.detail)};re(()=>(document.addEventListener(xi,f,!1),dr().then(I=>{l(I);let L=ct();p(L);let N=Ve();r(N),Dv(I.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",f),document.removeEventListener("urlChange",S)}),[]),re(()=>{dr().then(I=>{l(I)})},[a]),re(()=>{c&&u&&O0().then(I=>{h(I)})},[c,u]);let y=ke((I,L)=>{T("change_translate_service",!1,{translation_service:`${I}_${L}`})()},[]);if(!u||!g)return null;return v(Pu,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:I=>{T("switchTranslationMode",!0,{mode:I})()},request:Z,onClose:C,onToggleEnabled:w,onChangeService:y,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{k(Di(g.rule)||c)},openAboutPage:F,openSharePage:T("shareToDraft",!0),onSetPageLanguage:x,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:xa,onSetBuildinConfig:X2,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:I=>T("updateContextState",!0,I)(),onOpenUrl:E,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function x(I){p(I);let L=ll(c,I,u.sourceLanguageUrlPattern);i(N=>({...N,sourceLanguageUrlPattern:L})),Xn(I)}function S(){d(globalThis.location.href)}function T(I,L,N={}){let B={trigger:"page_popup",...N};return()=>{Zt({method:I,data:B}),L&&t()}}function C(){t()}function w(){i(I=>({...I,enabled:!I.enabled})),setTimeout(()=>{C()},50)}function E(I,L){let N=I;L&&(N=`${I}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),dc(N,!0),setTimeout(()=>{C()},50)}function k(I){I&&(bo(!1,I),setTimeout(()=>{C()},50))}function P(I=!0,L=""){Na(I,L),setTimeout(()=>{t()},50)}function F(){cc(),setTimeout(()=>{t()},50)}function M(){ob(),setTimeout(()=>{t()},50)}}function jv(){let[e,t]=V("Original");return re(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(xi,r),()=>{document.removeEventListener(xi,r)}},[]),{pageStatus:e}}function Uv(){let[e,t]=V("Original");return re(()=>{let n=ho();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ts,r),()=>{document.removeEventListener(Ts,r)}},[]),{mangaStatus:e}}var Bv=6,CF={position:"right",top:335};function Hv({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Te(null),o=Te(null),[s,u]=V(!1),l=Te(!1);l.current=s;let c=Te(null),d=Te(!1),m=Te(n.floatBallConfig||CF),p=Te(0),g=Te(0),h=Te(0),b=Te(!1),f=Te(0),y=Te(0),x=Te(0),S=Te(0),T=Te(!1),C=ke(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=We().any||Vn();c.current=setTimeout(()=>{u(w),b.current=!1},E?3e3:0)}},[u,c,b,a]);return re(()=>{a||u(!1)},[a]),re(()=>{if(i.current&&m.current){let w=Hf(m.current.top);m.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),re(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),x.current=L.clientX,S.current=L.clientY,T.current=!1,(We().any||Vn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{Iv({startX:p.current,startY:g.current,endX:x.current,endY:S.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",M),document.addEventListener("touchcancel",M)},E=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(x.current=L.clientX,S.current=L.clientY,T.current))return;let N=L.clientY-g.current+h.current,B=Hf(N);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),b.current||C(!1),T.current)return;Iv({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let B=Hf(L.clientY-30);m.current.top=B;let j=await Mn();xa({...j,floatBallConfig:m.current})},P=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},M=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",P),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",P))}},[t,o,i,c,d,n,C,e]),re(()=>{if(We().any)return;let w=k=>{k.target===i.current&&!b.current||!l.current&&Ov(k)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&Ov(k)&&c.current)){if(d.current){b.current=!1;return}k.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function Iv({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>Bv||i>Bv}function qv(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function zv(){let[e,t]=V(!1);return re(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var _v="hasShownFloatingBallGuide",wF="2024-01-06";function Wv(e,t){let[n,r]=V(!1),a=ke(()=>{rt(_v,new Date().toISOString()),r(!0)},[r]);re(()=>{if(!e.config.enableShowFloatingBallGuide||ct()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ut(_v,""),u=await Ut("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(vl,o),()=>{document.removeEventListener(vl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function Gv(){document.dispatchEvent(new CustomEvent(vl))}function Vv(e,t){let n=Te(0),[r,a]=V(!0),[i,o]=V(!1),s=Rr(),[u,l]=s,{t:c}=se(),d=ke(()=>{e?.config.floatBallTooltipRule&&(We().any||Vn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);re(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,We().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let h=await yn();l(b=>{let f={...h};return We().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>We().any||!r||Vn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(We().any||Vn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Xa(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${_o(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function Hf(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var qf=0;function Ov(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(qf=Date.now(),!0):Date.now()-qf<100}function Kv(e,t){re(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(vi,n),()=>{globalThis.document.addEventListener(vi,n)}},[e,t])}function Yv(e,t){let n=Te(e);n.current=e,re(()=>{!n.current||!t||He("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var Nv="imt-float-ball-active";function Qv(e){re(()=>{let t=!!document.querySelector(`meta[name='${Nv}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(Nv)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(yl,n),()=>{document.removeEventListener(yl,n)}},[])}function Jv(e){document.dispatchEvent(new CustomEvent(yl,{detail:{active:e}}))}function EF({isOpen:e,onClose:t,children:n}){let[r,a]=V(e);return re(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:v(Gt,{children:[e&&v("div",{className:`${_}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),v("div",{className:`${_}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:v("div",{className:`${_}-sheet-content`,children:n})})]})}var N0=EF;var Ui="imt-fb";function Xv(e){if(globalThis.innerWidth<=385)return v(N0,{isOpen:e.visible,onClose:e.onClose,children:v(Zv,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${_}-popup-overlay`&&e.onClose()};return e.visible?v("div",{onClick:r,id:`${_}-popup-overlay`,class:`${_}-popup-overlay`,children:v("div",{class:`${_}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:v(Zv,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function Zv(e){let{t}=se(),[n,r]=V("UntilNext"),a=lc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return v("div",{class:`${Ui}-close-content`,style:e.contentStyle,children:[v("div",{class:"flex justify-between",children:[v("div",{class:`${Ui}-close-title`,children:e.title||t("closeQuickTranslation")}),v("div",{class:"clickable",onClick:e.onClose,children:v(Kt,{type:"modal-close"})})]}),v("div",{class:`${Ui}-close-radio-content mt-3`,children:o.map(s=>v(AF,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Wr(u)}},s.type))}),v("div",{class:"flex mt-3 flex-end",children:[v("div",{class:`${Ui}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),v("div",{class:`${Ui}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function AF(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=kF(r||"");return v("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[v("div",{class:t?`${Ui}-radio-sel`:`${Ui}-radio-nor`,children:v("div",{})}),v("div",{class:"ml-2 text-sm",children:[v("span",{children:n}),r?v("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:v("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function kF(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var DF=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=V(!1),h=Te(null),b=Te(null),f=()=>{u||!l&&(We().any||Vn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(We().any||Vn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x()},2e3))},x=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=ye(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),T=ye(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),C=w=>Ic()?v("div",{style:S,role:"tooltip",children:w}):v("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return v("div",{class:a,onMouseEnter:f,onMouseLeave:x,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[v("div",{children:t}),p&&v("div",{style:T,children:C(e)})]})},fr=DF;function $v(e){return xe.ASSETS_BASE_URL+e}var Hi="imt-fb";function eS(e){let{t}=se(),n=a=>{a?.target?.id===_+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?v("div",{onClick:n,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:v("div",{class:`${Hi}-guide-container`,style:r,children:[v("img",{class:`${Hi}-guide-bg ${e.fixedPosition}`,src:LF}),v("div",{class:`${Hi}-guide-content ${e.fixedPosition}`,children:[v("img",{class:`${Hi}-guide-img`,src:$v("images/float_ball_intro.png")}),v("div",{class:`${Hi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),We().any?` -${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var LF="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2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waGEiIG9wZXJhdG9yPSJvdXQiLz4KPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var tS="imt-manga";function nS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===_+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(J3);window.open(Y3)}},[a,t]);return e?v("div",{onClick:o,id:_+"-popup-overlay",class:`${_}-popup-overlay`,style:{pointerEvents:"all"},children:v("div",{class:"imt-fb-guide-container",style:s,children:[v("img",{class:`${tS}-guide-bg ${r}`,src:`${h3}static/extension/images/popup-manga-bg.png`}),v("div",{class:`${tS}-guide-content ${r}`,children:[v("div",{class:"imt-fb-guide-message",children:u}),v("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),v(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function j0(e,t){return ne(t)?!1:PF(e.config,e.isPro)}function PF(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function U0(e){let t=Fi();return!(e?.platforms&&!e.platforms.includes(t))}function zf(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function rS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var ka="imt-fb";function Wf(e){let{t}=se(),n=Rr(),[r,a,i,o]=n;ns(r,a);let s=Pv(r),u=e.ctx,{isFullScreen:l}=zv(),[c,d]=V(!1),m=Te(c);m.current=c;let[p,g]=V(!0),{pageStatus:h}=jv(),b=ru(u,r),f=ke(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=ke(()=>{d(!0)},[d]),x=p&&!!s,{containerRef:S,active:T,ballRef:C,floatBallConfigRef:w,setActive:E}=Hv({handleBallClick:f,handleMobileBallLongPress:y,isShow:x,localConfig:e.localConfig,popupVisible:c}),k=b?.fixedPosition||"right",P=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:M}=Wv(e.ctx,b),{closeTransform:I,logoContainerTransform:L,settingTransform:N,mangaTransform:B}=qv(b,T||F);Yv(u,T);let{tooltipDelay:j,disableTooltip:G,tooltipText:z,handleShowTooltip:ue}=Vv(u,h);Kv(d,m),Qv(E);let O=globalThis.innerWidth<=385;return x?v(Gt,{children:v("div",{class:`${ka}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||F||c?"all":"none"},ref:S,children:[v(MF,{ctx:u,setVisible:g,closeTransform:I,setActive:E,getModalStyle:()=>aS(w.current.top,300,k)}),v(fr,{enableMobile:!0,text:z,position:P,delay:j,onShow:ue,disable:G,children:v("div",{class:`${ka}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:T||F?1:.5},children:v("div",{children:[v(Kt,{type:"logo"}),v(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),v(BF,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:F}),v("div",{style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:[v(fr,{text:t("translateFileTooltip"),multiple:!0,position:P,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{dc(n1,!0)},children:v(Kt,{type:"file"})})}),v(fr,{text:t("floatBall.setting"),position:P,containerClass:"btn-animate",children:v("div",{class:`${ka}-more-button`,onClick:()=>{E(!0),d(!0)},children:v(Kt,{type:"setting"})})}),v(_F,{ctx:u,tooltipPosition:P,rule:b,active:T})]}),v("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:v(fr,{text:t("reportTip"),position:P,containerClass:"btn-animate",children:v(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}}))}})})}),v(Gf,{onClose:()=>{E(!1),d(!1)},isSheet:O,visible:c,getModalStyle:()=>aS(w.current.top,500,k)}),v(eS,{visible:F,top:w.current.top,fixedPosition:k,onClose:()=>{M(),E(!1)}})]})}):null}function MF(e){let{t}=se(),[n,r]=V(!1),a=Rr(),[i,o,s,u]=a,l=ru(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>Uc({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return v(Gt,{children:[v("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:v(Kt,{type:"close"})}),v(Xv,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function Gf(e){let t=n=>{n?.target?.id===_+"-popup-overlay"&&e.onClose()};return e.isSheet?v(N0,{isOpen:e.visible,onClose:e.onClose,children:v(_0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?v("div",{onClick:t,style:e.overlayStyle,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:v("div",{class:`${_}-popup-wrapper`,style:e.getModalStyle(),children:v(_0,{onClose:e.onClose})})}):null}function RF(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var aS=(e,t,n)=>{let a=RF().height,i={position:"fixed"},o=0;return V4()&&(e=FF.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},FF={position:"right",right:0,top:335};function BF({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=V(!1),{mangaStatus:u}=Uv(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();re(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!U0(l)||r||!l?.enable?null:v(Gt,{children:[v("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[v(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),v(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),v(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),v(fr,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:v(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"mangaReport"}}))}})})]}),v(nS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var IF="float_ball_upgrade_show_count";function _F(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Qa(n.config),s=Te(!1),[u,l]=V(null),c=ye(()=>No(n.config),[n]),d=p=>No(p)?.upgradeShowCountCacheKey||IF;re(()=>{Ci(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=No(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return re(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wi(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?v(fr,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||am,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:v("div",{class:`${ka}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:v(Kt,{type:"upgrade"})})})}):v(fr,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(am,"_blank")},children:v(Kt,{type:"upgrade"})})})}async function iS(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await rr(t),r=document.createElement("div");r.id=_+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});OF(a,e,n),document.documentElement.appendChild(r)}catch{}}function OF(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Le(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);NF(e,[i]),e.appendChild(r),Hr(v(Za,{lang:t.interfaceLanguage,children:v(jF,{ctx:n})}),r)}function NF(e,t){for(let n of t){if(ne()&&!Gn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function jF(e){let[t,n]=V(!1),r=Te(t);r.current=t;let a=Te(""),i=Te("");re(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(vi,u),()=>{globalThis.document.addEventListener(vi,u)}},[r]);let o=globalThis.innerWidth,s=We().any&&o<=450;return v(Gf,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function H0(e){document.dispatchEvent(new CustomEvent(vi,{detail:e||{}}))}function UF(e,t){for(let n of t){if(ne()&&!Gn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vf(){let e=await dr(),t=await yn(),n={url:globalThis.location.href,config:e},r=await rr(n),a=await Mp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return iS();let s=document.createElement("div");s.id=_+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return HF(u,e,o,r),document.documentElement.appendChild(s),s}function oS(){let e=document.getElementById(_+"-popup");e&&e.remove(),Vf()}function HF(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Le(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);UF(e,[o]),e.appendChild(a),Hr(v(Za,{lang:t.interfaceLanguage,children:v(Wf,{localConfig:n,ctx:r})}),a)}var sS=!1;async function uS(){sS||(sS=!0,Vf().catch(e=>{D.error("init popup error",e)}))}var Mu=null;function Ru(e,t,n){let r=globalThis.location.href,a=document.createElement("div");Mu={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function Kf(){let e=globalThis.location.href;if(!(!Mu||Mu.url!==e||!Mu.subtitleItems.length))return Mu}async function lS(){let e=Kf();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Wr(r1)}async function cS(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function dS(e,t){let n,r;if(t){let a=M0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=za(!1,r)}return{siteUrl:location.href,pluginVersion:pn(),isMobile:We().any,platform:Fi(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function mS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Yf={};function ci(e){let t=q0(e)||{};Yf[e.sourceUrl+"_"+e.to]={...t,...e}}function q0(e){return Yf[e.sourceUrl+"_"+e.to]}async function pS(e,t){let n=location.href,r=Object.values(Yf).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:We().any,platform:Fi(),images:[],version:pn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=M0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=za(!1,o)}return a}async function gS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Fu={width:94,height:80};function fS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?fS(e.parentElement,t+1):e}function rs(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=fS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Fu.width+"px",c.style.height=Fu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Fu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Fu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Fu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,If="immersive-translate-toastify-shadow-root",_f=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(If)){let t=document.getElementById(If);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=If,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=pF,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function I0(e){e=e||{},new _f({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function kx(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:hl,payload:e},"*")});let n=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(n)}function Of(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&On(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var joe=1e3*3600*24;async function Dx(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[N3]:t.toISOString()}),await Nf(),ne()||await sb()}catch(t){D.error("run cron task failed",t)}}async function Nf(){try{let e=await mr(),t=await Z({url:Es});Ta(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=ee.runtime.getManifest().version;Io(s,o)?i>r?(await ee.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),zr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function jf(){let e=["bingGlobalConfig","baiduGlobalConfig",b3,Kd];for(let t of e)await ee.storage.local.remove(t);ne()||await H2(),await lm()}var lse=Le().REDIRECT_URL;var Gse=$i([]);function Px(e){let[t,n]=V(null);return re(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),re(()=>{wt().then(r=>{n(r)})},[e]),t}function Mx(){let[e,t]=V(null);return re(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var Lu=class extends hi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),x(vF,{error:this.error,info:this.info})):this.props.children}};function vF({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return x("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),x("div",{style:{marginTop:10},children:[n("error.configError"),x("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var xF=_n(SF,1e3);async function SF(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=za(t.proSyncAPIKey,t);return await Uf(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await Fx(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),Ky(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=za(t.proSyncAPIKey,t);return await Uf(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Yy(n)&&xF(n.token,e,t)},[e,n])}function TF(){let[e,t]=V(null);return re(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function Fx(e){return(location.href?.indexOf("popup.html")>0?xa:Z)({responseType:"json",url:it+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Uf(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?xa:Z)({responseType:"json",url:it+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function _0(e){let{onClose:t}=e,[n,r]=V("Original"),[a,i,o,s]=Rr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});ns(a,i);let[u,l]=V(null),[c,d]=V(globalThis.location.href),[m,p]=V("auto"),[g,h]=V(null),b=Te(!1);re(()=>{!g||b.current||(b.current=!0,He("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,b]);let f=I=>{r(I.detail)};re(()=>(document.addEventListener(vi,f,!1),mr().then(I=>{l(I);let L=ct();p(L);let N=Ve();r(N),Dx(I.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",f),document.removeEventListener("urlChange",S)}),[]),re(()=>{mr().then(I=>{l(I)})},[a]),re(()=>{c&&u&&O0().then(I=>{h(I)})},[c,u]);let y=ke((I,L)=>{T("change_translate_service",!1,{translation_service:`${I}_${L}`})()},[]);if(!u||!g)return null;return x(Pu,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:I=>{T("switchTranslationMode",!0,{mode:I})()},request:Z,onClose:C,onToggleEnabled:w,onChangeService:y,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{k(Di(g.rule)||c)},openAboutPage:F,openSharePage:T("shareToDraft",!0),onSetPageLanguage:v,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:va,onSetBuildinConfig:X2,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:I=>T("updateContextState",!0,I)(),onOpenUrl:E,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function v(I){p(I);let L=ll(c,I,u.sourceLanguageUrlPattern);i(N=>({...N,sourceLanguageUrlPattern:L})),$n(I)}function S(){d(globalThis.location.href)}function T(I,L,N={}){let B={trigger:"page_popup",...N};return()=>{Zt({method:I,data:B}),L&&t()}}function C(){t()}function w(){i(I=>({...I,enabled:!I.enabled})),setTimeout(()=>{C()},50)}function E(I,L){let N=I;L&&(N=`${I}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),dc(N,!0),setTimeout(()=>{C()},50)}function k(I){I&&(bo(!1,I),setTimeout(()=>{C()},50))}function P(I=!0,L=""){Na(I,L),setTimeout(()=>{t()},50)}function F(){cc(),setTimeout(()=>{t()},50)}function M(){ob(),setTimeout(()=>{t()},50)}}function jx(){let[e,t]=V("Original");return re(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(vi,r),()=>{document.removeEventListener(vi,r)}},[]),{pageStatus:e}}function Ux(){let[e,t]=V("Original");return re(()=>{let n=ho();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ts,r),()=>{document.removeEventListener(Ts,r)}},[]),{mangaStatus:e}}var Bx=6,CF={position:"right",top:335};function Hx({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Te(null),o=Te(null),[s,u]=V(!1),l=Te(!1);l.current=s;let c=Te(null),d=Te(!1),m=Te(n.floatBallConfig||CF),p=Te(0),g=Te(0),h=Te(0),b=Te(!1),f=Te(0),y=Te(0),v=Te(0),S=Te(0),T=Te(!1),C=ke(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=We().any||Kn();c.current=setTimeout(()=>{u(w),b.current=!1},E?3e3:0)}},[u,c,b,a]);return re(()=>{a||u(!1)},[a]),re(()=>{if(i.current&&m.current){let w=Hf(m.current.top);m.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),re(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,S.current=L.clientY,T.current=!1,(We().any||Kn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{Ix({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",M),document.addEventListener("touchcancel",M)},E=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,T.current))return;let N=L.clientY-g.current+h.current,B=Hf(N);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),b.current||C(!1),T.current)return;Ix({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let B=Hf(L.clientY-30);m.current.top=B;let j=await Mn();va({...j,floatBallConfig:m.current})},P=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},M=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",P),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",P))}},[t,o,i,c,d,n,C,e]),re(()=>{if(We().any)return;let w=k=>{k.target===i.current&&!b.current||!l.current&&Ox(k)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&Ox(k)&&c.current)){if(d.current){b.current=!1;return}k.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function Ix({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>Bx||i>Bx}function qx(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function zx(){let[e,t]=V(!1);return re(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var _x="hasShownFloatingBallGuide",wF="2024-01-06";function Wx(e,t){let[n,r]=V(!1),a=ke(()=>{rt(_x,new Date().toISOString()),r(!0)},[r]);re(()=>{if(!e.config.enableShowFloatingBallGuide||ct()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ut(_x,""),u=await Ut("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(xl,o),()=>{document.removeEventListener(xl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function Gx(){document.dispatchEvent(new CustomEvent(xl))}function Vx(e,t){let n=Te(0),[r,a]=V(!0),[i,o]=V(!1),s=Rr(),[u,l]=s,{t:c}=se(),d=ke(()=>{e?.config.floatBallTooltipRule&&(We().any||Kn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);re(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,We().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let h=await yn();l(b=>{let f={...h};return We().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>We().any||!r||Kn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(We().any||Kn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Xa(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${_o(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function Hf(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var qf=0;function Ox(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(qf=Date.now(),!0):Date.now()-qf<100}function Kx(e,t){re(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xi,n),()=>{globalThis.document.addEventListener(xi,n)}},[e,t])}function Yx(e,t){let n=Te(e);n.current=e,re(()=>{!n.current||!t||He("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var Nx="imt-float-ball-active";function Qx(e){re(()=>{let t=!!document.querySelector(`meta[name='${Nx}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(Nx)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(yl,n),()=>{document.removeEventListener(yl,n)}},[])}function Jx(e){document.dispatchEvent(new CustomEvent(yl,{detail:{active:e}}))}function EF({isOpen:e,onClose:t,children:n}){let[r,a]=V(e);return re(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Gt,{children:[e&&x("div",{className:`${_}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${_}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${_}-sheet-content`,children:n})})]})}var N0=EF;var Ui="imt-fb";function Xx(e){if(globalThis.innerWidth<=385)return x(N0,{isOpen:e.visible,onClose:e.onClose,children:x(Zx,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${_}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${_}-popup-overlay`,class:`${_}-popup-overlay`,children:x("div",{class:`${_}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(Zx,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function Zx(e){let{t}=se(),[n,r]=V("UntilNext"),a=lc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Ui}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Ui}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Kt,{type:"modal-close"})})]}),x("div",{class:`${Ui}-close-radio-content mt-3`,children:o.map(s=>x(AF,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Wr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Ui}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Ui}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function AF(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=kF(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Ui}-radio-sel`:`${Ui}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function kF(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var DF=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=V(!1),h=Te(null),b=Te(null),f=()=>{u||!l&&(We().any||Kn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(We().any||Kn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{v()},2e3))},v=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=ye(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),T=ye(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),C=w=>Ic()?x("div",{style:S,role:"tooltip",children:w}):x("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:T,children:C(e)})]})},fr=DF;function $x(e){return ve.ASSETS_BASE_URL+e}var Hi="imt-fb";function eS(e){let{t}=se(),n=a=>{a?.target?.id===_+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:x("div",{class:`${Hi}-guide-container`,style:r,children:[x("img",{class:`${Hi}-guide-bg ${e.fixedPosition}`,src:LF}),x("div",{class:`${Hi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Hi}-guide-img`,src:$x("images/float_ball_intro.png")}),x("div",{class:`${Hi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),We().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${Hi}-primary-btn ${Hi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var LF="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0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VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var tS="imt-manga";function nS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===_+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(J3);window.open(Y3)}},[a,t]);return e?x("div",{onClick:o,id:_+"-popup-overlay",class:`${_}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${tS}-guide-bg ${r}`,src:`${h3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${tS}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function j0(e,t){return ne(t)?!1:PF(e.config,e.isPro)}function PF(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function U0(e){let t=Fi();return!(e?.platforms&&!e.platforms.includes(t))}function zf(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function rS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var ka="imt-fb";function Wf(e){let{t}=se(),n=Rr(),[r,a,i,o]=n;ns(r,a);let s=Px(r),u=e.ctx,{isFullScreen:l}=zx(),[c,d]=V(!1),m=Te(c);m.current=c;let[p,g]=V(!0),{pageStatus:h}=jx(),b=ru(u,r),f=ke(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=ke(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:T,ballRef:C,floatBallConfigRef:w,setActive:E}=Hx({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),k=b?.fixedPosition||"right",P=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:M}=Wx(e.ctx,b),{closeTransform:I,logoContainerTransform:L,settingTransform:N,mangaTransform:B}=qx(b,T||F);Yx(u,T);let{tooltipDelay:j,disableTooltip:G,tooltipText:z,handleShowTooltip:ue}=Vx(u,h);Kx(d,m),Qx(E);let O=globalThis.innerWidth<=385;return v?x(Gt,{children:x("div",{class:`${ka}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||F||c?"all":"none"},ref:S,children:[x(MF,{ctx:u,setVisible:g,closeTransform:I,setActive:E,getModalStyle:()=>aS(w.current.top,300,k)}),x(fr,{enableMobile:!0,text:z,position:P,delay:j,onShow:ue,disable:G,children:x("div",{class:`${ka}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:T||F?1:.5},children:x("div",{children:[x(Kt,{type:"logo"}),x(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(BF,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:F}),x("div",{style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:[x(fr,{text:t("translateFileTooltip"),multiple:!0,position:P,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{dc(n1,!0)},children:x(Kt,{type:"file"})})}),x(fr,{text:t("floatBall.setting"),position:P,containerClass:"btn-animate",children:x("div",{class:`${ka}-more-button`,onClick:()=>{E(!0),d(!0)},children:x(Kt,{type:"setting"})})}),x(_F,{ctx:u,tooltipPosition:P,rule:b,active:T})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:x(fr,{text:t("reportTip"),position:P,containerClass:"btn-animate",children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}}))}})})}),x(Gf,{onClose:()=>{E(!1),d(!1)},isSheet:O,visible:c,getModalStyle:()=>aS(w.current.top,500,k)}),x(eS,{visible:F,top:w.current.top,fixedPosition:k,onClose:()=>{M(),E(!1)}})]})}):null}function MF(e){let{t}=se(),[n,r]=V(!1),a=Rr(),[i,o,s,u]=a,l=ru(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>Uc({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Gt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Kt,{type:"close"})}),x(Xx,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function Gf(e){let t=n=>{n?.target?.id===_+"-popup-overlay"&&e.onClose()};return e.isSheet?x(N0,{isOpen:e.visible,onClose:e.onClose,children:x(_0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:x("div",{class:`${_}-popup-wrapper`,style:e.getModalStyle(),children:x(_0,{onClose:e.onClose})})}):null}function RF(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var aS=(e,t,n)=>{let a=RF().height,i={position:"fixed"},o=0;return V4()&&(e=FF.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},FF={position:"right",right:0,top:335};function BF({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=V(!1),{mangaStatus:u}=Ux(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();re(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!U0(l)||r||!l?.enable?null:x(Gt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(fr,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"mangaReport"}}))}})})]}),x(nS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var IF="float_ball_upgrade_show_count";function _F(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Qa(n.config),s=Te(!1),[u,l]=V(null),c=ye(()=>No(n.config),[n]),d=p=>No(p)?.upgradeShowCountCacheKey||IF;re(()=>{Ci(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=No(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return re(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wi(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(fr,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||am,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${ka}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Kt,{type:"upgrade"})})})}):x(fr,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(am,"_blank")},children:x(Kt,{type:"upgrade"})})})}async function iS(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await ar(t),r=document.createElement("div");r.id=_+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});OF(a,e,n),document.documentElement.appendChild(r)}catch{}}function OF(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Le(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);NF(e,[i]),e.appendChild(r),Hr(x(Za,{lang:t.interfaceLanguage,children:x(jF,{ctx:n})}),r)}function NF(e,t){for(let n of t){if(ne()&&!Vn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function jF(e){let[t,n]=V(!1),r=Te(t);r.current=t;let a=Te(""),i=Te("");re(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xi,u),()=>{globalThis.document.addEventListener(xi,u)}},[r]);let o=globalThis.innerWidth,s=We().any&&o<=450;return x(Gf,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function H0(e){document.dispatchEvent(new CustomEvent(xi,{detail:e||{}}))}function UF(e,t){for(let n of t){if(ne()&&!Vn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vf(){let e=await mr(),t=await yn(),n={url:globalThis.location.href,config:e},r=await ar(n),a=await Mp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return iS();let s=document.createElement("div");s.id=_+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return HF(u,e,o,r),document.documentElement.appendChild(s),s}function oS(){let e=document.getElementById(_+"-popup");e&&e.remove(),Vf()}function HF(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Le(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);UF(e,[o]),e.appendChild(a),Hr(x(Za,{lang:t.interfaceLanguage,children:x(Wf,{localConfig:n,ctx:r})}),a)}var sS=!1;async function uS(){sS||(sS=!0,Vf().catch(e=>{D.error("init popup error",e)}))}var Mu=null;function Ru(e,t,n){let r=globalThis.location.href,a=document.createElement("div");Mu={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function Kf(){let e=globalThis.location.href;if(!(!Mu||Mu.url!==e||!Mu.subtitleItems.length))return Mu}async function lS(){let e=Kf();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Wr(r1)}async function cS(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function dS(e,t){let n,r;if(t){let a=M0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=za(!1,r)}return{siteUrl:location.href,pluginVersion:pn(),isMobile:We().any,platform:Fi(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function mS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Yf={};function ci(e){let t=q0(e)||{};Yf[e.sourceUrl+"_"+e.to]={...t,...e}}function q0(e){return Yf[e.sourceUrl+"_"+e.to]}async function pS(e,t){let n=location.href,r=Object.values(Yf).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:We().any,platform:Fi(),images:[],version:pn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=M0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=za(!1,o)}return a}async function gS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Fu={width:94,height:80};function fS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?fS(e.parentElement,t+1):e}function rs(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=fS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Fu.width+"px",c.style.height=Fu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Fu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Fu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Fu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6007,7 +6007,7 @@ ${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide flex: 1;`),p.addEventListener("input",function(){C.disabled=c(),E&&(E.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";mt.get(dt,null).then(k=>{k&&(h=k.email,g.value=k.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let x=document.createElement("input");x.type="checkbox",x.checked=!0,x.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=x.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(x),T.append(S),a.append(T);let C=document.createElement("button");C.className=_+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await hS(e,t,x.checked);C.uploading=!0;try{yS(C,!0),await bS(e,t,p.value,g.value!==h?g.value:"",x.checked,k),qF(s,r,a,i,o)}catch{zF(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,yS(C,!1)}},i.appendChild(C);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function yS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(_+"-loading-spinner"),e.appendChild(n))}function qF(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let h="";mt.get(dt,null).then(k=>{k&&(h=k.email,g.value=k.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(v),T.append(S),a.append(T);let C=document.createElement("button");C.className=_+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await hS(e,t,v.checked);C.uploading=!0;try{yS(C,!0),await bS(e,t,p.value,g.value!==h?g.value:"",v.checked,k),qF(s,r,a,i,o)}catch{zF(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,yS(C,!1)}},i.appendChild(C);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function yS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(_+"-loading-spinner"),e.appendChild(n))}function qF(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` @@ -6017,7 +6017,7 @@ ${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=_+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",z0(s,e,t,r,a,i,o)},i.append(d)}function Jf(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function W0(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var G0=[],xS=[];async function Xf(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if($f()||G0.includes(t))return"";if(G0.length>=s)return new Promise((l,c)=>{xS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});G0.push(t);try{let u=await KF(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await vS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{G0.shift(),(async()=>{let u=xS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Xf(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function WF(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${it}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${SS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Z({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function GF(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function VF(e,t,n){let r=await GF(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Z({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await xb(a)})}async function KF(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=YF(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await W0(u);ci({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await WF(e,r,l,n.type);if(c.objectKey&&ci({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await VF(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(Zf()+"/trigger",{method:"POST",body:pc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ka(m,"manga"),m.json())):d=await Z({url:Zf()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ci({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function vS(e,t,n,r,a){let i=$f();if(i)return;cr("Translating",i);let o=await Z({url:Zf()+`/${t}/task-state?comicHash=${n}&domain=${SS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await zy(t,r.queryIntervalTime||100),vS(e,t,n,r,a))}function Zf(){return it+"comics"}function YF(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=g0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function SS(e){return e.replaceAll(".","_")}var kt,eh,K0,_u,jt=!1;function $f(){return jt}var TS=!1;function ES(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;jt=!1,!TS&&kt.injectedCss&&(Fn(document,`${kt.injectedCss}`,_+"-image-injected-css"),TS=!0);let t=!1,n=_n(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=DS(kt);for(let i of a){if(jt)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await pt(20),await r(i,t))}},100);if(He("translate_manga",[{name:"translate_manga"}],e),n(),eh=new MutationObserver(a=>{n()}),eh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;_u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(qi(e,o.target),_u?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}K0=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(_u?.unobserve(a),_u?.observe(a)):await qi(e,a)))}}async function qi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=ho();if(n&&(jt=!1),jt||rB(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=JF(e,t);u||(s=rs(e,t,"translating")),n&&He("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await ZF(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await QF(e,t,o,a,s)),jt&&!n)return;l?(t.translationStatus="success",u||rs(e,t,"success")):(u||rs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&cr("Error",jt))}catch(l){if(jt&&!n||(t.translationStatus="error",a=="manga"&&(cr("Error",jt),nB(e,l)),u))return;if(l instanceof Bu)return rs(e,t,"error",l.type);rs(e,t,"error")}finally{n&&cr(i,jt),s?.remove()}}function AS(){if(!kt)return;jt=!0,eh?.disconnect(),K0?.disconnect(),_u?.disconnect();let e=DS(kt);for(let t of e)zi(t)}function zi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&zi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function QF(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await XF(l,c,t.cloneNode(!0))}else o=await LS(t);if(jt)return;if(!o||o.size<6*1e4){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Jf(o);return await th(e,t,s)?!0:s?kS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function kS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await eB(n)||n,u=r||a;try{if(jt)return;cr("Translating",jt),Qf(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ci(l);let d=await Xf(e,u,s,a,i,m=>{Qf(e,o,m)});return d?(l.targetUrl=d,ci(l),await PS(kt,t,d),cr("Translated",jt),!0):!1}catch(l){if(ci({sourceUrl:u,to:e.targetLanguage,error:l.message}),jt)return;throw l}}async function th(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl?(await PS(kt,t,a.targetUrl||""),cr("Translated",jt),!0):!1}function JF(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl}return!1}async function ZF(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!tB(a,i)){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await th(e,t,o))return!0;let s=null;if(cr("Translating",jt),jt)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ka(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await $F(i);else{let d=await Z({url:i,responseType:"base64"});s=await gc(d)}if(jt)return;if(await rS(s))throw new Bu("GIFs not supported","gif_not_supported");let l=await Jf(s);if(!o&&(o=l,await th(e,t,o)))return!0;if(!o)return!1;return kS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function DS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function LS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function XF(e,t,n){return new Promise((r,a)=>{Z({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await LS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function PS(e,t,n){try{return await CS(e,t,n)}catch{let a=await aB(n);return CS(e,t,a)}}async function CS(e,t,n){return new Promise((a,i)=>{if(jt)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function $F(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function eB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function tB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Hc(e.inValidSrcRegex,t):!0}var V0=0,Iu=0;function nB(e,t){if(V0!=0){Iu++;return}if(t.message.indexOf("quota exceeded")>0){wS(e,t);return}Iu++,V0=setTimeout(()=>{if(Iu<(kt.errorTimes||3)){V0=0,Iu=0;return}wS(e,t),Iu=0,V0=0},kt.errorInterval||3e3)}function wS(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(mn,{detail:r}))}function nh(e){return e.classList.contains("imt-img")||e.hasTranslate}function rB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function aB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var iB="showImagePricingModal";function Y0(e){document.dispatchEvent(new CustomEvent(iB,{detail:JSON.stringify({trigger:e})}))}var aa=null;async function MS(e,{srcUrl:t}){if(!j0(e))return;if(!await Ps(e)){Y0("image_right_menu");return}if(!aa){D.error("rightMenu image ele not found",t,aa);return}if(aa.translationStatus!=="translating"){if(aa.hasTranslate){zi(aa);return}if(t!==aa.src)try{let r=new URL(t),a=new URL(aa.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,aa.src,r);return}qi(e,aa,!0,"image_right_menu")}}function RS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(aa=e.target)})}var FS=0;function Nu(e){let t=Date.now();if(t-FS<2e3||(FS=t,oB()))return;let n=`${_}-modal-root`,r=`${_}-modal`,a=document.getElementById(n),i=`${_}-modal-title`,o=`${_}-modal-body`,s=`${_}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Ou)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=Le();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=_+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=_+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,Ou)}setTimeout(()=>{sB()},100)}function oB(){let e=document.querySelector(`#${_}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-modal`)?.style.display=="block":!1}function sB(){let e=document.querySelector(`#${_}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-modal`);t&&(t.style.display="block")}}function Ou(e,t=!1){let n=document.querySelector(`#${_}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function BS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await yn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var IS=0;async function _S(e){let t=Date.now();if(t-IS<2e3||(IS=t,uB()))return;let n=`${_}-toast-root`,r=`${_}-toast`,a=document.getElementById(n),i=`${_}-toast-msg`,o=`${_}-toast-content`,s=`${_}-toast-hidden`,u,l,c=()=>{l&&rh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,rh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=Le();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let x=document.createElement("span");x.textContent="\xD7",x.className=_+"-toast-close",m.appendChild(x),x.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,rh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{lB()},100),d=setTimeout(c,2500)}function uB(){let e=document.querySelector(`#${_}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-toast`)?.style.display=="flex":!1}function lB(){let e=document.querySelector(`#${_}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-toast`);t&&(t.style.display="flex")}}function rh(e,t=!1){let n=document.querySelector(`#${_}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ah(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=nt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${_}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",OS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(K3)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Pl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(Z3)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(xe.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(xe.OPTIONS_URL)},ih(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=nt.sanitize(m),p.onclick=()=>{NS(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=nt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),OS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=_+"-btn",p.innerHTML+=nt.sanitize(m),s.appendChild(p)}function OS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}var jS=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},HS=[()=>{On.unbind()}],US=[...HS],cB=Yn(async()=>{await Na()},50),dB=Yn(async()=>{await cc()},50),mB=Yn(async()=>{await ab()},50),pB=Yn(async()=>{await rb()},50),qS=Yn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),oh=!1,gB=_n(()=>{let e=globalThis.getSelection()?.toString().trim();!oh&&e&&e.length>0?Vs({text:e}):Vs({})},50),fB=()=>{oh=!0,setTimeout(()=>{oh=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(jS)return;jS=!0,ne()||Z2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(J+"DocumentMessageUser",YS),document.addEventListener(J+"DocumentMessageUpdateUser",QS),document.addEventListener(J+"ChangeSuccessService",JS.bind(null,t)),document.addEventListener(J+"ChangeService",ZS.bind(null,t)),document.addEventListener(mn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(bl,Ft.showToastByEvent.bind(null,t)),document.addEventListener(yi,Ft.showModal.bind(null,t)),n.addEventListener(J+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(C3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(w3,Ft.eventUpload.bind(null,t)),n.addEventListener(xl,a=>{at()||ch(a,t)}),n.addEventListener(E3,$S),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",gB),document.addEventListener("contextmenu",fB),RS(),at()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(at()||n.addEventListener(br,Ft.handlePopupInit)),at()||ei.rootIframe(Al).handleAsk("throttleRequest",t6)};function zS(e,t){yB(),Ft.SetupDomListenersForOnce(t,e),ne()&&(at()||(Of(e.config),xB(e.config))),Vn()&&eT(e,t),lt()&&Of(e.config)}Ft.handlePopupInit=e=>{uS()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===hl&&zr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Ou(n);return}let r=n.getAttribute(`data-${_}-event`);r&&He(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${_}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),WS({method:"retryFailedParagraphs"}),Ou(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${_}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Nu(ah.bind(null,t,o,i,s));return}}};async function hB(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function bB(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;_S(BS.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Nu(ah.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Nu(z0.bind(null,"manga",e)):r=="webReport"&&Nu(z0.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=uh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")WS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")ib(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")hB();else if(i.type==="toggleEnableInputTranslation")bB();else if(i.type==="syncAppSetting")GS(i.data);else if(i.type==="translatePage")vB(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Xl(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=f0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await SB(i.data,o)}catch(s){ju(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await TB(o,i.data)}catch(s){ju(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await uc(i.data):i.type==="getAsyncDownloadSubtitle"?a=await cS():i.type==="sharePage"?ch({detail:i.data},r):i.type==="switchTranslationMode"?sh(i.data):i.type=="getAsyncAiAssistants"?a=await d9():i.type=="addAiAssistantAsync"?a=await Zc("add",i.data):i.type=="removeAiAssistantAsync"?a=await Zc("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await lh(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await XS(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await jc("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await Kb(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await lb()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await cb()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await Yb(i.data)):i.type==="openPopup"?H0({...i.data,open:!0}):i.type==="closePopup"?H0({...i.data,open:!1}):i.type==="togglePopup"?H0({...i.data}):i.type==="getPageStatusAsync"?a=Ve():i.type==="restorePage"?CB():i.type==="getPageLanguageAsync"?a=ct():i.type==="showFloatBallGuide"?Gv():i.type=="getAsyncDetectAndSetLanguage"?a=await KS(i.data):i.type=="setFloatBallActive"?Jv(i.data):qS(i.type);a!=null&&i.id&&ju(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{VS()},10)};Ft.handleSecurityPolicyViolation=e=>{xe.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&He(n.name,[{name:n.name}],{...e})};function yB(){US.forEach(e=>{e()}),US=HS}function xB(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Gl.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Jd,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Zd,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Yd,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Qd,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Yd?cB():i.id===Qd?dB():i.id===Zd?mB():i.id===Jd?pB():qS(i.id)},i.key)}}function WS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}async function GS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(De(),t)}async function vB(e){let t=await GS(e);qn(t)}function ju(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function SB({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function TB(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function CB(){Ve()!=="Original"&&_r()}var Wi={};async function dh(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ie({text:t,minLength:200,pageLangs:[Ct(),"en"]});return Xn(n),n}async function tT(e){let t=0,n=0;Pn("Translating");let r=ct(),a=nc(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(nu(e,c.id,!0)))}),await s(l),await pt(0)}}catch(u){throw u}finally{t=0,n=0,Pn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=nt.sanitize(`${l.message}`),Wi[m]={ok:!1,sentence:d},rT(u,e,t,n,l)):c&&(g.innerHTML=nt.sanitize(c.text),Wi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function nT(e){let t=0,n=0;Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wi),a=[],i=[];for(let o of r){let s=Wi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wi[o],c.appendChild(nu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=nt.sanitize(`${o.message}`),Wi[l]={ok:!1,sentence:u},rT(i,e,t,n,o)):s&&(d.innerHTML=nt.sanitize(s.text),Wi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Pn("Translated")}}function mh(){Pn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function rT(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(mn,{detail:i}))}var Q0={};async function aT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ie({text:t,pageLangs:["en"]});return Xn(n),n}async function iT(e){Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Q0),n=[];for(let r of t){let a=Q0[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Tl}='${r}']`);o&&o.remove(),n.push(a)}}try{ku(),await B0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Pn("Translated")}}function oT(e){Object.values(Q0).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=es(e,t.targetNodes);li(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),Pn("Original")}async function sT(e){Pn("Translating");let t=zs(),n=Kr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;ts(l,e);let c=l.body;if(!c)continue;Yr(l.documentElement,e.state.translationMode);let d=ln(e);d.isModifyImage=!1;let m=[];await Ea({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await pt(0)}o(a),Pn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=P0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:R0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Pf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Q0[p.id]=p)}B0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function J0(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ga(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var Sn=!1,ph,uT=!1,Z0=null,wB=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=_+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",z0(s,e,t,r,a,i,o)},i.append(d)}function Jf(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function W0(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var G0=[],vS=[];async function Xf(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if($f()||G0.includes(t))return"";if(G0.length>=s)return new Promise((l,c)=>{vS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});G0.push(t);try{let u=await KF(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await xS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{G0.shift(),(async()=>{let u=vS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Xf(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function WF(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${it}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${SS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Z({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function GF(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function VF(e,t,n){let r=await GF(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Z({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await vb(a)})}async function KF(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=YF(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await W0(u);ci({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await WF(e,r,l,n.type);if(c.objectKey&&ci({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await VF(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(Zf()+"/trigger",{method:"POST",body:pc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ka(m,"manga"),m.json())):d=await Z({url:Zf()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ci({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function xS(e,t,n,r,a){let i=$f();if(i)return;dr("Translating",i);let o=await Z({url:Zf()+`/${t}/task-state?comicHash=${n}&domain=${SS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await zy(t,r.queryIntervalTime||100),xS(e,t,n,r,a))}function Zf(){return it+"comics"}function YF(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=g0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function SS(e){return e.replaceAll(".","_")}var kt,eh,K0,_u,jt=!1;function $f(){return jt}var TS=!1;function ES(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;jt=!1,!TS&&kt.injectedCss&&(Fn(document,`${kt.injectedCss}`,_+"-image-injected-css"),TS=!0);let t=!1,n=_n(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=DS(kt);for(let i of a){if(jt)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await pt(20),await r(i,t))}},100);if(He("translate_manga",[{name:"translate_manga"}],e),n(),eh=new MutationObserver(a=>{n()}),eh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;_u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(qi(e,o.target),_u?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}K0=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(_u?.unobserve(a),_u?.observe(a)):await qi(e,a)))}}async function qi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=ho();if(n&&(jt=!1),jt||rB(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=JF(e,t);u||(s=rs(e,t,"translating")),n&&He("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await ZF(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await QF(e,t,o,a,s)),jt&&!n)return;l?(t.translationStatus="success",u||rs(e,t,"success")):(u||rs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&dr("Error",jt))}catch(l){if(jt&&!n||(t.translationStatus="error",a=="manga"&&(dr("Error",jt),nB(e,l)),u))return;if(l instanceof Bu)return rs(e,t,"error",l.type);rs(e,t,"error")}finally{n&&dr(i,jt),s?.remove()}}function AS(){if(!kt)return;jt=!0,eh?.disconnect(),K0?.disconnect(),_u?.disconnect();let e=DS(kt);for(let t of e)zi(t)}function zi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&zi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function QF(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await XF(l,c,t.cloneNode(!0))}else o=await LS(t);if(jt)return;if(!o||o.size<6*1e4){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Jf(o);return await th(e,t,s)?!0:s?kS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function kS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await eB(n)||n,u=r||a;try{if(jt)return;dr("Translating",jt),Qf(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ci(l);let d=await Xf(e,u,s,a,i,m=>{Qf(e,o,m)});return d?(l.targetUrl=d,ci(l),await PS(kt,t,d),dr("Translated",jt),!0):!1}catch(l){if(ci({sourceUrl:u,to:e.targetLanguage,error:l.message}),jt)return;throw l}}async function th(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl?(await PS(kt,t,a.targetUrl||""),dr("Translated",jt),!0):!1}function JF(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl}return!1}async function ZF(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!tB(a,i)){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await th(e,t,o))return!0;let s=null;if(dr("Translating",jt),jt)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ka(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await $F(i);else{let d=await Z({url:i,responseType:"base64"});s=await gc(d)}if(jt)return;if(await rS(s))throw new Bu("GIFs not supported","gif_not_supported");let l=await Jf(s);if(!o&&(o=l,await th(e,t,o)))return!0;if(!o)return!1;return kS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function DS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function LS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function XF(e,t,n){return new Promise((r,a)=>{Z({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await LS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function PS(e,t,n){try{return await CS(e,t,n)}catch{let a=await aB(n);return CS(e,t,a)}}async function CS(e,t,n){return new Promise((a,i)=>{if(jt)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function $F(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function eB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function tB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Hc(e.inValidSrcRegex,t):!0}var V0=0,Iu=0;function nB(e,t){if(V0!=0){Iu++;return}if(t.message.indexOf("quota exceeded")>0){wS(e,t);return}Iu++,V0=setTimeout(()=>{if(Iu<(kt.errorTimes||3)){V0=0,Iu=0;return}wS(e,t),Iu=0,V0=0},kt.errorInterval||3e3)}function wS(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(mn,{detail:r}))}function nh(e){return e.classList.contains("imt-img")||e.hasTranslate}function rB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function aB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var iB="showImagePricingModal";function Y0(e){document.dispatchEvent(new CustomEvent(iB,{detail:JSON.stringify({trigger:e})}))}var aa=null;async function MS(e,{srcUrl:t}){if(!j0(e))return;if(!await Ps(e)){Y0("image_right_menu");return}if(!aa){D.error("rightMenu image ele not found",t,aa);return}if(aa.translationStatus!=="translating"){if(aa.hasTranslate){zi(aa);return}if(t!==aa.src)try{let r=new URL(t),a=new URL(aa.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,aa.src,r);return}qi(e,aa,!0,"image_right_menu")}}function RS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(aa=e.target)})}var FS=0;function Nu(e){let t=Date.now();if(t-FS<2e3||(FS=t,oB()))return;let n=`${_}-modal-root`,r=`${_}-modal`,a=document.getElementById(n),i=`${_}-modal-title`,o=`${_}-modal-body`,s=`${_}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Ou)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=Le();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=_+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=_+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,Ou)}setTimeout(()=>{sB()},100)}function oB(){let e=document.querySelector(`#${_}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-modal`)?.style.display=="block":!1}function sB(){let e=document.querySelector(`#${_}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-modal`);t&&(t.style.display="block")}}function Ou(e,t=!1){let n=document.querySelector(`#${_}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function BS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await yn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var IS=0;async function _S(e){let t=Date.now();if(t-IS<2e3||(IS=t,uB()))return;let n=`${_}-toast-root`,r=`${_}-toast`,a=document.getElementById(n),i=`${_}-toast-msg`,o=`${_}-toast-content`,s=`${_}-toast-hidden`,u,l,c=()=>{l&&rh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,rh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=Le();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=_+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,rh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{lB()},100),d=setTimeout(c,2500)}function uB(){let e=document.querySelector(`#${_}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-toast`)?.style.display=="flex":!1}function lB(){let e=document.querySelector(`#${_}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-toast`);t&&(t.style.display="flex")}}function rh(e,t=!1){let n=document.querySelector(`#${_}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ah(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=nt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${_}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",OS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(K3)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Pl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(Z3)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(ve.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(ve.OPTIONS_URL)},ih(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=nt.sanitize(m),p.onclick=()=>{NS(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=nt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),OS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=_+"-btn",p.innerHTML+=nt.sanitize(m),s.appendChild(p)}function OS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}var jS=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},HS=[()=>{On.unbind()}],US=[...HS],cB=Qn(async()=>{await Na()},50),dB=Qn(async()=>{await cc()},50),mB=Qn(async()=>{await ab()},50),pB=Qn(async()=>{await rb()},50),qS=Qn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),oh=!1,gB=_n(()=>{let e=globalThis.getSelection()?.toString().trim();!oh&&e&&e.length>0?Vs({text:e}):Vs({})},50),fB=()=>{oh=!0,setTimeout(()=>{oh=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(jS)return;jS=!0,ne()||Z2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(J+"DocumentMessageUser",YS),document.addEventListener(J+"DocumentMessageUpdateUser",QS),document.addEventListener(J+"ChangeSuccessService",JS.bind(null,t)),document.addEventListener(J+"ChangeService",ZS.bind(null,t)),document.addEventListener(mn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(bl,Ft.showToastByEvent.bind(null,t)),document.addEventListener(yi,Ft.showModal.bind(null,t)),n.addEventListener(J+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(C3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(w3,Ft.eventUpload.bind(null,t)),n.addEventListener(vl,a=>{at()||ch(a,t)}),n.addEventListener(E3,$S),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",gB),document.addEventListener("contextmenu",fB),RS(),at()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(at()||n.addEventListener(br,Ft.handlePopupInit)),at()||ei.rootIframe(Al).handleAsk("throttleRequest",t6)};function zS(e,t){yB(),Ft.SetupDomListenersForOnce(t,e),ne()&&(at()||(Of(e.config),vB(e.config))),Kn()&&eT(e,t),lt()&&Of(e.config)}Ft.handlePopupInit=e=>{uS()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===hl&&zr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Ou(n);return}let r=n.getAttribute(`data-${_}-event`);r&&He(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${_}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),WS({method:"retryFailedParagraphs"}),Ou(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${_}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Nu(ah.bind(null,t,o,i,s));return}}};async function hB(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function bB(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;_S(BS.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Nu(ah.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Nu(z0.bind(null,"manga",e)):r=="webReport"&&Nu(z0.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=uh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")WS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")ib(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")hB();else if(i.type==="toggleEnableInputTranslation")bB();else if(i.type==="syncAppSetting")GS(i.data);else if(i.type==="translatePage")xB(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Xl(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=f0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await SB(i.data,o)}catch(s){ju(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await TB(o,i.data)}catch(s){ju(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await uc(i.data):i.type==="getAsyncDownloadSubtitle"?a=await cS():i.type==="sharePage"?ch({detail:i.data},r):i.type==="switchTranslationMode"?sh(i.data):i.type=="getAsyncAiAssistants"?a=await d9():i.type=="addAiAssistantAsync"?a=await Zc("add",i.data):i.type=="removeAiAssistantAsync"?a=await Zc("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await lh(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await XS(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await jc("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await Kb(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await lb()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await cb()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await Yb(i.data)):i.type==="openPopup"?H0({...i.data,open:!0}):i.type==="closePopup"?H0({...i.data,open:!1}):i.type==="togglePopup"?H0({...i.data}):i.type==="getPageStatusAsync"?a=Ve():i.type==="restorePage"?CB():i.type==="getPageLanguageAsync"?a=ct():i.type==="showFloatBallGuide"?Gx():i.type=="getAsyncDetectAndSetLanguage"?a=await KS(i.data):i.type=="setFloatBallActive"?Jx(i.data):qS(i.type);a!=null&&i.id&&ju(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{VS()},10)};Ft.handleSecurityPolicyViolation=e=>{ve.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&He(n.name,[{name:n.name}],{...e})};function yB(){US.forEach(e=>{e()}),US=HS}function vB(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Gl.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Jd,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Zd,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Yd,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Qd,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Yd?cB():i.id===Qd?dB():i.id===Zd?mB():i.id===Jd?pB():qS(i.id)},i.key)}}function WS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}async function GS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(De(),t)}async function xB(e){let t=await GS(e);zn(t)}function ju(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function SB({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function TB(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function CB(){Ve()!=="Original"&&_r()}var Wi={};async function dh(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ie({text:t,minLength:200,pageLangs:[Ct(),"en"]});return $n(n),n}async function tT(e){let t=0,n=0;Pn("Translating");let r=ct(),a=nc(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(nu(e,c.id,!0)))}),await s(l),await pt(0)}}catch(u){throw u}finally{t=0,n=0,Pn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=nt.sanitize(`${l.message}`),Wi[m]={ok:!1,sentence:d},rT(u,e,t,n,l)):c&&(g.innerHTML=nt.sanitize(c.text),Wi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function nT(e){let t=0,n=0;Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wi),a=[],i=[];for(let o of r){let s=Wi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wi[o],c.appendChild(nu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=nt.sanitize(`${o.message}`),Wi[l]={ok:!1,sentence:u},rT(i,e,t,n,o)):s&&(d.innerHTML=nt.sanitize(s.text),Wi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Pn("Translated")}}function mh(){Pn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function rT(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(mn,{detail:i}))}var Q0={};async function aT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ie({text:t,pageLangs:["en"]});return $n(n),n}async function iT(e){Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Q0),n=[];for(let r of t){let a=Q0[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Tl}='${r}']`);o&&o.remove(),n.push(a)}}try{ku(),await B0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Pn("Translated")}}function oT(e){Object.values(Q0).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=es(e,t.targetNodes);li(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),Pn("Original")}async function sT(e){Pn("Translating");let t=zs(),n=Kr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;ts(l,e);let c=l.body;if(!c)continue;Yr(l.documentElement,e.state.translationMode);let d=ln(e);d.isModifyImage=!1;let m=[];await Ea({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await pt(0)}o(a),Pn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=P0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:R0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Pf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Q0[p.id]=p)}B0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function J0(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ga(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var Sn=!1,ph,uT=!1,Z0=null,wB=` .${_}-input { position: absolute; top: 0; @@ -6069,9 +6069,9 @@ ${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide box-shadow: 130px 0 var(--loading-color); } } -`;function cT(e){J0().forEach(t=>{EB(e,t)})}function EB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Z0===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Jn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;We().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(Sn||Z0===!1)return;let p=ed(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(PB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&lT(t,o,m.target)&&(s=0,hh(m,e,t,o))}function d(){ph=l,t.removeEventListener("keyup",ph),t.addEventListener("keyup",ph,!0)}MB(e)}function dT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function X0(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var as;function gh(e){let t=e.parentElement;if(!t)return;as=document.createElement("div"),as.className=_+"-input";let n=`
`;as.innerHTML=pr?.createHTML(n)||n,t.appendChild(as);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=wB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function fh(){as&&as.remove()}async function AB(e,t=window){if(Sn)return;let r=globalThis.getSelection()?.toString();if(r){xh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let x=m.split(" ")[0];x&&x[0]&&(x=x[0].toLowerCase()+x.slice(1)),x.trim()&&u.flatAlias.includes(x)?(p=X0(x,u.codeAlias),d=m.slice(x.length+1)):d=m},y=function(){p="";let x=dT(u),S=m.split(x);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),w=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let T=m.slice(c.length+1,m.indexOf(d)).trim();if(p=X0(T,u.codeAlias),!p){D.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Jn.forEach(x=>i[x]=[x,...i[x]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;We().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;Sn=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=mT(d,u),h=await Ie({text:g,pageLangs:["en"]});D.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;gh(l),rt(Cs,Date.now());try{e.specialAiAssistant=Mr(e,e.inputTranslationService,!0);let x=await na(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});yh(e),yT(e,t,l,c+x.text)}catch(x){if(x instanceof U){let S=x.uiConfig(e);vh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(mn,{detail:S}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}async function hh(e,t,n,r){if(!Sn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=X0(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=dT(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=X0(b,r.codeAlias),!u){D.warn("not found alias",b);return}},a=ed(n.document,t.rule.enableInputDeepActive);if(!a)return;Sn=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=mT(o,r),c=await Ie({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!uT){uT=!0;let g=await RB(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Z0=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Z0=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Ht(h)}}gh(a),rt(Cs,Date.now());try{t.specialAiAssistant=Mr(t,t.inputTranslationService,!0);let g=await na(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});yh(t),yT(t,n,a,i+g.text)}catch(g){if(g instanceof U){let h=g.uiConfig(t);vh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(mn,{detail:h}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}function lT(e,t,n){if(!n)return!1;if(bh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`;function cT(e){J0().forEach(t=>{EB(e,t)})}function EB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Z0===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Zn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;We().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(Sn||Z0===!1)return;let p=ed(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(PB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&lT(t,o,m.target)&&(s=0,hh(m,e,t,o))}function d(){ph=l,t.removeEventListener("keyup",ph),t.addEventListener("keyup",ph,!0)}MB(e)}function dT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function X0(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var as;function gh(e){let t=e.parentElement;if(!t)return;as=document.createElement("div"),as.className=_+"-input";let n=`
`;as.innerHTML=Nn?.createHTML(n)||n,t.appendChild(as);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=wB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function fh(){as&&as.remove()}async function AB(e,t=window){if(Sn)return;let r=globalThis.getSelection()?.toString();if(r){vh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=X0(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=dT(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),w=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let T=m.slice(c.length+1,m.indexOf(d)).trim();if(p=X0(T,u.codeAlias),!p){D.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Zn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;We().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;Sn=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=mT(d,u),h=await Ie({text:g,pageLangs:["en"]});D.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;gh(l),rt(Cs,Date.now());try{e.specialAiAssistant=Mr(e,e.inputTranslationService,!0);let v=await na(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});yh(e),yT(e,t,l,c+v.text)}catch(v){if(v instanceof U){let S=v.uiConfig(e);xh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(mn,{detail:S}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}async function hh(e,t,n,r){if(!Sn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=X0(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=dT(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=X0(b,r.codeAlias),!u){D.warn("not found alias",b);return}},a=ed(n.document,t.rule.enableInputDeepActive);if(!a)return;Sn=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=mT(o,r),c=await Ie({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!uT){uT=!0;let g=await RB(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Z0=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Z0=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Ht(h)}}gh(a),rt(Cs,Date.now());try{t.specialAiAssistant=Mr(t,t.inputTranslationService,!0);let g=await na(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});yh(t),yT(t,n,a,i+g.text)}catch(g){if(g instanceof U){let h=g.uiConfig(t);xh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(mn,{detail:h}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}function lT(e,t,n){if(!n)return!1;if(bh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` `).reverse()[0],o=i.trim(),s=a<=r;D.debug("cursorPosition",r,"textLength",a),D.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return D.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=kB(i,n);D.debug("Current text node:",i.textContent),D.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=lt()?u[0]||u[1]:u[0];D.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else D.debug("Cursor is not within a text node.")}}return!1}function kB(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function mT(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function pT(e,t){let n=t.innerHTML,r=Nr(t);return{html:n.replace(r,e),text:e}}function $0(e,t,n=!1){let r=Nr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Nr(e){return e.value||e.innerText||e.textContent}async function Or(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function DB(e,t,n){await Or(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Or(10)}async function gT(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Or(10))}async function fT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Or(20),(t.value||t.value==="")&&(t.value=e.text)}async function hT(e,t){bh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Or(20))}var bT=[DB.bind(null,["plain"])];function bh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function LB(e,t){if(bh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function yT(e,t,n,r){await Or(50),await LB(t,n),await Or(50);let a=e.rule.inputConfig,i=pT(r,n);try{await Or(50),a?.execCommandDeleteEnable&&!Gn()&&Nr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Or(50)),D.debug("clearContent",Nr(n))}catch(o){D.error(o)}for(let o of[...bT,fT,hT,gT]){await o(i,n);let s=xT(t);if(!s)return;if(D.debug("setContent",o.name,$0(i,s),Nr(s),i),$0(i,s))break}}function xT(e){return e.document.activeElement}function yh(e,t=""){He("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function PB(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function MB(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ut(t,"")||Number(await Ut(Cs,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{FB()},100),new Promise(d=>{let m=d;if(o){let M=o.shadowRoot;if(!M)return;s=M.querySelector(`.${n}`);let I=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),N=s.querySelector(`.${a}`)}else{let M=document.createElement("div");M.setAttribute("translate","no"),M.className=`no-translate ${_}-error-modal-input-shadow-root`,M.id=t,M.style.all="initial",M.style.zIndex="2147483647",document.body.appendChild(M);let I=M.attachShadow({mode:"open"}),L=document.createElement("style"),N=Le();L.textContent=N.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,I.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let B=document.createElement("div");B.className=_+"-modal-content notranslate "+_+"-modal-content-in-input",s.appendChild(B);let j=document.createElement("span");j.textContent="\xD7",j.className=_+"-close",B.appendChild(j),u=document.createElement("div"),u.className=r+" notranslate",B.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",B.appendChild(c),l=document.createElement("div"),l.className=i,B.appendChild(l),I.appendChild(s),j.onclick=function(){E(),d("close")},I.addEventListener("click",G=>{G.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=Pe.bind(null,e.config.interfaceLanguage),g=`
${n0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=pr?.createHTML(g)||g,c.innerHTML=pr?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ie+"docs/input/"});h.innerHTML=pr?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=nt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=pr?.createHTML(y)||y,c.appendChild(f);let x=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let M=0;M0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function xh(e,t,n,r){if(Sn)return;try{let o=ed(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;Sn=!0;let u=e.config.inputTargetLanguage,l=await Ie({text:n,pageLangs:["en"]});D.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;gh(o),rt(Cs,Date.now());try{if(e.specialAiAssistant=Mr(e,e.inputTranslationService,!0),yh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await na(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await na(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof U){let m=d.uiConfig(e);vh(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(mn,{detail:m}))}}finally{Sn=!1}}catch(o){throw Sn=!1,o}finally{Sn=!1,fh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=pT(l,u);try{await Or(50),c?.execCommandDeleteEnable&&!Gn()&&Nr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Or(50)),D.debug("clearContent",Nr(u))}catch(m){D.error(m)}for(let m of[...bT,fT,hT,gT]){await m(d,u);let p=xT(s);if(!p)return;if(D.debug("setContent",m.name,$0(d,p),Nr(p),d),$0(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function vh(e){return e==="retry"||e==="changeService"}function td({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&Fn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}Hr(v(Za,{lang:t.config.interfaceLanguage,children:v(n,{...r})}),d)}function is(e){return os(e).subtitles}function os(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?")||l.includes("< styles>")||Q2(l)||G2(l)||Y2(l)||K2(l)||V2(l)||Zk(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:fo(i?.trim(),n,r)}function Li(e){return e.nodeType===Node.ELEMENT_NODE}function Zb(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function kr(){return await Ut("fakeUserId","")}async function Jk(){return await Ut("installedAt","")}async function Ao(e,t){let r=Le().INSTALL_FROM,a=Ht(),i=await Jk(),o=await kr(),s=await qt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await mo(),m=await go(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await po();return g&&(p.abGroup=g),p}function au(e,t){let[n,r]=G();return $(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!at()&&te()||Ke().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=Xk(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function Xk(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function $b(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function ey(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{wc[e]=setTimeout(()=>{n("")},t)})}function ny(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ha(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Ac(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Mi(){return tp()?"imtAndroid":Hs()?"imtIOS":te()?"userscript":at()?"safari":Sr()?"firefox":D1()?"chrome":"other"}function qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function kc(e){return e?.getAttribute("imt-state")||""}function zr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Dc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function ry(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function za(e){if(e.beta)return!1;if(at()&&e.spVersion)return qa(js(),e.spVersion);if(d2()&&e.gspVersion){let t=m2();if(t)return qa(t,e.gspVersion)}if(Hs()&&e.ispVersion){let t=c2();if(t)return qa(t,e.ispVersion)}return!1}function qa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Rp(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),iu())}async function ay(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),$k(a.toString())}function $k(e){try{at()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function iy(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function oy(e){return ft(e)}function Lc(e){return Array.isArray(e)?e:e?[e]:[]}function Mc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Pc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function sy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Rc(e,t){let n={...e};return my(n,t),eD(n,t),n}function dy(e,t,n){let r={...e};return jr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),jr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function eD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;my(e,a)}function jr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=uy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=uy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Lc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!ly(u))return;d=Fp(c,l)}else if(s=="remove_v"){if(!ly(u))return;d=cy(c,l)}else s==="add"?d=Fp(c,l):s=="remove"&&(d=cy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Fp(c,l):d=l,r(o,d)})}function my(e,t){return jr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Fp(e,t){let n;if(Array.isArray(e)){let r=Lc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function uy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function ly(e){let t=Ht();return e&&qa(t,e)}function cy(e,t){if(Array.isArray(e)){let n=Lc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var py="userConfig",Fc="userPromptPool",Bc="userObjectPool";async function Ic(){let e=await vy(py)||{},t=await Pi(Fc)||{},n=await Pi(Bc)||{};return tD(e,t,n)}async function gy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Bp(e);await yy(py,t),await Dr(Fc,n),await Dr(Bc,r)}function Bp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return fy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),hy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function tD(e,t,n){return fy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),hy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function fy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function hy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Wa(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=by(r);for(let o of i)delete a[o]}),n}function Ip(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=by(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function by(e){let t=Ar[e]?.allProps||[];e.startsWith("custom-ai")&&(t=bo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Sy(){if(de.PROD==="1")return{};let e={};if(de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(de.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=de.DEEPL_PROXY_ENDPOINT),de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}de.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=de.IMMERSIVE_TRANSLATE_SERVICE);let t={};return de.DEBUG==="1"&&(t.debug=!0,t.cache=!1),de.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await ae.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ae.storage.local.set({[As]:e})}async function Ty(e){await ae.storage.local.set({[Ml]:e})}async function Cy(){return de.DEBUG==="1"?void 0:(await ae.storage.local.get(Ml))[Ml]}async function _c(){let e=await Cy(),n={...await _p(),...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function qt(){let e=await Cy(),t={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let O=new Date(e.buildinConfigUpdatedAt),I=new Date(t.buildinConfigUpdatedAt);O>I&&(t=e)}let n=await aD(t);t.targetLanguage=n;let r=await dt.get(ct,null),a={};if(!te()&&ae.commands&&ae.commands.getAll){let O=await ae.commands.getAll();for(let I of O)I.name&&I.shortcut&&(a[I.name]=I.shortcut)}let i=await _p(),o=Sy(),s=await un(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Yt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let O=await nD();d.interfaceLanguage=O}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await wi("translage_page_daily",0)),w=Number(await Ut(lr,0)),A;w>0&&(Date.now()-w0&&(Date.now()-C0){let O=l.tempTranslationUrlMatches.filter(I=>new Date(I.expiredAt)>c);if(O.length>0){let I=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(I)?I:[I],W=Array.from(new Set(j.concat(O.map(ne=>ne.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:W}}}let P=Object.assign(i,t);jr({rule:t,valueIsArray:O=>Array.isArray(i[O]),getMergedValue:O=>i[O],onMergedResult:(O,I)=>{O!="generalRule"&&(P[O]=I)}}),jr({rule:t.generalRule,valueIsArray:O=>Array.isArray(i.generalRule[O]),getMergedValue:O=>i.generalRule[O],onMergedResult:(O,I)=>{P.generalRule[O]=I}}),sD(P,T),iD(r,d,P);let _=Object.keys(P),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let O of _){let I=O;if(I==="generalRule")typeof d[I]=="object"&&(P[I]=Rc(P[I],d[I]));else if(I==="translationServices")oD(d,P);else if(typeof d[I]!="string"&&typeof d[I]!="boolean"&&typeof d[I]!="number"&&L.includes(I))d[I]&&(P[I]=Object.assign(P[I],d[I])),I==="shortcuts"&&(te()||at()?P[I]={...P[I],...a}:P[I]={...a});else if(I==="rules"){if(Array.isArray(d[I])){let j=P.rules||[],W={};for(let Ee of j)Ee.id&&(W[Ee.id]=Ee);let ne=d[I].map(Ee=>Ee.id&&W[Ee.id]?dy(P.generalRule,W[Ee.id],Ee):Ee);P[I]=[...ne,...P[I]]}if(de.PROD==="0"&&de.DEV_RULES){let j=JSON.parse(de.DEV_RULES);P[I]=[...j,...P[I]]}}else d[I]!==void 0&&(P[I]=d[I])}return P.donateUrl=t.donateUrl,P.minVersion=t.minVersion,P.feedbackUrl=t.feedbackUrl,P.rawUserConfig=s,P}function un(){return Ic()}function Gr(e){return gy(e)}async function yy(e,t){await ae.storage.sync.set({[e]:t})}async function vy(e){return(await ae.storage.sync.get(e))[e]}async function Dr(e,t){await ae.storage.local.set({[e]:t})}async function Pi(e){return(await ae.storage.local.get(e))[e]}var wy={};function Oc(e){return wy[e]}function Ey(e,t){wy[e]=t}var nD=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>t2.find(a=>a===r));return n||"en"},_p=async()=>{let e={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};return{...e,targetLanguage:Pa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function rD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function aD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Pa;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=xy(l,r[s]))}),jr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=xy(l,n[s]))}),jr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function sD(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function xy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Ga(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function uD(e,t){return e<>>32-t}function jc(e,t,n,r,a,i){return Ga(uD(Ga(Ga(t,e),Ga(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return jc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return jc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return jc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return jc(n^(t|~r),e,t,a,i,o)}function Nc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Op(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Nc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Nc(a.concat(Op(t)),512+t.length*8),Ay(Nc(i.concat(o),512+128))}function ky(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Np(e){return unescape(encodeURIComponent(e))}function Dy(e){return lD(Np(e))}function dD(e){return ky(Dy(e))}function Ly(e,t){return cD(Np(e),Np(t))}function mD(e,t){return ky(Ly(e,t))}function tr(e,t,n){return t?n?Ly(t,e):mD(t,e):n?Dy(e):dD(e)}var Do=[],KG=1e3*3600*24;async function Uc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function My(e){let t=`${R}-${e.service}@${e.from}->${e.to}`;return await fD(t,{...e,createAt:new Date().getTime()})}async function Py(e){let t=tr(e.originalText),n=`${R}-${e.service}@${e.from}->${e.to}`;return await gD(n,t)}async function gD(e,t){let n=await Uc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function fD(e,t){let n=await Uc(e);return(await Ry()).includes(e)||await hD(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function hD(e){let t="cache_list",n=await Uc(R+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Do.push(e)},a.onerror=i=>{n.close()}}async function Ry(){if(Do&&Do.length>0)return Do;let e=await Uc(R+"-cacheList","cache_list");return Do=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Do}async function Fy(){try{let t=(await Ry()).map(r=>bD(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function bD(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Hc="Original";function Ye(){return Hc}function Bn(e){Hc=e,Iy(Hc);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:Hc})});document.dispatchEvent(t)}var By="Original";function Lo(){return By}function mr(e,t){if(t)return;By=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var Oy="auto",qc="auto",_y="auto";function Ny(e){Oy=e}function nr(e){qc=e}function mt(){return qc!=="auto"?qc:_y!=="auto"?_y:Oy}function zc(){return qc}function Ri(e){return e?.id?.endsWith("pdfWebPage")||!1}function Fi(e){try{if(!e||!Ri(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var Oe={},Kr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Oe.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await Oe.updateContextState(r);let a=await Oe.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Oe.translateTheWholePage(r),it(lr,i);else if(n==="translateTheMainPage")await Oe.translateTheMainPage(r),it(lr,i);else if(n==="translateToThePageEndImmediately")await Oe.translateToThePageEndImmediately(r),it(lr,i);else if(n==="toggleTranslateManga")await Oe.toggleTranslateManga(),it(lr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ri(a?.rule)){let s=Fi(a.rule);Mo(!0,s||o);return}await Oe.toggleTranslatePage(r),it(lr,i)}else if(n==="toggleTranslateTheWholePage")await Oe.toggleTranslateTheWholePage(r),it(lr,i);else if(n==="toggleTranslateTheMainPage")await Oe.toggleTranslateTheMainPage(r),it(lr,i);else if(n==="toggleOnlyTransation")await Oe.ensureSwitchTranslationMode(r),it(lr,i);else if(n=="toggleEnableEditTranslation")Oe.toggleEnableEditTranslation();else if(n==="translatePage")await Oe.translatePage(a,r),it(lr,i);else if(n==="toggleTranslationMask")await Oe.toggleTranslationMask(r);else if(n==="restorePage")Oe.restorePage();else if(n==="retryFailedParagraphs")Oe.retryFailedParagraphs();else if(n=="change_translate_service")Oe.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Oe.switchTranslationMode(r.mode),await Oe.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Oe.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Dl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Oe.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await Oe.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Oe.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Oe.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Oe.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Oe.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Oe.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Oe.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Oe.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Oe.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ve()||await Oe.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ve())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await Oe.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Oe.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Oe.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(bi,{detail:{type:"webReport"}})):n===O3&&await Oe.translateSelectImage(a,r)}};function jy(e){Object.assign(Oe,e)}function Uy(e){Object.assign(Oe,e)}function Hy(e){Object.assign(Oe,e)}var yD=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=mt();return Oe.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return nr(r),mt();if(n==="getContextString"){let a=Oe.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Oe.getPureGlobalContext();return Fi(a?.rule)}}},Wc,Gc;function qy(){let e=Kc();Ve()||vD(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Kc(){return Wc||(Wc=new Ra("content_script",!1).getConnection("main",Kr),Wc)}function vD(){return Gc||(Gc=new Ra("content_script",!1).getConnection("main_sync",yD,{sync:!0}),Gc)}var jp=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Vc="https://transmart.qq.com/api/imt",fa=class e{static langMapReverse=new Map(jp.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await V({url:Vc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function xD(e,t){return Math.floor(Math.random()*(t-e+1))+e}var SD=30,Up="RATE_LIMITER_TICKS",Po=class e{static strictTicks={};static clearStrictTicks(){Dr(Up,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Pi(Up)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Dr(Up,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=xD(4,SD);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await Kc().sendMessage("background:main",e)}function V(e){return sl()?Jl({method:"request",data:e}):te()||ol()?(e.fetchPolyfill=globalThis.GM_fetch,Ai(e)):lt({method:"fetch",data:e})}function xn(){return te()?qt():lt({method:"getConfig"})}function Wt(e){return te()?Gr(e):lt({method:"setUserConfig",data:e})}function Pt(){return te()?un():lt({method:"getUserConfig"})}function In(){return te()?Yt():lt({method:"getLocalConfig"})}function ha(e){return te()?zt(e):lt({method:"setLocalConfig",data:e})}function zy(e){return te()?Ty(e):lt({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Vl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||at()){if(e.translateService&&!dc.includes(e.translateService))return Promise.resolve("auto");let r=K1(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function Wy(){return lt({method:"detectTabLanguage"})}async function Yc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(te()||at()){let n=e.substring(0,200);t=await fa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function Iy(e){let t=new CustomEvent(yi,{detail:e});if(document.dispatchEvent(t),te())return;Kc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Gy(e){return te()?Py(e):lt({method:"queryParagraphCache",data:e})}async function Ky(e){if(te()){await My(e);return}return lt({method:"setParagraphCache",data:e})}async function Vy(){if(te())return Promise.resolve();await lt({method:"mockRequest"})}function Ka(e=!1,t=""){return document.querySelector(`meta[name=${R}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(ae.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Va(e=""){return te()||at()?Le().OPTIONS_URL:ae.runtime.getURL("options.html")}function Yy(e=""){return ae&&ae.runtime&&ae.runtime.getURL?ae.runtime.getURL("options.html"):""}function Qc(e=!1){return te()?(ae.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Wr(e){return te()?(ae.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function Qy(e=!1){return te()?(ae.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Jy(e=!1){return te()?(ae.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Jc(e){at()}function Mo(e=!1,t){return te()?(ae.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function Zy(e=!1){return te()?(ae.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function ou(e){return te()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function Xy(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function Zc(e,t=!1){return te()?ae.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function $y(e,t){return te()||de.MOCK==="1"?Po.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function e9(){return te()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function t9(){return te()?!1:lt({method:"getIsOnToolbar"})}async function Hp(){if(!te())return lt({method:"updateVideoSubtitleStatus"})}function Bi({targetLanguage:e,text:t}){te()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function iu(){te()||lt({method:"updateImageMenu"})}async function n9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",qp(t),"AES-GCM",!0,["encrypt","decrypt"]),a=qp(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:qp(n)},r,a);return TD(i)}catch{return Promise.reject("Encryption failed")}}function TD(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=_.params||{};if(B.os&&(L.os_name=B.os.name||"unknown",L.os_version=B.os.version||"unknown",L.os_version_name=B.os.versionName||"unknown"),B.browser&&(L.browser_name=B.browser.name||"unknown",L.browser_version=B.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),B.platform&&(L.platform_type=B.platform.type||"unknown"),B.engine&&(L.engine_name=B.engine.name||"unknown",L.engine_version=B.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let I=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),I&&(I.provider&&(L.translation_service_provider=I.provider),n.translationService==="openai"&&I.provider==="custom"&&(I.apiUrl?I.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),I.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=ac(y);let I=oc(y);L.install_week=`${I.year}${I.week}`}if(n.user){let I=Y1(n.user);I&&Object.keys(I).forEach(j=>{L[j]=I[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let O="html";if(n.rule.pageType&&(O=n.rule.pageType),L.page_type=O,s?L.main_frame=0:L.main_frame=1,!c){let I=n.url;try{let j=new URL(I);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{..._,params:L}});if(i)return;M.forEach(async _=>{let L=await V({responseType:"text",url:_,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&CD(p,P),n.config.enablePerformanceReport&&AD(n,P)}catch(r){k.debug("report error",r)}}function CD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r9(r);let a=Date.now()+(Math.random()*100).toFixed(0);V({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var wD=Date.now(),ED=["translate_page","translate_video_subtitle"];function AD(e,t){try{t.forEach(async n=>{if(!ED.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};r9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-wD},s=await n9(JSON.stringify(o),g1,f1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);V({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function r9(e){return e?.install_day&&(e.install_day=ic(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ya(e){return e!=null}function o9(e,t,n){return`${e.type}#${t}#${n}`}function s9(e,t,n,r,a){return{body:a,id:r,type:o9(e,t,n)}}function kD(e,t,n,r){return{id:n,response:r,type:o9(e,"ask",t)}}function u9(e,t,n,r){if(Ya(r)){let a=r.type;if(Ya(a)&&Ya(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function DD(e,t,n){if(Ya(n)){let r=n.type;if(Ya(r)&&Ya(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function LD(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function MD(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;DD(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function PD(e,t,n,r){let a=i=>{let o=i.data;u9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function a9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(u9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(kD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function RD(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(s9(t,"tell",n,i,r),a)}async function i9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await MD(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(s9(n,"ask",r,s,a),i),u}var Qa=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;a9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ya(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await i9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(PD(this.thisWindow,this.protocol,t,n))}tell(t,n){RD(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(a9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return i9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){LD(this.listeners)}};var l9;async function c9(){if(Ve()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qa.iframe(_l,"*",{targetWindow:t});l9=n,await Qa.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function d9(){return l9}function m9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=rb(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=V3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Hr(this.serviceConfig);if(f.tempSentences.forEach((I,j)=>{let W=Dp({text:I.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);I.force!==!0&&(W&&W.text&&W.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:I,from:T,to:f.to})}let M="";w&&w.length>=2?M=A.map((I,j)=>{let{item:W}=I;return j===A.length-1?W.text:W.text+w[0]+(j+1)+w[1]}).join(""):M=A.map(({item:I})=>I.text).join(C);let B=await this.translate({text:M,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:P}=B,_=[];if(w&&w.length>=2){let I=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(I=w[2]);let j=new RegExp(I,"g");_=P.split(j)}else _=P.split(C);let L=[];if(_.length>A.length){for(let I=0;II.text);return D=Hr(this.serviceConfig,!0),L.forEach((I,j)=>{let W=A[j],ne=W.index,Ee=W.variables||{};Object.keys(Ee).length>0&&(I=Lp({text:I,delimiters:D,variables:Ee},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),O[ne]=I}),{sourceTempSentences:f.tempSentences,text:O,from:B.from,to:B.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let A=0;A{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Hr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Dp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Hr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Lp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[mt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Ro="input is invalid type",zp=typeof window=="object",Ja=zp?window:{};Ja.JS_SHA256_NO_WINDOW&&(zp=!1);var FD=!zp&&typeof self=="object",BD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;BD?Ja=global:FD&&(Ja=self);var zV=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,WV=typeof define=="function"&&define.amd,su=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),ID=[-2147483648,8388608,32768,128],Lr=[24,16,8,0],Xc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$c=["hex","array","digest","arrayBuffer"],rn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});su&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var p9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},f9=function(e){var t=p9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=p9(r,e)}return t},g9=function(e,t){return function(n,r){return new e0(n,t,!0).update(r)[e]()}},h9=function(e){var t=g9("hex",e);t.create=function(a){return new e0(a,e)},t.update=function(a,i){return t.create(a).update(i)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=g9(r,e)}return t};function an(e,t){t?(rn[0]=rn[16]=rn[1]=rn[2]=rn[3]=rn[4]=rn[5]=rn[6]=rn[7]=rn[8]=rn[9]=rn[10]=rn[11]=rn[12]=rn[13]=rn[14]=rn[15]=0,this.blocks=rn):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}an.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);t=!0}for(var r,a=0,i,o=e.length,s=this.blocks;a>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=ID[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+Xc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Xc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Xc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+Xc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(u+=le[s>>28&15]+le[s>>24&15]+le[s>>20&15]+le[s>>16&15]+le[s>>12&15]+le[s>>8&15]+le[s>>4&15]+le[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function e0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}e0.prototype=new an;e0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var Fo=f9();Fo.sha256=Fo;Fo.sha224=f9(!0);Fo.sha256.hmac=h9();Fo.sha224.hmac=h9(!0);var b9=Fo;var y9=b9.sha256;function jn(e){return Promise.resolve(y9(e))}function Bo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rr(e,t){let n=y9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function v9(e,t){let n=await rr(e,t);return Bo(n)}async function t0(e,t){let n=_D(t),r=await rr(e,n);return Bo(r)}function _D(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var x9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],uu=class e extends Ae{static langMap=new Map(x9);maxTextGroupLength=50;static langMapReverse=new Map(x9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await jn(a)].join(` -`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await jn(c)].join(` -`),p=await v9(d,`TC3${n}`),g=await t0(i,p),h=await t0("tc3_request",g),b=await t0(m,h),f=await V({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var S9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],OD={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},lu=class e extends Ae{static langMap=new Map(S9);static langMapReverse=new Map(S9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await V({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:OD,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var T9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],cu=class e extends Ae{static langMap=new Map(T9);static langMapReverse=new Map(T9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await V({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function ND(e,t){return t?e+(t-e%t):e}function jD(e,t){return e.split(t).length-1}function Wp(e){let t=Date.now(),n=1;for(let r of e)n+=jD(r,"i");return ND(t,n)}function UD(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Gp(){return UD(1e6,1e8)}var Kp="https://www2.deepl.com/jsonrpc",Vp="auto",C9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function HD(e=C9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Yp(e){return HD()[e.toLowerCase()]}var qD={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function zD(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function WD(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function GD(e,t,n,r,a,i,o){let s=Gp(),u=WD(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Wp(t);let c=await V({retry:2,method:"POST",url:e,body:zD(u),headers:qD}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function w9(e,t,n,r=Vp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:GD(e,t,Yp(n),Yp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var E9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Io=class e extends Ae{static langMap=new Map(E9);static langMapReverse=new Map(E9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Kp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=vt(Kp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await w9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var du=class e extends Ae{static langMap=new Map(jp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=fa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Le(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=A9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await V({url:Vc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Le(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=A9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await V({url:Vc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function A9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Qp(){return Math.random()>=.001}var _o=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Vy(),!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var D9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Jp=new Map(D9),k9=new Map(D9.map(([e,t])=>[t,e])),Zp=class e extends Ae{static langMap=Jp;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await V({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Jp.get(r)||"auto",target_lang:Jp.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:k9.get(o.source_lang),to:k9.get(o.target_lang)}}else throw new U(i.msg)}},n0=Zp;var Xp="https://{s}bing.com",F9=Xp+"/translator",KD=Xp+"/ttranslatev3",VD=Xp+"/tspellcheckv3",r0="bingGlobalConfig",B9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],L9=new Map(B9),M9=new Map(B9.map(([e,t])=>[t,e])),P9=1e3,Mr,Oo;function $p(e,t){return e.replace("{s}",t?t+".":"")}async function YD(){if(!Mr){let n=await ae.storage.local.get(r0);return n&&(Mr=n[r0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Mr;return Date.now()-e>t}async function R9(){let e,t,n,r,a,i,o,s,u,l;try{let c=$p(F9,e),d=await V({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Mr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ae.storage.local.set({[r0]:Mr}),Mr}function QD(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Mr;return $p(e?VD:KD,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Mr.count++:"")}function JD(e,t,n,r){let{token:a,key:i}=Mr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function I9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>P9)throw new Error(`The supported maximum length of text is ${P9}. Please shorten the text.`);Oo||(Oo=R9()),await Oo,await YD()&&(Oo=R9(),await Oo),t=t||"auto",n=n||"zh-CN",t=L9.get(t)||t,n=L9.get(n)||n;let a=QD(!1),i=JD(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:$p(F9,Mr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await V({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Mr=null,Oo=null,await ae.storage.local.remove(r0),c.ShowCaptcha)throw new Error(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function zk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ob(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Tc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Ap(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),jr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function To(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Vb(e,t){let n=t||e.translationService;return To(e,n,e.config.translationServices)?Ap(e.rule):e.rule}function Cc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var Wk=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Ur(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!Wk.includes(n.display):tr(e,r)}}var Et=tr;function Di(e){return!!e.shadowRoot}function Ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function nu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Hr(e,t=!1){let n=ro;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function ki(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Hr(n,t)}function Co(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function kp(e){let{rule:t}=e,n=Gk(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function Gk(e){let t=e.config.loadingTheme;return`${R}-loading-${t}`}function ru(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Dt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,z3,t.toString());let i=kp(e);return a.append(n?" ...":Ze.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function wo(e,t){return e.querySelector(`[${Mm}='${t}']`)}function Kb(){document.querySelectorAll(`[${Mm}]`).forEach(t=>{t.remove()})}function Yb(){document.querySelectorAll(`.${Dt}-error`).forEach(t=>{t.remove()})}function Qb(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{_a(n)&&t.push(n)}),t}function Dp(e,t){return t?Vk(e):Kk(e)}function Vk(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Jb(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=mp(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function Kk(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Jb(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=mp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Lp(e,t){return t?Yk(e):Qk(e)}function Yk(e){let{text:t,variables:n}=e,r=Cc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function Qk(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Jb(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Eo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||Q2(l)||G2(l)||Y2(l)||V2(l)||K2(l)||Zk(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:fo(i?.trim(),n,r)}function Li(e){return e.nodeType===Node.ELEMENT_NODE}function Zb(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function kr(){return await Ut("fakeUserId","")}async function Jk(){return await Ut("installedAt","")}async function Ao(e,t){let r=Le().INSTALL_FROM,a=Ht(),i=await Jk(),o=await kr(),s=await qt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await mo(),m=await go(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await po();return g&&(p.abGroup=g),p}function au(e,t){let[n,r]=G();return $(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!at()&&te()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=Xk(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function Xk(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function $b(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function ey(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{wc[e]=setTimeout(()=>{n("")},t)})}function ny(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ha(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Ac(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Mi(){return tp()?"imtAndroid":Hs()?"imtIOS":te()?"userscript":at()?"safari":Sr()?"firefox":D1()?"chrome":"other"}function qr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function kc(e){return e?.getAttribute("imt-state")||""}function zr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Dc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function ry(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function za(e){if(e.beta)return!1;if(at()&&e.spVersion)return qa(js(),e.spVersion);if(d2()&&e.gspVersion){let t=m2();if(t)return qa(t,e.gspVersion)}if(Hs()&&e.ispVersion){let t=c2();if(t)return qa(t,e.ispVersion)}return!1}function qa(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Rp(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),iu())}async function ay(e){let n=(await qt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),$k(a.toString())}function $k(e){try{at()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function iy(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function oy(e){return ft(e)}function Lc(e){return Array.isArray(e)?e:e?[e]:[]}function Mc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Pc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function sy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Rc(e,t){let n={...e};return my(n,t),eD(n,t),n}function dy(e,t,n){let r={...e};return jr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),jr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function eD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;my(e,a)}function jr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=uy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=uy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Lc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!ly(u))return;d=Fp(c,l)}else if(s=="remove_v"){if(!ly(u))return;d=cy(c,l)}else s==="add"?d=Fp(c,l):s=="remove"&&(d=cy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Fp(c,l):d=l,r(o,d)})}function my(e,t){return jr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Fp(e,t){let n;if(Array.isArray(e)){let r=Lc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function uy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function ly(e){let t=Ht();return e&&qa(t,e)}function cy(e,t){if(Array.isArray(e)){let n=Lc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var py="userConfig",Fc="userPromptPool",Bc="userObjectPool";async function Ic(){let e=await vy(py)||{},t=await Pi(Fc)||{},n=await Pi(Bc)||{};return tD(e,t,n)}async function gy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Bp(e);await yy(py,t),await Dr(Fc,n),await Dr(Bc,r)}function Bp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return fy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),hy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function tD(e,t,n){return fy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),hy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function fy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function hy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Wa(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=by(r);for(let o of i)delete a[o]}),n}function Ip(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=by(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function by(e){let t=Ar[e]?.allProps||[];e.startsWith("custom-ai")&&(t=bo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Sy(){if(de.PROD==="1")return{};let e={};if(de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(de.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=de.DEEPL_PROXY_ENDPOINT),de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}de.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=de.IMMERSIVE_TRANSLATE_SERVICE);let t={};return de.DEBUG==="1"&&(t.debug=!0,t.cache=!1),de.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await ae.storage.local.get(As);if(e[As]){let t=e[As],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ae.storage.local.set({[As]:e})}async function Ty(e){await ae.storage.local.set({[Ml]:e})}async function Cy(){return de.DEBUG==="1"?void 0:(await ae.storage.local.get(Ml))[Ml]}async function _c(){let e=await Cy(),n={...await _p(),...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function qt(){let e=await Cy(),t={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let O=new Date(e.buildinConfigUpdatedAt),I=new Date(t.buildinConfigUpdatedAt);O>I&&(t=e)}let n=await aD(t);t.targetLanguage=n;let r=await dt.get(ct,null),a={};if(!te()&&ae.commands&&ae.commands.getAll){let O=await ae.commands.getAll();for(let I of O)I.name&&I.shortcut&&(a[I.name]=I.shortcut)}let i=await _p(),o=Sy(),s=await un(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Yt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let O=await nD();d.interfaceLanguage=O}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await wi("translage_page_daily",0)),w=Number(await Ut(cr,0)),A;w>0&&(Date.now()-w0&&(Date.now()-C0){let O=l.tempTranslationUrlMatches.filter(I=>new Date(I.expiredAt)>c);if(O.length>0){let I=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(I)?I:[I],W=Array.from(new Set(j.concat(O.map(ne=>ne.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:W}}}let P=Object.assign(i,t);jr({rule:t,valueIsArray:O=>Array.isArray(i[O]),getMergedValue:O=>i[O],onMergedResult:(O,I)=>{O!="generalRule"&&(P[O]=I)}}),jr({rule:t.generalRule,valueIsArray:O=>Array.isArray(i.generalRule[O]),getMergedValue:O=>i.generalRule[O],onMergedResult:(O,I)=>{P.generalRule[O]=I}}),sD(P,T),iD(r,d,P);let _=Object.keys(P),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let O of _){let I=O;if(I==="generalRule")typeof d[I]=="object"&&(P[I]=Rc(P[I],d[I]));else if(I==="translationServices")oD(d,P);else if(typeof d[I]!="string"&&typeof d[I]!="boolean"&&typeof d[I]!="number"&&L.includes(I))d[I]&&(P[I]=Object.assign(P[I],d[I])),I==="shortcuts"&&(te()||at()?P[I]={...P[I],...a}:P[I]={...a});else if(I==="rules"){if(Array.isArray(d[I])){let j=P.rules||[],W={};for(let Ee of j)Ee.id&&(W[Ee.id]=Ee);let ne=d[I].map(Ee=>Ee.id&&W[Ee.id]?dy(P.generalRule,W[Ee.id],Ee):Ee);P[I]=[...ne,...P[I]]}if(de.PROD==="0"&&de.DEV_RULES){let j=JSON.parse(de.DEV_RULES);P[I]=[...j,...P[I]]}}else d[I]!==void 0&&(P[I]=d[I])}return P.donateUrl=t.donateUrl,P.minVersion=t.minVersion,P.feedbackUrl=t.feedbackUrl,P.rawUserConfig=s,P}function un(){return Ic()}function Gr(e){return gy(e)}async function yy(e,t){await ae.storage.sync.set({[e]:t})}async function vy(e){return(await ae.storage.sync.get(e))[e]}async function Dr(e,t){await ae.storage.local.set({[e]:t})}async function Pi(e){return(await ae.storage.local.get(e))[e]}var wy={};function Oc(e){return wy[e]}function Ey(e,t){wy[e]=t}var nD=async()=>{let e=["zh-CN"];try{e=await ae.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>X(r)).find(r=>t2.find(a=>a===r));return n||"en"},_p=async()=>{let e={...uc,buildinConfigUpdatedAt:de.BUILD_TIME};return{...e,targetLanguage:Pa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function rD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function aD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Pa;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=xy(l,r[s]))}),jr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=xy(l,n[s]))}),jr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function sD(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function xy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Ga(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function uD(e,t){return e<>>32-t}function jc(e,t,n,r,a,i){return Ga(uD(Ga(Ga(t,e),Ga(r,i)),a),n)}function hn(e,t,n,r,a,i,o){return jc(t&n|~t&r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return jc(t&r|n&~r,e,t,a,i,o)}function yn(e,t,n,r,a,i,o){return jc(t^n^r,e,t,a,i,o)}function vn(e,t,n,r,a,i,o){return jc(n^(t|~r),e,t,a,i,o)}function Nc(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Op(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Nc(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Nc(a.concat(Op(t)),512+t.length*8),Ay(Nc(i.concat(o),512+128))}function ky(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Np(e){return unescape(encodeURIComponent(e))}function Dy(e){return lD(Np(e))}function dD(e){return ky(Dy(e))}function Ly(e,t){return cD(Np(e),Np(t))}function mD(e,t){return ky(Ly(e,t))}function nr(e,t,n){return t?n?Ly(t,e):mD(t,e):n?Dy(e):dD(e)}var Do=[],VG=1e3*3600*24;async function Uc(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function My(e){let t=`${R}-${e.service}@${e.from}->${e.to}`;return await fD(t,{...e,createAt:new Date().getTime()})}async function Py(e){let t=nr(e.originalText),n=`${R}-${e.service}@${e.from}->${e.to}`;return await gD(n,t)}async function gD(e,t){let n=await Uc(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function fD(e,t){let n=await Uc(e);return(await Ry()).includes(e)||await hD(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function hD(e){let t="cache_list",n=await Uc(R+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),Do.push(e)},a.onerror=i=>{n.close()}}async function Ry(){if(Do&&Do.length>0)return Do;let e=await Uc(R+"-cacheList","cache_list");return Do=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),Do}async function Fy(){try{let t=(await Ry()).map(r=>bD(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function bD(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Hc="Original";function Ye(){return Hc}function Bn(e){Hc=e,Iy(Hc);let t=new CustomEvent(Ot,{detail:JSON.stringify({type:"updatePageStatus",payload:Hc})});document.dispatchEvent(t)}var By="Original";function Lo(){return By}function mr(e,t){if(t)return;By=e;let n=new CustomEvent(ks,{detail:e});document.dispatchEvent(n)}var Oy="auto",qc="auto",_y="auto";function Ny(e){Oy=e}function rr(e){qc=e}function mt(){return qc!=="auto"?qc:_y!=="auto"?_y:Oy}function zc(){return qc}function Ri(e){return e?.id?.endsWith("pdfWebPage")||!1}function Fi(e){try{if(!e||!Ri(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var Oe={},Vr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Oe.getIsDulSubtitle();if(n==="getPageStatus")return Ye();n==="updateContextState"&&await Oe.updateContextState(r);let a=await Oe.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Oe.translateTheWholePage(r),it(cr,i);else if(n==="translateTheMainPage")await Oe.translateTheMainPage(r),it(cr,i);else if(n==="translateToThePageEndImmediately")await Oe.translateToThePageEndImmediately(r),it(cr,i);else if(n==="toggleTranslateManga")await Oe.toggleTranslateManga(),it(cr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ri(a?.rule)){let s=Fi(a.rule);Mo(!0,s||o);return}await Oe.toggleTranslatePage(r),it(cr,i)}else if(n==="toggleTranslateTheWholePage")await Oe.toggleTranslateTheWholePage(r),it(cr,i);else if(n==="toggleTranslateTheMainPage")await Oe.toggleTranslateTheMainPage(r),it(cr,i);else if(n==="toggleOnlyTransation")await Oe.ensureSwitchTranslationMode(r),it(cr,i);else if(n=="toggleEnableEditTranslation")Oe.toggleEnableEditTranslation();else if(n==="translatePage")await Oe.translatePage(a,r),it(cr,i);else if(n==="toggleTranslationMask")await Oe.toggleTranslationMask(r);else if(n==="restorePage")Oe.restorePage();else if(n==="retryFailedParagraphs")Oe.retryFailedParagraphs();else if(n=="change_translate_service")Oe.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Oe.switchTranslationMode(r.mode),await Oe.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Oe.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(Dl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Oe.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Es,{detail:r}));else if(n==="translateWithOpenAI")await Oe.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Oe.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Oe.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Oe.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Oe.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Oe.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Oe.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Oe.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Oe.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")Ke()||await Oe.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!Ke())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await Oe.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Oe.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Oe.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(bi,{detail:{type:"webReport"}})):n===O3&&await Oe.translateSelectImage(a,r)}};function jy(e){Object.assign(Oe,e)}function Uy(e){Object.assign(Oe,e)}function Hy(e){Object.assign(Oe,e)}var yD=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ye();if(n==="getCurrentPageLanguage"){let a=mt();return Oe.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return rr(r),mt();if(n==="getContextString"){let a=Oe.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Oe.getPureGlobalContext();return Fi(a?.rule)}}},Wc,Gc;function qy(){let e=Vc();Ke()||vD(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Vc(){return Wc||(Wc=new Ra("content_script",!1).getConnection("main",Vr),Wc)}function vD(){return Gc||(Gc=new Ra("content_script",!1).getConnection("main_sync",yD,{sync:!0}),Gc)}var jp=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Kc="https://transmart.qq.com/api/imt",fa=class e{static langMapReverse=new Map(jp.map(([t,n])=>[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await K({url:Kc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function xD(e,t){return Math.floor(Math.random()*(t-e+1))+e}var SD=30,Up="RATE_LIMITER_TICKS",Po=class e{static strictTicks={};static clearStrictTicks(){Dr(Up,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Pi(Up)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Dr(Up,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=xD(4,SD);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function lt(e){return await Vc().sendMessage("background:main",e)}function K(e){return sl()?Jl({method:"request",data:e}):te()||ol()?(e.fetchPolyfill=globalThis.GM_fetch,Ai(e)):lt({method:"fetch",data:e})}function xn(){return te()?qt():lt({method:"getConfig"})}function Wt(e){return te()?Gr(e):lt({method:"setUserConfig",data:e})}function Pt(){return te()?un():lt({method:"getUserConfig"})}function In(){return te()?Yt():lt({method:"getLocalConfig"})}function ha(e){return te()?zt(e):lt({method:"setLocalConfig",data:e})}function zy(e){return te()?Ty(e):lt({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Kl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(te()||at()){if(e.translateService&&!dc.includes(e.translateService))return Promise.resolve("auto");let r=V1(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await lt({method:"detectLanguage",data:e});return Promise.resolve(t)}function Wy(){return lt({method:"detectTabLanguage"})}async function Yc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(te()||at()){let n=e.substring(0,200);t=await fa.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function Iy(e){let t=new CustomEvent(yi,{detail:e});if(document.dispatchEvent(t),te())return;Vc().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function Gy(e){return te()?Py(e):lt({method:"queryParagraphCache",data:e})}async function Vy(e){if(te()){await My(e);return}return lt({method:"setParagraphCache",data:e})}async function Ky(){if(te())return Promise.resolve();await lt({method:"mockRequest"})}function Va(e=!1,t=""){return document.querySelector(`meta[name=${R}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):te()?(ae.runtime.openOptionsPage(e,t),Promise.resolve()):lt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Ka(e=""){return te()||at()?Le().OPTIONS_URL:ae.runtime.getURL("options.html")}function Yy(e=""){return ae&&ae.runtime&&ae.runtime.getURL?ae.runtime.getURL("options.html"):""}function Qc(e=!1){return te()?(ae.extra.openAboutPage(e),Promise.resolve()):lt({method:"openAboutPage"})}function Wr(e){return te()?(ae.extra.openInTab(e),Promise.resolve()):lt({method:"openInTab",data:e})}function Qy(e=!1){return te()?(ae.extra.openEbookViewerPage(e),Promise.resolve()):lt({method:"openEbookViewerPage"})}function Jy(e=!1){return te()?(ae.extra.openEbookBuilderPage(e),Promise.resolve()):lt({method:"openEbookBuilderPage"})}function Jc(e){at()}function Mo(e=!1,t){return te()?(ae.extra.openPdfViewerPage(e),Promise.resolve()):lt({method:"openPdfViewerPage",data:{url:t}})}function Zy(e=!1){return te()?(ae.extra.openSubtitleBuilderPage(e),Promise.resolve()):lt({method:"openSubtitleBuilderPage"})}function ou(e){return te()?Promise.resolve():lt({method:"setBadge",data:{text:e}})}function Xy(){return te()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):lt({method:"autoSyncLatestConfig"})}function Zc(e,t=!1){return te()?ae.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function $y(e,t){return te()||de.MOCK==="1"?Po.getDelay(e,t):lt({method:"getDelay",data:{key:e,options:t}})}async function e9(){return te()?!1:lt({method:"getIsSupportIsOnToolbar"})}async function t9(){return te()?!1:lt({method:"getIsOnToolbar"})}async function Hp(){if(!te())return lt({method:"updateVideoSubtitleStatus"})}function Bi({targetLanguage:e,text:t}){te()||lt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function iu(){te()||lt({method:"updateImageMenu"})}async function n9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",qp(t),"AES-GCM",!0,["encrypt","decrypt"]),a=qp(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:qp(n)},r,a);return TD(i)}catch{return Promise.reject("Encryption failed")}}function TD(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=_.params||{};if(B.os&&(L.os_name=B.os.name||"unknown",L.os_version=B.os.version||"unknown",L.os_version_name=B.os.versionName||"unknown"),B.browser&&(L.browser_name=B.browser.name||"unknown",L.browser_version=B.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),B.platform&&(L.platform_type=B.platform.type||"unknown"),B.engine&&(L.engine_name=B.engine.name||"unknown",L.engine_version=B.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let I=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),I&&(I.provider&&(L.translation_service_provider=I.provider),n.translationService==="openai"&&I.provider==="custom"&&(I.apiUrl?I.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),I.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=ac(y);let I=oc(y);L.install_week=`${I.year}${I.week}`}if(n.user){let I=Y1(n.user);I&&Object.keys(I).forEach(j=>{L[j]=I[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let O="html";if(n.rule.pageType&&(O=n.rule.pageType),L.page_type=O,s?L.main_frame=0:L.main_frame=1,!c){let I=n.url;try{let j=new URL(I);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{..._,params:L}});if(i)return;M.forEach(async _=>{let L=await K({responseType:"text",url:_,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:P})})}),n.config.enableSelfServiceReport&&CD(p,P),n.config.enablePerformanceReport&&AD(n,P)}catch(r){k.debug("report error",r)}}function CD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var wD=Date.now(),ED=["translate_page","translate_video_subtitle"];function AD(e,t){try{t.forEach(async n=>{if(!ED.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};r9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-wD},s=await n9(JSON.stringify(o),g1,f1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:Bs,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function r9(e){return e?.install_day&&(e.install_day=ic(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ya(e){return e!=null}function o9(e,t,n){return`${e.type}#${t}#${n}`}function s9(e,t,n,r,a){return{body:a,id:r,type:o9(e,t,n)}}function kD(e,t,n,r){return{id:n,response:r,type:o9(e,"ask",t)}}function u9(e,t,n,r){if(Ya(r)){let a=r.type;if(Ya(a)&&Ya(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function DD(e,t,n){if(Ya(n)){let r=n.type;if(Ya(r)&&Ya(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function LD(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function MD(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;DD(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function PD(e,t,n,r){let a=i=>{let o=i.data;u9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function a9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(u9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(kD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function RD(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(s9(t,"tell",n,i,r),a)}async function i9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await MD(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(s9(n,"ask",r,s,a),i),u}var Qa=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;a9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ya(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await i9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(PD(this.thisWindow,this.protocol,t,n))}tell(t,n){RD(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(a9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return i9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){LD(this.listeners)}};var l9;async function c9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Qa.iframe(_l,"*",{targetWindow:t});l9=n,await Qa.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function d9(){return l9}function m9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=rb(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=K3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Hr(this.serviceConfig);if(f.tempSentences.forEach((I,j)=>{let W=Dp({text:I.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);I.force!==!0&&(W&&W.text&&W.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:I,from:T,to:f.to})}let M="";w&&w.length>=2?M=A.map((I,j)=>{let{item:W}=I;return j===A.length-1?W.text:W.text+w[0]+(j+1)+w[1]}).join(""):M=A.map(({item:I})=>I.text).join(C);let B=await this.translate({text:M,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:P}=B,_=[];if(w&&w.length>=2){let I=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(I=w[2]);let j=new RegExp(I,"g");_=P.split(j)}else _=P.split(C);let L=[];if(_.length>A.length){for(let I=0;II.text);return D=Hr(this.serviceConfig,!0),L.forEach((I,j)=>{let W=A[j],ne=W.index,Ee=W.variables||{};Object.keys(Ee).length>0&&(I=Lp({text:I,delimiters:D,variables:Ee},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),O[ne]=I}),{sourceTempSentences:f.tempSentences,text:O,from:B.from,to:B.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let A=0;A{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Hr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Dp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Hr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Lp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[mt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Ro="input is invalid type",zp=typeof window=="object",Ja=zp?window:{};Ja.JS_SHA256_NO_WINDOW&&(zp=!1);var FD=!zp&&typeof self=="object",BD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;BD?Ja=global:FD&&(Ja=self);var zK=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,WK=typeof define=="function"&&define.amd,su=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),ID=[-2147483648,8388608,32768,128],Lr=[24,16,8,0],Xc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$c=["hex","array","digest","arrayBuffer"],rn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});su&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var p9=function(e,t){return function(n){return new an(t,!0).update(n)[e]()}},f9=function(e){var t=p9("hex",e);t.create=function(){return new an(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=p9(r,e)}return t},g9=function(e,t){return function(n,r){return new e0(n,t,!0).update(r)[e]()}},h9=function(e){var t=g9("hex",e);t.create=function(a){return new e0(a,e)},t.update=function(a,i){return t.create(a).update(i)};for(var n=0;n<$c.length;++n){var r=$c[n];t[r]=g9(r,e)}return t};function an(e,t){t?(rn[0]=rn[16]=rn[1]=rn[2]=rn[3]=rn[4]=rn[5]=rn[6]=rn[7]=rn[8]=rn[9]=rn[10]=rn[11]=rn[12]=rn[13]=rn[14]=rn[15]=0,this.blocks=rn):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}an.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);t=!0}for(var r,a=0,i,o=e.length,s=this.blocks;a>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};an.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=ID[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};an.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+Xc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Xc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Xc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+Xc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};an.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(u+=le[s>>28&15]+le[s>>24&15]+le[s>>20&15]+le[s>>16&15]+le[s>>12&15]+le[s>>8&15]+le[s>>4&15]+le[s&15]),u};an.prototype.toString=an.prototype.hex;an.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};an.prototype.array=an.prototype.digest;an.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function e0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Ro);if(su&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!su||!ArrayBuffer.isView(e)))throw new Error(Ro)}else throw new Error(Ro);e.length>64&&(e=new an(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}an.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}e0.prototype=new an;e0.prototype.finalize=function(){if(an.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();an.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),an.prototype.finalize.call(this)}};var Fo=f9();Fo.sha256=Fo;Fo.sha224=f9(!0);Fo.sha256.hmac=h9();Fo.sha224.hmac=h9(!0);var b9=Fo;var y9=b9.sha256;function Un(e){return Promise.resolve(y9(e))}function Bo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=y9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function v9(e,t){let n=await ar(e,t);return Bo(n)}async function t0(e,t){let n=_D(t),r=await ar(e,n);return Bo(r)}function _D(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var x9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],uu=class e extends Ae{static langMap=new Map(x9);maxTextGroupLength=50;static langMapReverse=new Map(x9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Un(a)].join(` +`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Un(c)].join(` +`),p=await v9(d,`TC3${n}`),g=await t0(i,p),h=await t0("tc3_request",g),b=await t0(m,h),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var S9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],OD={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},lu=class e extends Ae{static langMap=new Map(S9);static langMapReverse=new Map(S9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:OD,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var T9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],cu=class e extends Ae{static langMap=new Map(T9);static langMapReverse=new Map(T9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function ND(e,t){return t?e+(t-e%t):e}function jD(e,t){return e.split(t).length-1}function Wp(e){let t=Date.now(),n=1;for(let r of e)n+=jD(r,"i");return ND(t,n)}function UD(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Gp(){return UD(1e6,1e8)}var Vp="https://www2.deepl.com/jsonrpc",Kp="auto",C9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function HD(e=C9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Yp(e){return HD()[e.toLowerCase()]}var qD={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function zD(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function WD(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function GD(e,t,n,r,a,i,o){let s=Gp(),u=WD(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Wp(t);let c=await K({retry:2,method:"POST",url:e,body:zD(u),headers:qD}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function w9(e,t,n,r=Kp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:GD(e,t,Yp(n),Yp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var E9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Io=class e extends Ae{static langMap=new Map(E9);static langMapReverse=new Map(E9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Vp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=vt(Vp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await w9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var du=class e extends Ae{static langMap=new Map(jp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=fa.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Le(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=A9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:Kc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Le(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=A9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:Kc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function A9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Qp(){return Math.random()>=.001}var _o=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await Ky(),!Qp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var D9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Jp=new Map(D9),k9=new Map(D9.map(([e,t])=>[t,e])),Zp=class e extends Ae{static langMap=Jp;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Jp.get(r)||"auto",target_lang:Jp.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:k9.get(o.source_lang),to:k9.get(o.target_lang)}}else throw new U(i.msg)}},n0=Zp;var Xp="https://{s}bing.com",F9=Xp+"/translator",VD=Xp+"/ttranslatev3",KD=Xp+"/tspellcheckv3",r0="bingGlobalConfig",B9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],L9=new Map(B9),M9=new Map(B9.map(([e,t])=>[t,e])),P9=1e3,Mr,Oo;function $p(e,t){return e.replace("{s}",t?t+".":"")}async function YD(){if(!Mr){let n=await ae.storage.local.get(r0);return n&&(Mr=n[r0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Mr;return Date.now()-e>t}async function R9(){let e,t,n,r,a,i,o,s,u,l;try{let c=$p(F9,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Mr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ae.storage.local.set({[r0]:Mr}),Mr}function QD(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Mr;return $p(e?KD:VD,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Mr.count++:"")}function JD(e,t,n,r){let{token:a,key:i}=Mr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function I9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>P9)throw new Error(`The supported maximum length of text is ${P9}. Please shorten the text.`);Oo||(Oo=R9()),await Oo,await YD()&&(Oo=R9(),await Oo),t=t||"auto",n=n||"zh-CN",t=L9.get(t)||t,n=L9.get(n)||n;let a=QD(!1),i=JD(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:$p(F9,Mr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Mr=null,Oo=null,await ae.storage.local.remove(r0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:M9.get(m.language),to:M9.get(d.to)}}var a0=new Map;async function eg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=tr(e.body)),a0.has(t))return a0.get(t);let n=V(e);a0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{a0.delete(t)},3e3)}}async function _9(e){return eg(e)}async function Vr(e){if(Ve()){let n=d9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return eg(e)}else return eg(e)}function O9(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function o0(e){await Jm(e)}async function Yr(e,t){let n=await Ym(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return i0(e,t)}return i0(e,t)}async function i0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Qm(e,n,i-1e3),n}var ZD=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],tg=new Map(ZD),Pr=class extends Ae{static langMap=tg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await o0(Tm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await I9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Tm,async()=>{let t=await Vr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return O9(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=tg.get(n)||"auto",o=tg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await V({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var XD=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},s0=e=>Qr.chinese.test(e),$D=e=>Qr.english.test(e),eL=e=>Qr.japanese.test(e),tL=e=>Qr.korean.test(e),nL=e=>Qr.french.test(e),rL=e=>Qr.deutsch.test(e),aL=e=>Qr.spanish.test(e),ZQ={chinese:hr(s0),english:hr($D),japanese:hr(eL),korean:hr(tL),french:hr(nL),spanish:hr(aL),deutsch:hr(rL)},N9=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,XQ=new RegExp(`^(\\d|\\s|${N9.source})+$`),iL=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),$Q=hr(e=>(e.replace(new RegExp(N9,"g")," ").replace(new RegExp(iL,"g")," x ").match(/\S+/g)||"").length),eJ=[...XD,"others","matchAll"];var U9=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],mu=new Map(U9),oL=new Map(U9.map(([e,t])=>[t,e])),ng=class extends Ae{static langMap=mu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=ut;immersiveTranslateDeeplProApiUrl=ut+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=vt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=vt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=vt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=vt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=vt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:mu.get(n)||"",target_lang:mu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:mu.get(n)||"auto",target_lang:mu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await V({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await V({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>rg(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Pr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&oL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!sa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},No=ng;function rg(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&s0(e[0])&&j9(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&s0(e[e.length-1])&&j9(e,"\u300A")==1?e+"\u300B":e}function j9(e,t){return e.split(t).length-1}var sL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],ag=new Map(sL),ig=class extends Ae{static langMap=ag;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:ag.get(r)||r,to:ag.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await V(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},H9=ig;var uL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],og=new Map(uL),sg=class extends Ae{static langMap=og;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:og.get(a)||a};r!=="auto"&&(i.from=og.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await V(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},q9=sg;var lL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],jo=new Map(lL),ug=class extends Ae{static langMap=jo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:M9.get(m.language),to:M9.get(d.to)}}var a0=new Map;async function eg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=nr(e.body)),a0.has(t))return a0.get(t);let n=K(e);a0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{a0.delete(t)},3e3)}}async function _9(e){return eg(e)}async function Kr(e){if(Ke()){let n=d9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return eg(e)}else return eg(e)}function O9(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function o0(e){await Jm(e)}async function Yr(e,t){let n=await Ym(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return i0(e,t)}return i0(e,t)}async function i0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Qm(e,n,i-1e3),n}var ZD=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],tg=new Map(ZD),Pr=class extends Ae{static langMap=tg;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await o0(Tm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await I9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Tm,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return O9(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=tg.get(n)||"auto",o=tg.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var XD=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},s0=e=>Qr.chinese.test(e),$D=e=>Qr.english.test(e),eL=e=>Qr.japanese.test(e),tL=e=>Qr.korean.test(e),nL=e=>Qr.french.test(e),rL=e=>Qr.deutsch.test(e),aL=e=>Qr.spanish.test(e),ZQ={chinese:hr(s0),english:hr($D),japanese:hr(eL),korean:hr(tL),french:hr(nL),spanish:hr(aL),deutsch:hr(rL)},N9=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,XQ=new RegExp(`^(\\d|\\s|${N9.source})+$`),iL=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),$Q=hr(e=>(e.replace(new RegExp(N9,"g")," ").replace(new RegExp(iL,"g")," x ").match(/\S+/g)||"").length),eJ=[...XD,"others","matchAll"];var U9=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],mu=new Map(U9),oL=new Map(U9.map(([e,t])=>[t,e])),ng=class extends Ae{static langMap=mu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${nn}/v2/translate`;immersiveTranslateDeeplTokenUrl=ut;immersiveTranslateDeeplProApiUrl=ut+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=vt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=vt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=vt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=vt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=vt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:mu.get(n)||"",target_lang:mu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:mu.get(n)||"auto",target_lang:mu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>rg(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Pr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&oL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!sa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},No=ng;function rg(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&s0(e[0])&&j9(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&s0(e[e.length-1])&&j9(e,"\u300A")==1?e+"\u300B":e}function j9(e,t){return e.split(t).length-1}var sL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],ag=new Map(sL),ig=class extends Ae{static langMap=ag;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:ag.get(r)||r,to:ag.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},H9=ig;var uL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],og=new Map(uL),sg=class extends Ae{static langMap=og;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:og.get(a)||a};r!=="auto"&&(i.from=og.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},q9=sg;var lL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],jo=new Map(lL),ug=class extends Ae{static langMap=jo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!jo.get(r)?(i=(await V({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||jo.get(r)||r,target:jo.get(a)||a})):u.body=JSON.stringify({text:s,source:jo.get(r),target:jo.get(a)||a});let l=await V(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},z9=ug;var cL={lang:"en"};function lg(e){let t=Object.assign({},cL,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Me(n,i,o)}}var dL=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--dL,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var cg=xo(null),Uo=e=>{let{t,setLang:n,lang:r}=lg({lang:e.lang});return v(cg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return xc(cg)}function K9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Rr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=mL(e,a)),i||(i=pL(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function mL(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function pL(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function V9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function u0(e,t,n){n=n||await In();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&W9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&W9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await un();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ha(n),await Gr(i)}catch{return!1}return a}async function Y9(){return(await In()).aiAssistants||[]}async function gL(e,t){(await Promise.allSettled(e.map(r=>V({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&u0("add",a,t)}})}async function fL(e,t,n=!0){e||(e=await qt()),t||(t=await In());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await yL();i=await bL(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&gL(o,t)}var ba=Ln(fL,1500);function W9(e){return qa(js(),e.extensionVersion)}function hL(e,t){return t?!qa(e.version,t):!1}function bL(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{hL(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function yL(){return(await V({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var vL=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function J9(e,t,n,r,a){let i={...t},o=mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,V9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=K9(i,i.langOverrides,n),o||vL.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function Sn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Ho(t,o),f=Ho(t,g),y=s,x=Object.keys(u);for(let K of x){let be=u[K];if(Ho(t,be)){y=K;break}}let S=l,T=Object.keys(c);for(let K of T){let be=c[K];if(be&&Ho(t,be)){S=K;break}}let C=Ho(t,d),w=Q9(t,d);w||(w=We(t,X3)),w||(w=We(t,n.blockUrls));let A=Q9(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),M=Object.keys(p),B={};for(let K of M){let be=p[K];if(be&&be.matches)for(let rt of be.matches)B[rt]=K}let P=Object.keys(B),_=wp(t,P);_&&(i=B[_]??"auto",B[_]&&B[_]!=="auto"&&nr(B[_]));let L=a.hostname,O=await jn(L),I=a.pathname+a.search+a.hash,j=await jn(I),W=`https://${O}.com/${j}`,ne=await Yt(),Ee=await _c(),ve=n.translationStartMode,N=SL(ne,n);ne.aiAssistants=TL(N,n),ve==="dynamic"&&f&&(ve="immediate");let z=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let De=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(De=n.subtitleTranslateService);let me=await dt.get(ct,null),He=!1;me&&(He=ft(me));let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:z,mouseHoverTranslationService:Y,subtitleTranslateService:De,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ne};me&&(pe.user=me,He?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(K=>!pe.config.generalRule.bodyTranslateTags.includes(K)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let ce=n.translationServices[pe.translationService]||{};ce.immediateTranslationTextCount!==void 0&&xL(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),pe.translationService==="deepl"&&(ce&&ce.authKey&&ce.authKey.startsWith("immersive_")||ce&&ce.provider==="pro"&&pe.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(pe.state.translationDebounce=ce.translationDebounce);let ge=Ee.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Ce;globalThis.PDFViewerApplication?Ce=fe.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Ce=fe.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Ce=fe.find(K=>K.pageType=="ebookBuilder"):Ce=fe.find(K=>Ho(t,K)),Ce&&Ce.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Ce&&(pe.rule=Rc(Ue,Ce)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(K=>!pe.rule.bodyTranslateTags.includes(K)&&!pe.rule.forceTranslateTags.includes(K))),pe.rule.mainFrameSelector){let K=document.querySelector(pe.rule.mainFrameSelector);K&&(pe.mainFrame=K)}return pe}function Ho(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&cc(i)?!1:!!(a&&a.length>0&&cc(a))}function Q9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&cc(r))}function xL(e){return typeof e=="number"}function SL(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function TL(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=sy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function Z9(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!jo.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||jo.get(r)||r,target:jo.get(a)||a})):u.body=JSON.stringify({text:s,source:jo.get(r),target:jo.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},z9=ug;var cL={lang:"en"};function lg(e){let t=Object.assign({},cL,e),[n,r]=G(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Me(n,i,o)}}var dL=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--dL,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var cg=xo(null),Uo=e=>{let{t,setLang:n,lang:r}=lg({lang:e.lang});return v(cg.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return xc(cg)}function V9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Rr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=mL(e,a)),i||(i=pL(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function mL(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=mg({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function pL(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function mg(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function K9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function u0(e,t,n){n=n||await In();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&W9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&W9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await un();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await ha(n),await Gr(i)}catch{return!1}return a}async function Y9(){return(await In()).aiAssistants||[]}async function gL(e,t){(await Promise.allSettled(e.map(r=>K({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&u0("add",a,t)}})}async function fL(e,t,n=!0){e||(e=await qt()),t||(t=await In());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await yL();i=await bL(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&gL(o,t)}var ba=Ln(fL,1500);function W9(e){return qa(js(),e.extensionVersion)}function hL(e,t){return t?!qa(e.version,t):!1}function bL(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{hL(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function yL(){return(await K({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var vL=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function J9(e,t,n,r,a){let i={...t},o=mg(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,K9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=V9(i,i.langOverrides,n),o||vL.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function Sn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Ho(t,o),f=Ho(t,g),y=s,x=Object.keys(u);for(let V of x){let be=u[V];if(Ho(t,be)){y=V;break}}let S=l,T=Object.keys(c);for(let V of T){let be=c[V];if(be&&Ho(t,be)){S=V;break}}let C=Ho(t,d),w=Q9(t,d);w||(w=We(t,X3)),w||(w=We(t,n.blockUrls));let A=Q9(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),M=Object.keys(p),B={};for(let V of M){let be=p[V];if(be&&be.matches)for(let rt of be.matches)B[rt]=V}let P=Object.keys(B),_=wp(t,P);_&&(i=B[_]??"auto",B[_]&&B[_]!=="auto"&&rr(B[_]));let L=a.hostname,O=await Un(L),I=a.pathname+a.search+a.hash,j=await Un(I),W=`https://${O}.com/${j}`,ne=await Yt(),Ee=await _c(),ve=n.translationStartMode,N=SL(ne,n);ne.aiAssistants=TL(N,n),ve==="dynamic"&&f&&(ve="immediate");let z=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let De=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(De=n.subtitleTranslateService);let me=await dt.get(ct,null),He=!1;me&&(He=ft(me));let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:z,mouseHoverTranslationService:Y,subtitleTranslateService:De,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ne};me&&(pe.user=me,He?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(V=>!pe.config.generalRule.bodyTranslateTags.includes(V)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(V=>V!==".btn"));let ce=n.translationServices[pe.translationService]||{};ce.immediateTranslationTextCount!==void 0&&xL(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),pe.translationService==="deepl"&&(ce&&ce.authKey&&ce.authKey.startsWith("immersive_")||ce&&ce.provider==="pro"&&pe.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(pe.state.translationDebounce=ce.translationDebounce);let ge=Ee.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,Ce;globalThis.PDFViewerApplication?Ce=fe.find(V=>V.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Ce=fe.find(V=>V.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Ce=fe.find(V=>V.pageType=="ebookBuilder"):Ce=fe.find(V=>Ho(t,V)),Ce&&Ce.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(Ce&&(pe.rule=Rc(Ue,Ce)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(V=>!pe.rule.bodyTranslateTags.includes(V)&&!pe.rule.forceTranslateTags.includes(V))),pe.rule.mainFrameSelector){let V=document.querySelector(pe.rule.mainFrameSelector);V&&(pe.mainFrame=V)}return pe}function Ho(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&cc(i)?!1:!!(a&&a.length>0&&cc(a))}function Q9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&cc(r))}function xL(e){return typeof e=="number"}function SL(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function TL(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=sy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function Z9(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var pg=class extends Ae{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` @@ -5890,20 +5890,20 @@ Translate the content to {{to}} Language: %% `;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let d=i?.sourceProgram,m=["subtitle","videoSubtitle"].includes(d),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),m&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let g="",h="",b=s.includes("{{json}}"),f=s.includes("{{yaml}}");if(Tc(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",b){let A=[],D=c.imt_json_item||"";m&&(D=c.imt_subtitle_json_item||D);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?g:M=="yaml"?h:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await V(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`)}s=w(s);let y=w(this.systemPrompt),x=await this.handleOptions(y,s,t);k.debug("request options",x),k.debug("request body",x.body);let S=await this.rawRequest(x),T=this.parseResponse(S),C=await this.interceptResponse(T,{...t,text:p});if(C.handled)return{from:r,to:a,text:C.result||""};if(T=this.filterContent(n,T,s,p),k.debug("filterContent after",T),T&&(T=CL(n,T),T=ob(T)),!b&&!f||!T)return{from:r,to:a,text:T||n};try{let A={};if(b){k.debug("extractValidJson before",T);let B=this.extractValidJson(T);k.debug("parse before",T),A=ml.parse(B)}else if(f){k.debug("parseYAML before",T);let B=this.extractValidYaml(T);A=Z9(B)}let D=c.imt_trans_field;m&&(D=c.imt_sub_trans_field||D);let M=c.imt_source_field;return m&&(M=c.imt_sub_source_field||M),T=this.restoreText(p,A,D,this.translationTextSeparator,M),{from:r,to:a,text:T}}catch(A){return k.error("parse response failed",T,A),{from:r,to:a,text:T}}function w(A){return A.replace(/{{(.+?)}}/g,(D,M)=>M==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?g:M=="yaml"?h:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return tr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Za=pg;function CL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var wL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],X9=new Map(wL),gg=class extends Za{static langMap=X9;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=ut+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=vt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return X9}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return tr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!No.langMap.has(n.to)||!No.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new No(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},$9=gg;function ln(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function EL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xa(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function e6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function zo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var t6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?ln(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?ln(m):m,e6(o(zo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?ln(m):m,p=r?ln(p):p,g=zo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(zo(p)),512+p.length*8),e6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(ya(c)),512+c.length*8),qo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=x(A,S.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return C=x(D.concat(ya(T)),512+T.length*8),qo(x(M.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,B,P,_,L,O,I,j,W,ne;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,I=0;I32&&(S=s(S,b.length*8));x<32;x+=1)T[x]=S[x]^909522486,C[x]=S[x]^1549556828;return y=s(T.concat(ya(f)),1024+f.length*8),qo(s(C.concat(y),1024+512))}function s(b,f){var y,x,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),B=new u(0,0),P=new u(0,0),_=new u(0,0),L=new u(0,0),O=new u(0,0),I=new u(0,0),j=new u(0,0),W=new u(0,0),ne=new u(0,0),Ee=new u(0,0),ve=new u(0,0),N=new u(0,0),z=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)T[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(x>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=x&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,x,S){var T=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|A<<16}function h(b,f,y,x,S,T){var C=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),D=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(T.h>>>16)+(A>>>16);b.l=C&65535|w<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Jr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Zr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Jr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Zr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?ln(h):h,c(d(zo(h),h.length*8))}function l(h,b){h=r?ln(h):h,b=r?ln(b):b;var f,y,x=zo(h),S=Array(16),T=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)S[f]=x[f]^909522486,T[f]=x[f]^1549556828;return y=d(S.concat(zo(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,S,T=1732584193,C=4023233417,w=2562383102,A=271733878,D=3285377520,M,B,P,_,L,O,I,j,W,ne;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new t6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await V({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var AL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},hg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(fg).sort().join(`&${r}=`)}`:`${r}=${fg(n)}`}).filter(t=>t).join("&"),Wo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,hg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await jn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Bo(await rr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Za=pg;function CL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var wL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],X9=new Map(wL),gg=class extends Za{static langMap=X9;provider="custom";immersiveApiUrl=`https://openai-api.${nn}/v1/chat/completions`;immersiveProApiUrl=ut+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=vt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return X9}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return nr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!No.langMap.has(n.to)||!No.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new No(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},$9=gg;function ln(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function EL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Te(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Xa(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function qo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function e6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function zo(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var t6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?ln(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?ln(m):m,e6(o(zo(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?ln(m):m,p=r?ln(p):p,g=zo(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(zo(p)),512+p.length*8),e6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(ya(c)),512+c.length*8),qo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=x(A,S.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return C=x(D.concat(ya(T)),512+T.length*8),qo(x(M.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,B,P,_,L,O,I,j,W,ne;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,I=0;I32&&(S=s(S,b.length*8));x<32;x+=1)T[x]=S[x]^909522486,C[x]=S[x]^1549556828;return y=s(T.concat(ya(f)),1024+f.length*8),qo(s(C.concat(y),1024+512))}function s(b,f){var y,x,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),B=new u(0,0),P=new u(0,0),_=new u(0,0),L=new u(0,0),O=new u(0,0),I=new u(0,0),j=new u(0,0),W=new u(0,0),ne=new u(0,0),Ee=new u(0,0),ve=new u(0,0),N=new u(0,0),z=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)T[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(x>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=x&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,x,S){var T=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(C>>>16),A=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|A<<16}function h(b,f,y,x,S,T){var C=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),A=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),D=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(T.h>>>16)+(A>>>16);b.l=C&65535|w<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Jr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Zr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Jr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Zr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?ln(h):h,c(d(zo(h),h.length*8))}function l(h,b){h=r?ln(h):h,b=r?ln(b):b;var f,y,x=zo(h),S=Array(16),T=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)S[f]=x[f]^909522486,T[f]=x[f]^1549556828;return y=d(S.concat(zo(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,S,T=1732584193,C=4023233417,w=2562383102,A=271733878,D=3285377520,M,B,P,_,L,O,I,j,W,ne;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new t6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var AL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},hg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(fg).sort().join(`&${r}=`)}`:`${r}=${fg(n)}`}).filter(t=>t).join("&"),Wo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,hg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await Un(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Bo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=hg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new U(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await jn(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(hg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return AL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await rr(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await rr(r,i),s=await rr(a,o);return rr(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var r6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],bg=new Map(r6),kL=new Map(r6.map(([e,t])=>[t,e])),yg=class extends Ae{static langMap=bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Wo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await V({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=bg.get(r),o={TargetLanguage:bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Wo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await V({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=kL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},a6=yg;var i6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],vg=new Map(i6),DL=new Map(i6.map(([e,t])=>[t,e])),gu=class extends Ae{static langMap=vg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=vg.get(r)||"detect",o=vg.get(a)||a,u=await V({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=DL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var LL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],xg=new Map(LL),fu=class extends Ae{static langMap=xg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:xg.get(r)||r,target_lang:xg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await V({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:rg(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var o6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Sg=new Map(o6),ML=new Map(o6.map(([e,t])=>[t,e])),Tg=class extends Ae{static langMap=Sg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=tr(a+o+n+i);this.domain&&(l=tr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Sg.get(s)||"auto",to:Sg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await V({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:ML.get(g)||g,to:u,text:h.join(` -`)}}},s6=Tg;var Ii=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?PL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function PL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var u6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Cg=class extends Ii{static langMap=new Map(u6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:u6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},l6=Cg;var RL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(RL),wg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await V({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},c6=wg;var d6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Eg=new Map(d6),FL=new Map(d6.map(([e,t])=>[t,e]));function BL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Ag=class extends Ae{static langMap=Eg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=IL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+BL(n)+i+o+this.appSecret,u=await jn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Eg.get(r)||"auto",to:Eg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await V({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:FL.get(g),to:a}}};function IL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Dg=class extends Ae{static langMap=kg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:kg.get(r)||"auto",to:kg.get(a)||a},o=new URLSearchParams(i),s=await V({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},g6=Dg;var hu=class extends Ii{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ro,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Lg=class extends Za{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Lg;var f6=R+"-gemini-fake-user-key",_L=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],h6=new Map(_L),Mg=class extends c0{static langMap=h6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ut+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return h6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ti(f6,""),this.fakeId||(this.fakeId=OL(10),await Ci(f6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function OL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Vr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Rg.get(r)+"-"}${Rg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await V({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var UL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],x6=new Map(UL),yu=class extends Za{static langMap=x6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(wm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Vr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return x6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(i0(wm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var HL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],S6=new Map(HL),Un=class extends Za{static langMap=S6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return S6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends Un{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await rr(t,"TC3"+this.secret_key),a=await rr(this.service,r),i=await rr("tc3_request",a),o=await rr(n,i);return Bo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await jn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Un(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(hg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return AL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var r6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],bg=new Map(r6),kL=new Map(r6.map(([e,t])=>[t,e])),yg=class extends Ae{static langMap=bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Wo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=bg.get(r),o={TargetLanguage:bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Wo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=kL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},a6=yg;var i6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],vg=new Map(i6),DL=new Map(i6.map(([e,t])=>[t,e])),gu=class extends Ae{static langMap=vg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=vg.get(r)||"detect",o=vg.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=DL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var LL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],xg=new Map(LL),fu=class extends Ae{static langMap=xg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:xg.get(r)||r,target_lang:xg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:rg(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var o6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Sg=new Map(o6),ML=new Map(o6.map(([e,t])=>[t,e])),Tg=class extends Ae{static langMap=Sg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=nr(a+o+n+i);this.domain&&(l=nr(a+o+n+this.domain+i));let c=new URLSearchParams({from:Sg.get(s)||"auto",to:Sg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:ML.get(g)||g,to:u,text:h.join(` +`)}}},s6=Tg;var Ii=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ys(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?PL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return fa.detectLanguageRemotelyByTransmart(t)}};function PL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var u6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Cg=class extends Ii{static langMap=new Map(u6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:u6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},l6=Cg;var RL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(RL),wg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},c6=wg;var d6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Eg=new Map(d6),FL=new Map(d6.map(([e,t])=>[t,e]));function BL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Ag=class extends Ae{static langMap=Eg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=IL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+BL(n)+i+o+this.appSecret,u=await Un(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Eg.get(r)||"auto",to:Eg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` +`),from:FL.get(g),to:a}}};function IL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Dg=class extends Ae{static langMap=kg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:kg.get(r)||"auto",to:kg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},g6=Dg;var hu=class extends Ii{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ro,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Lg=class extends Za{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=vt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Lg;var f6=R+"-gemini-fake-user-key",_L=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],h6=new Map(_L),Mg=class extends c0{static langMap=h6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ut+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return h6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ti(f6,""),this.fakeId||(this.fakeId=OL(10),await Ci(f6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function OL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Rg.get(r)+"-"}${Rg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var UL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],x6=new Map(UL),yu=class extends Za{static langMap=x6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(wm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return x6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(i0(wm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var HL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],S6=new Map(HL),Hn=class extends Za{static langMap=S6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=vt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return S6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends Hn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return Bo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Un(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await jn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await Un(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5911,7 +5911,7 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var m0=class extends Un{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(k3,async()=>{let t=await Vr({responseType:"json",url:`${ut}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Fg=["glm-4-flash"],p0=class extends Un{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Fg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Fg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(D3,async()=>{let t=await Vr({responseType:"json",url:`${ut}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Pr.langMap.has(n.to)||!Pr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Pr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Fg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:_o,mock2:_o,custom:hu,google:cu,transmart:du,deepl:No,volc:a6,volcAlpha:gu,bing:Pr,tencent:uu,tenAlpha:lu,baidu:s6,caiyun:l6,cai:c6,openl:n0,youdao:m6,you:g6,d:Io,dpro:Io,deeplx:fu,niu:H9,azure:q9,openai:$9,gemini:b6,claude:v6,papago:z9,aliyun:pu,yandex:bu,qianfan:yu,"custom-ai":Un,deepseek:Un,"aliyun-bailian":Un,doubao:Un,hunyuan:d0,siliconcloud:m0,lingyiwanwu:Un,zhipu:p0};globalThis.TranslationServicesClass=g0;var $a={};Object.keys(Ar).forEach(e=>{$a[e]={...Ar[e],class:g0[e]}});function f0(e,t){let n=Zn;if($a[e]&&$a[e].class&&$a[e].class.langMap&&$a[e].class.langMap.size>0){let r=$a[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Zn}async function $r(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function T6(e,t){for(let n of e)try{return await $r({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Bg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new $a[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function qL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),ba(a,t.localConfig,!1),d=J9(m,d,{sourceLanguage:qL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=zL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,S=ft(t.user),T;try{T=new $a[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of b){let B=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(B,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){x++;let D=l;l==="openl"&&(D=l+"-"+d.codename||n0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let B=null;try{B=await ll(Gy({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(B){let P={...A,text:B.translatedText};f.sentences[x]=P,n&&n(null,P,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let B=l;l==="openl"&&(B=l+"-"+d.codename||n0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(B=P+"-"+B),o.cache&&ll(Ky({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:tr(M.text),service:B}),3e3).catch(_=>{k.warn("set cache DB error",_)})}});for(let A of w?.sentences||[]){let D=f.sentences.findIndex(M=>!M);if(D===-1)throw new U("translateFailed","can not match the result");f.sentences[D]=A}return f}function zL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var WL=1e5;async function va(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GL(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:A,onFrame:D,onIgnoreElement:M,id:B,isLongHtml:P}=w,_=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let j=O(I);return j==NodeFilter.FILTER_ACCEPT?ht.mark(I,B,p):$L(I,j,r)&&x(),j}),L=A;if(O(L)===NodeFilter.FILTER_REJECT)return;for(ht.mark(L,B,p);L;){if(i?.interruptEffectDOM)return;let I=Date.now()-t;if(I>50&&(k.debug("taskTime",I),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:W}=y(_,L,u);if(j)L=j;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){D&&D(j),x(),Ig(g,!0),L=_.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&_g(j,s),d&&Ng(j,d));let W=Ur(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),Et(j,o)&&!W){S(j);let ve=null;for(;!(ve=_.nextSibling())&&_.parentNode(););L=ve;continue}let ne=Di(j);if(!C6(g,j)||W){x(j);let ve=W?j:j.parentElement;ve&&ve.childNodes.length>0&&T(g,ve,ve.immersiveTranslateComputedStyle||null)}ne&&j.shadowRoot?.mode==="open"&&(W?D?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&Et(j,r.likePreSelectors)&&l&&(P||QL(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=_.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function O(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Li(I)){if(d){let Ee=Object.keys(d);if(Ee.length>0&&Et(I,Ee))for(let N of Ee){let z=d[N];if(I.matches(N)){let Y=d[N],De=Object.keys(Y);for(let me of De){let He=Y[me];I.getAttribute(me)!==He&&(He===null?I.removeAttribute(me):I.setAttribute(me,He))}break}}}if(!w.force&&ht.isMarked(I,B)||Zb(I,B)||h0(I,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||I.nodeName==="IFRAME"&&!_a(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let Ee=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=Ee,Og(Ee))return M&&M(I),NodeFilter.FILTER_REJECT;let ve=Ur(I,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Ee||null);if(I.isBlock=ve,Et(I,o)&&ve)return NodeFilter.FILTER_REJECT}let j=I.getBoundingClientRect(),{width:W,height:ne}=j;return I.nodeName==="IMG"&&(W>48&&ne>48?I.immersiveTranslateComputedStyle={display:"block"}:W>0&&ne>0&&m!==!1&&(I.setAttribute("width",W),I.setAttribute("height",ne))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(W>0&&W<4||ne>0&&ne<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let j=I.textContent?.trim();if(!j)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=I.parentNode;if(W.getBoundingClientRect){let{width:ne,height:Ee}=W.getBoundingClientRect();if(ne>0&&ne<4||Ee>0&&Ee<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JL(I,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){k.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(w,A,D){let M=A.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(A))if(h=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};return{currentNode:A,isMatchedSelection:!0}}function x(w){let A=g.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let P=g.flatNodes[M]?.textContent?.trim()||"";if(!P||new RegExp(r.skipTrailTextRegex).test(P)){g.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eM(w,r);let M=[...g.flatNodes],B=g.flatNodes.filter(P=>w.parentNode?.contains(P));B.length>0&&M.length!=B.length&&(g.flatNodes=B,g.flatNodes.original=M)}let D=YL(g,a,r);D&&n&&n(D),Ig(g)}function S(w){if(!C6(g,w)){x(),Ig(g);let A=w.parentNode;A&&T(g,A,A.computedStyle)}g.flatNodes.push(w)}function T(w,A,D){w.commonAncestorContainer=A;let M=C(D);w.isPreWhitespace=M}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function C6(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Di(t));let r=VL(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GL(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function KL(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _g(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function VL(e){return e&&e._currentStacks?e._currentStacks.some(t=>Di(t)):!1}function YL(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Dc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=KL(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WL){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:ny(o)}}else return null}function Ig(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function Og(e){return e.display==="none"}var ht={_marked_key:j3,isMarked(e,t){return fp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return J2(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Di(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QL(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function JL(e,t,n){let r=e.textContent||"",a=ey(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=H2(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function E6(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),d=e.querySelector(u);if(d)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let h=d.innerText||d.textContent||"";if(!h.trim()||XL(d,a,i,o)||!z2(h,n,r))continue}d.getAttribute(m)!==p&&(p===null?d.removeAttribute(m):d.setAttribute(m,p))}}}function Ng(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function h0(e,t){return ZL(e,t.excludeSelectorsRegexes)?!0:Et(e,t.excludeSelectors||[])?Et(e,t.selectors||[])?!1:!Et(e,t.stayOriginalSelectors||[]):!1}function ZL(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!Et(e,[r]))continue;if(Ac(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function vu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return Et(e,t.concat(n))}function XL(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&h0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(fo(o,t,n))return!0}}return!1}function $L(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ur(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eM(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ur(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function A6(e,t,n,r,a){let i=t,o=J3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${R}-theme-${i}-${d}: ${m}; +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var m0=class extends Hn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(k3,async()=>{let t=await Kr({responseType:"json",url:`${ut}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Fg=["glm-4-flash"],p0=class extends Hn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Fg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Fg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await kr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(D3,async()=>{let t=await Kr({responseType:"json",url:`${ut}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Pr.langMap.has(n.to)||!Pr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Pr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Fg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:_o,mock2:_o,custom:hu,google:cu,transmart:du,deepl:No,volc:a6,volcAlpha:gu,bing:Pr,tencent:uu,tenAlpha:lu,baidu:s6,caiyun:l6,cai:c6,openl:n0,youdao:m6,you:g6,d:Io,dpro:Io,deeplx:fu,niu:H9,azure:q9,openai:$9,gemini:b6,claude:v6,papago:z9,aliyun:pu,yandex:bu,qianfan:yu,"custom-ai":Hn,deepseek:Hn,"aliyun-bailian":Hn,doubao:Hn,hunyuan:d0,siliconcloud:m0,lingyiwanwu:Hn,zhipu:p0};globalThis.TranslationServicesClass=g0;var $a={};Object.keys(Ar).forEach(e=>{$a[e]={...Ar[e],class:g0[e]}});function f0(e,t){let n=Xn;if($a[e]&&$a[e].class&&$a[e].class.langMap&&$a[e].class.langMap.size>0){let r=$a[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function $r(e,t,n){if(!e.text)return e;let r=null,a=await Qt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function T6(e,t){for(let n of e)try{return await $r({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Bg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new $a[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function qL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Qt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),ba(a,t.localConfig,!1),d=J9(m,d,{sourceLanguage:qL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=zL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,S=ft(t.user),T;try{T=new $a[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of b){let B=A instanceof U?new U(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(B,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){x++;let D=l;l==="openl"&&(D=l+"-"+d.codename||n0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let B=null;try{B=await ll(Gy({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(P){k.warn("query cache DB error, but it's ok",P)}if(B){let P={...A,text:B.translatedText};f.sentences[x]=P,n&&n(null,P,A)}else b.push(A)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&k.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let B=l;l==="openl"&&(B=l+"-"+d.codename||n0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(B=P+"-"+B),o.cache&&ll(Vy({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:nr(M.text),service:B}),3e3).catch(_=>{k.warn("set cache DB error",_)})}});for(let A of w?.sentences||[]){let D=f.sentences.findIndex(M=>!M);if(D===-1)throw new U("translateFailed","can not match the result");f.sentences[D]=A}return f}function zL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var WL=1e5;async function va(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GL(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:A,onFrame:D,onIgnoreElement:M,id:B,isLongHtml:P}=w,_=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let j=O(I);return j==NodeFilter.FILTER_ACCEPT?ht.mark(I,B,p):$L(I,j,r)&&x(),j}),L=A;if(O(L)===NodeFilter.FILTER_REJECT)return;for(ht.mark(L,B,p);L;){if(i?.interruptEffectDOM)return;let I=Date.now()-t;if(I>50&&(k.debug("taskTime",I),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:W}=y(_,L,u);if(j)L=j;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){D&&D(j),x(),Ig(g,!0),L=_.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&_g(j,s),d&&Ng(j,d));let W=Ur(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),Et(j,o)&&!W){S(j);let ve=null;for(;!(ve=_.nextSibling())&&_.parentNode(););L=ve;continue}let ne=Di(j);if(!C6(g,j)||W){x(j);let ve=W?j:j.parentElement;ve&&ve.childNodes.length>0&&T(g,ve,ve.immersiveTranslateComputedStyle||null)}ne&&j.shadowRoot?.mode==="open"&&(W?D?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&Et(j,r.likePreSelectors)&&l&&(P||QL(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=_.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function O(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Li(I)){if(d){let Ee=Object.keys(d);if(Ee.length>0&&Et(I,Ee))for(let N of Ee){let z=d[N];if(I.matches(N)){let Y=d[N],De=Object.keys(Y);for(let me of De){let He=Y[me];I.getAttribute(me)!==He&&(He===null?I.removeAttribute(me):I.setAttribute(me,He))}break}}}if(!w.force&&ht.isMarked(I,B)||Zb(I,B)||h0(I,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||I.nodeName==="IFRAME"&&!_a(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let Ee=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=Ee,Og(Ee))return M&&M(I),NodeFilter.FILTER_REJECT;let ve=Ur(I,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Ee||null);if(I.isBlock=ve,Et(I,o)&&ve)return NodeFilter.FILTER_REJECT}let j=I.getBoundingClientRect(),{width:W,height:ne}=j;return I.nodeName==="IMG"&&(W>48&&ne>48?I.immersiveTranslateComputedStyle={display:"block"}:W>0&&ne>0&&m!==!1&&(I.setAttribute("width",W),I.setAttribute("height",ne))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(W>0&&W<4||ne>0&&ne<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let j=I.textContent?.trim();if(!j)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=I.parentNode;if(W.getBoundingClientRect){let{width:ne,height:Ee}=W.getBoundingClientRect();if(ne>0&&ne<4||Ee>0&&Ee<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JL(I,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){k.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(w,A,D){let M=A.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(A))if(h=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(vu(A,D))h=!0,b=A,x(),T(g,b,M);else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:h};return{currentNode:A,isMatchedSelection:!0}}function x(w){let A=g.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let P=g.flatNodes[M]?.textContent?.trim()||"";if(!P||new RegExp(r.skipTrailTextRegex).test(P)){g.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eM(w,r);let M=[...g.flatNodes],B=g.flatNodes.filter(P=>w.parentNode?.contains(P));B.length>0&&M.length!=B.length&&(g.flatNodes=B,g.flatNodes.original=M)}let D=YL(g,a,r);D&&n&&n(D),Ig(g)}function S(w){if(!C6(g,w)){x(),Ig(g);let A=w.parentNode;A&&T(g,A,A.computedStyle)}g.flatNodes.push(w)}function T(w,A,D){w.commonAncestorContainer=A;let M=C(D);w.isPreWhitespace=M}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function C6(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Di(t));let r=KL(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GL(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VL(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _g(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KL(e){return e&&e._currentStacks?e._currentStacks.some(t=>Di(t)):!1}function YL(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Dc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VL(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WL){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:ny(o)}}else return null}function Ig(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function Og(e){return e.display==="none"}var ht={_marked_key:j3,isMarked(e,t){return fp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return J2(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Di(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Di(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QL(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=jn?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function JL(e,t,n){let r=e.textContent||"",a=ey(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=H2(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function E6(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||XL(p,a,i,o)||!z2(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function Ng(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function h0(e,t){return ZL(e,t.excludeSelectorsRegexes)?!0:Et(e,t.excludeSelectors||[])?Et(e,t.selectors||[])?!1:!Et(e,t.stayOriginalSelectors||[]):!1}function ZL(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!Et(e,[r]))continue;if(Ac(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function vu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return Et(e,t.concat(n))}function XL(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&h0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(fo(o,t,n))return!0}}return!1}function $L(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Ur(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eM(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Ur(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function A6(e,t,n,r,a){let i=t,o=J3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${R}-theme-${i}-${d}: ${m}; `,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=X2(m);s+=`--${R}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${R}-target-inner { font-family: ${r}; } @@ -5930,11 +5930,11 @@ ${s}} `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` `+t.rule.additionalInjectedCss)),s&&fn(e,s,R+"-dynamic-injected-css")}async function k6(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:ho(document.body),pageLangs:t})),e}function jg(e,t,n=[],r){let a=["notranslate"];return r&&a.push(Q3),e&&(a.push(`${R}-target-translation-theme-${e}`),t?a.push(`${Rm}-theme-${e}`):a.push(`${Pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Rm):a.push(Pm),a}function Ug(e){let t=["notranslate",Il];return e&&t.push(`${R}-target-translation-theme-${e}-inner`),t}function D6(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=ki(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),C=f[T-1]===" ",w=f[T+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),M=Number(D);if(isNaN(M))return S;let B=o[M];if(B&&B.type==="element"){let P=Ze.sanitize(B.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(P=" "+P),w||(P=P+" "),P}else k.error("variable type not supported",B,S);return S}));let y=jg(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(Y3);let x=Ug(i);return Hg({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:x,classList:y,html:f,targetElementEffectAttributeName:no,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function b0(e,t,n,r,a){let i=t.original||t,o=Nb(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function L6(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function M6(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=Ze.sanitize(Cc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=qb(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=ki(t);if(c.length>2){let d=c[2];return tM({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=D6(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function qg(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tM(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),S=p[x-1]===" ",T=p[x+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],A=Number(w);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let M=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return S||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,y);return y}));let b=jg(l,n,r||[],s),f=Ug(l);return Hg({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:no,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Hg({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function zg(e){let t=e[e.length-1];return t?t.text:""}function P6(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Sl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nM(u.content,t),n&&(r=F6(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:ry(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function R6(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function nM(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rM(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return Dc(i,document.body,t)}function rM(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function F6(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(Bl)||Wg(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var xu="";async function Wg(e){let t=document.title;if(!t||t.includes(Bl))return;xu!==t&&(xu=t);let n=await Ie({text:t,pageLangs:[mt(),"en"]});if(!Co(e,n))try{let r=await $r({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=xu,document.title=r.text+Bl+xu)}catch(r){throw r}}function I6(e){e.rule.isTranslateTitle&&(document.title=xu)}function Ko(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function y0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Pp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=ki(t);if(c.length>2){let d=c[2];return tM({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=D6(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function qg(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tM(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),S=p[x-1]===" ",T=p[x+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],A=Number(w);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let M=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return S||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,y);return y}));let b=jg(l,n,r||[],s),f=Ug(l);return Hg({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:no,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Hg({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function zg(e){let t=e[e.length-1];return t?t.text:""}function P6(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Sl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nM(u.content,t),n&&(r=F6(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:ry(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function R6(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function nM(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rM(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return Dc(i,document.body,t)}function rM(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function F6(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(Bl)||Wg(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var xu="";async function Wg(e){let t=document.title;if(!t||t.includes(Bl))return;xu!==t&&(xu=t);let n=await Ie({text:t,pageLangs:[mt(),"en"]});if(!Co(e,n))try{let r=await $r({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=xu,document.title=r.text+Bl+xu)}catch(r){throw r}}function I6(e){e.rule.isTranslateTitle&&(document.title=xu)}function Vo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function y0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Pp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} ${r.innerHTML}`}catch{return""}}function _6(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Pp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${R}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function v0(e){let t=Kb(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function cn(e){let t=e.rule;e.isRichTranslate&&(t=Ap(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aM={sanitize:e=>e};async function Yg(e,t){if(e.interruptEffectDOM)return;let n=cn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Oi.bind(null,e),onFrame:r=>{Gg(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Ji&&wt(t,"consumeContainer",e.id)}function Gg(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!_a(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Pl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,qr(t.contentWindow?.document.documentElement,e.translateState),xa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),xa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function xa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=cn(t.ctx),o=0;if(l(t,e,n))return;if(Li(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Li(d)&&(a&&_g(d,a),i&&Ng(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await Yg(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else Ji&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Gg(t,c.shadowRoot,n),!1;if(d==="iframe")return Gg(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vu(c,m.selectors);if(m.containerSelectors&&vu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ke()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){R6(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=cn(c.ctx);return!!(h0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||Et(d,g.skipBuildContainerSelectors)||Et(d,g.stayOriginalSelectors))}}function Su(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&_i(t.rootNodes),r=="original"&&n=="translation"){let s=Vo(e,t.rootNodes);if(Kg(s))return;ei(e,s,a,t.targetNodes||[]),_i(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Vo(e,t.targetNodes,s);ei(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Vo(e,t.rootNodes);if(Kg(s))return;ei(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Vo(e,t.targetNodes);ei(e,s,a,t.rootNodes||[]),_i(t.targetNodes)}r=="dual"&&n=="original"&&_i(t.targetNodes),Zg(t)}catch(s){k.error(s)}}}function Kg(e){return!e||!Li(e)?!1:e.classList.contains(Dt)}function Vo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function _i(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ei(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iM=Vn(x0,300);async function Oi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ji&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=ki(i),u=i.config.translationServices[i.translationService],l=b0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:v0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Jg(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Hr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sM(e,t.text),Qg(e,t,r)):(Ji&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Li(t)&&t.classList.contains(Dt):!1}function sM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Qg(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Ji&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,U3,"1",!0),n=="hover"){x0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iM.call(e,e.ctx,a)}async function x0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=uM(e,u.toString());l&&lM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function uM(e,t){return e.find(n=>n.id===t)}function lM(e,t,n,r,a,i){let o=!1,s=r;wo(s.commonAncestorContainer,n.id)?.remove(),Zg(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Dt),m.setAttribute(no,"1");let p=M6(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Ko(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aM.sanitize(p);m.innerHTML=dr?.createHTML(g)||g,c.targetNodes=[m],Su(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,W3,m.toString()),p.classList.add("notranslate",Dt,Dt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Kg(g)||ei(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cM(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${R}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function v0(e){let t=Vb(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function cn(e){let t=e.rule;e.isRichTranslate&&(t=Ap(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aM={sanitize:e=>e};async function Yg(e,t){if(e.interruptEffectDOM)return;let n=cn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:Oi.bind(null,e),onFrame:r=>{Gg(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Ji&&wt(t,"consumeContainer",e.id)}function Gg(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!_a(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Pl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,qr(t.contentWindow?.document.documentElement,e.translateState),xa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),xa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function xa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=cn(t.ctx),o=0;if(l(t,e,n))return;if(Li(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Li(d)&&(a&&_g(d,a),i&&Ng(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await Yg(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else Ji&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Gg(t,c.shadowRoot,n),!1;if(d==="iframe")return Gg(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vu(c,m.selectors);if(m.containerSelectors&&vu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){R6(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=cn(c.ctx);return!!(h0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||Et(d,g.skipBuildContainerSelectors)||Et(d,g.stayOriginalSelectors))}}function Su(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&_i(t.rootNodes),r=="original"&&n=="translation"){let s=Ko(e,t.rootNodes);if(Vg(s))return;ei(e,s,a,t.targetNodes||[]),_i(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Ko(e,t.targetNodes,s);ei(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Ko(e,t.rootNodes);if(Vg(s))return;ei(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Ko(e,t.targetNodes);ei(e,s,a,t.rootNodes||[]),_i(t.targetNodes)}r=="dual"&&n=="original"&&_i(t.targetNodes),Zg(t)}catch(s){k.error(s)}}}function Vg(e){return!e||!Li(e)?!1:e.classList.contains(Dt)}function Ko(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function _i(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ei(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iM=Yn(x0,300);async function Oi(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ji&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=ki(i),u=i.config.translationServices[i.translationService],l=b0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:v0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Jg(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Hr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sM(e,t.text),Qg(e,t,r)):(Ji&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Li(t)&&t.classList.contains(Dt):!1}function sM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Qg(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Ji&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,U3,"1",!0),n=="hover"){x0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iM.call(e,e.ctx,a)}async function x0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Qt(a,t,(i,o,s)=>{let u=s.id,l=uM(e,u.toString());l&&lM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function uM(e,t){return e.find(n=>n.id===t)}function lM(e,t,n,r,a,i){let o=!1,s=r;wo(s.commonAncestorContainer,n.id)?.remove(),Zg(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Ot,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Dt),m.setAttribute(no,"1");let p=M6(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Vo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aM.sanitize(p);m.innerHTML=jn?.createHTML(g)||g,c.targetNodes=[m],Su(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,W3,m.toString()),p.classList.add("notranslate",Dt,Dt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Vg(g)||ei(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cM(a,c).replaceAll(` `,"").replaceAll('"',"""),b=c.message.replaceAll(` `,"").replaceAll('"',"""),f=Me(a.config.interfaceLanguage,"retryAllButton"),y=Me(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,x=Me(a.config.interfaceLanguage,"error.retry"),S=Me(a.config.interfaceLanguage,"error.reason"),T=`<${d.targetWrapperTag} class="${R}-error notranslate"> <${d.targetWrapperTag} class="${R}-error-wrapper"> @@ -5951,7 +5951,7 @@ ${s}} ${S}
- `;p.innerHTML=dr?.createHTML(T)||T}}}var O6="";async function Jg(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=O6.slice(0,e.rule?.detectTextBufferLength)+" "+o),O6=s;let u=await Ie({text:s,minLength:15,pageLangs:[mt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Eo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Eo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=zc();r.isDetectParagraphLanguage&&(m="auto");let p=mt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!dc.includes(e.translationService)&&(te()||at())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Oa(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Oa(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Tu(){Vg=0}var Vg=0;function cM(e,t){Vg+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),Vg!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(gn,{detail:r}))}return n}function Zg(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,dM(t,`[${H3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function dM(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}var mM=[];function N6(e){mM.push(e)}var Xg;function j6(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=cn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Cu(e,i,t,r)}),Xg=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||ef(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Cu(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Ur(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=ko(r,u.parentElement);c&&(ht.clearToParentMark(u,c),Cu(e,c,t,r));continue}Cu(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ht.isMarked(o,e.id)||Cu(e,o,t,r)})}),Xg.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Cu(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&$g(t),va({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Oi(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function U6(){Xg?.disconnect()}function Yo({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&fn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}ja(v(Uo,{lang:t.config.interfaceLanguage,children:v(n,{...r})}),d)}function Qo(e){return Jo(e).subtitles}function Jo(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?")||l.includes("< styles>")||iC(l)||tC(l)||aC(l)||nC(l)||rC(l)||eB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Od(i?.trim(),n,r)}function Ro(e){return e.nodeType===Node.ELEMENT_NODE}function Gv(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Kv(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ea(){return await Bt("fakeUserId","")}async function $F(){return await Bt("installedAt","")}async function Id(e,t){let r=we().INSTALL_FROM,a=On(),i=await $F(),o=await ea(),s=await Ze(),u=!1,l=await tt.get(mt,null),c=!1;l&&At(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await Fs(),g=await _s(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Bs();return f&&(p.abGroup=f),p}function ii(e,t){let[n,r]=N();return z(()=>{!e||!t||(async()=>{let a=await f4(e,t);r(a)})()},[e,t,r]),n}async function f4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Bt("installedAt","");new Date(o).getTime()s==n),a=b4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>gt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>gt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function b4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Qv(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function Jv(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Zv(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Rd[e]=setTimeout(()=>{n("")},t)})}function $v(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function ji(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Fd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function _i(){return Qf()?"imtAndroid":Sl()?"imtIOS":X()?"userscript":He()?"safari":Zn()?"firefox":N0()?"chrome":"other"}function La(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Bd(e){return e?.getAttribute("imt-state")||""}function Ma(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function _d(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(wr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function eC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}var Nd=!1,tB=X();function oC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function nB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&sC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qi(i,E0)){if(a===!0)return!0;continue}if(Rl(i.nodeName,t.inlineTags))return!0;if(!y4(i,t))return!1}}return!0}function v4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Rl(e.nodeName,n)||y4(e,t)){if(qi(e,L6)||Rl(e.nodeName,["BR"]))return!1;if(qi(e,E0))return!0;if(y4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return nB(e,t)}else return qi(e,E0);return!1}function sC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qi(e,D6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qi(e,v6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Rl(e.nodeName,i))}function Od(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!lC(r)&&r.length>=n}function uC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(lC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function lC(e){for(let t=0;t127)return!1;return!0}function tC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function nC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function rC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function aC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function iC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qi(e,t,n=!1){return C4(e,t,"1",n)}function C4(e,t,n,r=!1){return Nd&&!r?e[yr]?e[yr]?.[t]===n:!1:e.dataset?.[t]===n}function Ws(e){return(e.innerText||e.textContent||"").trim()}function x4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Ud(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Nd&&!r?(e[yr]||(e[yr]={}),e[yr][t]||(e[yr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function cC(e,t,n=!1){if(Nd&&!n){if(!e[yr]||!e[yr][t])return;delete e[yr][t]}else delete e.dataset[t]}function dC(e,t,n=!1){return Nd&&!n?!e[yr]||!e[yr][t]?void 0:e[yr][t]:e.dataset[t]}function y4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Rl(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!xt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function tr(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Hi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(tB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Rl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function mC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function gC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||sC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function pC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function fC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; -`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=mC(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function GF(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Rv(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Md(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function d4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Aa({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function js(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Hv(e,t){let n=t||e.translationService;return js(e,n,e.config.translationServices)?d4(e.rule):e.rule}function Pd(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var KF=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function ka(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Er(e,i))return!1;if(Er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Er(e,o)),c;function m(){return n&&n.display?!!KF.includes(n.display):Er(e,r)}}var qt=Er;function Mo(e){return!!e.shadowRoot}function Ni(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Ml(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Da(e,t=!1){let n=bs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Po(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Da(n,t)}function Hs(e,t){return ki(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function m4(e){let{rule:t}=e,n=YF(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function YF(e){let t=e.config.loadingTheme;return`${F}-loading-${t}`}function Pl(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Yt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,A6,t.toString());let i=m4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function qs(e,t){return e.querySelector(`[${lf}='${t}']`)}function qv(){document.querySelectorAll(`[${lf}]`).forEach(t=>{t.remove()})}function zv(){document.querySelectorAll(`.${Yt}-error`).forEach(t=>{t.remove()})}function Vv(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Hi(n)&&t.push(n)}),t}function g4(e,t){return t?QF(e):JF(e)}function QF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,h)=>{if(f=="id"&&u[h+2]=="=")return p;let y=l++;return t[`${y}`]=Wv(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=Ef(p),g.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function JF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,h)=>f.tl&&!h.tl?1:!f.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,h,y)=>{if(h=="id"&&l[y+2]=="=")return f;let b=c++;return t[`${b}`]=Wv(h,m),o.length>2?f.replace(h,`<${o[2]}${b}>`):f.replace(h,`${o[0]}${b}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let h=c++;return t[`${h}`]=Ef(f),o.length>2?p.replace(f,`<${o[2]}${h}>`):p.replace(f,`${o[0]}${h}${o[1]}`)})})}catch(m){D.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function p4(e,t){return t?ZF(e):XF(e)}function ZF(e){let{text:t,variables:n}=e,r=Pd(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function XF(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Wv(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function zs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||iC(l)||tC(l)||aC(l)||nC(l)||rC(l)||eB(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Od(i?.trim(),n,r)}function Ro(e){return e.nodeType===Node.ELEMENT_NODE}function Gv(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Kv(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ea(){return await Bt("fakeUserId","")}async function $F(){return await Bt("installedAt","")}async function Id(e,t){let r=we().INSTALL_FROM,a=On(),i=await $F(),o=await ea(),s=await Ze(),u=!1,l=await tt.get(mt,null),c=!1;l&&At(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await Fs(),g=await _s(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Bs();return f&&(p.abGroup=f),p}function ii(e,t){let[n,r]=N();return z(()=>{!e||!t||(async()=>{let a=await f4(e,t);r(a)})()},[e,t,r]),n}async function f4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!He()&&X()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Bt("installedAt","");new Date(o).getTime()s==n),a=b4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>gt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>gt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function b4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Qv(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function Jv(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Zv(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Rd[e]=setTimeout(()=>{n("")},t)})}function $v(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function ji(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Fd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function _i(){return Qf()?"imtAndroid":Sl()?"imtIOS":X()?"userscript":He()?"safari":Zn()?"firefox":N0()?"chrome":"other"}function La(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Bd(e){return e?.getAttribute("imt-state")||""}function Ma(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function _d(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function eC(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}var Nd=!1,tB=X();function oC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function nB(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&sC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qi(i,E0)){if(a===!0)return!0;continue}if(Rl(i.nodeName,t.inlineTags))return!0;if(!y4(i,t))return!1}}return!0}function v4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Rl(e.nodeName,n)||y4(e,t)){if(qi(e,L6)||Rl(e.nodeName,["BR"]))return!1;if(qi(e,E0))return!0;if(y4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return nB(e,t)}else return qi(e,E0);return!1}function sC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qi(e,D6,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qi(e,v6))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Rl(e.nodeName,i))}function Od(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!lC(r)&&r.length>=n}function uC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(lC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function lC(e){for(let t=0;t127)return!1;return!0}function tC(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function nC(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function rC(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function aC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function iC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qi(e,t,n=!1){return C4(e,t,"1",n)}function C4(e,t,n,r=!1){return Nd&&!r?e[vr]?e[vr]?.[t]===n:!1:e.dataset?.[t]===n}function Ws(e){return(e.innerText||e.textContent||"").trim()}function x4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Ud(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Nd&&!r?(e[vr]||(e[vr]={}),e[vr][t]||(e[vr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function cC(e,t,n=!1){if(Nd&&!n){if(!e[vr]||!e[vr][t])return;delete e[vr][t]}else delete e.dataset[t]}function dC(e,t,n=!1){return Nd&&!n?!e[vr]||!e[vr][t]?void 0:e[vr][t]:e.dataset[t]}function y4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Rl(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!xt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function tr(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Hi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(tB){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${F}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Rl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function mC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function gC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||sC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function pC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function fC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${F}-theme-${i}-${m}: ${g}; +`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:h}=mC(g);s+=`--${F}-theme-${i}-${m}-rgb: ${p}, ${f}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${F}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5835,10 +5835,10 @@ ${s}} `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&tr(e,s,F+"-dynamic-injected-css")}var rB=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--rB,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ne.vnode&&Ne.vnode(u),u}function S4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(ce,{children:n["#services"]}):a.test(e)?d(ce,{children:n["#ai"]}):d(ce,{children:n[e]!=null?n[e]:t})}function Io(){let[e,t]=N(location.hash);return z(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var jd=()=>or.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=wy[e]||e,i=Mf[e]||e,o=Pf[e],s=Rf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Pf,a="zh-CN"):n==="zh-TW"?(r=Rf,a="zh-TW"):(r=Mf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function T4(e){let t=j.runtime.getURL(c6),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Pa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return D.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=b0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function hC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${h0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function bC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Hd(e,t,n,r,a,i,o){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let s=new Pa(e);try{let u=(await s.findByName(b0)).files;D.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)D.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())D.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),Qu()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ti);if(t[Ti])return t[Ti]}static async removeAuthInfo(){return await j.storage.local.remove(Ti)}static setAuthInfo(t){return j.storage.local.set({[Ti]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await yC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=hC(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+r),Qu()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=bC(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{D.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var iB="https://www.googleapis.com/oauth2/v3/tokeninfo",oB=h0,sB=we().REDIRECT_URL;function yC(e){if(!e)throw"Authorization failure";let t=`${iB}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===oB?i(e):o("Token validation error")})})}return fetch(n).then(r)}function w4(e,t=!1){let n=sB;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Wi(e,n).auth(t)}function E4(e,t=!1){return w4(e,t).then(n=>n.access_token||null)}async function vC(){}var uB="https://www.google-analytics.com/mp/collect",lB=30,cB=100;async function dB(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>lB?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function CC(e){ry().forEach(({measurementId:t,apiSecret:n})=>{xC({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Ks(e,t,n){return xC({measurement_id:ty,api_secret:ny,page_title:e,page_location:t,time:n})}async function xC(e){try{let t=we(),n=Pi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Ii(),i=`${uB}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await dB(),engagement_time_msec:e.time||cB,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){D.error(t)}}var Il=new Map;function mB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function A4(e){let t=await hB(),n=Date.now();if(t){if(Il.has(e))return;let r=await j.tabs.get(e),a=mB(r.url);if(!a)return;Il.set(e,{duration:0,lastActiveTime:n,hostname:a});return}SC(e)}function SC(e){if(Il.has(e)){let t=Il.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Il.delete(e),pB(t.hostname,n)}}async function gB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function pB(e,t){Ks(`${e}(video)`,e,t),fB(t)}var qd="videoWatchTimeDay";async function fB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(qd,null);if(!a){await Je(qd,{day:r,time:e});return}if(a.day!==r){Ks("day-video."+et,"day-video."+et,a.time),await Je(qd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(qd,i)}catch(t){D.error(t)}}async function hB(){try{return await gB({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Bl=new Map;async function TC(e){let t=await k4(),n=Date.now();if(t=="Translated"){if(Bl.has(e))return;let r=await j.tabs.get(e),a=bB(r.url);if(!a)return;Bl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}yB(e)}function bB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function yB(e){if(Bl.has(e)){let t=Bl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Bl.delete(e),CB(t.hostname,n)}}async function vB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function CB(e,t){Ks(e,e,t),xB(t)}async function k4(){try{return await vB({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var zd="readTimeDay";async function xB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(zd,null);if(!a){await Je(zd,{day:r,time:e});return}if(a.day!==r){Ks("day."+et,"day."+et,a.time),await Je(zd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(zd,i)}catch(t){D.error(t)}}var Vd,SB=async function(e,t){let{method:n,data:r}=e;if(D.debug("background received message",n,r||" "),n==="mock")await ut(150);else{if(n==="queryParagraphCache")return K0(r);if(n==="setParagraphCache")return G0(r);if(n==="calculateSize")return Y0();if(n==="fetch")return Br(r);if(n==="getConfig")return Ze();if(n==="getLocalConfig")return Mt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=we().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=we().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=we().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=we().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=T4(a);(He()||!a)&&(i=we().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return kt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return sr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await wC(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return D.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await wC(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await vC()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(Ys({}),TB(a,i)),a&&TC(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Li.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")CC(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&A4(a)}else n==="updateToggleTranslateContextMenu"?Ys(r):n==="updateImageMenu"&&Fo()}}};function Fl(){return Vd||(Vd=new Sa("background",!1).getConnection("main",SB),Vd)}function Wd(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function TB(e,t){if(He())return;let n=await wB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("icons",n)}))}async function wB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function wC(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function EB(){return navigator.userAgent.indexOf("Mac")!==-1}var AB="";function AC(){return AB||globalThis.navigator.userAgent}function kB(){let e=AC();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var EC={Alt:"\u2325"};function Ra(e=""){return EB()?Object.keys(EC).reduce((t,n)=>t.replace(n,EC[n]),e):e}var DB="";function LB(){return DB||globalThis.location.hostname}function kC(){try{let e=LB(),t=new URL(pf);if(e===t.hostname||!kB())return!0;let n=/Version\/([\d\.]+)/,r=AC().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return D.error("Error checking if options supported",e),!0}}function oi(e,t){return X(t)?!1:DC(e.config,e.isPro)}function DC(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function LC(){if(X())return!1;let e=await Ze(),t=await Ss();return DC(e,t)}function Gd(e){let t=_i();return!(e?.platforms&&!e.platforms.includes(t))}function D4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function MC(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function MB(){return N0()&&!He()}var _l=MB()?["action"]:["browser_action","page_action"],PC="",PB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",..._l]},{id:el,contexts:["image"]},{id:$u,contexts:_l},{id:tl,contexts:_l},{id:nl,contexts:_l},{id:C6,contexts:_l}];async function Ol(e){e=e||await Ze(),D.debug("update ContextMenu",e);for(let t of PB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function Ys({targetLanguage:e,text:t}){let n=await Ze(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)PC=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await k4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ra(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),PC=""}j.contextMenus.update(r,{title:i,visible:a})}async function Fo(){try{let e=await LC();j.contextMenus.update(el,{visible:e})}catch{}}function RC(e,t){let n=t;n||(n=we().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function Kd(e,t,n,r,a){let i=t.original||t,o=Iv(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(S=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function IC(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function FC(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=lt.sanitize(Pd(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let m=Object.keys(e.variables);for(let g=0;g/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Ov(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Po(t);if(c.length>2){let m=c[2];return RB({delimiterTag:m,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let m=BC(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return m.html}}function L4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function RB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),S=p[C-1]===" ",x=p[C+v.length]===" ",T=v.match(b);if(!T)return v;let w=T[1],E=Number(w);if(isNaN(E))return v;let k=o[Number(E)];if(k&&k.type==="element"){let M=lt.sanitize(k.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return S||(M=" "+M),x||(M=M+" "),M}else if(k&&k.type==="text"){let M=k.value;return S||(M=" "+M),x||(M=M+" "),M}else D.error("variable type not supported",k,v);return v}));let y=Qs(l,n,r||[],s),h=Js(l);return P4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:hs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function P4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function M4(e){let t=e[e.length-1];return t?t.text:""}function Qs(e,t,n=[],r){let a=["notranslate"];return r&&a.push(I6),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${df}-theme-${e}`):a.push(`${cf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(df):a.push(cf),a}function Js(e){let t=["notranslate",k0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function BC(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Po(n,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,S=>{let x=h.indexOf(S),T=h[x-1]===" ",w=h[x+S.length]===" ",k=S.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(k);if(isNaN(M))return S;let I=o[M];if(I&&I.type==="element"){let R=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",I,S);return S}));let v=Qs(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(R6);let C=Js(i);return P4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:hs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function nt(e){$p({type:"success",text:e})}function bt(e){$p({type:"error",text:e})}var R4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function Yd(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");z(()=>{R4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=le(g=>{let p=typeof g=="function"?g(i):g;D.debug("new settings",p),R4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function Qd(e,t,n){let r=[];return function(){let[i,o,s,u]=Yd(e,t,n),l=le(c=>{for(let m of r)m(c)},[]);return z(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function _C(e,t){return Qd(e,t,"local")}function OC(e,t){return Qd(e,t,"sync")}var IB="userConfig",FB=null,BB=OC(IB,FB);function Oe(e){let[t,n,r,a]=BB(),[i,o]=N();z(()=>{(async function(){let u=await kd();o(u)})()},[t]);let s=le(async u=>{let l=typeof u=="function"?u(i):u;l&&I4(l);let{userConfig:c,promptPool:m,objectPool:g}=await s4(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(m).length,m),D.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ed,m),await Qr(Ad,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function I4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Ay(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h.callback&&h.callback(T,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let S=p[y],x=0;for(let T=0;T{let x=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(x=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(w=>w.text),forces:h.tempSentences.map(w=>w.force),xpaths:h.tempSentences.map(w=>w.xpath||""),from:x,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let T=P6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Da(this.serviceConfig);if(h.tempSentences.forEach((B,H)=>{let W=g4({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(W&&W.text&&W.text.trim().lengthH.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:B,from:x,to:h.to})}let M="";w&&w.length>=2?M=E.map((B,H)=>{let{item:W}=B;return H===E.length-1?W.text:W.text+w[0]+(H+1)+w[1]}).join(""):M=E.map(({item:B})=>B.text).join(T);let I=await this.translate({text:M,from:x,to:h.to,url:v,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:R}=I,P=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let H=new RegExp(B,"g");P=R.split(H)}else P=R.split(T);let L=[];if(P.length>E.length){for(let B=0;BB.text);return k=Da(this.serviceConfig,!0),L.forEach((B,H)=>{let W=E[H],Z=W.index,Se=W.variables||{};Object.keys(Se).length>0&&(B=p4({text:B,delimiters:k,variables:Se},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),U[Z]=B}),{sourceTempSentences:h.tempSentences,text:U,from:I.from,to:I.to}}};g.push(S().then(x=>{let{text:T,sourceTempSentences:w}=x;for(let E=0;E{if(x instanceof V&&x.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Da(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=g4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Da(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=p4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Zs="input is invalid type",F4=typeof window=="object",Gi=F4?window:{};Gi.JS_SHA256_NO_WINDOW&&(F4=!1);var _B=!F4&&typeof self=="object",OB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;OB?Gi=global:_B&&(Gi=self);var xre=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Sre=typeof define=="function"&&define.amd,Nl=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),NB=[-2147483648,8388608,32768,128],ta=[24,16,8,0],Jd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Zd=["hex","array","digest","arrayBuffer"],Sn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Nl&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var NC=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},jC=function(e){var t=NC("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=NB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+Jd[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+Jd[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+Jd[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+Jd[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=Ce[e>>28&15]+Ce[e>>24&15]+Ce[e>>20&15]+Ce[e>>16&15]+Ce[e>>12&15]+Ce[e>>8&15]+Ce[e>>4&15]+Ce[e&15]+Ce[t>>28&15]+Ce[t>>24&15]+Ce[t>>20&15]+Ce[t>>16&15]+Ce[t>>12&15]+Ce[t>>8&15]+Ce[t>>4&15]+Ce[t&15]+Ce[n>>28&15]+Ce[n>>24&15]+Ce[n>>20&15]+Ce[n>>16&15]+Ce[n>>12&15]+Ce[n>>8&15]+Ce[n>>4&15]+Ce[n&15]+Ce[r>>28&15]+Ce[r>>24&15]+Ce[r>>20&15]+Ce[r>>16&15]+Ce[r>>12&15]+Ce[r>>8&15]+Ce[r>>4&15]+Ce[r&15]+Ce[a>>28&15]+Ce[a>>24&15]+Ce[a>>20&15]+Ce[a>>16&15]+Ce[a>>12&15]+Ce[a>>8&15]+Ce[a>>4&15]+Ce[a&15]+Ce[i>>28&15]+Ce[i>>24&15]+Ce[i>>20&15]+Ce[i>>16&15]+Ce[i>>12&15]+Ce[i>>8&15]+Ce[i>>4&15]+Ce[i&15]+Ce[o>>28&15]+Ce[o>>24&15]+Ce[o>>20&15]+Ce[o>>16&15]+Ce[o>>12&15]+Ce[o>>8&15]+Ce[o>>4&15]+Ce[o&15];return this.is224||(u+=Ce[s>>28&15]+Ce[s>>24&15]+Ce[s>>20&15]+Ce[s>>16&15]+Ce[s>>12&15]+Ce[s>>8&15]+Ce[s>>4&15]+Ce[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Xd(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Zs);if(Nl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Nl||!ArrayBuffer.isView(e)))throw new Error(Zs)}else throw new Error(Zs);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Xd.prototype=new Tn;Xd.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var Xs=jC();Xs.sha256=Xs;Xs.sha224=jC(!0);Xs.sha256.hmac=HC();Xs.sha224.hmac=HC(!0);var qC=Xs;var zC=qC.sha256;function lr(e){return Promise.resolve(zC(e))}function $s(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Er(e,t){let n=zC.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function VC(e,t){let n=await Er(e,t);return $s(n)}async function $d(e,t){let n=UB(t),r=await Er(e,n);return $s(r)}function UB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var WC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ul=class e extends Ie{static langMap=new Map(WC);maxTextGroupLength=50;static langMapReverse=new Map(WC.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await lr(a)].join(` -`),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await lr(c)].join(` -`),p=await VC(m,`TC3${n}`),f=await $d(i,p),b=await $d("tc3_request",f),y=await $d(g,b),h=await te({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new V(h.Response.Error.Message);return h}};var GC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],jB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},jl=class e extends Ie{static langMap=new Map(GC);static langMapReverse=new Map(GC.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await te({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:jB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var KC=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Hl=class e extends Ie{static langMap=new Map(KC);static langMapReverse=new Map(KC.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await te({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function HB(e,t){return t?e+(t-e%t):e}function qB(e,t){return e.split(t).length-1}function B4(e){let t=Date.now(),n=1;for(let r of e)n+=qB(r,"i");return HB(t,n)}function zB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function _4(){return zB(1e6,1e8)}var O4="https://www2.deepl.com/jsonrpc",N4="auto",YC=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function VB(e=YC){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function U4(e){return VB()[e.toLowerCase()]}var WB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function GB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function KB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function YB(e,t,n,r,a,i,o){let s=_4(),u=KB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=B4(t);let c=await te({retry:2,method:"POST",url:e,body:GB(u),headers:WB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function QC(e,t,n,r=N4,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:YB(e,t,U4(n),U4(r)??"auto",a,i,o):{text:[],from:r,to:n}}var JC=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],eu=class e extends Ie{static langMap=new Map(JC);static langMapReverse=new Map(JC.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=O4;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(O4,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await QC(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var ql=class e extends Ie{static langMap=new Map(Wf);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ri.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=we(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=ZC());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await te({url:nd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=we(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=ZC()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`+t.rule.additionalInjectedCss)),s&&tr(e,s,F+"-dynamic-injected-css")}var rB=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--rB,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ne.vnode&&Ne.vnode(u),u}function S4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(ce,{children:n["#services"]}):a.test(e)?d(ce,{children:n["#ai"]}):d(ce,{children:n[e]!=null?n[e]:t})}function Io(){let[e,t]=N(location.hash);return z(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var jd=()=>or.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=wy[e]||e,i=Mf[e]||e,o=Pf[e],s=Rf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Pf,a="zh-CN"):n==="zh-TW"?(r=Rf,a="zh-TW"):(r=Mf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function T4(e){let t=j.runtime.getURL(c6),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Pa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return D.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=b0){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function hC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${h0}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function bC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Hd(e,t,n,r,a,i,o){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let s=new Pa(e);try{let u=(await s.findByName(b0)).files;D.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)D.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())D.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),Qu()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(Ti);if(t[Ti])return t[Ti]}static async removeAuthInfo(){return await j.storage.local.remove(Ti)}static setAuthInfo(t){return j.storage.local.set({[Ti]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await yC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=hC(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+r),Qu()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Zu]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let h=new URL(f.url||""),y=bC(f.url);h.pathname.startsWith("/auth-done")&&y?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{D.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var iB="https://www.googleapis.com/oauth2/v3/tokeninfo",oB=h0,sB=we().REDIRECT_URL;function yC(e){if(!e)throw"Authorization failure";let t=`${iB}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===oB?i(e):o("Token validation error")})})}return fetch(n).then(r)}function w4(e,t=!1){let n=sB;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Wi(e,n).auth(t)}function E4(e,t=!1){return w4(e,t).then(n=>n.access_token||null)}async function vC(){}var uB="https://www.google-analytics.com/mp/collect",lB=30,cB=100;async function dB(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>lB?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function CC(e){ry().forEach(({measurementId:t,apiSecret:n})=>{xC({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Ks(e,t,n){return xC({measurement_id:ty,api_secret:ny,page_title:e,page_location:t,time:n})}async function xC(e){try{let t=we(),n=Pi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Ii(),i=`${uB}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await dB(),engagement_time_msec:e.time||cB,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){D.error(t)}}var Il=new Map;function mB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function A4(e){let t=await hB(),n=Date.now();if(t){if(Il.has(e))return;let r=await j.tabs.get(e),a=mB(r.url);if(!a)return;Il.set(e,{duration:0,lastActiveTime:n,hostname:a});return}SC(e)}function SC(e){if(Il.has(e)){let t=Il.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Il.delete(e),pB(t.hostname,n)}}async function gB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function pB(e,t){Ks(`${e}(video)`,e,t),fB(t)}var qd="videoWatchTimeDay";async function fB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(qd,null);if(!a){await Je(qd,{day:r,time:e});return}if(a.day!==r){Ks("day-video."+et,"day-video."+et,a.time),await Je(qd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(qd,i)}catch(t){D.error(t)}}async function hB(){try{return await gB({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Bl=new Map;async function TC(e){let t=await k4(),n=Date.now();if(t=="Translated"){if(Bl.has(e))return;let r=await j.tabs.get(e),a=bB(r.url);if(!a)return;Bl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}yB(e)}function bB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function yB(e){if(Bl.has(e)){let t=Bl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Bl.delete(e),CB(t.hostname,n)}}async function vB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function CB(e,t){Ks(e,e,t),xB(t)}async function k4(){try{return await vB({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var zd="readTimeDay";async function xB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(zd,null);if(!a){await Je(zd,{day:r,time:e});return}if(a.day!==r){Ks("day."+et,"day."+et,a.time),await Je(zd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(zd,i)}catch(t){D.error(t)}}var Vd,SB=async function(e,t){let{method:n,data:r}=e;if(D.debug("background received message",n,r||" "),n==="mock")await ut(150);else{if(n==="queryParagraphCache")return K0(r);if(n==="setParagraphCache")return G0(r);if(n==="calculateSize")return Y0();if(n==="fetch")return _r(r);if(n==="getConfig")return Ze();if(n==="getLocalConfig")return Mt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=we().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=we().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=we().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=we().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=T4(a);(He()||!a)&&(i=we().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return kt(r);if(n=="getUserConfig")return ln();if(n=="setUserConfig")return sr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await wC(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return D.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await wC(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await vC()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(Ys({}),TB(a,i)),a&&TC(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Li.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")CC(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&A4(a)}else n==="updateToggleTranslateContextMenu"?Ys(r):n==="updateImageMenu"&&Fo()}}};function Fl(){return Vd||(Vd=new Sa("background",!1).getConnection("main",SB),Vd)}function Wd(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function TB(e,t){if(He())return;let n=await wB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("icons",n)}))}async function wB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function wC(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function EB(){return navigator.userAgent.indexOf("Mac")!==-1}var AB="";function AC(){return AB||globalThis.navigator.userAgent}function kB(){let e=AC();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var EC={Alt:"\u2325"};function Ra(e=""){return EB()?Object.keys(EC).reduce((t,n)=>t.replace(n,EC[n]),e):e}var DB="";function LB(){return DB||globalThis.location.hostname}function kC(){try{let e=LB(),t=new URL(pf);if(e===t.hostname||!kB())return!0;let n=/Version\/([\d\.]+)/,r=AC().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return D.error("Error checking if options supported",e),!0}}function oi(e,t){return X(t)?!1:DC(e.config,e.isPro)}function DC(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function LC(){if(X())return!1;let e=await Ze(),t=await Ss();return DC(e,t)}function Gd(e){let t=_i();return!(e?.platforms&&!e.platforms.includes(t))}function D4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function MC(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function MB(){return N0()&&!He()}var _l=MB()?["action"]:["browser_action","page_action"],PC="",PB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",..._l]},{id:el,contexts:["image"]},{id:$u,contexts:_l},{id:tl,contexts:_l},{id:nl,contexts:_l},{id:C6,contexts:_l}];async function Ol(e){e=e||await Ze(),D.debug("update ContextMenu",e);for(let t of PB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function Ys({targetLanguage:e,text:t}){let n=await Ze(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)PC=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await k4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ra(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),PC=""}j.contextMenus.update(r,{title:i,visible:a})}async function Fo(){try{let e=await LC();j.contextMenus.update(el,{visible:e})}catch{}}function RC(e,t){let n=t;n||(n=we().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${F}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function Kd(e,t,n,r,a){let i=t.original||t,o=Iv(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let b=0;b0&&i[b].textContent.length0&&(S=m[b-1].text),bf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function IC(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function FC(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=lt.sanitize(Pd(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let m=Object.keys(e.variables);for(let g=0;g/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Ov(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Po(t);if(c.length>2){let m=c[2];return RB({delimiterTag:m,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let m=BC(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return m.html}}function L4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function RB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),S=p[C-1]===" ",x=p[C+v.length]===" ",T=v.match(h);if(!T)return v;let w=T[1],E=Number(w);if(isNaN(E))return v;let k=o[Number(E)];if(k&&k.type==="element"){let M=lt.sanitize(k.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return S||(M=" "+M),x||(M=M+" "),M}else if(k&&k.type==="text"){let M=k.value;return S||(M=" "+M),x||(M=M+" "),M}else D.error("variable type not supported",k,v);return v}));let y=Qs(l,n,r||[],s),b=Js(l);return P4({targetWrapperTag:a,innerClassList:b,classList:y,html:p,targetElementEffectAttributeName:hs,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function P4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function M4(e){let t=e[e.length-1];return t?t.text:""}function Qs(e,t,n=[],r){let a=["notranslate"];return r&&a.push(I6),e&&(a.push(`${F}-target-translation-theme-${e}`),t?a.push(`${df}-theme-${e}`):a.push(`${cf}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(df):a.push(cf),a}function Js(e){let t=["notranslate",k0];return e&&t.push(`${F}-target-translation-theme-${e}-inner`),t}function BC(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Po(n,!0),g="afterend",p=m[0],f=m[1],h=`${p}(\\d+)${f}`,y=new RegExp(h,"g"),b=u;o.length>0&&(b=b.replace(y,S=>{let x=b.indexOf(S),T=b[x-1]===" ",w=b[x+S.length]===" ",k=S.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(k);if(isNaN(M))return S;let I=o[M];if(I&&I.type==="element"){let R=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else D.error("variable type not supported",I,S);return S}));let v=Qs(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(R6);let C=Js(i);return P4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:b,targetElementEffectAttributeName:hs,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function nt(e){$p({type:"success",text:e})}function bt(e){$p({type:"error",text:e})}var R4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function Yd(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");z(()=>{R4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=le(g=>{let p=typeof g=="function"?g(i):g;D.debug("new settings",p),R4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function Qd(e,t,n){let r=[];return function(){let[i,o,s,u]=Yd(e,t,n),l=le(c=>{for(let m of r)m(c)},[]);return z(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function _C(e,t){return Qd(e,t,"local")}function OC(e,t){return Qd(e,t,"sync")}var IB="userConfig",FB=null,BB=OC(IB,FB);function Oe(e){let[t,n,r,a]=BB(),[i,o]=N();z(()=>{(async function(){let u=await kd();o(u)})()},[t]);let s=le(async u=>{let l=typeof u=="function"?u(i):u;l&&I4(l);let{userConfig:c,promptPool:m,objectPool:g}=await s4(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(m).length,m),D.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ed,m),await Qr(Ad,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function I4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Ay(a,c,m)}catch(y){if(r)for(let b=0;by));let g=[],p=[],f=(y,b,v)=>{let C="";if(b.translatedTexts&&b.translatedTexts[0]&&(C=b.translatedTexts[0]),p[y]||(p[y]=b,p[y].translatedTexts=Array(b.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,b.callback&&b.callback(T,null,b.sentence);return}p[y].translatedTexts[b.partIndex]=C;let S=p[y],x=0;for(let T=0;T{let x=b.from;if(b.fromByClient&&b.fromByClient!=="auto"&&(x=b.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:b.tempSentences.map(w=>w.text),forces:b.tempSentences.map(w=>w.force),xpaths:b.tempSentences.map(w=>w.xpath||""),from:x,to:b.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:b.tempSentences};{let T=P6;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Da(this.serviceConfig);if(b.tempSentences.forEach((B,H)=>{let W=g4({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:b.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(W&&W.text&&W.text.trim().lengthH.text);return Promise.resolve({sourceTempSentences:b.tempSentences,text:B,from:x,to:b.to})}let M="";w&&w.length>=2?M=E.map((B,H)=>{let{item:W}=B;return H===E.length-1?W.text:W.text+w[0]+(H+1)+w[1]}).join(""):M=E.map(({item:B})=>B.text).join(T);let I=await this.translate({text:M,from:x,to:b.to,url:v,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:R}=I,P=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let H=new RegExp(B,"g");P=R.split(H)}else P=R.split(T);let L=[];if(P.length>E.length){for(let B=0;BB.text);return k=Da(this.serviceConfig,!0),L.forEach((B,H)=>{let W=E[H],Z=W.index,Se=W.variables||{};Object.keys(Se).length>0&&(B=p4({text:B,delimiters:k,variables:Se},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),U[Z]=B}),{sourceTempSentences:b.tempSentences,text:U,from:I.from,to:I.to}}};g.push(S().then(x=>{let{text:T,sourceTempSentences:w}=x;for(let E=0;E{if(x instanceof V&&x.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let b=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(b=y.translatedTexts.join("")),{...y.sentence,text:b}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Da(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=g4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Da(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=p4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Zs="input is invalid type",F4=typeof window=="object",Gi=F4?window:{};Gi.JS_SHA256_NO_WINDOW&&(F4=!1);var _B=!F4&&typeof self=="object",OB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;OB?Gi=global:_B&&(Gi=self);var xre=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Sre=typeof define=="function"&&define.amd,Nl=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),NB=[-2147483648,8388608,32768,128],ta=[24,16,8,0],Jd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Zd=["hex","array","digest","arrayBuffer"],Sn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Nl&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var NC=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},jC=function(e){var t=NC("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=NB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,h,y,b,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,h=a&i^~a&o,p=s+m+h+Jd[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),b=r&e,g=b^r&t^y,h=s&a^~s&i,p=o+m+h+Jd[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^b,h=o&s^~o&a,p=i+m+h+Jd[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,h=i&o^~i&s,p=a+m+h+Jd[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=Ce[e>>28&15]+Ce[e>>24&15]+Ce[e>>20&15]+Ce[e>>16&15]+Ce[e>>12&15]+Ce[e>>8&15]+Ce[e>>4&15]+Ce[e&15]+Ce[t>>28&15]+Ce[t>>24&15]+Ce[t>>20&15]+Ce[t>>16&15]+Ce[t>>12&15]+Ce[t>>8&15]+Ce[t>>4&15]+Ce[t&15]+Ce[n>>28&15]+Ce[n>>24&15]+Ce[n>>20&15]+Ce[n>>16&15]+Ce[n>>12&15]+Ce[n>>8&15]+Ce[n>>4&15]+Ce[n&15]+Ce[r>>28&15]+Ce[r>>24&15]+Ce[r>>20&15]+Ce[r>>16&15]+Ce[r>>12&15]+Ce[r>>8&15]+Ce[r>>4&15]+Ce[r&15]+Ce[a>>28&15]+Ce[a>>24&15]+Ce[a>>20&15]+Ce[a>>16&15]+Ce[a>>12&15]+Ce[a>>8&15]+Ce[a>>4&15]+Ce[a&15]+Ce[i>>28&15]+Ce[i>>24&15]+Ce[i>>20&15]+Ce[i>>16&15]+Ce[i>>12&15]+Ce[i>>8&15]+Ce[i>>4&15]+Ce[i&15]+Ce[o>>28&15]+Ce[o>>24&15]+Ce[o>>20&15]+Ce[o>>16&15]+Ce[o>>12&15]+Ce[o>>8&15]+Ce[o>>4&15]+Ce[o&15];return this.is224||(u+=Ce[s>>28&15]+Ce[s>>24&15]+Ce[s>>20&15]+Ce[s>>16&15]+Ce[s>>12&15]+Ce[s>>8&15]+Ce[s>>4&15]+Ce[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Xd(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Zs);if(Nl&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Nl||!ArrayBuffer.isView(e)))throw new Error(Zs)}else throw new Error(Zs);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Xd.prototype=new Tn;Xd.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var Xs=jC();Xs.sha256=Xs;Xs.sha224=jC(!0);Xs.sha256.hmac=HC();Xs.sha224.hmac=HC(!0);var qC=Xs;var zC=qC.sha256;function cr(e){return Promise.resolve(zC(e))}function $s(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ar(e,t){let n=zC.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function VC(e,t){let n=await Ar(e,t);return $s(n)}async function $d(e,t){let n=UB(t),r=await Ar(e,n);return $s(r)}function UB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var WC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ul=class e extends Ie{static langMap=new Map(WC);maxTextGroupLength=50;static langMapReverse=new Map(WC.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await cr(a)].join(` +`),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await cr(c)].join(` +`),p=await VC(m,`TC3${n}`),f=await $d(i,p),h=await $d("tc3_request",f),y=await $d(g,h),b=await te({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new V(b.Response.Error.Message);return b}};var GC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],jB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},jl=class e extends Ie{static langMap=new Map(GC);static langMapReverse=new Map(GC.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await te({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:jB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var KC=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],Hl=class e extends Ie{static langMap=new Map(KC);static langMapReverse=new Map(KC.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await te({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function HB(e,t){return t?e+(t-e%t):e}function qB(e,t){return e.split(t).length-1}function B4(e){let t=Date.now(),n=1;for(let r of e)n+=qB(r,"i");return HB(t,n)}function zB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function _4(){return zB(1e6,1e8)}var O4="https://www2.deepl.com/jsonrpc",N4="auto",YC=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function VB(e=YC){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function U4(e){return VB()[e.toLowerCase()]}var WB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function GB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function KB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function YB(e,t,n,r,a,i,o){let s=_4(),u=KB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=B4(t);let c=await te({retry:2,method:"POST",url:e,body:GB(u),headers:WB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function QC(e,t,n,r=N4,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:YB(e,t,U4(n),U4(r)??"auto",a,i,o):{text:[],from:r,to:n}}var JC=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],eu=class e extends Ie{static langMap=new Map(JC);static langMapReverse=new Map(JC.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=O4;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(O4,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await QC(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var ql=class e extends Ie{static langMap=new Map(Wf);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ri.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=we(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=ZC());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await te({url:nd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=we(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=ZC()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` `));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await te({url:nd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function ZC(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function j4(){return Math.random()>=.001}var tu=class extends Ie{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!j4())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await f5(),!j4())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var $C=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],H4=new Map($C),XC=new Map($C.map(([e,t])=>[t,e])),q4=class e extends Ie{static langMap=H4;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await te({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:H4.get(r)||"auto",target_lang:H4.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:XC.get(o.source_lang),to:XC.get(o.target_lang)}}else throw new V(i.msg)}},em=q4;var z4="https://{s}bing.com",ax=z4+"/translator",QB=z4+"/ttranslatev3",JB=z4+"/tspellcheckv3",tm="bingGlobalConfig",ix=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],ex=new Map(ix),tx=new Map(ix.map(([e,t])=>[t,e])),nx=1e3,na,nu;function V4(e,t){return e.replace("{s}",t?t+".":"")}async function ZB(){if(!na){let n=await j.storage.local.get(tm);return n&&(na=n[tm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=na;return Date.now()-e>t}async function rx(){let e,t,n,r,a,i,o,s,u,l;try{let c=V4(ax,e),m=await te({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return na={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[tm]:na}),na}function XB(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=na;return V4(e?JB:QB,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+na.count++:"")}function $B(e,t,n,r){let{token:a,key:i}=na,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function ox(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>nx)throw new Error(`The supported maximum length of text is ${nx}. Please shorten the text.`);nu||(nu=rx()),await nu,await ZB()&&(nu=rx(),await nu),t=t||"auto",n=n||"zh-CN",t=ex.get(t)||t,n=ex.get(n)||n;let a=XB(!1),i=$B(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:V4(ax,na.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await te({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(na=null,nu=null,await j.storage.local.remove(tm),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. @@ -5846,31 +5846,31 @@ ${s}} `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:tx.get(g.language),to:tx.get(m.to)}}function Ki(e){return e!=null}function lx(e,t,n){return`${e.type}#${t}#${n}`}function cx(e,t,n,r,a){return{body:a,id:r,type:lx(e,t,n)}}function e_(e,t,n,r){return{id:n,response:r,type:lx(e,"ask",t)}}function dx(e,t,n,r){if(Ki(r)){let a=r.type;if(Ki(a)&&Ki(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function t_(e,t,n){if(Ki(n)){let r=n.type;if(Ki(r)&&Ki(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function n_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function r_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;t_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function a_(e,t,n,r){let a=i=>{let o=i.data;dx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function sx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(dx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(e_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function i_(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(cx(t,"tell",n,i,r),a)}async function ux(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await r_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(cx(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;sx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ki(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await ux(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(a_(this.thisWindow,this.protocol,t,n))}tell(t,n){i_(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(sx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return ux(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){n_(this.listeners)}};var mx;async function gx(){if(xt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(L0,"*",{targetWindow:t});mx=n,await Yi.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function px(){return mx}var nm=new Map;async function W4(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Cr(e.body)),nm.has(t))return nm.get(t);let n=te(e);nm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{nm.delete(t)},3e3)}}async function fx(e){return W4(e)}async function Ia(e){if(xt()){let n=px();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return W4(e)}else return W4(e)}function hx(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function am(e){await Df(e)}async function Fa(e,t){let n=await Af(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return rm(e,t)}return rm(e,t)}async function rm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await kf(e,n,i-1e3),n}var o_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],G4=new Map(o_),ra=class extends Ie{static langMap=G4;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await am(nf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await ox(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Fa(nf,async()=>{let t=await Ia({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return hx(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=G4.get(n)||"auto",o=G4.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await te({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var s_=["chinese","english","japanese","korean","french","spanish","deutsch"],Ba={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},im=e=>Ba.chinese.test(e),u_=e=>Ba.english.test(e),l_=e=>Ba.japanese.test(e),c_=e=>Ba.korean.test(e),d_=e=>Ba.french.test(e),m_=e=>Ba.deutsch.test(e),g_=e=>Ba.spanish.test(e),Wie={chinese:qr(im),english:qr(u_),japanese:qr(l_),korean:qr(c_),french:qr(d_),spanish:qr(g_),deutsch:qr(m_)},bx=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,Gie=new RegExp(`^(\\d|\\s|${bx.source})+$`),p_=new RegExp(`${Ba.chinese.source}|${Ba.japanese.source}|${Ba.korean.source}`),Kie=qr(e=>(e.replace(new RegExp(bx,"g")," ").replace(new RegExp(p_,"g")," x ").match(/\S+/g)||"").length),Yie=[...s_,"others","matchAll"];var vx=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],zl=new Map(vx),f_=new Map(vx.map(([e,t])=>[t,e])),K4=class extends Ie{static langMap=zl;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ft;immersiveTranslateDeeplProApiUrl=ft+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:zl.get(n)||"",target_lang:zl.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:zl.get(n)||"auto",target_lang:zl.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await te({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>Y4(c.text,r));if(s){let c=this.serviceConfig||{},g=await new ra({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&f_.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!xa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},ru=K4;function Y4(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&im(e[0])&&yx(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&im(e[e.length-1])&&yx(e,"\u300A")==1?e+"\u300B":e}function yx(e,t){return e.split(t).length-1}var h_=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Q4=new Map(h_),J4=class extends Ie{static langMap=Q4;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Q4.get(r)||r,to:Q4.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await te(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:tx.get(g.language),to:tx.get(m.to)}}function Ki(e){return e!=null}function lx(e,t,n){return`${e.type}#${t}#${n}`}function cx(e,t,n,r,a){return{body:a,id:r,type:lx(e,t,n)}}function e_(e,t,n,r){return{id:n,response:r,type:lx(e,"ask",t)}}function dx(e,t,n,r){if(Ki(r)){let a=r.type;if(Ki(a)&&Ki(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function t_(e,t,n){if(Ki(n)){let r=n.type;if(Ki(r)&&Ki(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function n_(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function r_(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;t_(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function a_(e,t,n,r){let a=i=>{let o=i.data;dx(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function sx(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(dx(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(e_(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function i_(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(cx(t,"tell",n,i,r),a)}async function ux(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await r_(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(cx(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;sx(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ki(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await ux(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(a_(this.thisWindow,this.protocol,t,n))}tell(t,n){i_(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(sx(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return ux(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){n_(this.listeners)}};var mx;async function gx(){if(xt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(L0,"*",{targetWindow:t});mx=n,await Yi.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function px(){return mx}var nm=new Map;async function W4(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=xr(e.body)),nm.has(t))return nm.get(t);let n=te(e);nm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{nm.delete(t)},3e3)}}async function fx(e){return W4(e)}async function Ia(e){if(xt()){let n=px();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return W4(e)}else return W4(e)}function hx(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function am(e){await Df(e)}async function Fa(e,t){let n=await Af(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return rm(e,t)}return rm(e,t)}async function rm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await kf(e,n,i-1e3),n}var o_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],G4=new Map(o_),ra=class extends Ie{static langMap=G4;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await am(nf)}async translate(t){let{text:n,from:r,to:a}=t;return n?await ox(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Fa(nf,async()=>{let t=await Ia({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return hx(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=G4.get(n)||"auto",o=G4.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await te({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var s_=["chinese","english","japanese","korean","french","spanish","deutsch"],Ba={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},im=e=>Ba.chinese.test(e),u_=e=>Ba.english.test(e),l_=e=>Ba.japanese.test(e),c_=e=>Ba.korean.test(e),d_=e=>Ba.french.test(e),m_=e=>Ba.deutsch.test(e),g_=e=>Ba.spanish.test(e),Wie={chinese:qr(im),english:qr(u_),japanese:qr(l_),korean:qr(c_),french:qr(d_),spanish:qr(g_),deutsch:qr(m_)},bx=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,Gie=new RegExp(`^(\\d|\\s|${bx.source})+$`),p_=new RegExp(`${Ba.chinese.source}|${Ba.japanese.source}|${Ba.korean.source}`),Kie=qr(e=>(e.replace(new RegExp(bx,"g")," ").replace(new RegExp(p_,"g")," x ").match(/\S+/g)||"").length),Yie=[...s_,"others","matchAll"];var vx=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],zl=new Map(vx),f_=new Map(vx.map(([e,t])=>[t,e])),K4=class extends Ie{static langMap=zl;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ft;immersiveTranslateDeeplProApiUrl=ft+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:zl.get(n)||"",target_lang:zl.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:zl.get(n)||"auto",target_lang:zl.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let h,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?h=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await te({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await te({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>Y4(c.text,r));if(s){let c=this.serviceConfig||{},g=await new ra({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&f_.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!xa()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},ru=K4;function Y4(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&im(e[0])&&yx(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&im(e[e.length-1])&&yx(e,"\u300A")==1?e+"\u300B":e}function yx(e,t){return e.split(t).length-1}var h_=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Q4=new Map(h_),J4=class extends Ie{static langMap=Q4;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:Q4.get(r)||r,to:Q4.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await te(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` `)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},Cx=J4;var b_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Z4=new Map(b_),X4=class extends Ie{static langMap=Z4;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Z4.get(a)||a};r!=="auto"&&(i.from=Z4.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await te(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},xx=X4;var y_=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],au=new Map(y_),$4=class extends Ie{static langMap=au;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!au.get(r)?(i=(await te({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||au.get(r)||r,target:au.get(a)||a})):u.body=JSON.stringify({text:s,source:au.get(r),target:au.get(a)||a});let l=await te(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},Sx=$4;var v_={lang:"en"};function eh(e){let t=Object.assign({},v_,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var th=$o(null),Qi=e=>{let{t,setLang:n,lang:r}=eh({lang:e.lang});return d(th.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Te(th)}function Tx(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function aa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=C_(e,a)),i||(i=Vl(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function C_(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=nh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function Vl(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function nh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>gt(a,s.matches)&&!gt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function iu(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Bo(e,t,n){n=n||await Ln();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&si(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&si(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Fr(n),await sr(i)}catch{return!1}return a}async function Wl(){return(await Ln()).aiAssistants||[]}async function x_(e,t){(await Promise.allSettled(e.map(r=>te({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Bo("add",a,t)}})}async function rh(e,t,n=!0){e||(e=await Ze()),t||(t=await Ln());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await ah();i=await T_(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&x_(o,t)}var ia=Bn(rh,1500);function si(e){return Bi(Pr(),e.extensionVersion)}function S_(e,t){return t?!Bi(e.version,t):!1}function T_(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{S_(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function ah(){return(await te({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ih(e){return await te({url:`${A.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function om(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=le(async()=>{try{let s=await Wl();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=le(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await ih(s);if(si(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await Bo(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return z(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var w_=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function Ex(e,t,n,r,a){let i={...t},o=nh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,iu({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=Tx(i,i.langOverrides,n),o||w_.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=ou(t,o),h=ou(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(ou(t,Ee)){v=J;break}}let S=l,x=Object.keys(c);for(let J of x){let Ee=c[J];if(Ee&&ou(t,Ee)){S=J;break}}let T=ou(t,m),w=wx(t,m);w||(w=gt(t,F6)),w||(w=gt(t,n.blockUrls));let E=wx(t,n.inputTranslationUrlPattern);E||(E=gt(t,n.inputTranslationBlockUrls));let k=gt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let vt of Ee.matches)I[vt]=J}let R=Object.keys(I),P=_f(t,R);P&&(i=I[P]??"auto",I[P]&&I[P]!=="auto"&&xr(I[P]));let L=a.hostname,U=await lr(L),B=a.pathname+a.search+a.hash,H=await lr(B),W=`https://${U}.com/${H}`,Z=await Mt(),Se=await Us(),pe=n.translationStartMode,q=A_(Z,n);Z.aiAssistants=k_(q,n),pe==="dynamic"&&h&&(pe="immediate");let G=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(G=n.inputTranslationService);let ee=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(ee=n.mouseHoverTranslationService);let Re=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Re=n.subtitleTranslateService);let ve=await tt.get(mt,null),Ye=!1;ve&&(Ye=At(ve));let $={targetLanguage:b,config:n,translationService:v,inputTranslationService:G,mouseHoverTranslationService:ee,subtitleTranslateService:Re,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:Z};ve&&($.user=ve,Ye?$.isPro=!0:$.isPro=!1),$.state.translationArea==="body"&&($.config.generalRule.excludeTags=$.config.generalRule.excludeTags.filter(J=>!$.config.generalRule.bodyTranslateTags.includes(J)),$.config.generalRule.additionalExcludeSelectors=$.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let se=n.translationServices[$.translationService]||{};se.immediateTranslationTextCount!==void 0&&E_(se.immediateTranslationTextCount)&&se.immediateTranslationTextCount>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCount),$.translationService==="deepl"&&(se&&se.authKey&&se.authKey.startsWith("immersive_")||se&&se.provider==="pro"&&$.user?.token)&&se.immediateTranslationTextCountForImmersiveDeepl!==void 0&&se.immediateTranslationTextCountForImmersiveDeepl>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCountForImmersiveDeepl),se&&se.translationDebounce&&typeof se.translationDebounce=="number"&&($.state.translationDebounce=se.translationDebounce);let be=Se.immediateTranslationTextCount;n.immediateTranslationTextCount!==be&&($.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,Le;globalThis.PDFViewerApplication?Le=he.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Le=he.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Le=he.find(J=>J.pageType=="ebookBuilder"):Le=he.find(J=>ou(t,J)),Le&&Le.pageType==="ebookBuilder"&&($.state.translationStartMode="immediate");let Ve=n.generalRule;if(Le&&($.rule=wd(Ve,Le)),$.rule.selectors.length>0&&($.rule.paragraphMinTextCount=2,$.rule.paragraphMinWordCount=1),$.state.translationArea==="body"&&$.rule.excludeTags&&($.rule.excludeTags=$.rule.excludeTags.filter(J=>!$.rule.bodyTranslateTags.includes(J)&&!$.rule.forceTranslateTags.includes(J))),$.rule.mainFrameSelector){let J=document.querySelector($.rule.mainFrameSelector);J&&($.mainFrame=J)}return $}function ou(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&>(e,r)?!1:n&&n.length>0&>(e,n)?!0:i&&i.length>0&&Ud(i)?!1:!!(a&&a.length>0&&Ud(a))}function wx(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&>(e,n)||r&&r.length>0&&Ud(r))}function E_(e){return typeof e=="number"}function A_(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function k_(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Td(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function Ax(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!au.get(r)?(i=(await te({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||au.get(r)||r,target:au.get(a)||a})):u.body=JSON.stringify({text:s,source:au.get(r),target:au.get(a)||a});let l=await te(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},Sx=$4;var v_={lang:"en"};function eh(e){let t=Object.assign({},v_,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var th=$o(null),Qi=e=>{let{t,setLang:n,lang:r}=eh({lang:e.lang});return d(th.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return Te(th)}function Tx(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function aa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=C_(e,a)),i||(i=Vl(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function C_(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=nh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function Vl(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function nh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>gt(a,s.matches)&&!gt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function iu(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Bo(e,t,n){n=n||await Ln();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&si(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&si(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Br(n),await sr(i)}catch{return!1}return a}async function Wl(){return(await Ln()).aiAssistants||[]}async function x_(e,t){(await Promise.allSettled(e.map(r=>te({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Bo("add",a,t)}})}async function rh(e,t,n=!0){e||(e=await Ze()),t||(t=await Ln());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await ah();i=await T_(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&x_(o,t)}var ia=Bn(rh,1500);function si(e){return Bi(Rr(),e.extensionVersion)}function S_(e,t){return t?!Bi(e.version,t):!1}function T_(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{S_(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function ah(){return(await te({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function ih(e){return await te({url:`${A.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function om(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=le(async()=>{try{let s=await Wl();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=le(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await ih(s);if(si(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await Bo(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return z(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var w_=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function Ex(e,t,n,r,a){let i={...t},o=nh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,iu({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=Tx(i,i.langOverrides,n),o||w_.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,h=g||"zh-CN",y=ou(t,o),b=ou(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(ou(t,Ee)){v=J;break}}let S=l,x=Object.keys(c);for(let J of x){let Ee=c[J];if(Ee&&ou(t,Ee)){S=J;break}}let T=ou(t,m),w=wx(t,m);w||(w=gt(t,F6)),w||(w=gt(t,n.blockUrls));let E=wx(t,n.inputTranslationUrlPattern);E||(E=gt(t,n.inputTranslationBlockUrls));let k=gt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let vt of Ee.matches)I[vt]=J}let R=Object.keys(I),P=_f(t,R);P&&(i=I[P]??"auto",I[P]&&I[P]!=="auto"&&Sr(I[P]));let L=a.hostname,U=await cr(L),B=a.pathname+a.search+a.hash,H=await cr(B),W=`https://${U}.com/${H}`,Z=await Mt(),Se=await Us(),pe=n.translationStartMode,q=A_(Z,n);Z.aiAssistants=k_(q,n),pe==="dynamic"&&b&&(pe="immediate");let G=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(G=n.inputTranslationService);let ee=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(ee=n.mouseHoverTranslationService);let Re=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Re=n.subtitleTranslateService);let ve=await tt.get(mt,null),Ye=!1;ve&&(Ye=At(ve));let $={targetLanguage:h,config:n,translationService:v,inputTranslationService:G,mouseHoverTranslationService:ee,subtitleTranslateService:Re,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:W,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:Z};ve&&($.user=ve,Ye?$.isPro=!0:$.isPro=!1),$.state.translationArea==="body"&&($.config.generalRule.excludeTags=$.config.generalRule.excludeTags.filter(J=>!$.config.generalRule.bodyTranslateTags.includes(J)),$.config.generalRule.additionalExcludeSelectors=$.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let se=n.translationServices[$.translationService]||{};se.immediateTranslationTextCount!==void 0&&E_(se.immediateTranslationTextCount)&&se.immediateTranslationTextCount>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCount),$.translationService==="deepl"&&(se&&se.authKey&&se.authKey.startsWith("immersive_")||se&&se.provider==="pro"&&$.user?.token)&&se.immediateTranslationTextCountForImmersiveDeepl!==void 0&&se.immediateTranslationTextCountForImmersiveDeepl>=0&&($.state.immediateTranslationTextCount=se.immediateTranslationTextCountForImmersiveDeepl),se&&se.translationDebounce&&typeof se.translationDebounce=="number"&&($.state.translationDebounce=se.translationDebounce);let be=Se.immediateTranslationTextCount;n.immediateTranslationTextCount!==be&&($.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,Le;globalThis.PDFViewerApplication?Le=he.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Le=he.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Le=he.find(J=>J.pageType=="ebookBuilder"):Le=he.find(J=>ou(t,J)),Le&&Le.pageType==="ebookBuilder"&&($.state.translationStartMode="immediate");let Ve=n.generalRule;if(Le&&($.rule=wd(Ve,Le)),$.rule.selectors.length>0&&($.rule.paragraphMinTextCount=2,$.rule.paragraphMinWordCount=1),$.state.translationArea==="body"&&$.rule.excludeTags&&($.rule.excludeTags=$.rule.excludeTags.filter(J=>!$.rule.bodyTranslateTags.includes(J)&&!$.rule.forceTranslateTags.includes(J))),$.rule.mainFrameSelector){let J=document.querySelector($.rule.mainFrameSelector);J&&($.mainFrame=J)}return $}function ou(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&>(e,r)?!1:n&&n.length>0&>(e,n)?!0:i&&i.length>0&&Ud(i)?!1:!!(a&&a.length>0&&Ud(a))}function wx(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&>(e,n)||r&&r.length>0&&Ud(r))}function E_(e){return typeof e=="number"}function A_(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function k_(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Td(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function Ax(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` `+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var oh=class extends Ie{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let m=i?.sourceProgram,g=["subtitle","videoSubtitle"].includes(m),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),g&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let f="",b="",y=s.includes("{{json}}"),h=s.includes("{{yaml}}");if(Md(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",y){let E=[],k=c.imt_json_item||"";g&&(k=c.imt_subtitle_json_item||k);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?f:M=="yaml"?b:c[M]===""?"":c[M]||k).replace(/{{(.+?)}}/g,(k,M)=>c[M]||k)}}async rawRequest(t){return await te(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let m=i?.sourceProgram,g=["subtitle","videoSubtitle"].includes(m),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),g&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let f="",h="",y=s.includes("{{json}}"),b=s.includes("{{yaml}}");if(Md(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",y){let E=[],k=c.imt_json_item||"";g&&(k=c.imt_subtitle_json_item||k);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?f:M=="yaml"?h:c[M]===""?"":c[M]||k).replace(/{{(.+?)}}/g,(k,M)=>c[M]||k)}}async rawRequest(t){return await te(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Cr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=oh;function D_(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var L_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],kx=new Map(L_),sh=class extends Ji{static langMap=kx;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ft+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return kx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Cr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!ru.langMap.has(n.to)||!ru.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ru(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Dx=sh;function Mn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function M_(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Me(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Zi(e,t){return e<>>32-t}function _a(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function su(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function Lx(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function uu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Oa(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var Mx={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Mn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return _a(a(g,r),t)},this.b64=function(g){return Na(a(g),n)},this.any=function(g,p){return Oa(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return _a(i(g,p),t)},this.b64_hmac=function(g,p){return Na(i(g,p),n)},this.any_hmac=function(g,p,f){return Oa(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Mn(g):g,Lx(o(uu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Mn(g):g,p=r?Mn(p):p,f=uu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(uu(p)),512+p.length*8),Lx(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,S=-271733879,x=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(ui(c)),512+c.length*8),su(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),S=1732584193,x=-271733879,T=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(E=C(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,M[w]=E[w]^1549556828;return T=C(k.concat(ui(x)),512+x.length*8),su(C(M.concat(T),512+256))}function s(S,x){return S>>>x|S<<32-x}function u(S,x){return S>>>x}function l(S,x,T){return S&x^~S&T}function c(S,x,T){return S&x^S&T^x&T}function m(S){return s(S,2)^s(S,13)^s(S,22)}function g(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function f(S){return s(S,17)^s(S,19)^u(S,10)}function b(S){return s(S,28)^s(S,34)^s(S,39)}function y(S){return s(S,14)^s(S,18)^s(S,41)}function h(S){return s(S,1)^s(S,8)^u(S,7)}function v(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(S,x){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,M,I,R,P,L,U,B,H,W,Z;for(S[x>>5]|=128<<24-x%32,S[(x+64>>9<<4)+15]=x,B=0;B32&&(S=s(S,y.length*8));C<32;C+=1)x[C]=S[C]^909522486,T[C]=S[C]^1549556828;return v=s(x.concat(ui(h)),1024+h.length*8),su(s(T.concat(v),1024+512))}function s(y,h){var v,C,S,x=new Array(80),T=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),M=new u(0,0),I=new u(0,0),R=new u(0,0),P=new u(0,0),L=new u(0,0),U=new u(0,0),B=new u(0,0),H=new u(0,0),W=new u(0,0),Z=new u(0,0),Se=new u(0,0),pe=new u(0,0),q=new u(0,0),G=new u(0,0),ee=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)x[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,S=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),S=(h.l>>>16)+(v.l>>>16)+(C>>>16),x=(h.h&65535)+(v.h&65535)+(S>>>16),T=(h.h>>>16)+(v.h>>>16)+(x>>>16);y.l=C&65535|S<<16,y.h=x&65535|T<<16}function f(y,h,v,C,S){var x=(h.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535),T=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x>>>16),w=(h.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(T>>>16),E=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(w>>>16);y.l=x&65535|T<<16,y.h=w&65535|E<<16}function b(y,h,v,C,S,x){var T=(h.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535)+(x.l&65535),w=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x.l>>>16)+(T>>>16),E=(h.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(x.h&65535)+(w>>>16),k=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(x.h>>>16)+(E>>>16);y.l=T&65535|w<<16,y.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return _a(u(b,r))},this.b64=function(b){return Na(u(b,r),n)},this.any=function(b,y){return Oa(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return _a(l(b,y))},this.b64_hmac=function(b,y){return Na(l(b,y),n)},this.any_hmac=function(b,y,h){return Oa(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Mn(b):b,c(m(uu(b),b.length*8))}function l(b,y){b=r?Mn(b):b,y=r?Mn(y):y;var h,v,C=uu(b),S=Array(16),x=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)S[h]=C[h]^909522486,x[h]=C[h]^1549556828;return v=m(S.concat(uu(y)),512+y.length*8),c(m(x.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,S,x=1732584193,T=4023233417,w=2562383102,E=271733878,k=3285377520,M,I,R,P,L,U,B,H,W,Z;for(b[y>>5]|=128<>>9<<4)+14]=y,S=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new Mx.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await te({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var P_=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},uh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},lh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=uh(t);if(r)return Array.isArray(n)?`${r}=${n.map(uh).sort().join(`&${r}=`)}`:`${r}=${uh(n)}`}).filter(t=>t).join("&"),lu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,lh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await lr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return $s(await Er(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=oh;function D_(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var L_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],kx=new Map(L_),sh=class extends Ji{static langMap=kx;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ft+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return kx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!ru.langMap.has(n.to)||!ru.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ru(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Dx=sh;function Mn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function M_(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Me(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Zi(e,t){return e<>>32-t}function _a(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function su(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function Lx(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function uu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Oa(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var Mx={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Mn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,h="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return _a(a(g,r),t)},this.b64=function(g){return Na(a(g),n)},this.any=function(g,p){return Oa(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return _a(i(g,p),t)},this.b64_hmac=function(g,p){return Na(i(g,p),n)},this.any_hmac=function(g,p,f){return Oa(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Mn(g):g,Lx(o(uu(g),g.length*8))}function i(g,p){var f,h,y,b,v;for(g=r?Mn(g):g,p=r?Mn(p):p,f=uu(g),f.length>16&&(f=o(f,g.length*8)),h=Array(16),y=Array(16),v=0;v<16;v+=1)h[v]=f[v]^909522486,y[v]=f[v]^1549556828;return b=o(h.concat(uu(p)),512+p.length*8),Lx(o(y.concat(b),512+128))}function o(g,p){var f,h,y,b,v,C=1732584193,S=-271733879,x=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return h=o(g.concat(ui(c)),512+c.length*8),su(o(p.concat(h),512+160))}function o(l,c){var m,g,p,f,h,y,b,v,C=Array(80),S=1732584193,x=-271733879,T=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(E=C(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,M[w]=E[w]^1549556828;return T=C(k.concat(ui(x)),512+x.length*8),su(C(M.concat(T),512+256))}function s(S,x){return S>>>x|S<<32-x}function u(S,x){return S>>>x}function l(S,x,T){return S&x^~S&T}function c(S,x,T){return S&x^S&T^x&T}function m(S){return s(S,2)^s(S,13)^s(S,22)}function g(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function f(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function y(S){return s(S,14)^s(S,18)^s(S,41)}function b(S){return s(S,1)^s(S,8)^u(S,7)}function v(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(S,x){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,M,I,R,P,L,U,B,H,W,Z;for(S[x>>5]|=128<<24-x%32,S[(x+64>>9<<4)+15]=x,B=0;B32&&(S=s(S,y.length*8));C<32;C+=1)x[C]=S[C]^909522486,T[C]=S[C]^1549556828;return v=s(x.concat(ui(b)),1024+b.length*8),su(s(T.concat(v),1024+512))}function s(y,b){var v,C,S,x=new Array(80),T=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),M=new u(0,0),I=new u(0,0),R=new u(0,0),P=new u(0,0),L=new u(0,0),U=new u(0,0),B=new u(0,0),H=new u(0,0),W=new u(0,0),Z=new u(0,0),Se=new u(0,0),pe=new u(0,0),q=new u(0,0),G=new u(0,0),ee=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)x[C]=new u(0,0);for(y[b>>5]|=128<<24-(b&31),y[(b+128>>10<<5)+31]=b,S=y.length,C=0;C>>v|b.h<<32-v,y.h=b.h>>>v|b.l<<32-v}function m(y,b,v){y.l=b.h>>>v|b.l<<32-v,y.h=b.l>>>v|b.h<<32-v}function g(y,b,v){y.l=b.l>>>v|b.h<<32-v,y.h=b.h>>>v}function p(y,b,v){var C=(b.l&65535)+(v.l&65535),S=(b.l>>>16)+(v.l>>>16)+(C>>>16),x=(b.h&65535)+(v.h&65535)+(S>>>16),T=(b.h>>>16)+(v.h>>>16)+(x>>>16);y.l=C&65535|S<<16,y.h=x&65535|T<<16}function f(y,b,v,C,S){var x=(b.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535),T=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x>>>16),w=(b.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(T>>>16),E=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(w>>>16);y.l=x&65535|T<<16,y.h=w&65535|E<<16}function h(y,b,v,C,S,x){var T=(b.l&65535)+(v.l&65535)+(C.l&65535)+(S.l&65535)+(x.l&65535),w=(b.l>>>16)+(v.l>>>16)+(C.l>>>16)+(S.l>>>16)+(x.l>>>16)+(T>>>16),E=(b.h&65535)+(v.h&65535)+(C.h&65535)+(S.h&65535)+(x.h&65535)+(w>>>16),k=(b.h>>>16)+(v.h>>>16)+(C.h>>>16)+(S.h>>>16)+(x.h>>>16)+(E>>>16);y.l=T&65535|w<<16,y.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return _a(u(h,r))},this.b64=function(h){return Na(u(h,r),n)},this.any=function(h,y){return Oa(u(h,r),y)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,y){return _a(l(h,y))},this.b64_hmac=function(h,y){return Na(l(h,y),n)},this.any_hmac=function(h,y,b){return Oa(l(h,y),b)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?Mn(h):h,c(m(uu(h),h.length*8))}function l(h,y){h=r?Mn(h):h,y=r?Mn(y):y;var b,v,C=uu(h),S=Array(16),x=Array(16);for(C.length>16&&(C=m(C,h.length*8)),b=0;b<16;b+=1)S[b]=C[b]^909522486,x[b]=C[b]^1549556828;return v=m(S.concat(uu(y)),512+y.length*8),c(m(x.concat(v),512+160))}function c(h){var y,b="",v=h.length*32;for(y=0;y>5]>>>y%32&255);return b}function m(h,y){var b,v,C,S,x=1732584193,T=4023233417,w=2562383102,E=271733878,k=3285377520,M,I,R,P,L,U,B,H,W,Z;for(h[y>>5]|=128<>>9<<4)+14]=y,S=h.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new Mx.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(h=>{let b=Object.keys(h).sort().map(v=>`${this.encode(v)}=${this.encode(h[v])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await te({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var P_=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],nn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},uh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},lh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=uh(t);if(r)return Array.isArray(n)?`${r}=${n.map(uh).sort().join(`&${r}=`)}`:`${r}=${uh(n)}`}).filter(t=>t).join("&"),lu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${nn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[nn.tokenHeader]=t.sessionToken),a[nn.dateHeader]=r,a[nn.notSignBody]="",a[nn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[nn.algorithmKey]=nn.algorithm,a[nn.signHeadersKey]="",a[nn.signQueriesKey]=void 0,a[nn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[nn.signQueriesKey]=Object.keys(a).sort().join(";"),a[nn.signatureKey]=s,lh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[nn.dateHeader]=n,t.sessionToken&&(this.request.headers[nn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[nn.contentSha256Header]=await cr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return $s(await Ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(nn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=lh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new V(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await lr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(lh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return P_.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Er(n,`${nn.kDatePrefix}${t.secretKey}`),o=await Er(r,i),s=await Er(a,o);return Er(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var Rx=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],ch=new Map(Rx),R_=new Map(Rx.map(([e,t])=>[t,e])),dh=class extends Ie{static langMap=ch;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new lu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await te({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=ch.get(r),o={TargetLanguage:ch.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new lu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await te({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=R_.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},Ix=dh;var Fx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],mh=new Map(Fx),I_=new Map(Fx.map(([e,t])=>[t,e])),Kl=class extends Ie{static langMap=mh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=mh.get(r)||"detect",o=mh.get(a)||a,u=await te({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=I_.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var F_=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],gh=new Map(F_),Yl=class extends Ie{static langMap=gh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:gh.get(r)||r,target_lang:gh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await te({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Y4(u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var Bx=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],ph=new Map(Bx),B_=new Map(Bx.map(([e,t])=>[t,e])),fh=class extends Ie{static langMap=ph;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Cr(a+o+n+i);this.domain&&(l=Cr(a+o+n+this.domain+i));let c=new URLSearchParams({from:ph.get(s)||"auto",to:ph.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await te({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:B_.get(f)||f,to:u,text:b.join(` -`)}}},_x=fh;var _o=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?__(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function __(e){let t=Math.floor(Math.random()*e.length);return e[t]}var Ox=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],hh=class extends _o{static langMap=new Map(Ox);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:Ox,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},Nx=hh;var O_=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],sm=new Map(O_),bh=class extends Ie{static langMap=sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!sm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await te({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${sm.get(r)||"auto"}2${sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},Ux=bh;var jx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],yh=new Map(jx),N_=new Map(jx.map(([e,t])=>[t,e]));function U_(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var vh=class extends Ie{static langMap=yh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=j_(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+U_(n)+i+o+this.appSecret,u=await lr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:yh.get(r)||"auto",to:yh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await te({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await cr(t)}async hexEncodedBodyHash(){return this.request.headers[nn.contentSha256Header]?this.request.headers[nn.contentSha256Header]:this.request.body?await this.hexEncodedHash(lh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return P_.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Ar(n,`${nn.kDatePrefix}${t.secretKey}`),o=await Ar(r,i),s=await Ar(a,o);return Ar(nn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,nn.v4Identifier].join("/")}};var Rx=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],ch=new Map(Rx),R_=new Map(Rx.map(([e,t])=>[t,e])),dh=class extends Ie{static langMap=ch;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new lu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await te({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=ch.get(r),o={TargetLanguage:ch.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new lu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await te({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=R_.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},Ix=dh;var Fx=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],mh=new Map(Fx),I_=new Map(Fx.map(([e,t])=>[t,e])),Kl=class extends Ie{static langMap=mh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=mh.get(r)||"detect",o=mh.get(a)||a,u=await te({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=I_.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var F_=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],gh=new Map(F_),Yl=class extends Ie{static langMap=gh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:gh.get(r)||r,target_lang:gh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await te({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:Y4(u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var Bx=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],ph=new Map(Bx),B_=new Map(Bx.map(([e,t])=>[t,e])),fh=class extends Ie{static langMap=ph;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=xr(a+o+n+i);this.domain&&(l=xr(a+o+n+this.domain+i));let c=new URLSearchParams({from:ph.get(s)||"auto",to:ph.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await te({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,h=p.map(({dst:b})=>b);return{from:B_.get(f)||f,to:u,text:h.join(` +`)}}},_x=fh;var _o=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Dl(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),h=o[p];return f==="random"?__(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function __(e){let t=Math.floor(Math.random()*e.length);return e[t]}var Ox=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],hh=class extends _o{static langMap=new Map(Ox);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:Ox,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},Nx=hh;var O_=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],sm=new Map(O_),bh=class extends Ie{static langMap=sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!sm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await te({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${sm.get(r)||"auto"}2${sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},Ux=bh;var jx=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],yh=new Map(jx),N_=new Map(jx.map(([e,t])=>[t,e]));function U_(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var vh=class extends Ie{static langMap=yh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=j_(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+U_(n)+i+o+this.appSecret,u=await cr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:yh.get(r)||"auto",to:yh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await te({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,h]=p.split("2");return{text:g.translation.join(` `),from:N_.get(f),to:a}}};function j_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var xh=class extends Ie{static langMap=Ch;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Ch.get(r)||"auto",to:Ch.get(a)||a},o=new URLSearchParams(i),s=await te({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},zx=xh;var Ql=class extends _o{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||bs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Sh=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},um=Sh;var Vx=F+"-gemini-fake-user-key",H_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],Wx=new Map(H_),Th=class extends um{static langMap=Wx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ft+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return Wx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await To(Vx,""),this.fakeId||(this.fakeId=q_(10),await wo(Vx,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function q_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ia({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Eh.get(r)+"-"}${Eh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await te({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var W_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Qx=new Map(W_),Zl=class extends Ji{static langMap=Qx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Fa(af+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ia({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return Qx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(rm(af+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var G_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Jx=new Map(G_),cr=class extends Ji{static langMap=Jx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return Jx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var lm=class extends cr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Er(t,"TC3"+this.secret_key),a=await Er(this.service,r),i=await Er("tc3_request",a),o=await Er(n,i);return $s(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await lr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},zx=xh;var Ql=class extends _o{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||bs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Sh=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},um=Sh;var Vx=F+"-gemini-fake-user-key",H_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],Wx=new Map(H_),Th=class extends um{static langMap=Wx;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ft+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return Wx}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await To(Vx,""),this.fakeId||(this.fakeId=q_(10),await wo(Vx,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function q_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ia({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Eh.get(r)+"-"}${Eh.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await te({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var W_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Qx=new Map(W_),Zl=class extends Ji{static langMap=Qx;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Fa(af+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ia({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return Qx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(rm(af+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var G_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Jx=new Map(G_),dr=class extends Ji{static langMap=Jx;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return Jx}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var lm=class extends dr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Ar(t,"TC3"+this.secret_key),a=await Ar(this.service,r),i=await Ar("tc3_request",a),o=await Ar(n,i);return $s(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await cr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await lr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await cr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5878,40 +5878,40 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var cm=class extends cr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(m6,async()=>{let t=await Ia({responseType:"json",url:`${ft}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Ah=["glm-4-flash"],dm=class extends cr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Ah.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Ah.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(g6,async()=>{let t=await Ia({responseType:"json",url:`${ft}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ra.langMap.has(n.to)||!ra.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ra(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Ah.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:tu,mock2:tu,custom:Ql,google:Hl,transmart:ql,deepl:ru,volc:Ix,volcAlpha:Kl,bing:ra,tencent:Ul,tenAlpha:jl,baidu:_x,caiyun:Nx,cai:Ux,openl:em,youdao:Hx,you:zx,d:eu,dpro:eu,deeplx:Yl,niu:Cx,azure:xx,openai:Dx,gemini:Gx,claude:Yx,papago:Sx,aliyun:Gl,yandex:Jl,qianfan:Zl,"custom-ai":cr,deepseek:cr,"aliyun-bailian":cr,doubao:cr,hunyuan:lm,siliconcloud:cm,lingyiwanwu:cr,zhipu:dm};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys(Yr).forEach(e=>{Xi[e]={...Yr[e],class:oa[e]}});function $i(e,t){let n=or;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return or}async function dr(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function Zx(e,t){for(let n of e)try{return await dr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function kh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=At(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function K_(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=Ex(g,m,{sourceLanguage:K_(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(f&&(E.refresh=!0),b&&(E.debug=!0),E.text&&(E.text=Y_(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,S=At(t.user),x;try{x=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await x.init()}catch(E){if(n){y.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=E instanceof V?new V(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(I,null,M)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){C++;let k=l;l==="openl"&&(k=l+"-"+m.codename||em.DEFAULT_CODENAME);let M=x.getCacheKeyPrefix();M&&(k=M+"-"+k);let I=null;try{I=await Jc(g5({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(R){D.warn("query cache DB error, but it's ok",R)}if(I){let R={...E,text:I.translatedText};h.sentences[C]=R,n&&n(null,R,E)}else y.push(E)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&D.debug(`use ${v-T} sentences from cache`),!y.length)return h;let w=await x.multipleTranslate({sentences:y},m,(E,k,M)=>{if(n&&n(E,k,M),!E&&k&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||em.DEFAULT_CODENAME);let R=x.getCacheKeyPrefix();R&&(I=R+"-"+I),o.cache&&Jc(p5({translatedText:k.text,from:M.from,to:M.to,detectedFrom:k.from,key:Cr(M.text),service:I}),3e3).catch(P=>{D.warn("set cache DB error",P)})}});for(let E of w?.sentences||[]){let k=h.sentences.findIndex(M=>!M);if(k===-1)throw new V("translateFailed","can not match the result");h.sentences[k]=E}return h}function Y_(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function ye(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function sa(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Dh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function Oo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(ce,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(ce,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Lh(e){let{t}=O(),n=xe(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function mm(e,t){return t.some(n=>n.label===e)}function Xx(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);mm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);mm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());mm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:mm(r,n)||n.push({label:r,value:r})}),n}function ua(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,isProUser:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let S=Object.keys(h.env);for(let x=0;xJ_(t,m,h),[m,h]);e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),z(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]);let C=m.name;if(m.label&&(C=m.label),m.labelKey&&(C=t(m.labelKey)),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:200,disabled:f,items:m.options.map(S=>({label:`${S.label?t(S.label):S.value}`,value:S.value,selected:p===S.value,onSelected:()=>{if(S.action=="jumpOptions"){let x=S.args||[];wa(...x);return}g(S.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let S=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let T=x.label===x.value?x.value:x.label;return{label:t(T),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Lh,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(T=>{let w=T.translationServices?.[e.service||""];return w?(w.customModels=x,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=S.includes(p);a&&!x&&g(S[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(Oo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(Oo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(Oo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let S=p,x="";S||(S="#FFFFFF",x="#FFFFFF");let{hex:T,opacity:w}=Q_(S);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:E=>{g(E.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:w},disabled:f,onInput:E=>{g(E.target.value)}})]})})}else return m.type==="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d("input",{type:"checkbox",id:m.name,name:m.name,role:"switch",checked:p,disabled:f,onChange:S=>{g(S.target.checked)}}),C,m.descriptionKey?d("small",{class:"my-2",dangerouslySetInnerHTML:{__html:t(m.descriptionKey,y)}}):null]})}):null}}function Q_(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function J_(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=Xx(i,n.customModels||[]),[...i,a]}function $x(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function Xl(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d($x,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function la(e){let{t}=O(),n=xe(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ua(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(ce,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function No(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);z(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(la,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ua,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ca(){let e=["bingGlobalConfig","baiduGlobalConfig",d6,Ti];for(let t of e)await j.storage.local.remove(t);X()||await $y(),await Lf()}function e8(){return X()?Promise.resolve("0 B"):Y0()}var gm='',li="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4x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AElFTkSuQmCC",a8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function Z_(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Pa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Mh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[b,y]=N({});z(()=>{n&&v().then(()=>g(!1))},[n]);let h=w=>{w?.target?.id===F+"-overlay"&&t()};function v(){return new Pa(n).listAll().then(E=>{c(E)}).catch(E=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let E=F+"-config-"+Os()+".json";new Pa(n).uploadConfig(i,E).catch(k=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function S(w,E,k){w.preventDefault(),y({[k]:!0}),new Pa(n).getConfig(E).then(M=>{o(()=>({...M})),nt(a("importSuccess"))}).catch(M=>{D.error(M),bt(a("importFail"))}).finally(()=>y({}))}function x(w,E){new Pa(n).getConfig(w).then(k=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(k,null,2))),M.setAttribute("download",E),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(k=>{D.error("download google config file failed",k),bt(a("downloadFail")+": "+k.message)})}function T(w){w.preventDefault(),o({...i,autoSync:!1}),Wi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,E)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:k=>{k.preventDefault(),x(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",pl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[E],disabled:b[E],onClick:k=>S(k,w.id,E),children:a("import_hint")}),d(Z_,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+E))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function ja(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=$o([]);function pt(e){let[t,n]=N(null);return z(()=>{Ze().then(r=>{n(r),D.debug("current config",r)})},[]),z(()=>{Ze().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return z(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function i8(){let[e,t]=N(!1),n=Pr();return z(()=>{X(!0)&&(!n||n=="0.0.0"||ja(n,"0.9.0")||t(!0))},[n]),[e,t]}function da(){let[e,t]=N(null);return z(()=>{Mt().then(r=>{t(r)})},[]),[e,r=>{t(r),kt(r)}]}function pm(e){let[t,n]=N(null);return z(()=>{tt.get(mt,null).then(r=>{n(r?At(r):!1)}).catch(r=>{n(!1)})},[]),z(()=>{n(At(e))},[e]),t}var rt=class extends uo{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),d(X_,{error:this.error,info:this.info})):this.props.children}};function X_({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var o8=D;function $_(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function Rh(){let[e,t,n,r,a]=Oe(),i=$_();Xe(e,t);let{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!ms()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(v=>{o8.error("clean local config error",v)}),ca().catch(v=>{o8.error("clean cache error",v)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let S=C.target,x=new FileReader;x.onload=function(){try{let T=JSON.parse(x.result);b(T),nt(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},x.readAsText(S.files[0])},v.click(),document.body.removeChild(v)};return d(ce,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[tO,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),ms()){let v=we();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(v,F+"-config-"+Os()+".txt")}},role:"button",children:[nO,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(!1),[S,x]=N("");z(()=>{if(Qu()&&n){let P=localStorage.getItem(Zu);if(localStorage.removeItem(Zu),P){let L=globalThis.localStorage.getItem(of);D.debug("import_export","rawAuthInfoStr",L);let U={},B={},H="";if(L){globalThis.localStorage.removeItem(of);try{U=JSON.parse(L),B=U.state||{},H=U.access_token||""}catch(W){D.error("parse state error",W)}}if(H&&B&&(Wi.setAuthInfo({access_token:H}),D.debug("import_export","Google OAuth:",U),U)){let W=U.state;D.debug("state",W),W?.mode==="auto"?(h(!0),I(H)):(C(!0),k(H))}}}},[n]);function T(){h(!0),E4({source:globalThis.location.href,mode:"auto"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&I(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function w(){C(!0),b(!1),E4({source:globalThis.location.href,mode:"manual"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&k(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function E(){x(""),T()}function k(P){x(P),C(!1),b(!0)}function M(P){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),D.error("import_export","Google OAuth error:"+P),bt(o("authFail"))}function I(P){h(!0),D.debug("sync latest with drive",P,e),x(P),Hd(P,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?nt(o("successSyncConfig")):nt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function R(P){t({...e,autoSync:P.checked}),P.checked&&T()}return d(ce,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:P=>{P.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(ce,{}):s8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:P=>{P.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Mh,{onClose:()=>b(!1),authExpire:E,accessToken:S}):null]})}function p({config:f}){let b=l8(),[y,h]=N(!1),[v,C]=N(""),[S,x]=N(""),{t:T}=O();if(!b||!b.token)return null;let w=At(b);async function E(){confirm(T("proRightOpenPro"))?window.open(Y6):D.debug("\u53D6\u6D88\u4F1A\u5458")}async function k(){if(!w){E();return}try{if(y)return;h(!0),x("");let L=await fm(b?.token,e,a),U="";switch(L){case"upload":{U=T("successSyncConfigToAccount");break}case"override":{U=T("successSyncConfigInAccount");break}default:U=T("syncConfigNoUpdate")}C(U)}catch(L){C(""),x(L.message)}finally{h(!1)}}let M=le(L=>{if(!w){E();return}l({...u,proAutoSync:L})},[]),I=le(L=>{if(!w){E();return}t(U=>({...U,proSyncAPIKey:L}))},[]),R=u?.proAutoSync!=!1,P=e?.proSyncAPIKey!=!1;return w||(R=!1,P=!1),d(ce,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!P)},checked:P}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),k()},"aria-busy":y,href:"#",role:"button",children:[s8," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&!v&&u?.accountLastSyncedAt&&w),children:T("lastSyncedAt",{date:Kv(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||w,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!S,children:S})]})}}var eO=Bn(fm,1e3);async function fm(e,t,n){try{if(t===null)return"noupdate";let r=await Mt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Oi(t.proSyncAPIKey,t);return await Ph(e,c),await kt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await c8(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),mv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Oi(t.proSyncAPIKey,t);return await Ph(e,u),await kt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||gv(n)&&eO(n.token,e,t)},[e,n])}function l8(){let[e,t]=N(null);return z(()=>{tt.get(mt,null).then(n=>{t(n)})},[t]),e}function c8(e){return(location.href?.indexOf("popup.html")>0?Br:te)({responseType:"json",url:ft+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Ph(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Br:te)({responseType:"json",url:ft+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var s8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),tO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),nO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var rO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},d8=rO;var Ih="Arial",$l=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Ih.toLowerCase()?!0:m8(Ih,t).join("")!==m8(e,t).join("")}catch{return!1}};function m8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Ih,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Fh(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function g8(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Bh(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Bh(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Bh(n)},r,a);return aO(i)}catch{return Promise.reject("Encryption failed")}}function aO(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=P.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=hd(v);let B=yd(v);L.install_week=`${B.year}${B.week}`}if(n.user){let B=Ty(n.user);B&&Object.keys(B).forEach(H=>{L[H]=B[H]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),x?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let U="html";if(n.rule.pageType&&(U=n.rule.pageType),L.page_type=U,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let H=new URL(B);L.site_host=H.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...P,params:L}});if(i)return;M.forEach(async P=>{let L=await te({responseType:"text",url:P,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&iO(p,R),n.config.enablePerformanceReport&&uO(n,R)}catch(r){D.debug("report error",r)}}function iO(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};p8(r);let a=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var oO=Date.now(),sO=["translate_page","translate_video_subtitle"];function uO(e,t){try{t.forEach(async n=>{if(!sO.includes(n.name)||e.config.performanceBlockUrls?.some(l=>gt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};p8(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-oO},s=await g8(JSON.stringify(o),ay,iy);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function p8(e){return e?.install_day&&(e.install_day=bd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function eo({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[b,y]=N(""),[h,v,C,S,x]=Te(me),T=pm(i),w=R=>{v(P=>{let L={...P,[n]:R};return n==="translationService"&&(Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${R}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},E=ne(()=>{if(!t)return[];t.user=i??t.user;let R=Es(t,n,l);return o?.length&&(R=R.filter(P=>o.find(L=>L==P.id))),R},[t,i,n,l,o]),k=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:R}=e,P=t[n],L=R?.[P],U=Vl(L,t.localConfig.aiAssistants||[]);if(U&&L){let B=iu(U);return{...L,...B,aiAssistant:U}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let R=t[n];return As(t,n,l,R)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:r||u("service"),description:a||u("select translation service")}),d(lO,{selectService:w,translationServiceItems:E,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(cO,{verifiedErrorMessage:p}),d(dO,{ctx:t,curServiceConfig:k,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(Oh,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(Nh,{curServiceItem:M,t:u}),d(Uh,{curServiceItem:M,t:u}),d(_h,{currentTranslationServiceItem:M,t:u}),jh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),Hh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,t:u})]})]})}function _h({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function lO({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:j0(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function cO({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function dO({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await ut(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await dr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){D.debug("e.status",c.status),D.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){D.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function Oh({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Fh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function Nh({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function Uh({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function jh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(ce,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l}=h8(e,t,n,o);return d("div",{class:"mt-2",children:[d(ua,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:o,value:u,disabled:l,onSetSettings:r,onChange:c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return b8(e,p,o.name,c),{...m,translationServices:{...g,[n.id]:{...p,[o.name]:c}}}})},onFinish:()=>{nt(i("saved"))}},o.name+n.id),d(mO,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function Hh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,forceExpand:i}){if(!t||!e||!n?.optionalProps?.length||!r)return null;let o=n?.id.startsWith("custom-ai"),s=d(ce,{children:[d("div",{children:n.optionalProps.map((u,l)=>{let{value:c,disabled:m}=h8(e,t,n,u);return t?.aiAssistant&&!t?.aiAssistant?.enableRichTranslate&&u.name=="enableRichTranslate"?null:d("div",{class:"mt-2",children:d(ua,{config:e,service:n?.id,disabled:m,field:u,value:c,onSetSettings:r,onChange:g=>{r(p=>{let f=p.translationServices||{},b=f[n.id]||{};return b8(e,b,u.name,g),{...p,translationServices:{...f,[n.id]:{...b,[u.name]:g}}}})},onFinish:()=>{nt(a("saved"))}},u.name+n.id+t.assistantId+t.fallbackAssistantId)},"service-item-optional-prop-"+u.name+l)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:u=>{u.preventDefault(),window.confirm(a("confirmResetToDefaultSettings"))&&r(c=>{let m=c.translationServices||{};setTimeout(()=>window.location.reload(),50);let g=m[n.id]||{};if(o){let p=["type","name","extends","apiUrl","APIKEY"];Object.keys(g).forEach(f=>{p.includes(f)||delete g[f]})}else g={};return{...c,translationServices:{...m,[n.id]:g}}})},children:a("resetToDefaultSettings")})]});return i?s:d(ce,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),s]})})}function mO({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=le(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ua,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{nt(a("saved"))}})}function f8(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function h8(e,t,n,r){if(!r)return{value:"",disabled:!1};let a=r.name!="assistantId"&&r.name!="apiUrl"&&!!t.aiAssistant,i=t[r.name];return r.name=="enableRichTranslate"&&(e.translationMode=="dual"?i=t.dualEnableRichTranslate??t.enableRichTranslate:e.translationMode=="translation"&&(i=t.translationEnableRichTranslate??t.enableRichTranslate)),r.descriptionKey=="description.enableRichTranslate"&&e.translationMode=="dual"&&t.dualEnableRichTranslate!=null&&(r.descriptionKey="description.aiDualEnableRichTranslate"),r.descriptionKey=="description.aiDualEnableRichTranslate"&&e.translationMode=="translation"&&(r.descriptionKey="description.enableRichTranslate"),r.name==="apiUrl"&&n?.id==="openai"&&t?.APIKEY?.startsWith("immersiveopenai_")&&(a=!0,i=`https://openai-api.${et}/v1/chat/completions`),r.name=="placeholderDelimiters"&&(r.default=t.placeholderDelimiters||r.default),{value:i,disabled:a}}function b8(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function y8(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function v8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function C8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function x8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function S8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function T8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function w8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var A8=jd();function hm(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let[u,l]=i8(),[c,m]=N(null);return z(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d(gO,{}),d(wO,{config:o,user:c,setUser:m}),d(vO,{config:o}),d(eo,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(pO,{config:o}),d(IO,{config:o}),d(CO,{config:o}),d(xO,{config:o}),d(SO,{config:o}),d(TO,{config:o}),d(fO,{config:o,ctx:s}),d(yO,{setSettings:n,config:o}),d(d8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function gO(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Ol({...i,isShowContextMenu:!0}),a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(c=>{D.error("clean local config error",c)}),ca().catch(c=>{D.error("clean cache error",c)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ca().then(()=>{nt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(x8,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(S8,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function pO({config:e}){let[t,n,r,a,i]=Te(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(ye,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Ol()},200)},children:Vi(sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function fO({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>LO(l),[l]),f=le(Bn((v,C)=>{a&&i(S=>{let x=S.translationThemePatterns||{};return{...S,translationTheme:C,translationThemePatterns:{...x,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return z(()=>{m&&(Gs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(ce,{children:[d(bO,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(PO,{config:e}),d(hO,{translationThemes:mf,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(ce,{children:d("font",{class:Qs(l,!1,[],!1).join(" "),children:d("font",{class:Js(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let S=m||{},x=`theme-${l}-${v.name}`,T=RC(x)||v.default||void 0,w=S[v.name]||T;return d(ua,{config:e,field:v,value:w,onSetSettings:i,onChange:E=>{g(k=>(Gs(document,l,{...k,[v.name]:E},a.selectTranslationFont),{...k,[v.name]:E}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function hO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:Qs(a,!1,[],!1).join(" "),children:d("font",{class:Js(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function bO({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(ye,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:mf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function yO({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(la,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ua,{urls:MO(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function vO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=l=>{Ys({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function CO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(Xl,{title:t("always languages"),description:t("always translate the following languages"),languages:A8,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function xO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(Xl,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:A8,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function SO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=qn(l,h),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Mt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&kt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function TO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Jt(l,b),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function k8(e){return{handleTranslationLanguagePatternSelected:le((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var qh=0,Vh;async function D8(e){if(qh>60*10)return null;qh++,tt.refresh(),await ut(300);let t=await tt.get(mt,null);D.debug("loopCheckUser",qh,t),t?(clearTimeout(Vh),e(t)):Vh=setTimeout(D8.bind(null,e),1500)}function E8(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=DO(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Sy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function wO({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Te(me),m=e.interfaceLanguage;z(()=>(tt.get(mt,null).then(b=>{b&&(n(b),EO(b.token).then(y=>{let h=y.data;h.token=b.token,tt.set(mt,h),n(h),Fo()}).catch(y=>{Ll(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(Vh)}),[]);let g=le(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&AO(t.token).finally(async()=>{await tt.remove(mt),await ut(200),await tt.refresh(),n(null),Fo()})},[t]),p=le(async b=>{kC()&&(b&&b.preventDefault&&b.preventDefault(),kO(vs),await tt.set(sl,!0),D8(y=>{fm(y.token,o,s),n(y),Wh?.close(),window.location.reload()}))},[n]),f=t?.avatar||t8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(E8,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Dn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:li})]}),d("div",{class:"",children:d("a",{href:`${Ai}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:li})]}),d(E8,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Ai,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:N6,onClick:p,children:r(a?"loginForSafari":"login")})]})}function EO(e){return te({responseType:"json",url:ft+"v1/user",method:"get",headers:{token:e}})}function AO(e){return te({responseType:"json",url:ft+"v1/user/logout",method:"delete",headers:{token:e}})}var Wh=null;function kO(e){let r=screen.width/2-230,a=screen.height/2-640/2;return Wh=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),Wh}function DO(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function LO(e){let t=[];return il[e]&&(t=t.concat(il[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function MO(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var zh="";function PO({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(RO,{config:e,isOpen:n})]})}function RO({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);z(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>$l(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Te(me),g=p=>{p!==zh&&!$l(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Gs(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(zh))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?zh:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function IO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return Ae.ASSETS_BASE_URL+e}function Gh(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function L8(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}var FO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),b=xe(null),y=xe(null),h=()=>{u||!l&&(qe().any||vr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||vr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},S=ne(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),x=ne(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),T=w=>Ld()?d("div",{style:S,role:"tooltip",children:w}):d("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:x,children:T(e)})]})},Pt=FO;var bm=!1;function Kh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let{t:u,lang:l}=O(),c=s&&ws(s,"translationService",l)||[],m=Io(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=As(s,"translationService",l,f);return d(OO,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!bm&&m==="#services"&&(bm=!0),z(()=>()=>bm=!1,[]),z(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Al(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(cl,"_blank"),children:d(L8,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(cl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(BO,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function BO({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Te(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ti.find(I=>I==e.id),[e]),m=le(I=>{i(R=>{let P=R.translationServices?.[e.id]||{};return{...R,translationServices:{...R.translationServices,[e.id]:{...P,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),h=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),S=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(R=>{Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${e.id}`}}],t);let P={...R,translationService:e.id};return P.translationServiceChangedbyUserAt=new Date().toISOString(),P}))},x=t.translationService===e.id,T=x||Bf(l,r),w=n("translationServices."+e.id),E=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),k=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,E="",k="custom-ai"),d("div",{class:"service-container","data-selected":x?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${k}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(Pt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:E}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:S,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function _O(e,t){let[n,r]=N(!1),[a]=Te(me),[i,o]=N("");return[le(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await dr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function OO({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=pt(a),{t:c}=O(),m=pm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,S=t?.id||"",x=C?.[S],T=Vl(x,n.localConfig.aiAssistants||[]);if(T&&x){let w=iu(T);return{...x,...w,aiAssistant:T}}return x?{...x}:{}}return null},[l,n,t,e]),[p,f,b]=_O(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(ce,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!bm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(Oh,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(Nh,{curServiceItem:t,t:c}),d(Uh,{curServiceItem:t,t:c}),d(_h,{currentTranslationServiceItem:t,t:c}),jh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),Hh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(f8,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ma(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var NO=xn+"assets/uploads/default-oade4Y.png";function P8({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=le(()=>m(NO),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=om(),y=Oe(),[h,v]=y;Xe(h,v);let C=pt(h);z(()=>{ih(e).then(x=>{a(x),m(x.avatar),o({name:x.i18n[t]?.name||x.name,description:x.i18n[t]?.description||x.description,details:x.i18n[t]?.details||x.details}),u(lt.sanitize(x.i18n[t]?.details||x.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let S=p?.some(x=>x.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:x=>{if(x.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(Pt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(r),children:d(Yh,{assistantID:e,enable:si(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),S&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(Qh,{aiAssistant:r,isInstall:S}),C&&d(ce,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(ce,{children:UO.map((x,T)=>d("div",{className:"mt-2",children:d(ua,{service:"ai",config:C,field:x,value:r[x.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function Yh({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=xe(null);return z(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(w8,{}):d(T8,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function Qh({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Td(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=M8(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(S=>S.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(x=>x===g),S=h.find(x=>x.endsWith(g));if(C&&S){if(!S.startsWith("[-]"))return;v=v.filter(x=>x!==S)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=M8(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(No,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function M8(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var UO=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function R8(e){let t=Oe(),[n,r]=t;Xe(n,r);let a=pt(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=HO({id:e.assistantID,userConfig:n,setSettings:r}),l=le(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(ce,{children:jO.map((c,m)=>d("div",{class:"mt-2",children:d(ua,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{nt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(Qh,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var jO=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function HO({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=le(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=le(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var ym=!1,qO=xn+"assets/uploads/default-oade4Y.png";function Jh(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=VO(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let S=v.priority||1e3,x=C.priority||1e3;return S-x})),[o,e]);z(()=>{(async()=>{try{r(!0);let v=await ah(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Xe(c,m);let g=pt(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",b=Io(),{t:y}=O();z(()=>{rh(void 0,void 0,!0)},[]),!ym&&b==="#ai"&&(ym=!0),z(()=>()=>ym=!1,[]);let h=ne(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(R8,{assistantID:v}):d(P8,{assistantID:v,lang:f,hasAssistantsRoute:ym})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(rt,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ma,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(zO,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function zO({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=le(()=>i(qO),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=om();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(Pt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(e),children:d(Yh,{assistantID:e.id,enable:si(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function VO(){let e=xe(!1),{t}=O(),[n,r]=Oe();Xe(n,r);let a=n?.customAiAssistants||[];return z(()=>{!n||e.current||(async()=>{try{let s=(await Wl()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),Bo("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return D.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Al(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var nr={};M0.forEach(e=>{e.labelKey&&(nr[e.key]=e.labelKey)});function Zh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=N(null),{t:u}=O();if(z(()=>{Ze().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(WO,{config:l}),d(GO,{config:l}),d(KO,{config:l}),d(eo,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(YO,{config:l}),d(QO,{config:l}),d(ZO,{config:l}),d(JO,{config:l})]})})}function WO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d(ce,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function GO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=l=>{n(c=>({...c,inputTargetLanguage:l}))};if(!e)return null;let u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?o("inputTargetLanguageDescriptionForNoneKey"):o("inputTargetLanguageDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,12,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e.inputTargetLanguage,children:Ot(l,e.interfaceLanguage)},"language"+c))})]})}function KO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function YO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(ye,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function QO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function JO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),[s,u]=N(!1),l=h=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(h,v,C,S)=>{l(C),n(x=>{let T=x.inputTranslationUrlPattern,w=[],E=[];T&&T.matches&&T.excludeMatches&&(w=T.matches,E=T.excludeMatches);let k=[...w],M=[...E];return S==="edit"&&(C==="matches"?k[v]=h:M[v]=h),C==="matches"?(k=qn(h,k),M=Jt(h,E)):(k=Jt(h,w),M=qn(h,M)),{...x,inputTranslationUrlPattern:{...x.inputTranslationUrlPattern,matches:k,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let S=C.inputTranslationUrlPattern,x=[];v==="matches"?S&&S.matches&&(x=S.matches):S&&S.excludeMatches&&(x=S.excludeMatches);let T=[...x];return h.forEach(w=>{T=Jt(w,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(la,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function ZO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(ye,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function Xh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return z(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(rN,{}),d(nN,{}),d(XO,{}),d($O,{}),d(eN,{}),d(tN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function XO(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),nt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var cm=class extends dr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(m6,async()=>{let t=await Ia({responseType:"json",url:`${ft}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Ah=["glm-4-flash"],dm=class extends dr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Ah.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!Ah.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(g6,async()=>{let t=await Ia({responseType:"json",url:`${ft}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ra.langMap.has(n.to)||!ra.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ra(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Ah.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:tu,mock2:tu,custom:Ql,google:Hl,transmart:ql,deepl:ru,volc:Ix,volcAlpha:Kl,bing:ra,tencent:Ul,tenAlpha:jl,baidu:_x,caiyun:Nx,cai:Ux,openl:em,youdao:Hx,you:zx,d:eu,dpro:eu,deeplx:Yl,niu:Cx,azure:xx,openai:Dx,gemini:Gx,claude:Yx,papago:Sx,aliyun:Gl,yandex:Jl,qianfan:Zl,"custom-ai":dr,deepseek:dr,"aliyun-bailian":dr,doubao:dr,hunyuan:lm,siliconcloud:cm,lingyiwanwu:dr,zhipu:dm};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys(Yr).forEach(e=>{Xi[e]={...Yr[e],class:oa[e]}});function $i(e,t){let n=or;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return or}async function mr(e,t,n){if(!e.text)return e;let r=null,a=await fn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function Zx(e,t){for(let n of e)try{return await mr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function kh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=At(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function K_(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function fn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=Ex(g,m,{sourceLanguage:K_(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(f&&(E.refresh=!0),h&&(E.debug=!0),E.text&&(E.text=Y_(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let y=[],b={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,S=At(t.user),x;try{x=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await x.init()}catch(E){if(n){y.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=E instanceof V?new V(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(I,null,M)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){C++;let k=l;l==="openl"&&(k=l+"-"+m.codename||em.DEFAULT_CODENAME);let M=x.getCacheKeyPrefix();M&&(k=M+"-"+k);let I=null;try{I=await Jc(g5({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(R){D.warn("query cache DB error, but it's ok",R)}if(I){let R={...E,text:I.translatedText};b.sentences[C]=R,n&&n(null,R,E)}else y.push(E)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&D.debug(`use ${v-T} sentences from cache`),!y.length)return b;let w=await x.multipleTranslate({sentences:y},m,(E,k,M)=>{if(n&&n(E,k,M),!E&&k&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||em.DEFAULT_CODENAME);let R=x.getCacheKeyPrefix();R&&(I=R+"-"+I),o.cache&&Jc(p5({translatedText:k.text,from:M.from,to:M.to,detectedFrom:k.from,key:xr(M.text),service:I}),3e3).catch(P=>{D.warn("set cache DB error",P)})}});for(let E of w?.sentences||[]){let k=b.sentences.findIndex(M=>!M);if(k===-1)throw new V("translateFailed","can not match the result");b.sentences[k]=E}return b}function Y_(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function ye(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function sa(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Dh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function Oo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let h=0;he.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(ce,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let h=f.target.value,y=Array.isArray(r)?h.split(","):h;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(ce,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Lh(e){let{t}=O(),n=xe(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===F+"-overlay"&&r(o)};return d("dialog",{id:F+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function mm(e,t){return t.some(n=>n.label===e)}function Xx(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);mm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);mm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());mm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:mm(r,n)||n.push({label:r,value:r})}),n}function ua(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,isProUser:h}=e;p=p??(m.default||"");let y={},b={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(b=u.translationServices[e.service]),b.env){let S=Object.keys(b.env);for(let x=0;xJ_(t,m,b),[m,b]);e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),z(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]);let C=m.name;if(m.label&&(C=m.label),m.labelKey&&(C=t(m.labelKey)),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:200,disabled:f,items:m.options.map(S=>({label:`${S.label?t(S.label):S.value}`,value:S.value,selected:p===S.value,onSelected:()=>{if(S.action=="jumpOptions"){let x=S.args||[];wa(...x);return}g(S.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let S=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Dh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let T=x.label===x.value?x.value:x.label;return{label:t(T),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Lh,{visible:o,value:b.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(T=>{let w=T.translationServices?.[e.service||""];return w?(w.customModels=x,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=S.includes(p);a&&!x&&g(S[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(Oo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(Oo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(Oo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let S=p,x="";S||(S="#FFFFFF",x="#FFFFFF");let{hex:T,opacity:w}=Q_(S);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:E=>{g(E.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:w},disabled:f,onInput:E=>{g(E.target.value)}})]})})}else return m.type==="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d("input",{type:"checkbox",id:m.name,name:m.name,role:"switch",checked:p,disabled:f,onChange:S=>{g(S.target.checked)}}),C,m.descriptionKey?d("small",{class:"my-2",dangerouslySetInnerHTML:{__html:t(m.descriptionKey,y)}}):null]})}):null}}function Q_(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function J_(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=Xx(i,n.customModels||[]),[...i,a]}function $x(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function Xl(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d($x,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function la(e){let{t}=O(),n=xe(null),{toggleModal:r}=e,a=i=>{i?.target?.id===F+"-overlay"&&r(i)};return d("dialog",{id:F+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ua(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(ce,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function No(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);z(()=>{Kt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(la,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ua,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ca(){let e=["bingGlobalConfig","baiduGlobalConfig",d6,Ti];for(let t of e)await j.storage.local.remove(t);X()||await $y(),await Lf()}function e8(){return X()?Promise.resolve("0 B"):Y0()}var gm='',li="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUt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ml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function Z_(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Pa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Mh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[h,y]=N({});z(()=>{n&&v().then(()=>g(!1))},[n]);let b=w=>{w?.target?.id===F+"-overlay"&&t()};function v(){return new Pa(n).listAll().then(E=>{c(E)}).catch(E=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let E=F+"-config-"+Os()+".json";new Pa(n).uploadConfig(i,E).catch(k=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function S(w,E,k){w.preventDefault(),y({[k]:!0}),new Pa(n).getConfig(E).then(M=>{o(()=>({...M})),nt(a("importSuccess"))}).catch(M=>{D.error(M),bt(a("importFail"))}).finally(()=>y({}))}function x(w,E){new Pa(n).getConfig(w).then(k=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(k,null,2))),M.setAttribute("download",E),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(k=>{D.error("download google config file failed",k),bt(a("downloadFail")+": "+k.message)})}function T(w){w.preventDefault(),o({...i,autoSync:!1}),Wi.revoke(n).then(()=>t())}return d("dialog",{id:F+"-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,E)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:k=>{k.preventDefault(),x(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(F+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",pl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":h[E],disabled:h[E],onClick:k=>S(k,w.id,E),children:a("import_hint")}),d(Z_,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+E))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function ja(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=$o([]);function pt(e){let[t,n]=N(null);return z(()=>{Ze().then(r=>{n(r),D.debug("current config",r)})},[]),z(()=>{Ze().then(r=>{n(r)})},[e]),t}function cn(e){let[t,n]=N(null);return z(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function i8(){let[e,t]=N(!1),n=Rr();return z(()=>{X(!0)&&(!n||n=="0.0.0"||ja(n,"0.9.0")||t(!0))},[n]),[e,t]}function da(){let[e,t]=N(null);return z(()=>{Mt().then(r=>{t(r)})},[]),[e,r=>{t(r),kt(r)}]}function pm(e){let[t,n]=N(null);return z(()=>{tt.get(mt,null).then(r=>{n(r?At(r):!1)}).catch(r=>{n(!1)})},[]),z(()=>{n(At(e))},[e]),t}var rt=class extends uo{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),d(X_,{error:this.error,info:this.info})):this.props.children}};function X_({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var o8=D;function $_(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function Rh(){let[e,t,n,r,a]=Oe(),i=$_();Xe(e,t);let{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!ms()&&d(g,{}),d(p,{config:i})]})});function c(){let f=b=>{b.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(v=>{o8.error("clean local config error",v)}),ca().catch(v=>{o8.error("clean cache error",v)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},h=b=>{t(()=>({...b}))},y=b=>{b.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let S=C.target,x=new FileReader;x.onload=function(){try{let T=JSON.parse(x.result);h(T),nt(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},x.readAsText(S.files[0])},v.click(),document.body.removeChild(v)};return d(ce,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[tO,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{if(b.preventDefault(),ms()){let v=we();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(v,F+"-config-"+Os()+".txt")}},role:"button",children:[nO,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(!1),[S,x]=N("");z(()=>{if(Qu()&&n){let P=localStorage.getItem(Zu);if(localStorage.removeItem(Zu),P){let L=globalThis.localStorage.getItem(of);D.debug("import_export","rawAuthInfoStr",L);let U={},B={},H="";if(L){globalThis.localStorage.removeItem(of);try{U=JSON.parse(L),B=U.state||{},H=U.access_token||""}catch(W){D.error("parse state error",W)}}if(H&&B&&(Wi.setAuthInfo({access_token:H}),D.debug("import_export","Google OAuth:",U),U)){let W=U.state;D.debug("state",W),W?.mode==="auto"?(b(!0),I(H)):(C(!0),k(H))}}}},[n]);function T(){b(!0),E4({source:globalThis.location.href,mode:"auto"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&I(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function w(){C(!0),h(!1),E4({source:globalThis.location.href,mode:"manual"},!0).then(P=>{D.debug("import_export","Google OAuth:"+P),P!==null&&k(P)}).catch(P=>{P&&P.message==="tokenValidateErrorRedirectToAuthUrl"?D.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(P)})}function E(){x(""),T()}function k(P){x(P),C(!1),h(!0)}function M(P){b(!1),C(!1),h(!1),t({...e,autoSync:!1}),D.error("import_export","Google OAuth error:"+P),bt(o("authFail"))}function I(P){b(!0),D.debug("sync latest with drive",P,e),x(P),Hd(P,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?nt(o("successSyncConfig")):nt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{b(!1)})}function R(P){t({...e,autoSync:P.checked}),P.checked&&T()}return d(ce,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:P=>{P.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(ce,{}):s8,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:P=>{P.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Mh,{onClose:()=>h(!1),authExpire:E,accessToken:S}):null]})}function p({config:f}){let h=l8(),[y,b]=N(!1),[v,C]=N(""),[S,x]=N(""),{t:T}=O();if(!h||!h.token)return null;let w=At(h);async function E(){confirm(T("proRightOpenPro"))?window.open(Y6):D.debug("\u53D6\u6D88\u4F1A\u5458")}async function k(){if(!w){E();return}try{if(y)return;b(!0),x("");let L=await fm(h?.token,e,a),U="";switch(L){case"upload":{U=T("successSyncConfigToAccount");break}case"override":{U=T("successSyncConfigInAccount");break}default:U=T("syncConfigNoUpdate")}C(U)}catch(L){C(""),x(L.message)}finally{b(!1)}}let M=le(L=>{if(!w){E();return}l({...u,proAutoSync:L})},[]),I=le(L=>{if(!w){E();return}t(U=>({...U,proSyncAPIKey:L}))},[]),R=u?.proAutoSync!=!1,P=e?.proSyncAPIKey!=!1;return w||(R=!1,P=!1),d(ce,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!P)},checked:P}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),k()},"aria-busy":y,href:"#",role:"button",children:[s8," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!S&&!v&&u?.accountLastSyncedAt&&w),children:T("lastSyncedAt",{date:Kv(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:He()||w,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!S,children:S})]})}}var eO=Bn(fm,1e3);async function fm(e,t,n){try{if(t===null)return"noupdate";let r=await Mt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Oi(t.proSyncAPIKey,t);return await Ph(e,c),await kt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await c8(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),mv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=Oi(t.proSyncAPIKey,t);return await Ph(e,u),await kt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||gv(n)&&eO(n.token,e,t)},[e,n])}function l8(){let[e,t]=N(null);return z(()=>{tt.get(mt,null).then(n=>{t(n)})},[t]),e}function c8(e){return(location.href?.indexOf("popup.html")>0?_r:te)({responseType:"json",url:ft+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Ph(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?_r:te)({responseType:"json",url:ft+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var s8=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),tO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),nO=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var rO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${F}-modal-overlay`&&r()},id:`${F}-modal-overlay`,children:d("div",{style:i,children:t})})},d8=rO;var Ih="Arial",$l=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Ih.toLowerCase()?!0:m8(Ih,t).join("")!==m8(e,t).join("")}catch{return!1}};function m8(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Ih,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Fh(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function g8(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Bh(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Bh(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Bh(n)},r,a);return aO(i)}catch{return Promise.reject("Encryption failed")}}function aO(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=P.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=hd(v);let B=yd(v);L.install_week=`${B.year}${B.week}`}if(n.user){let B=Ty(n.user);B&&Object.keys(B).forEach(H=>{L[H]=B[H]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),x?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let U="html";if(n.rule.pageType&&(U=n.rule.pageType),L.page_type=U,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let H=new URL(B);L.site_host=H.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),y&&(L.ab_group=y),L.campaign=b||"none",{...P,params:L}});if(i)return;M.forEach(async P=>{let L=await te({responseType:"text",url:P,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&iO(p,R),n.config.enablePerformanceReport&&uO(n,R)}catch(r){D.debug("report error",r)}}function iO(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};p8(r);let a=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var oO=Date.now(),sO=["translate_page","translate_video_subtitle"];function uO(e,t){try{t.forEach(async n=>{if(!sO.includes(n.name)||e.config.performanceBlockUrls?.some(l=>gt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};p8(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-oO},s=await g8(JSON.stringify(o),ay,iy);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);te({url:ml,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function p8(e){return e?.install_day&&(e.install_day=bd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function eo({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=He(),[m,g]=N(!1),[p,f]=N(""),[h,y]=N(""),[b,v,C,S,x]=Te(me),T=pm(i),w=R=>{v(P=>{let L={...P,[n]:R};return n==="translationService"&&(Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${P.translationService}_${R}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},E=ne(()=>{if(!t)return[];t.user=i??t.user;let R=Es(t,n,l);return o?.length&&(R=R.filter(P=>o.find(L=>L==P.id))),R},[t,i,n,l,o]),k=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:R}=e,P=t[n],L=R?.[P],U=Vl(L,t.localConfig.aiAssistants||[]);if(U&&L){let B=iu(U);return{...L,...B,aiAssistant:U}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let R=t[n];return As(t,n,l,R)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:r||u("service"),description:a||u("select translation service")}),d(lO,{selectService:w,translationServiceItems:E,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(cO,{verifiedErrorMessage:p}),d(dO,{ctx:t,curServiceConfig:k,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:h,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(Oh,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(Nh,{curServiceItem:M,t:u}),d(Uh,{curServiceItem:M,t:u}),d(_h,{currentTranslationServiceItem:M,t:u}),jh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),Hh({config:e,curServiceConfig:k,curServiceItem:M,setSettings:v,t:u})]})]})}function _h({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function lO({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:j0(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function cO({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function dO({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await ut(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await mr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){D.debug("e.status",c.status),D.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){D.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function Oh({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Fh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function Nh({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function Uh({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function jh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(ce,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l}=h8(e,t,n,o);return d("div",{class:"mt-2",children:[d(ua,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:o,value:u,disabled:l,onSetSettings:r,onChange:c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return b8(e,p,o.name,c),{...m,translationServices:{...g,[n.id]:{...p,[o.name]:c}}}})},onFinish:()=>{nt(i("saved"))}},o.name+n.id),d(mO,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function Hh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,forceExpand:i}){if(!t||!e||!n?.optionalProps?.length||!r)return null;let o=n?.id.startsWith("custom-ai"),s=d(ce,{children:[d("div",{children:n.optionalProps.map((u,l)=>{let{value:c,disabled:m}=h8(e,t,n,u);return t?.aiAssistant&&!t?.aiAssistant?.enableRichTranslate&&u.name=="enableRichTranslate"?null:d("div",{class:"mt-2",children:d(ua,{config:e,service:n?.id,disabled:m,field:u,value:c,onSetSettings:r,onChange:g=>{r(p=>{let f=p.translationServices||{},h=f[n.id]||{};return b8(e,h,u.name,g),{...p,translationServices:{...f,[n.id]:{...h,[u.name]:g}}}})},onFinish:()=>{nt(a("saved"))}},u.name+n.id+t.assistantId+t.fallbackAssistantId)},"service-item-optional-prop-"+u.name+l)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:u=>{u.preventDefault(),window.confirm(a("confirmResetToDefaultSettings"))&&r(c=>{let m=c.translationServices||{};setTimeout(()=>window.location.reload(),50);let g=m[n.id]||{};if(o){let p=["type","name","extends","apiUrl","APIKEY"];Object.keys(g).forEach(f=>{p.includes(f)||delete g[f]})}else g={};return{...c,translationServices:{...m,[n.id]:g}}})},children:a("resetToDefaultSettings")})]});return i?s:d(ce,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),s]})})}function mO({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=le(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ua,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{nt(a("saved"))}})}function f8(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function h8(e,t,n,r){if(!r)return{value:"",disabled:!1};let a=r.name!="assistantId"&&r.name!="apiUrl"&&!!t.aiAssistant,i=t[r.name];return r.name=="enableRichTranslate"&&(e.translationMode=="dual"?i=t.dualEnableRichTranslate??t.enableRichTranslate:e.translationMode=="translation"&&(i=t.translationEnableRichTranslate??t.enableRichTranslate)),r.descriptionKey=="description.enableRichTranslate"&&e.translationMode=="dual"&&t.dualEnableRichTranslate!=null&&(r.descriptionKey="description.aiDualEnableRichTranslate"),r.descriptionKey=="description.aiDualEnableRichTranslate"&&e.translationMode=="translation"&&(r.descriptionKey="description.enableRichTranslate"),r.name==="apiUrl"&&n?.id==="openai"&&t?.APIKEY?.startsWith("immersiveopenai_")&&(a=!0,i=`https://openai-api.${et}/v1/chat/completions`),r.name=="placeholderDelimiters"&&(r.default=t.placeholderDelimiters||r.default),{value:i,disabled:a}}function b8(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function y8(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function v8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function C8(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function x8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function S8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function T8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function w8(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var A8=jd();function hm(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let[u,l]=i8(),[c,m]=N(null);return z(()=>()=>{Kt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d(gO,{}),d(wO,{config:o,user:c,setUser:m}),d(vO,{config:o}),d(eo,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(pO,{config:o}),d(IO,{config:o}),d(CO,{config:o}),d(xO,{config:o}),d(SO,{config:o}),d(TO,{config:o}),d(fO,{config:o,ctx:s}),d(yO,{setSettings:n,config:o}),d(d8,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${F}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function gO(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Ol({...i,isShowContextMenu:!0}),a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(c=>{D.error("clean local config error",c)}),ca().catch(c=>{D.error("clean cache error",c)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ca().then(()=>{nt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(x8,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(S8,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function pO({config:e}){let[t,n,r,a,i]=Te(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(ye,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),X(!0)||setTimeout(()=>{Ol()},200)},children:Vi(sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function fO({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>LO(l),[l]),f=le(Bn((v,C)=>{a&&i(S=>{let x=S.translationThemePatterns||{};return{...S,translationTheme:C,translationThemePatterns:{...x,[C]:v}}})},400),[i]),h=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return z(()=>{m&&(Gs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(ce,{children:[d(bO,{translationTheme:l,onChange:v=>{let C=v.target;h(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),b(),d(PO,{config:e}),d(hO,{translationThemes:mf,selectedTheme:l,selectDisplay:h})]})})]});function y(){return d(ce,{children:d("font",{class:Qs(l,!1,[],!1).join(" "),children:d("font",{class:Js(l).join(" "),children:n("sampleTargetText")})})})}function b(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let S=m||{},x=`theme-${l}-${v.name}`,T=RC(x)||v.default||void 0,w=S[v.name]||T;return d(ua,{config:e,field:v,value:w,onSetSettings:i,onChange:E=>{g(k=>(Gs(document,l,{...k,[v.name]:E},a.selectTranslationFont),{...k,[v.name]:E}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function hO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:Qs(a,!1,[],!1).join(" "),children:d("font",{class:Js(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function bO({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(ye,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:mf.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function yO({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(h=>{let y=h.translationThemePatterns||{},b=y[p]||{},v=b.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...h,translationThemePatterns:{...y,[p]:{...b,matches:C}}}})},c=(g,p)=>{e(f=>{let h=f.translationThemePatterns||{},y=h[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...h,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(la,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ua,{urls:MO(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function vO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=l=>{Ys({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function CO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(Xl,{title:t("always languages"),description:t("always translate the following languages"),languages:A8,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function xO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),{handleTranslationLanguagePatternSelected:s}=k8(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(Xl,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:A8,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function SO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];if(g==="edit"){if(!b[c])return p;b[c]=l}return b=qn(l,b),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Mt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],h=f.filter(b=>b.match!==p),y=!1;h.length!==f.length&&(y=!0),y&&kt({...m,tempTranslationUrlMatches:[...h]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function TO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,h=[],y=[];f&&f.matches&&f.excludeMatches&&(h=f.matches,y=f.excludeMatches);let b=[...h],v=[...y];return g==="edit"&&(v[c]=l),b=Jt(l,h),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:b,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(h=>{f=Jt(h,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function k8(e){return{handleTranslationLanguagePatternSelected:le((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var qh=0,Vh;async function D8(e){if(qh>60*10)return null;qh++,tt.refresh(),await ut(300);let t=await tt.get(mt,null);D.debug("loopCheckUser",qh,t),t?(clearTimeout(Vh),e(t)):Vh=setTimeout(D8.bind(null,e),1500)}function E8(e){let{user:t,lang:n}=e,r=He(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=DO(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):Sy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function wO({config:e,user:t,setUser:n}){let{t:r}=O(),a=He(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=Te(me),m=e.interfaceLanguage;z(()=>(tt.get(mt,null).then(h=>{h&&(n(h),EO(h.token).then(y=>{let b=y.data;b.token=h.token,tt.set(mt,b),n(b),Fo()}).catch(y=>{Ll(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(Vh)}),[]);let g=le(h=>{h&&h.preventDefault&&h.preventDefault(),t?.token&&AO(t.token).finally(async()=>{await tt.remove(mt),await ut(200),await tt.refresh(),n(null),Fo()})},[t]),p=le(async h=>{kC()&&(h&&h.preventDefault&&h.preventDefault(),kO(vs),await tt.set(sl,!0),D8(y=>{fm(y.token,o,s),n(y),Wh?.close(),window.location.reload()}))},[n]),f=t?.avatar||t8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(E8,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Dn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:li})]}),d("div",{class:"",children:d("a",{href:`${Ai}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:li})]}),d(E8,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:Ai,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:N6,onClick:p,children:r(a?"loginForSafari":"login")})]})}function EO(e){return te({responseType:"json",url:ft+"v1/user",method:"get",headers:{token:e}})}function AO(e){return te({responseType:"json",url:ft+"v1/user/logout",method:"delete",headers:{token:e}})}var Wh=null;function kO(e){let r=screen.width/2-230,a=screen.height/2-640/2;return Wh=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),Wh}function DO(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function LO(e){let t=[];return il[e]&&(t=t.concat(il[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function MO(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var zh="";function PO({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(RO,{config:e,isOpen:n})]})}function RO({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);z(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(h=>$l(h,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(h=>h===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=Te(me),g=p=>{p!==zh&&!$l(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let h=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&h&&f.translationThemePatterns&&f.translationThemePatterns[h]&&(y=f.translationThemePatterns[h]),Gs(document,h,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(zh))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let h=n(`font.${p}`);h.startsWith("font.")&&(h=p);let y=p=="none"?zh:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:h},"locale"+f)})})]})}function IO({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function rn(e){return Ae.ASSETS_BASE_URL+e}function Gh(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function L8(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}var FO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),h=xe(null),y=xe(null),b=()=>{u||!l&&(qe().any||Cr())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||Cr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{h.current&&(clearTimeout(h.current),m?.()),f(!1)},S=ne(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),x=ne(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),T=w=>Ld()?d("div",{style:S,role:"tooltip",children:w}):d("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:b,onMouseLeave:C,onTouchStart:()=>{l&&b()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:x,children:T(e)})]})},Pt=FO;var bm=!1;function Kh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o);Xe(t,n);let{t:u,lang:l}=O(),c=s&&ws(s,"translationService",l)||[],m=Io(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),h=As(s,"translationService",l,f);return d(OO,{service:f,currentTranslationServiceItem:h,ctx:s})},[m,c]);!bm&&m==="#services"&&(bm=!0),z(()=>()=>bm=!1,[]),z(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${Al(8)}`;if(s?.config.translationServices[f]){p();return}await n(h=>{let y=h.translationServices||{},b=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${b+2}`,{...h,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(cl,"_blank"),children:d(L8,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(cl,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(BO,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function BO({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=Te(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!ti.find(I=>I==e.id),[e]),m=le(I=>{i(R=>{let P=R.translationServices?.[e.id]||{};return{...R,translationServices:{...R.translationServices,[e.id]:{...P,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},h=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=He(),b=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,b,e.id,e.ok]),S=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(R=>{Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${e.id}`}}],t);let P={...R,translationService:e.id};return P.translationServiceChangedbyUserAt=new Date().toISOString(),P}))},x=t.translationService===e.id,T=x||Bf(l,r),w=n("translationServices."+e.id),E=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:F+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:F+"-link"}}),k=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,E="",k="custom-ai"),d("div",{class:"service-container","data-selected":x?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:rn(`images/${k}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(Pt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:E}}),h&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:S,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function _O(e,t){let[n,r]=N(!1),[a]=Te(me),[i,o]=N("");return[le(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await mr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function OO({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=pt(a),{t:c}=O(),m=pm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,S=t?.id||"",x=C?.[S],T=Vl(x,n.localConfig.aiAssistants||[]);if(T&&x){let w=iu(T);return{...x,...w,aiAssistant:T}}return x?{...x}:{}}return null},[l,n,t,e]),[p,f,h]=_O(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,b=g?.type,v=c("translationServices."+e)+" "+c("setting");if(b){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(ce,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!bm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&h==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),h&&h!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:h}})}),y&&d("article",{children:[d(Oh,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(Nh,{curServiceItem:t,t:c}),d(Uh,{curServiceItem:t,t:c}),d(_h,{currentTranslationServiceItem:t,t:c}),jh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),Hh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(f8,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ma(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var NO=xn+"assets/uploads/default-oade4Y.png";function P8({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=le(()=>m(NO),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:h}=om(),y=Oe(),[b,v]=y;Xe(b,v);let C=pt(b);z(()=>{ih(e).then(x=>{a(x),m(x.avatar),o({name:x.i18n[t]?.name||x.name,description:x.i18n[t]?.description||x.description,details:x.i18n[t]?.details||x.details}),u(lt.sanitize(x.i18n[t]?.details||x.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let S=p?.some(x=>x.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:x=>{if(x.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(Pt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(r),children:d(Yh,{assistantID:e,enable:si(r),handleInstall:f,operateLoading:h,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),S&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(Qh,{aiAssistant:r,isInstall:S}),C&&d(ce,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(ce,{children:UO.map((x,T)=>d("div",{className:"mt-2",children:d(ua,{service:"ai",config:C,field:x,value:r[x.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function Yh({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=xe(null);return z(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(w8,{}):d(T8,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${F}-loading-spinner`})]})]})})}function Qh({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Td(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...h],b=u[p];if(e.matches?.find(C=>C===b))y=M8(e.matches||[],h,[b]),y.push(g);else{let C=y.findIndex(S=>S.endsWith(b));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,h)=>{if(h==="edit")return l(g,p);a(y=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...b],C=e.matches?.find(x=>x===g),S=b.find(x=>x.endsWith(g));if(C&&S){if(!S.startsWith("[-]"))return;v=v.filter(x=>x!==S)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=M8(e.matches||[],h,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(No,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function M8(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var UO=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function R8(e){let t=Oe(),[n,r]=t;Xe(n,r);let a=pt(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=HO({id:e.assistantID,userConfig:n,setSettings:r}),l=le(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(ce,{children:jO.map((c,m)=>d("div",{class:"mt-2",children:d(ua,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{nt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(Qh,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var jO=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function HO({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=le(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=le(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var ym=!1,qO=xn+"assets/uploads/default-oade4Y.png";function Jh(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=VO(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let S=v.priority||1e3,x=C.priority||1e3;return S-x})),[o,e]);z(()=>{(async()=>{try{r(!0);let v=await ah(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Xe(c,m);let g=pt(c),p=cn(g),f=p?.config.interfaceLanguage||"zh-CN",h=Io(),{t:y}=O();z(()=>{rh(void 0,void 0,!0)},[]),!ym&&h==="#ai"&&(ym=!0),z(()=>()=>ym=!1,[]);let b=ne(()=>{if(!h.startsWith("#ai/"))return null;let v=h.slice(4);return v.startsWith("custom")?d(R8,{assistantID:v}):d(P8,{assistantID:v,lang:f,hasAssistantsRoute:ym})},[h,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${F}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(rt,{children:d(me.Provider,{value:l,children:[h==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ma,{image:rn("images/assistant_intro.png"),nightImage:rn("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${F}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(zO,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${F}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),b]})})}function zO({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=le(()=>i(qO),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=om();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(Pt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(e),children:d(Yh,{assistantID:e.id,enable:si(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function VO(){let e=xe(!1),{t}=O(),[n,r]=Oe();Xe(n,r);let a=n?.customAiAssistants||[];return z(()=>{!n||e.current||(async()=>{try{let s=(await Wl()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),Bo("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return D.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+Al(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var nr={};M0.forEach(e=>{e.labelKey&&(nr[e.key]=e.labelKey)});function Zh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=N(null),{t:u}=O();if(z(()=>{Ze().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(WO,{config:l}),d(GO,{config:l}),d(KO,{config:l}),d(eo,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(YO,{config:l}),d(QO,{config:l}),d(ZO,{config:l}),d(JO,{config:l})]})})}function WO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d(ce,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${xn}videos/input-translation-demo-202307044.mp4`:`${xn}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function GO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=l=>{n(c=>({...c,inputTargetLanguage:l}))};if(!e)return null;let u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?o("inputTargetLanguageDescriptionForNoneKey"):o("inputTargetLanguageDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,12,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e.inputTargetLanguage,children:Ot(l,e.interfaceLanguage)},"language"+c))})]})}function KO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function YO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(ye,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function QO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:M0.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function JO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O(),[s,u]=N(!1),l=b=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(b,v,C,S)=>{l(C),n(x=>{let T=x.inputTranslationUrlPattern,w=[],E=[];T&&T.matches&&T.excludeMatches&&(w=T.matches,E=T.excludeMatches);let k=[...w],M=[...E];return S==="edit"&&(C==="matches"?k[v]=b:M[v]=b),C==="matches"?(k=qn(b,k),M=Jt(b,E)):(k=Jt(b,w),M=qn(b,M)),{...x,inputTranslationUrlPattern:{...x.inputTranslationUrlPattern,matches:k,excludeMatches:M}}})},h=(b,v)=>{n(C=>{let S=C.inputTranslationUrlPattern,x=[];v==="matches"?S&&S.matches&&(x=S.matches):S&&S.excludeMatches&&(x=S.excludeMatches);let T=[...x];return b.forEach(w=>{T=Jt(w,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(b,v,C)=>{l(v),p(b),m(C)};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(la,{toggleModal:b=>{b.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:h,onEditUrl:y})]}):null}function ZO({config:e}){let[t,n,r,a,i]=Te(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(ye,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function Xh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return z(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(rN,{}),d(nN,{}),d(XO,{}),d($O,{}),d(eN,{}),d(tN,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function XO(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),nt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] - }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function $O(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),nt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function eN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Lo()),Ns().catch(l=>{D.error("clean local config error",l)}),ca().catch(l=>{D.error("clean cache error",l)}),nt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),nt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function tN(){let[e,t,n,r,a]=Te(me),i=pt(e),o=cn(i),{t:s}=O(),[u,l]=N("");return z(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Hu.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Ln();if(!g){p.customAiAssistants=[];let S=p.aiAssistants||[];p.aiAssistants=S.filter(x=>!x.custom),Fr(p),nt(s("saved"));return}let f=Hu.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(S=>S.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(S=>S.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Fr(p),nt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function nN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Fo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:ol})}})]})}function rN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var aN="buildinConfig",iN={},vm=_C(aN,iN);function I8(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var oN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},sN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},uN=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},lN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},cN=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},dN=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:Ju+"releases",children:e})]})},mN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},gN=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $h(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=vm(),[c,m]=N(null),[g,p]=N(""),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[S,x]=N(null),[T,w,E,k]=Oe();Xe(T,w);let[M,I]=N(!1),[R,P]=N(!1),L=Pr(),U=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",B=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",H=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",W={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:U},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:B},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:H}},Z=W.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?Z=W["zh-TW"]:r.startsWith("zh")&&(Z=W["zh-CN"]);let Se=!0;He()&&v&&(Se=v.generalRule.showSponsorOnSafari);let pe=async()=>{p("");let $=o;if(o===null)try{let se=await Br({url:wi});se?(s(se),$=se,b(!0)):(p(n("unknownError")),m(null))}catch(se){m(null),p(se.message);return}$!==null?(l($),m(!1),t($.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};z(()=>{Ze().then($=>{P($.interfaceLanguage!=="zh-TW");let se=$.buildinConfigUpdatedAt;C($);let be=new Date(se);t(se),Br({url:wi}).then(he=>{let Le=he.minVersion,Ve=L;s(he);let J=he.resaleVersion;if(J&&(ja(Ve,J)?x(!0):x(!1)),ja(Ve,Le)){let Ee=he.buildinConfigUpdatedAt;new Date(Ee)>be?(m(!0),pe()):m(!1)}else h(!0),m(null)}).catch(he=>{m(null),p(he.message)})}),e8().then($=>{i($)})},[]),z(()=>{Ze().then($=>{C($),ia($)})},[T,e]);let q=$=>{w(se=>{let be=!se.alpha;return be?nt(n("enableAlphaSuccess")):nt(n("disableAlphaSuccess")),{...se,alpha:be}})},G=$=>{$.preventDefault(),$.stopPropagation(),I(!0),ca().then(()=>{I(!1),nt(n("cleanSuccess")),i("0 B")}).catch(se=>{I(!1),bt(se.message)})},ee=$=>{w(se=>({...se,cache:$}))},Re=$=>{w(se=>({...se,enabled:$}))},ve="aboutIntro";Se||(ve="aboutIntroWithoutSponsor");let Ye=new Date().getFullYear();return v?d(rt,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:I8(7)(q),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:["V",L,u6()?"(Beta)":""]}),S===!1&&d(dN,{latestVersion:o?.resaleVersion}),S===!0&&d(mN,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Re(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{ee(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:G,children:n("cleanCache")})]}),g?d(gN,{handleSyncing:pe,message:g,date:e||""}):y?d(cN,{minVersion:o.minVersion}):c===null?d(uN,{}):c===!0?d(lN,{}):f?d(sN,{date:e}):d(oN,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+yo,5:`https://${yo}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${yo}_tw`,10:"https://x.com/immersivetrans"})}}),R&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:Ju+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ol,onClick:$=>{$.preventDefault(),ur(ol)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:$=>{$.preventDefault(),ur(Q)},children:n("projectHomepage")})}),Se&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:Z.poster,src:Z.src,style:"border-radius: 38px;"})})]})]}),R&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${yo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Ye," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var pN=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(fN,{...e})]})};function fN(e){let{onAddTag:t,tags:n}=e,r=xe(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(ce,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var F8=pN;var hN=jd();function e3(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Xe(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(rt,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(yN,{config:o,ctx:s}),d(vN,{config:o}),d(bN,{config:o,setSettings:n}),d(CN,{ctx:s}),d(xN,{ctx:s}),d(SN,{config:o}),d(wN,{config:o}),d(TN,{config:o}),d(EN,{config:o}),d(FN,{config:o}),d(AN,{config:o}),d(IN,{config:o}),d(RN,{}),d(kN,{config:o}),d(DN,{config:o}),d(LN,{config:o}),d(MN,{config:o,ctx:s,...m(u,"translationModeLang")}),d(PN,{config:o,...m(u,"translationModeUrl")})]})})})}function bN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=le(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(ce,{children:[d("div",{class:"nav",children:d(ye,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(F8,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function yN({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function CN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function xN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(ye,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function SN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function TN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function wN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return X(!0)?null:d("div",{class:"nav",children:[d(ye,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Ol({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function EN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function AN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function kN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function DN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),[s]=vm();return s.generalRule?d("div",{class:"nav",children:[d(ye,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function LN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function MN({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Te(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:b4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],S=[...v];f?S=Array.from(new Set([...S,b])):S=S.filter(E=>E!==b);let x=C.filter(E=>E!==b),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:S,[m]:x}},w=Qv(e,b);return w&&(T.translationLanguagePairs=w),T})};return d(Xl,{title:r,description:a,languages:hN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function PN({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Te(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,S=C?.[t]||[],x=C?.[c]||[],T=[...S];h==="edit"?T[b]=f:T=Array.from(new Set([...T,f]));let w=x.filter(E=>E!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:w}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(No,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function RN(){let[e,t]=da(),{t:n}=O();return vy()?null:d("div",{class:"nav",children:[d(ye,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function IN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function FN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(ye,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function t3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),{t:u}=O();return s?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${yo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}function n3(e){let{disableTipText:t}=e;return e.disabled&&t?d(Pt,{text:t,enableMobile:!0,tipStyle:{left:"unset",right:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(B8,{...e})}):d(B8,{...e})}function B8(e){return d("label",{for:e.id,children:d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})})}var cu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Cm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function xm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Sm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var _8=[];function Tm(e,t){let[n,r]=N(_8);return z(()=>{if(n.length||!e.length)return;let i=e.filter(o=>$l(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),_8=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function r3(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var du=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],wm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function a3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedVideoSubtitleSites),c=`
+ }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function $O(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),nt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function eN(){let[e,t,n,r,a]=Te(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Lo()),Ns().catch(l=>{D.error("clean local config error",l)}),ca().catch(l=>{D.error("clean cache error",l)}),nt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),nt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function tN(){let[e,t,n,r,a]=Te(me),i=pt(e),o=cn(i),{t:s}=O(),[u,l]=N("");return z(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=Hu.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Ln();if(!g){p.customAiAssistants=[];let S=p.aiAssistants||[];p.aiAssistants=S.filter(x=>!x.custom),Br(p),nt(s("saved"));return}let f=Hu.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],b=p.customAiAssistants||[],v=y.findIndex(S=>S.id===f.id);v<0?y.push(f):y[v]=f;let C=b.findIndex(S=>S.id===f.id);C<0?b.push(f):b[C]=f,p.customAiAssistants=b,p.aiAssistants=y,Br(p),nt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function nN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Fo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:ol})}})]})}function rN(){let[e,t,n,r,a]=Te(me),i=pt(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var aN="buildinConfig",iN={},vm=_C(aN,iN);function I8(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var oN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},sN=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},uN=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},lN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},cN=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},dN=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:Ju+"releases",children:e})]})},mN=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},gN=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function $h(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=vm(),[c,m]=N(null),[g,p]=N(""),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[S,x]=N(null),[T,w,E,k]=Oe();Xe(T,w);let[M,I]=N(!1),[R,P]=N(!1),L=Rr(),U=xn+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",B=xn+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",H=xn+"assets/uploads/full-intro-en-NlkG5c.mp4",W={"zh-CN":{poster:xn+"static/official-static/assets/price/video-poster-zh-Hans.png",src:U},"zh-TW":{poster:xn+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:B},en:{poster:xn+"static/official-static/assets/price/video-poster-en.png",src:H}},Z=W.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?Z=W["zh-TW"]:r.startsWith("zh")&&(Z=W["zh-CN"]);let Se=!0;He()&&v&&(Se=v.generalRule.showSponsorOnSafari);let pe=async()=>{p("");let $=o;if(o===null)try{let se=await _r({url:wi});se?(s(se),$=se,h(!0)):(p(n("unknownError")),m(null))}catch(se){m(null),p(se.message);return}$!==null?(l($),m(!1),t($.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};z(()=>{Ze().then($=>{P($.interfaceLanguage!=="zh-TW");let se=$.buildinConfigUpdatedAt;C($);let be=new Date(se);t(se),_r({url:wi}).then(he=>{let Le=he.minVersion,Ve=L;s(he);let J=he.resaleVersion;if(J&&(ja(Ve,J)?x(!0):x(!1)),ja(Ve,Le)){let Ee=he.buildinConfigUpdatedAt;new Date(Ee)>be?(m(!0),pe()):m(!1)}else b(!0),m(null)}).catch(he=>{m(null),p(he.message)})}),e8().then($=>{i($)})},[]),z(()=>{Ze().then($=>{C($),ia($)})},[T,e]);let q=$=>{w(se=>{let be=!se.alpha;return be?nt(n("enableAlphaSuccess")):nt(n("disableAlphaSuccess")),{...se,alpha:be}})},G=$=>{$.preventDefault(),$.stopPropagation(),I(!0),ca().then(()=>{I(!1),nt(n("cleanSuccess")),i("0 B")}).catch(se=>{I(!1),bt(se.message)})},ee=$=>{w(se=>({...se,cache:$}))},Re=$=>{w(se=>({...se,enabled:$}))},ve="aboutIntro";Se||(ve="aboutIntroWithoutSponsor");let Ye=new Date().getFullYear();return v?d(rt,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:I8(7)(q),class:`text-lg ${F}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${F}-no-select`,onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:["V",L,u6()?"(Beta)":""]}),S===!1&&d(dN,{latestVersion:o?.resaleVersion}),S===!0&&d(mN,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Re(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{ee(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!X(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:G,children:n("cleanCache")})]}),g?d(gN,{handleSyncing:pe,message:g,date:e||""}):y?d(cN,{minVersion:o.minVersion}):c===null?d(uN,{}):c===!0?d(lN,{}):f?d(sN,{date:e}):d(oN,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+yo,5:`https://${yo}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${yo}_tw`,10:"https://x.com/immersivetrans"})}}),R&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:xn+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:xn+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:Ju+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ol,onClick:$=>{$.preventDefault(),ur(ol)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:$=>{$.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:$=>{$.preventDefault(),ur(Q)},children:n("projectHomepage")})}),Se&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:Z.poster,src:Z.src,style:"border-radius: 38px;"})})]})]}),R&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${yo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Ye," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var pN=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(fN,{...e})]})};function fN(e){let{onAddTag:t,tags:n}=e,r=xe(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(ce,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var F8=pN;var hN=jd();function e3(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=cn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Xe(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=h=>l(`${p}.translation.${h}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(rt,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(yN,{config:o,ctx:s}),d(vN,{config:o}),d(bN,{config:o,setSettings:n}),d(CN,{ctx:s}),d(xN,{ctx:s}),d(SN,{config:o}),d(wN,{config:o}),d(TN,{config:o}),d(EN,{config:o}),d(FN,{config:o}),d(AN,{config:o}),d(IN,{config:o}),d(RN,{}),d(kN,{config:o}),d(DN,{config:o}),d(LN,{config:o}),d(MN,{config:o,ctx:s,...m(u,"translationModeLang")}),d(PN,{config:o,...m(u,"translationModeUrl")})]})})})}function bN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=le(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(ce,{children:[d("div",{class:"nav",children:d(ye,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(F8,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function yN({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function CN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function xN({ctx:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(ye,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function SN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function TN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function wN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return X(!0)?null:d("div",{class:"nav",children:[d(ye,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Ol({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function EN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function AN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function kN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function DN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me),[s]=vm();return s.generalRule?d("div",{class:"nav",children:[d(ye,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function LN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function MN({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=Te(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:b4(e),[t,e,n]),p=(f,h)=>{s(y=>{let b=y.translationModeLanguagePattern,v=b?.[n]||[],C=b?.[m]||[],S=[...v];f?S=Array.from(new Set([...S,h])):S=S.filter(E=>E!==h);let x=C.filter(E=>E!==h),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:S,[m]:x}},w=Qv(e,h);return w&&(T.translationLanguagePairs=w),T})};return d(Xl,{title:r,description:a,languages:hN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function PN({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=Te(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,h,y,b)=>{o(v=>{let C=v.translationModeUrlPattern,S=C?.[t]||[],x=C?.[c]||[],T=[...S];b==="edit"?T[h]=f:T=Array.from(new Set([...T,f]));let w=x.filter(E=>E!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:w}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(No,{title:n,description:r,urls:g,onDeleteUrl:(f,h)=>{o(y=>{let b=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[h]:b}}})},onSubmitAddUrl:m,type:t})}function RN(){let[e,t]=da(),{t:n}=O();return vy()?null:d("div",{class:"nav",children:[d(ye,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function IN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return d("div",{class:"nav",children:[d(ye,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function FN({config:e}){let{t}=O(),[n,r,a,i,o]=Te(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(ye,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function t3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),{t:u}=O();return s?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${yo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}function n3(e){let{disableTipText:t}=e;return e.disabled&&t?d(Pt,{text:t,enableMobile:!0,tipStyle:{left:"unset",right:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(B8,{...e})}):d(B8,{...e})}function B8(e){return d("label",{for:e.id,children:d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})})}var cu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Cm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function xm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Sm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var _8=[];function Tm(e,t){let[n,r]=N(_8);return z(()=>{if(n.length||!e.length)return;let i=e.filter(o=>$l(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),_8=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function r3(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var du=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],wm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function a3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedVideoSubtitleSites),c=``,m=[...l.map((g,p)=>` ${g.name} ${p!==l.length-1?", ":""} - `),c].join("");return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ma,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(_N,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(eo,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(BN,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(ON,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function BN(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function _N(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(ce,{children:[d("div",{class:"youtube-header",children:[d(jN,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(ye,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(n3,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:vf})}),d(n3,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("subtitle.ytAIAsrProTooltip",{1:vf}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function ON(e){let{t}=O(),[n,r]=N(!1),a=UN(e.subtitleRule,t,n),i=le(async()=>{let s=(await Us())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return wm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(ce,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(ye,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(NN,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function NN(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(ye,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var UN=(e,t,n)=>{let r=Sm(t),a=Tm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:cu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:cu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:du,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:du,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Cm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:xm(t),selectKey:e.textShadowType}]};function jN(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var O8=Fu({presets:[jc(),qc()]});var HN=1e5;async function ci(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=qN(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:m,isModifyImage:g,skipEditableCheck:p}=r,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},b=!1,y=null;async function h(w){let{container:E,onFrame:k,onIgnoreElement:M,id:I,isLongHtml:R}=w,P=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let H=U(B);return H==NodeFilter.FILTER_ACCEPT?Rt.mark(B,I,p):JN(B,H,r)&&C(),H}),L=E;if(U(L)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(L,I,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await ut(0)),u&&u.length>0){let{currentNode:H,isMatchedSelection:W}=v(P,L,u);if(H)L=H;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let H=L;if(H.nodeName==="IFRAME"){k&&k(H),C(),i3(f,!0),L=P.nextNode();continue}H.nodeType===Node.ELEMENT_NODE&&(s&&o3(H,s),m&&u3(H,m));let W=ka(H,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},H.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&H.childNodes.length==1&&H.childNodes[0].nodeType===Node.TEXT_NODE&&H.innerText?.length==1&&H?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),qt(H,o)&&!W){S(H);let pe=null;for(;!(pe=P.nextSibling())&&P.parentNode(););L=pe;continue}let Z=Mo(H);if(!N8(f,H)||W){C(H);let pe=W?H:H.parentElement;pe&&pe.childNodes.length>0&&x(f,pe,pe.immersiveTranslateComputedStyle||null)}Z&&H.shadowRoot?.mode==="open"&&(W?k?.(H.shadowRoot):h({...w,container:H.shadowRoot})),H.nodeType===Node.ELEMENT_NODE&&qt(H,r.likePreSelectors)&&l&&(R||GN(H))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=P.nextNode(),f.commonAncestorContainer&&L&&L.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(L)}function U(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ro(B)){if(m){let Se=Object.keys(m);if(Se.length>0&&qt(B,Se))for(let q of Se){let G=m[q];if(B.matches(q)){let ee=m[q],Re=Object.keys(ee);for(let ve of Re){let Ye=ee[ve];B.getAttribute(ve)!==Ye&&(Ye===null?B.removeAttribute(ve):B.setAttribute(ve,Ye))}break}}}if(!w.force&&Rt.isMarked(B,I)||Gv(B,I)||Em(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Hi(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let Se=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=Se,s3(Se))return M&&M(B),NodeFilter.FILTER_REJECT;let pe=ka(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Se||null);if(B.isBlock=pe,qt(B,o)&&pe)return NodeFilter.FILTER_REJECT}let H=B.getBoundingClientRect(),{width:W,height:Z}=H;return B.nodeName==="IMG"&&(W>48&&Z>48?B.immersiveTranslateComputedStyle={display:"block"}:W>0&&Z>0&&g!==!1&&(B.setAttribute("width",W),B.setAttribute("height",Z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(W>0&&W<4||Z>0&&Z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let H=B.textContent?.trim();if(!H)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||f.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=B.parentNode;if(W.getBoundingClientRect){let{width:Z,height:Se}=W.getBoundingClientRect();if(Z>0&&Z<4||Se>0&&Se<4)return NodeFilter.FILTER_REJECT}return c>0&&H.length>=c&&KN(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(w){D.error(w)}f&&f.commonAncestorContainer&&f.flatNodes.length>0&&C();function v(w,E,k){let M=E.immersiveTranslateComputedStyle||null;if(y){if(!y.contains(E))if(b=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))b=!0,y=E,C(),x(f,y,M);else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b};else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))b=!0,y=E,C(),x(f,y,M);else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b};else return b=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:b};return{currentNode:E,isMatchedSelection:!0}}function C(w){let E=f.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let M=E;M>=0;M--){let R=f.flatNodes[M]?.textContent?.trim()||"";if(!R||new RegExp(r.skipTrailTextRegex).test(R)){f.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;f.commonAncestorContainer=ZN(w,r);let M=[...f.flatNodes],I=f.flatNodes.filter(R=>w.parentNode?.contains(R));I.length>0&&M.length!=I.length&&(f.flatNodes=I,f.flatNodes.original=M)}let k=WN(f,a,r);k&&n&&n(k),i3(f)}function S(w){if(!N8(f,w)){C(),i3(f);let E=w.parentNode;E&&x(f,E,E.computedStyle)}f.flatNodes.push(w)}function x(w,E,k){w.commonAncestorContainer=E;let M=T(k);w.isPreWhitespace=M}function T(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function N8(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mo(t));let r=VN(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function qN(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function zN(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function o3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function VN(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mo(t)):!1}function WN(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=_d(r,a,n);o||(o=a);let s=[];for(let p of r){let f=zN(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>HN){D.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:$v(o)}}else return null}function i3(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function s3(e){return e.display==="none"}var Rt={_marked_key:S6,isMarked(e,t){return C4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return cC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mo(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GN(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function KN(e,t,n){let r=e.textContent||"",a=Zv(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=oC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function j8(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),m=e.querySelector(u);if(m)for(let g of c){let p=l[g];if(g==="translate"&&p==="no"){let b=m.innerText||m.textContent||"";if(!b.trim()||QN(m,a,i,o)||!uC(b,n,r))continue}m.getAttribute(g)!==p&&(p===null?m.removeAttribute(g):m.setAttribute(g,p))}}}function u3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Em(e,t){return YN(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function YN(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Fd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function ec(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function QN(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Em(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Od(o,t,n))return!0}}return!1}function JN(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&ka(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function ZN(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&ka(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function H8(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new u0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XN(u.content,t),n&&(r=z8(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:eC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function q8(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function XN(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=$N(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,m=u?.textContent?.trim().length||0;c>m&&(u=l)}),u&&i.push(u)}),!!i.length)return _d(i,document.body,t)}function $N(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function z8(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(A0)||l3(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var tc="";async function l3(e){let t=document.title;if(!t||t.includes(A0))return;tc!==t&&(tc=t);let n=await ze({text:t,pageLangs:[Dt(),"en"]});if(!Hs(e,n))try{let r=await dr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=tc,document.title=r.text+A0+tc)}catch(r){throw r}}function W8(e){e.rule.isTranslateTitle&&(document.title=tc)}function mu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function Am(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?h4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + `),c].join("");return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ma,{image:rn("images/dual_subtitle_intro.png"),nightImage:rn("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(_N,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(eo,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(BN,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(ON,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function BN(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function _N(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(ce,{children:[d("div",{class:"youtube-header",children:[d(jN,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(ye,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(n3,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:vf})}),d(n3,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("subtitle.ytAIAsrProTooltip",{1:vf}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function ON(e){let{t}=O(),[n,r]=N(!1),a=UN(e.subtitleRule,t,n),i=le(async()=>{let s=(await Us())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return wm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(ce,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(ye,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(NN,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function NN(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(ye,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var UN=(e,t,n)=>{let r=Sm(t),a=Tm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:cu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:cu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:du,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:du,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Cm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:xm(t),selectKey:e.textShadowType}]};function jN(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var O8=Fu({presets:[jc(),qc()]});var HN=1e5;async function ci(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=qN(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:m,isModifyImage:g,skipEditableCheck:p}=r,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,y=null;async function b(w){let{container:E,onFrame:k,onIgnoreElement:M,id:I,isLongHtml:R}=w,P=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let H=U(B);return H==NodeFilter.FILTER_ACCEPT?Rt.mark(B,I,p):JN(B,H,r)&&C(),H}),L=E;if(U(L)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(L,I,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await ut(0)),u&&u.length>0){let{currentNode:H,isMatchedSelection:W}=v(P,L,u);if(H)L=H;else break;if(!W)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let H=L;if(H.nodeName==="IFRAME"){k&&k(H),C(),i3(f,!0),L=P.nextNode();continue}H.nodeType===Node.ELEMENT_NODE&&(s&&o3(H,s),m&&u3(H,m));let W=ka(H,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},H.immersiveTranslateComputedStyle||null);if(W&&r.paragraphFirstLetterFontSize>0&&H.childNodes.length==1&&H.childNodes[0].nodeType===Node.TEXT_NODE&&H.innerText?.length==1&&H?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(W=!1),qt(H,o)&&!W){S(H);let pe=null;for(;!(pe=P.nextSibling())&&P.parentNode(););L=pe;continue}let Z=Mo(H);if(!N8(f,H)||W){C(H);let pe=W?H:H.parentElement;pe&&pe.childNodes.length>0&&x(f,pe,pe.immersiveTranslateComputedStyle||null)}Z&&H.shadowRoot?.mode==="open"&&(W?k?.(H.shadowRoot):b({...w,container:H.shadowRoot})),H.nodeType===Node.ELEMENT_NODE&&qt(H,r.likePreSelectors)&&l&&(R||GN(H))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=P.nextNode(),f.commonAncestorContainer&&L&&L.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(L)}function U(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ro(B)){if(m){let Se=Object.keys(m);if(Se.length>0&&qt(B,Se))for(let q of Se){let G=m[q];if(B.matches(q)){let ee=m[q],Re=Object.keys(ee);for(let ve of Re){let Ye=ee[ve];B.getAttribute(ve)!==Ye&&(Ye===null?B.removeAttribute(ve):B.setAttribute(ve,Ye))}break}}}if(!w.force&&Rt.isMarked(B,I)||Gv(B,I)||Em(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Hi(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let Se=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=Se,s3(Se))return M&&M(B),NodeFilter.FILTER_REJECT;let pe=ka(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Se||null);if(B.isBlock=pe,qt(B,o)&&pe)return NodeFilter.FILTER_REJECT}let H=B.getBoundingClientRect(),{width:W,height:Z}=H;return B.nodeName==="IMG"&&(W>48&&Z>48?B.immersiveTranslateComputedStyle={display:"block"}:W>0&&Z>0&&g!==!1&&(B.setAttribute("width",W),B.setAttribute("height",Z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(W>0&&W<4||Z>0&&Z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let H=B.textContent?.trim();if(!H)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||f.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let W=B.parentNode;if(W.getBoundingClientRect){let{width:Z,height:Se}=W.getBoundingClientRect();if(Z>0&&Z<4||Se>0&&Se<4)return NodeFilter.FILTER_REJECT}return c>0&&H.length>=c&&KN(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await b(e)}catch(w){D.error(w)}f&&f.commonAncestorContainer&&f.flatNodes.length>0&&C();function v(w,E,k){let M=E.immersiveTranslateComputedStyle||null;if(y){if(!y.contains(E))if(h=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))h=!0,y=E,C(),x(f,y,M);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(ec(E,k))h=!0,y=E,C(),x(f,y,M);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};return{currentNode:E,isMatchedSelection:!0}}function C(w){let E=f.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let M=E;M>=0;M--){let R=f.flatNodes[M]?.textContent?.trim()||"";if(!R||new RegExp(r.skipTrailTextRegex).test(R)){f.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;f.commonAncestorContainer=ZN(w,r);let M=[...f.flatNodes],I=f.flatNodes.filter(R=>w.parentNode?.contains(R));I.length>0&&M.length!=I.length&&(f.flatNodes=I,f.flatNodes.original=M)}let k=WN(f,a,r);k&&n&&n(k),i3(f)}function S(w){if(!N8(f,w)){C(),i3(f);let E=w.parentNode;E&&x(f,E,E.computedStyle)}f.flatNodes.push(w)}function x(w,E,k){w.commonAncestorContainer=E;let M=T(k);w.isPreWhitespace=M}function T(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function N8(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mo(t));let r=VN(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function qN(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function zN(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function o3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function VN(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mo(t)):!1}function WN(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=_d(r,a,n);o||(o=a);let s=[];for(let p of r){let f=zN(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>HN){D.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:$v(o)}}else return null}function i3(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function s3(e){return e.display==="none"}var Rt={_marked_key:S6,isMarked(e,t){return C4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return cC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mo(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function GN(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=lr?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function KN(e,t,n){let r=e.textContent||"",a=Zv(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=oC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function j8(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let h=c[f];if(f==="translate"&&h==="no"){let b=p.innerText||p.textContent||"";if(!b.trim()||QN(p,a,i,o)||!uC(b,n,r))continue}p.getAttribute(f)!==h&&(h===null?p.removeAttribute(f):p.setAttribute(f,h))}})}}function u3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Em(e,t){return YN(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function YN(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Fd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function ec(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function QN(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Em(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Od(o,t,n))return!0}}return!1}function JN(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&ka(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function ZN(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&ka(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function H8(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new u0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=XN(u.content,t),n&&(r=z8(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:eC(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function q8(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function XN(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=$N(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,m=u?.textContent?.trim().length||0;c>m&&(u=l)}),u&&i.push(u)}),!!i.length)return _d(i,document.body,t)}function $N(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function z8(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(A0)||l3(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var tc="";async function l3(e){let t=document.title;if(!t||t.includes(A0))return;tc!==t&&(tc=t);let n=await ze({text:t,pageLangs:[Dt(),"en"]});if(!Hs(e,n))try{let r=await mr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=tc,document.title=r.text+A0+tc)}catch(r){throw r}}function W8(e){e.rule.isTranslateTitle&&(document.title=tc)}function mu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function Am(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?h4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} ${r.innerHTML}`}catch{return""}}function G8(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?h4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function km(e){let t=Hv(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function Pn(e){let t=e.rule;e.isRichTranslate&&(t=d4(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var eU={sanitize:e=>e};async function g3(e,t){if(e.interruptEffectDOM)return;let n=Pn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:jo.bind(null,e),onFrame:r=>{c3(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),gs&&zt(t,"consumeContainer",e.id)}function c3(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Hi(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${uf}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,La(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=Pn(t.ctx),o=0;if(l(t,e,n))return;if(Ro(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ro(m)&&(a&&o3(m,a),i&&u3(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await g3(t,c);let m=Date.now()-r;m>100&&(D.debug("batchTaskTime",m,c),r=Date.now(),await ut(0))}else gs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return c3(t,c.shadowRoot,n),!1;if(m==="iframe")return c3(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return ec(c,g.selectors);if(g.containerSelectors&&ec(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){q8(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=Pn(c.ctx);return!!(Em(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function nc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Uo(t.rootNodes),r=="original"&&n=="translation"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[]),Uo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=gu(e,t.targetNodes,s);to(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=gu(e,t.targetNodes);to(e,s,a,t.rootNodes||[]),Uo(t.targetNodes)}r=="dual"&&n=="original"&&Uo(t.targetNodes),h3(t)}catch(s){D.error(s)}}}function d3(e){return!e||!Ro(e)?!1:e.classList.contains(Yt)}function gu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Uo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function to(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var tU=hr(Dm,300);async function jo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||nU(t.rootNodes)||t.stepState>=2)return;t.stepState=2,gs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Po(i),u=i.config.translationServices[i.translationService],l=Kd(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:km(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await f3(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Da(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(D.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),rU(e,t.text),p3(e,t,r)):(gs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function nU(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ro(t)&&t.classList.contains(Yt):!1}function rU(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function p3(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),gs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,T6,"1",!0),n=="hover"){Dm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";tU.call(e,e.ctx,a)}async function Dm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=aU(e,u.toString());l&&iU.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function aU(e,t){return e.find(n=>n.id===t)}function iU(e,t,n,r,a,i){let o=!1,s=r;qs(s.commonAncestorContainer,n.id)?.remove(),h3(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(hs,"1");let p=FC(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),mu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=eU.sanitize(p);g.innerHTML=Or?.createHTML(f)||f,c.targetNodes=[g],nc(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,k6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(d3(f)||to(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=oU(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${F}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function km(e){let t=Hv(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function Pn(e){let t=e.rule;e.isRichTranslate&&(t=d4(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var eU={sanitize:e=>e};async function g3(e,t){if(e.interruptEffectDOM)return;let n=Pn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:jo.bind(null,e),onFrame:r=>{c3(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),gs&&zt(t,"consumeContainer",e.id)}function c3(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Hi(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${uf}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,La(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=Pn(t.ctx),o=0;if(l(t,e,n))return;if(Ro(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ro(m)&&(a&&o3(m,a),i&&u3(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await g3(t,c);let m=Date.now()-r;m>100&&(D.debug("batchTaskTime",m,c),r=Date.now(),await ut(0))}else gs&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return c3(t,c.shadowRoot,n),!1;if(m==="iframe")return c3(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return ec(c,g.selectors);if(g.containerSelectors&&ec(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){q8(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=Pn(c.ctx);return!!(Em(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function nc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Uo(t.rootNodes),r=="original"&&n=="translation"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[]),Uo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=gu(e,t.targetNodes,s);to(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=gu(e,t.rootNodes);if(d3(s))return;to(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=gu(e,t.targetNodes);to(e,s,a,t.rootNodes||[]),Uo(t.targetNodes)}r=="dual"&&n=="original"&&Uo(t.targetNodes),h3(t)}catch(s){D.error(s)}}}function d3(e){return!e||!Ro(e)?!1:e.classList.contains(Yt)}function gu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Uo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function to(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var tU=br(Dm,300);async function jo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||nU(t.rootNodes)||t.stepState>=2)return;t.stepState=2,gs&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Po(i),u=i.config.translationServices[i.translationService],l=Kd(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:km(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await f3(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Da(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(D.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),rU(e,t.text),p3(e,t,r)):(gs&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function nU(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ro(t)&&t.classList.contains(Yt):!1}function rU(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function p3(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),gs&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,T6,"1",!0),n=="hover"){Dm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";tU.call(e,e.ctx,a)}async function Dm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await fn(a,t,(i,o,s)=>{let u=s.id,l=aU(e,u.toString());l&&iU.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function aU(e,t){return e.find(n=>n.id===t)}function iU(e,t,n,r,a,i){let o=!1,s=r;qs(s.commonAncestorContainer,n.id)?.remove(),h3(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Yt),g.setAttribute(hs,"1");let p=FC(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),mu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=eU.sanitize(p);g.innerHTML=lr?.createHTML(f)||f,c.targetNodes=[g],nc(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,k6,g.toString()),p.classList.add("notranslate",Yt,Yt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(d3(f)||to(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=oU(a,c).replaceAll(` `,"").replaceAll('"',"""),y=c.message.replaceAll(` -`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),x=`<${m.targetWrapperTag} class="${F}-error notranslate"> +`,"").replaceAll('"',"""),b=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),x=`<${m.targetWrapperTag} class="${F}-error notranslate"> <${m.targetWrapperTag} class="${F}-error-wrapper"> - + ${C}    - + ${S} - `;p.innerHTML=Or?.createHTML(x)||x}}}var K8="";async function f3(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=K8.slice(0,e.rule?.detectTextBufferLength)+" "+o),K8=s;let u=await ze({text:s,minLength:15,pageLangs:[Dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!zs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!zs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=Z0();r.isDetectParagraphLanguage&&(g="auto");let p=Dt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!U0.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return ki(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>ki(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function rc(){m3=0}var m3=0;function oU(e,t){m3+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),m3!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(_n,{detail:r}))}return n}function h3(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,sU(t,`[${w6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function sU(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function Y8(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Ws(document.body),pageLangs:t})),e}var uU=[];function Q8(e){uU.push(e)}var b3;function J8(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=Pn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ac(e,i,t,r)}),b3=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&wr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||v3(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ac(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!ka(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Vs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),ac(e,c,t,r));continue}ac(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||ac(e,o,t,r)})}),b3.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ac(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&y3(t),ci({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{jo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Z8(){b3?.disconnect()}var lU=` + `;p.innerHTML=lr?.createHTML(x)||x}}}var K8="";async function f3(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=K8.slice(0,e.rule?.detectTextBufferLength)+" "+o),K8=s;let u=await ze({text:s,minLength:15,pageLangs:[Dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!zs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!zs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=Z0();r.isDetectParagraphLanguage&&(g="auto");let p=Dt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!U0.includes(e.translationService)&&(X()||He())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let h=g!=="auto"?g:f;return ki(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>ki(h,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function rc(){m3=0}var m3=0;function oU(e,t){m3+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),m3!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(_n,{detail:r}))}return n}function h3(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,sU(t,`[${w6}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function sU(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function Y8(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Ws(document.body),pageLangs:t})),e}var uU=[];function Q8(e){uU.push(e)}var b3;function J8(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=Pn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ac(e,i,t,r)}),b3=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||v3(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ac(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!ka(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Vs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),ac(e,c,t,r));continue}ac(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||ac(e,o,t,r)})}),b3.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ac(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&y3(t),ci({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{jo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Z8(){b3?.disconnect()}var lU=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5994,9 +5994,9 @@ x-tc-action:`+this.action.toLowerCase()+` max-width: fit-content; } } -`,C3="immersive-translate-toastify-shadow-root",x3=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(C3)){let t=document.getElementById(C3);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=C3,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=lU,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Mm(e){e=e||{},new x3({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function X8(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:y0,payload:e},"*")});let n=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(n)}function S3(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var cU="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${cU}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function $8(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Pm="DROP_DOWN_DEFAULT_VALUE";function T3(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=xe(null);return d("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Pm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Pm){s.current.value=Pm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Pm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var dU=({date:e})=>{let{t}=O(),[n,r]=N(!1);return z(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},mU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},gU=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},pU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function w3(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[S,x]=N(null),T=On(),w=async()=>{m("");let E=o;if(o===null)try{let k=await n({url:wi});k?(s(k),E=k,p(!0)):(m(i("unknownError")),l(null))}catch(k){l(null),m(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return z(()=>{Ze().then(E=>{let k=E.buildinConfigUpdatedAt;C(E);let M=new Date(k);if(a(k),T==="0.0.0"){h(!0);return}n({url:wi}).then(I=>{let R=I,P=R.minVersion,L=T;s(R);let U=R.latestVersion;if(U&&(ja(L,U)?x(!0):x(!1)),ja(L,P)){let B=R.buildinConfigUpdatedAt;new Date(B)>M?(l(!0),w()):l(!1)}else b(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),z(()=>{Ze().then(E=>{C(E),ia(E)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(gU,{}):c?t===!1?null:d(pU,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(mU,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(dU,{date:r}):null}):null}var eS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var tS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),nS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),rS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),aS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var iS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),oS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),sS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),uS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function pu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function lS(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ai,`${e.type}_user_info`);return}e.onOpenUrl(vs,`${e.type}_user_info`)},children:[d("img",{src:n?r8:n8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(fU,{...e})]})}function fU(e){let{t}=O(),n=ne(()=>pu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ai,`${e.type}_pro_logo`)},children:d("img",{src:li})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[oS,d("span",{children:t("popup.upgrade")})]})}function cS({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=$i(t.config.translationService,t.config.targetLanguage),s=or;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(hU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:a8,style:{maxWidth:"unset"},class:"mx-2"}),d(bU,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function hU(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function bU(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var dS=220;function mS(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=xe(null),[o,s]=N(dS),[u,l]=N(0);return Lu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,S=f+m.height;if(C>g.clientHeight-S){let x=Math.min(v,C);l(g.clientHeight-f-x-b)}else l(0);s(Math.max(dS,v))}},[i.current,r,t]),z(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(gS,{item:n,isDefault:!0}),uS]}),d(yU,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function yU(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=xe(null);return z(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(gS,{item:o,onClick:e.onClick},o.value))})}function gS(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:li}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var vU={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrY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b75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTjyPtxhVTdV69fd+9mJlG8VUhMefQYaqmMgmRShSK6PFpIlGBKIldKqQtJY2iiBocQLToHmMzJs4Vl0FoIyKLNEJYtudnEQcpogRJC4qgZQNdJS1woQyedlXE0kgAQUaPLgJA8A0EFIM5R+ouRKCilZiB4UpjOX0xIdGZCS7yS1j9MbChUcp6y1xjIxudKmVEXOEYh8cmGNYz4rE5WKpP7kMY0pFKezUT3rlRqaspG/FQ2E5VKvGBIqVVL/JbW6gUlqoyaoVQBUMxUFtUjYxoJUDqgeGAkJwEruVuKhDOCQpHgmUOtgiIdnr6UmkmQZKZq18/N6Kx3gySL1fVUxqYmYARLWhOVuww9GwmisrkKX0F1JKjSUcWvDA0SSECxyH/r3k4kyAqjMucOU3pTrAZzRoy+0I/pVJ9eHb3p4+hORij1VKzIQ+ev59C3slVOUchYMjRekfjPFrXw1GGUSnwxMmPxlXLF8+YooQd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ceItems:n,translationServiceOptions:r}=TU(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(fS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(CU,{...e,currentTranslationService:a})]}):null}function fS(e){let t=ne(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=aa(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(mS,{className:"translate-service",items:t}):d(sa,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function CU({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=SU(e,o),l=xU(e,o),c=le((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(ce,{children:m.map(({label:g,items:p},f)=>d(fS,{label:g,items:p,ctx:e},"field-"+f))})}function xU(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function SU(e,t){let{lang:n}=O();return ne(()=>{let a=As(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,Ff,e,n,t])}function TU({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Es(t,"translationService",c):[],[t,c]),g=le(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=j0(h,e,f,l,!0),C=Rm(h.id);h.id.startsWith("custom-ai")&&(C=Rm("custom-ai")),h.id.startsWith("mock")&&(C="");let S=ti.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:S,isShowGoSetting:!h.ok&&!S}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Rm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function hS(e){let t;try{t=new URL(e)}catch{return!1}let n=h5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(wU(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function wU(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function bS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function yS(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=EU(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=le(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(sa,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function EU({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&hS(e)){c=bS(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>gt(e,C)),g=!!v.find(C=>gt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=le(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(x=>x.match!==h),S=!1;C.length!==v.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=le((h,v)=>{if(h==="default"){s(x=>{let T={...x.translationUrlPattern};return{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,matches:E3(e,T.matches),excludeMatches:E3(e,T.excludeMatches)}}}),b();return}let C=h,S=C==="matches"?"excludeMatches":"matches";l&&s(x=>{let T={...x.translationUrlPattern};return T[S]=E3(e,T[S]),T[C]=qn(v,T[C]),{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function E3(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!gt(e,n)):t):[]}function vS(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=AU(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ei[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(kU,{...e})}function AU({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ei.filter(s=>!(s==="Off"||ei.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ra(s)}),l=ei.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function kU(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(ic).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function CS(e){let{isAlwaysTranslateLang:t}=DU({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function DU({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function SS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=we(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:eS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:iS,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(cl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:sS,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(X6,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(Pt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(xS,{...s})}):d(xS,{...s}))})}function xS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var LU=["bing","transmart","google","yandex"];function wS(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:li,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var TS="popup_trial_pro_show_count";function ES(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=xe(!1);z(()=>{To(TS,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!LU.includes(m)},[t,n,r,i]);return z(()=>{!u||i==null||s.current||(s.current=!0,wo(TS,i+1))},[u,i,s,a]),{showTrialPro:u}}function A3(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=N(""),[l,c]=N(null),[m,g]=N(null);z(()=>{tt.get(mt,null).then(h=>{h?(c(h),g(At(h))):g(!1)}).catch(h=>{g(!1)})},[]);let p=!0,f=He();n&&f&&(p=n.generalRule.showSponsorOnSafari);let b=er(n),{showTrialPro:y}=ES({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[b&&!m?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(lS,{isLogin:!!l,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(_U,{openSharePage:r})]}),d(cS,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(pS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:y}),d(wS,{showTrialPro:y,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(RU,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(FU,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(w3,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(yS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(vS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(CS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(PU,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(MU,{ctx:a})]}),d(SS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),d(IU,{...e,isProUser:!!m,isShowPricing:p,setMessage:u})]})}function MU({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Gd(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function PU(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&gf.includes(i.type||""),[n,gf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ld()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function RU(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(Pt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?nS:rS})})}function IU(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=le(h=>{i&&(o(v=>Ui({...v},h)),e.onUpdateFloatBallEnable(h.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ii(i,s.rawUserConfig),m=we(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[tS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(BU,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(T3,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:h=>{h.value==="openPremium"?(globalThis.open(Dn),e.onClose()):h.value==="changeToOnlyTranslationMode"?f("translation"):h.value==="changeToDualTranslationMode"?f("dual"):h.value==="translateTheWholePage"?e.onTranslateTheWholePage():h.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():h.value==="translateTheMainPage"?e.onTranslateTheMainPage():h.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):h.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):h.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):h.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):h.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):h.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):h.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):h.value==="options"?(e.openOptionsPage(),e.onClose()):h.value==="changeToTranslateTheWholePage"?b():h.value==="changeToTranslateTheMainPage"?y():h.value==="about"?e.openAboutPage():h.value==="toggleEnabled"?e.onToggleEnabled():h.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):h.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):h.value==="goPro"?e.onOpenUrl(Dn,g):h.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):h.value==="openInstruction"?e.onOpenUrl(ul,g):h.value==="cleanCache"?ca().then(()=>e.onClose()):h.value==="disableFloatBall"?l({...c,enable:!1}):h.value==="enableFloatBall"?l({...c,enable:!0}):h.value=="webReport"&&e.onWebReport()},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(h){h.preventDefault(),e.openOptionsPage()}function f(h){e.onSwitchTranslationMode(h)}function b(){e.setSettings(h=>({...h,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(h=>({...h,translationArea:"main"})),e.onTranslateTheMainPage()}}function FU({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Ao(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(vr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ra(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function BU({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=On();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),ur(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function _U(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),aS]})}var V9e=1e3*3600*24;async function AS(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[M6]:t.toISOString()}),await k3(),X()||await x5()}catch(t){D.error("run cron task failed",t)}}async function k3(){try{let e=await Ir(),t=await te({url:wi});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;ja(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ta({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}function Im(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{x("updateGlobalContext",!1)()},250)});Xe(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,b]=N(null),y=xe(!1);z(()=>{!f||y.current||(y.current=!0,Ue("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,y]);let h=P=>{r(P.detail)};z(()=>(document.addEventListener(Co,h,!1),Ir().then(P=>{l(P);let L=Dt();p(L);let U=ot();r(U),AS(P.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",h),document.removeEventListener("urlChange",S)}),[]),z(()=>{Ir().then(P=>{l(P)})},[a]),z(()=>{c&&u&&Fm().then(P=>{b(P)})},[c,u]);let v=le((P,L)=>{x("change_translate_service",!1,{translation_service:`${P}_${L}`})()},[]);if(!u||!f)return null;return d(A3,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:P=>{x("switchTranslationMode",!0,{mode:P})()},request:te,onClose:T,onToggleEnabled:w,onChangeService:v,onTranslateTheWholePage:x("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:x("toggleTranslatePage",!0),onTranslateTheMainPage:x("translateTheMainPage",!0),onTranslateToThePageEndImmediately:x("translateToThePageEndImmediately",!0),onTranslatePage:x("translatePage",!0),onRestorePage:x("restorePage",!1),onWebReport:x("webReport",!0),onTranslatePdf:()=>{k(ko(f.rule)||c)},openAboutPage:I,openSharePage:x("shareToDraft",!0),onSetPageLanguage:C,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Fr,onSetBuildinConfig:d5,onAutoEnableSubtitleChanged:x("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:x("toggleEnableEditTranslation",!0),updateContextState:P=>x("updateContextState",!0,P)(),onOpenUrl:E,onUpdateFloatBallEnable:x("updateFloatBallEnable",!0)});function C(P){p(P);let L=$8(c,P,u.sourceLanguageUrlPattern);i(U=>({...U,sourceLanguageUrlPattern:L})),xr(P)}function S(){m(globalThis.location.href)}function x(P,L,U={}){let B={trigger:"page_popup",...U};return()=>{hn({method:P,data:B}),L&&t()}}function T(){t()}function w(){i(P=>({...P,enabled:!P.enabled})),setTimeout(()=>{T()},50)}function E(P,L){let U=P;L&&(U=`${P}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),od(U,!0),setTimeout(()=>{T()},50)}function k(P){P&&(Ls(!1,P),setTimeout(()=>{T()},50))}function M(P=!0,L=""){wa(P,L),setTimeout(()=>{t()},50)}function I(){id(),setTimeout(()=>{t()},50)}function R(){C5(),setTimeout(()=>{t()},50)}}function RS(){let[e,t]=N("Original");return z(()=>{let n=ot();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Co,r),()=>{document.removeEventListener(Co,r)}},[]),{pageStatus:e}}function IS(){let[e,t]=N("Original");return z(()=>{let n=Ds();t(n);let r=a=>{t(a.detail)};return document.addEventListener(rl,r),()=>{document.removeEventListener(rl,r)}},[]),{mangaStatus:e}}var kS=6,OU={position:"right",top:335};function FS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=xe(null),o=xe(null),[s,u]=N(!1),l=xe(!1);l.current=s;let c=xe(null),m=xe(!1),g=xe(n.floatBallConfig||OU),p=xe(0),f=xe(0),b=xe(0),y=xe(!1),h=xe(0),v=xe(0),C=xe(0),S=xe(0),x=xe(!1),T=le(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=qe().any||vr();c.current=setTimeout(()=>{u(w),y.current=!1},E?3e3:0)}},[u,c,y,a]);return z(()=>{a||u(!1)},[a]),z(()=>{if(i.current&&g.current){let w=D3(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),z(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,S.current=L.clientY,x.current=!1,(qe().any||vr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{DS({startX:p.current,startY:f.current,endX:C.current,endY:S.current})||(x.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",I),document.addEventListener("mouseup",k),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},E=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,S.current=L.clientY,x.current))return;let U=L.clientY-f.current+b.current,B=D3(U);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),P(),m.current=!1,clearTimeout(c.current),y.current||T(!1),x.current)return;DS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let B=D3(L.clientY-30);g.current.top=B;let H=await Ln();Fr({...H,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},P=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),z(()=>{if(qe().any)return;let w=k=>{k.target===i.current&&!y.current||!l.current&&MS(k)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&MS(k)&&c.current)){if(m.current){y.current=!1;return}k.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function DS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>kS||i>kS}function BS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function _S(){let[e,t]=N(!1);return z(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var LS="hasShownFloatingBallGuide",NU="2024-01-06";function OS(e,t){let[n,r]=N(!1),a=le(()=>{Je(LS,new Date().toISOString()),r(!0)},[r]);z(()=>{if(!e.config.enableShowFloatingBallGuide||Dt()==e.targetLanguage)return;let o=gt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Bt(LS,""),u=await Bt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(S0,o),()=>{document.removeEventListener(S0,o)}},[]);let i=le(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function NS(){document.dispatchEvent(new CustomEvent(S0))}function US(e,t){let n=xe(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=le(()=>{e?.config.floatBallTooltipRule&&(qe().any||vr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);z(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=le(async()=>{if(!e)return;n.current=n.current+1,m();let b=await ln();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=ne(()=>qe().any||!r||vr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||vr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Ra(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function D3(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var L3=0;function MS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(L3=Date.now(),!0):Date.now()-L3<100}function jS(e,t){z(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xo,n),()=>{globalThis.document.addEventListener(xo,n)}},[e,t])}function HS(e,t){let n=xe(e);n.current=e,z(()=>{!n.current||!t||Ue("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var PS="imt-float-ball-active";function qS(e){z(()=>{let t=!!document.querySelector(`meta[name='${PS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(PS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(C0,n),()=>{document.removeEventListener(C0,n)}},[])}function zS(e){document.dispatchEvent(new CustomEvent(C0,{detail:{active:e}}))}function UU({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return z(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(ce,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Bm=UU;var Ho="imt-fb";function WS(e){if(globalThis.innerWidth<=385)return d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(VS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(VS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function VS(e){let{t}=O(),[n,r]=N("UntilNext"),a=ad()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Ho}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Ho}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Ho}-close-radio-content mt-3`,children:o.map(s=>d(jU,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ea(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Ho}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Ho}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function jU(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=HU(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Ho}-radio-sel`:`${Ho}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function HU(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var qo="imt-fb";function GS(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${qo}-guide-container`,style:r,children:[d("img",{class:`${qo}-guide-bg ${e.fixedPosition}`,src:qU}),d("div",{class:`${qo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${qo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${qo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` -${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var qU="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzM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b3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var KS="imt-manga";function YS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=le(()=>{if(t(),!a.isPro){if(a.user)return window.open(q6);window.open(j6)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${KS}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${KS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var mi="imt-fb";function M3(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Xe(r,a);let s=pt(r),u=e.ctx,{isFullScreen:l}=_S(),[c,m]=N(!1),g=xe(c);g.current=c;let[p,f]=N(!0),{pageStatus:b}=RS(),y=ii(u,r),h=le(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=le(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:S,active:x,ballRef:T,floatBallConfigRef:w,setActive:E}=FS({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),k=y?.fixedPosition||"right",M=k==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:R}=OS(e.ctx,y),{closeTransform:P,logoContainerTransform:L,settingTransform:U,mangaTransform:B}=BS(y,x||I);HS(u,x);let{tooltipDelay:H,disableTooltip:W,tooltipText:Z,handleShowTooltip:Se}=US(u,b);jS(m,g),qS(E);let q=globalThis.innerWidth<=385;return C?d(ce,{children:d("div",{class:`${mi}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:x||I||c?"all":"none"},ref:S,children:[d(zU,{ctx:u,setVisible:f,closeTransform:P,setActive:E,getModalStyle:()=>QS(w.current.top,300,k)}),d(Pt,{enableMobile:!0,text:Z,position:M,delay:H,onShow:Se,disable:W,children:d("div",{class:`${mi}-btn ${k} btn-animate `,ref:T,style:{transform:L,opacity:x||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(GU,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:I}),d("div",{style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:[d(Pt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{od(J6,!0)},children:d(bn,{type:"file"})})}),d(Pt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${mi}-more-button`,onClick:()=>{E(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(YU,{ctx:u,tooltipPosition:M,rule:y,active:x})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:d(Pt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"webReport"}}))}})})}),d(P3,{onClose:()=>{E(!1),m(!1)},isSheet:q,visible:c,getModalStyle:()=>QS(w.current.top,500,k)}),d(GS,{visible:I,top:w.current.top,fixedPosition:k,onClose:()=>{R(),E(!1)}})]})}):null}function zU(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ii(e.ctx,i),c=le(g=>{e.ctx&&o(p=>Ui({...p},g))},[e.ctx,o]),m=le(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(ce,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(WS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function P3(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(Im,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Im,{onClose:e.onClose})})}):null}function VU(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var QS=(e,t,n)=>{let a=VU().height,i={position:"fixed"},o=0;return l6()&&(e=WU.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},WU={position:"right",right:0,top:335};function GU({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=IS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();z(()=>{c||Ln().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),kt(p))})},[c,s]);let g=le(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await tt.get(mt,null);if(At(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!Gd(l)||r||!l?.enable?null:d(ce,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(Pt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"mangaReport"}}))}})})]}),d(YS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var KU="float_ball_upgrade_show_count";function YU(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=xe(!1),[u,l]=N(null),c=ne(()=>pu(n.config),[n]),m=p=>pu(p)?.upgradeShowCountCacheKey||KU;z(()=>{To(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=pu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return z(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wo(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(Pt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||ff,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${mi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(Pt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(ff,"_blank")},children:d(bn,{type:"upgrade"})})})}async function JS(){try{let e=await Ze(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});QU(a,e,n),document.documentElement.appendChild(r)}catch{}}function QU(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=we(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);JU(e,[i]),e.appendChild(r),ya(d(Qi,{lang:t.interfaceLanguage,children:d(ZU,{ctx:n})}),r)}function JU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function ZU(e){let[t,n]=N(!1),r=xe(t);r.current=t;let a=xe(""),i=xe("");z(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xo,u),()=>{globalThis.document.addEventListener(xo,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(P3,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function _m(e){document.dispatchEvent(new CustomEvent(xo,{detail:e||{}}))}function XU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function R3(){let e=await Ir(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await f4(r,t),i=gt(r.url,a?.blockUrls),o=await Mt();if(!a?.enable||i)return JS();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return $U(u,e,o,r),document.documentElement.appendChild(s),s}function ZS(){let e=document.getElementById(F+"-popup");e&&e.remove(),R3()}function $U(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=we(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`,C3="immersive-translate-toastify-shadow-root",x3=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(C3)){let t=document.getElementById(C3);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=C3,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=lU,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Mm(e){e=e||{},new x3({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function X8(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function hn(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:y0,payload:e},"*")});let n=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(n)}function S3(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Kt(o,s=>{s.preventDefault();let u=r[i];hn({method:u,data:{trigger:"shortcut"}})})}}var cU="imt-fb";function bn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${cU}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function $8(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Pm="DROP_DOWN_DEFAULT_VALUE";function T3(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=xe(null);return d("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Pm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Pm){s.current.value=Pm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Pm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var dU=({date:e})=>{let{t}=O(),[n,r]=N(!1);return z(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},mU=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},gU=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},pU=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function w3(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,h]=N(!1),[y,b]=N(!1),[v,C]=N(null),[S,x]=N(null),T=On(),w=async()=>{m("");let E=o;if(o===null)try{let k=await n({url:wi});k?(s(k),E=k,p(!0)):(m(i("unknownError")),l(null))}catch(k){l(null),m(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return z(()=>{Ze().then(E=>{let k=E.buildinConfigUpdatedAt;C(E);let M=new Date(k);if(a(k),T==="0.0.0"){b(!0);return}n({url:wi}).then(I=>{let R=I,P=R.minVersion,L=T;s(R);let U=R.latestVersion;if(U&&(ja(L,U)?x(!0):x(!1)),ja(L,P)){let B=R.buildinConfigUpdatedAt;new Date(B)>M?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),z(()=>{Ze().then(E=>{C(E),ia(E)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(gU,{}):c?t===!1?null:d(pU,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(mU,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(dU,{date:r}):null}):null}var eS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var tS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),nS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),rS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),aS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var iS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),oS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),sS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),uS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function pu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function lS(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Ai,`${e.type}_user_info`);return}e.onOpenUrl(vs,`${e.type}_user_info`)},children:[d("img",{src:n?r8:n8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(fU,{...e})]})}function fU(e){let{t}=O(),n=ne(()=>pu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Ai,`${e.type}_pro_logo`)},children:d("img",{src:li})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Dn)},children:[d(bn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Dn,`${e.type}_user_upgrade`)},children:[oS,d("span",{children:t("popup.upgrade")})]})}function cS({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=$i(t.config.translationService,t.config.targetLanguage),s=or;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(hU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:a8,style:{maxWidth:"unset"},class:"mx-2"}),d(bU,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function hU(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function bU(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var dS=220;function mS(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=xe(null),[o,s]=N(dS),[u,l]=N(0);return Lu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,h=20,y=30,b=5,v=g.clientHeight-h*2,C=t.length*y+b*3,S=f+m.height;if(C>g.clientHeight-S){let x=Math.min(v,C);l(g.clientHeight-f-x-h)}else l(0);s(Math.max(dS,v))}},[i.current,r,t]),z(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(gS,{item:n,isDefault:!0}),uS]}),d(yU,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function yU(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=xe(null);return z(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(gS,{item:o,onClick:e.onClick},o.value))})}function gS(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:li}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var vU={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8afE/dHTeBsKE+O+uuRKg/uJQZqzS3SKKc88fSMO4dPk+Q4a5YhYR5lBKFOOC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/bzUi3UmeTgxfIbjp2NuE3L/5D0vSpymm5QooRzZiqKm83rzvzl8hoTV+9PH6BBGBVs0GGJUvvqL/juvNvT0Sxr777uk+RvXTf/24oxQ7H/6CpBQqmuqZKE6MP6Ha1lCqaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/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WF2R5gWwRvKXiYNobcVKb5Bt+qBEyYLDAPu6SPrvBoBRT+qJTG0GS7dyyG5qg6S3ehztC888z4fC4s+Sf7erYPeE8G/BERC/K7H+aZTa6qtThlbh/D8igukz3y7i3+B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function Rm(e){let t=vU[e];return t}function pS(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=TU(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(fS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(CU,{...e,currentTranslationService:a})]}):null}function fS(e){let t=ne(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=aa(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(mS,{className:"translate-service",items:t}):d(sa,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function CU({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=SU(e,o),l=xU(e,o),c=le((g,p)=>{t(f=>{let h=f.translationServices||{},y=h[u.id]||{};return{...f,translationServices:{...h,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[g.name],onSelected:y=>{if(h.action=="jumpOptions"){let b=h.args||[];r(...b);return}c(g.name,h.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(ce,{children:m.map(({label:g,items:p},f)=>d(fS,{label:g,items:p,ctx:e},"field-"+f))})}function xU(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function SU(e,t){let{lang:n}=O();return ne(()=>{let a=As(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,Ff,e,n,t])}function TU({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Es(t,"translationService",c):[],[t,c]),g=le(f=>{let h=m.find(y=>y.id===f.value);if(h.ok){if(u({translationService:h.id}),n(y=>(a(y.translationService||"",h.id),{...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(b=>t.config.showUnconfiguredTranslationServiceInPopup===!1?b.ok:!0).map(b=>{let v=j0(b,e,f,l,!0),C=Rm(b.id);b.id.startsWith("custom-ai")&&(C=Rm("custom-ai")),b.id.startsWith("mock")&&(C="");let S=ti.includes(b.id)&&!b.ok&&!f;return{label:v,value:b.id,selected:b.selected,img:C,onSelected:g,isShowProOrCustom:S,isShowGoSetting:!b.ok&&!S}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Rm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function hS(e){let t;try{t=new URL(e)}catch{return!1}let n=h5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(wU(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function wU(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function bS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function yS(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=EU(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=le(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(sa,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function EU({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&hS(e)){c=bS(e);let{matches:b,excludeMatches:v}=f;m=!!b.find(C=>gt(e,C)),g=!!v.find(C=>gt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:b}=t.config,{matches:v}=b;v.includes(n)?p=!0:p=!1}let h=le(()=>{let b=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(x=>x.match!==b),S=!1;C.length!==v.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=le((b,v)=>{if(b==="default"){s(x=>{let T={...x.translationUrlPattern};return{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,matches:E3(e,T.matches),excludeMatches:E3(e,T.excludeMatches)}}}),h();return}let C=b,S=C==="matches"?"excludeMatches":"matches";l&&s(x=>{let T={...x.translationUrlPattern};return T[S]=E3(e,T[S]),T[C]=qn(v,T[C]),{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function E3(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!gt(e,n)):t):[]}function vS(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=AU(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||ei[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(kU,{...e})}function AU({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>ei.filter(s=>!(s==="Off"||ei.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ra(s)}),l=ei.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function kU(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(ic).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function CS(e){let{isAlwaysTranslateLang:t}=DU({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function DU({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function SS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=we(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:eS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:iS,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(cl,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:sS,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(X6,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(Pt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(xS,{...s})}):d(xS,{...s}))})}function xS(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var LU=["bing","transmart","google","yandex"];function wS(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:li,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Dn,`${e.type}_trial_pro_service`)}})]}):null}var TS="popup_trial_pro_show_count";function ES(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=xe(!1);z(()=>{To(TS,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!LU.includes(m)},[t,n,r,i]);return z(()=>{!u||i==null||s.current||(s.current=!0,wo(TS,i+1))},[u,i,s,a]),{showTrialPro:u}}function A3(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=N(""),[l,c]=N(null),[m,g]=N(null);z(()=>{tt.get(mt,null).then(b=>{b?(c(b),g(At(b))):g(!1)}).catch(b=>{g(!1)})},[]);let p=!0,f=He();n&&f&&(p=n.generalRule.showSponsorOnSafari);let h=er(n),{showTrialPro:y}=ES({ctx:a,isHidden:h,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[h&&!m?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(lS,{isLogin:!!l,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(_U,{openSharePage:r})]}),d(cS,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(pS,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:y}),d(wS,{showTrialPro:y,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(RU,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(FU,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(w3,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(yS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(vS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(CS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(PU,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(MU,{ctx:a})]}),d(SS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),d(IU,{...e,isProUser:!!m,isShowPricing:p,setMessage:u})]})}function MU({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Gd(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function PU(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&gf.includes(i.type||""),[n,gf,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ld()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function RU(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(Pt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?nS:rS})})}function IU(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=le(v=>{i&&(o(C=>Ui({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ii(i,s.rawUserConfig),m=we(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[tS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(BU,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(T3,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(Dn),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?h():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(Dn,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(ul,g):v.value==="cleanCache"?ca().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&b(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function h(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function b(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function FU({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Ao(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):X()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Cr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ra(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function BU({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=On();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${F}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),ur(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function _U(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),aS]})}var W9e=1e3*3600*24;async function AS(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[M6]:t.toISOString()}),await k3(),X()||await x5()}catch(t){D.error("run cron task failed",t)}}async function k3(){try{let e=await Fr(),t=await te({url:wi});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;ja(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ta({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}function Im(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{x("updateGlobalContext",!1)()},250)});Xe(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,h]=N(null),y=xe(!1);z(()=>{!f||y.current||(y.current=!0,Ue("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,y]);let b=P=>{r(P.detail)};z(()=>(document.addEventListener(Co,b,!1),Fr().then(P=>{l(P);let L=Dt();p(L);let U=ot();r(U),AS(P.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",b),document.removeEventListener("urlChange",S)}),[]),z(()=>{Fr().then(P=>{l(P)})},[a]),z(()=>{c&&u&&Fm().then(P=>{h(P)})},[c,u]);let v=le((P,L)=>{x("change_translate_service",!1,{translation_service:`${P}_${L}`})()},[]);if(!u||!f)return null;return d(A3,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:P=>{x("switchTranslationMode",!0,{mode:P})()},request:te,onClose:T,onToggleEnabled:w,onChangeService:v,onTranslateTheWholePage:x("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:x("toggleTranslatePage",!0),onTranslateTheMainPage:x("translateTheMainPage",!0),onTranslateToThePageEndImmediately:x("translateToThePageEndImmediately",!0),onTranslatePage:x("translatePage",!0),onRestorePage:x("restorePage",!1),onWebReport:x("webReport",!0),onTranslatePdf:()=>{k(ko(f.rule)||c)},openAboutPage:I,openSharePage:x("shareToDraft",!0),onSetPageLanguage:C,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Br,onSetBuildinConfig:d5,onAutoEnableSubtitleChanged:x("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:x("toggleEnableEditTranslation",!0),updateContextState:P=>x("updateContextState",!0,P)(),onOpenUrl:E,onUpdateFloatBallEnable:x("updateFloatBallEnable",!0)});function C(P){p(P);let L=$8(c,P,u.sourceLanguageUrlPattern);i(U=>({...U,sourceLanguageUrlPattern:L})),Sr(P)}function S(){m(globalThis.location.href)}function x(P,L,U={}){let B={trigger:"page_popup",...U};return()=>{hn({method:P,data:B}),L&&t()}}function T(){t()}function w(){i(P=>({...P,enabled:!P.enabled})),setTimeout(()=>{T()},50)}function E(P,L){let U=P;L&&(U=`${P}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),od(U,!0),setTimeout(()=>{T()},50)}function k(P){P&&(Ls(!1,P),setTimeout(()=>{T()},50))}function M(P=!0,L=""){wa(P,L),setTimeout(()=>{t()},50)}function I(){id(),setTimeout(()=>{t()},50)}function R(){C5(),setTimeout(()=>{t()},50)}}function RS(){let[e,t]=N("Original");return z(()=>{let n=ot();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Co,r),()=>{document.removeEventListener(Co,r)}},[]),{pageStatus:e}}function IS(){let[e,t]=N("Original");return z(()=>{let n=Ds();t(n);let r=a=>{t(a.detail)};return document.addEventListener(rl,r),()=>{document.removeEventListener(rl,r)}},[]),{mangaStatus:e}}var kS=6,OU={position:"right",top:335};function FS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=xe(null),o=xe(null),[s,u]=N(!1),l=xe(!1);l.current=s;let c=xe(null),m=xe(!1),g=xe(n.floatBallConfig||OU),p=xe(0),f=xe(0),h=xe(0),y=xe(!1),b=xe(0),v=xe(0),C=xe(0),S=xe(0),x=xe(!1),T=le(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=qe().any||Cr();c.current=setTimeout(()=>{u(w),y.current=!1},E?3e3:0)}},[u,c,y,a]);return z(()=>{a||u(!1)},[a]),z(()=>{if(i.current&&g.current){let w=D3(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),z(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,b.current=Date.now(),h.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,S.current=L.clientY,x.current=!1,(qe().any||Cr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{DS({startX:p.current,startY:f.current,endX:C.current,endY:S.current})||(x.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",I),document.addEventListener("mouseup",k),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},E=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,S.current=L.clientY,x.current))return;let U=L.clientY-f.current+h.current,B=D3(U);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),P(),m.current=!1,clearTimeout(c.current),y.current||T(!1),x.current)return;DS({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let B=D3(L.clientY-30);g.current.top=B;let H=await Ln();Br({...H,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},P=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),z(()=>{if(qe().any)return;let w=k=>{k.target===i.current&&!y.current||!l.current&&MS(k)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&MS(k)&&c.current)){if(m.current){y.current=!1;return}k.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function DS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>kS||i>kS}function BS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function _S(){let[e,t]=N(!1);return z(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var LS="hasShownFloatingBallGuide",NU="2024-01-06";function OS(e,t){let[n,r]=N(!1),a=le(()=>{Je(LS,new Date().toISOString()),r(!0)},[r]);z(()=>{if(!e.config.enableShowFloatingBallGuide||Dt()==e.targetLanguage)return;let o=gt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Bt(LS,""),u=await Bt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(S0,o),()=>{document.removeEventListener(S0,o)}},[]);let i=le(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function NS(){document.dispatchEvent(new CustomEvent(S0))}function US(e,t){let n=xe(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=le(()=>{e?.config.floatBallTooltipRule&&(qe().any||Cr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);z(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=le(async()=>{if(!e)return;n.current=n.current+1,m();let h=await ln();l(y=>{let b={...h};return qe().any?b.h5FloatBallMainBtnTooltipShownCount=n.current:b.pcFloatBallMainBtnTooltipShownCount=n.current,b})},[l,m,n,e]),p=ne(()=>qe().any||!r||Cr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||Cr())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${Ra(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function D3(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var L3=0;function MS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(L3=Date.now(),!0):Date.now()-L3<100}function jS(e,t){z(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xo,n),()=>{globalThis.document.addEventListener(xo,n)}},[e,t])}function HS(e,t){let n=xe(e);n.current=e,z(()=>{!n.current||!t||Ue("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var PS="imt-float-ball-active";function qS(e){z(()=>{let t=!!document.querySelector(`meta[name='${PS}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(PS)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(C0,n),()=>{document.removeEventListener(C0,n)}},[])}function zS(e){document.dispatchEvent(new CustomEvent(C0,{detail:{active:e}}))}function UU({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return z(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(ce,{children:[e&&d("div",{className:`${F}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${F}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${F}-sheet-content`,children:n})})]})}var Bm=UU;var Ho="imt-fb";function WS(e){if(globalThis.innerWidth<=385)return d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(VS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${F}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${F}-popup-overlay`,class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(VS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function VS(e){let{t}=O(),[n,r]=N("UntilNext"),a=ad()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Ho}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Ho}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(bn,{type:"modal-close"})})]}),d("div",{class:`${Ho}-close-radio-content mt-3`,children:o.map(s=>d(jU,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ea(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Ho}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Ho}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function jU(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=HU(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Ho}-radio-sel`:`${Ho}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function HU(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var qo="imt-fb";function GS(e){let{t}=O(),n=a=>{a?.target?.id===F+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${qo}-guide-container`,style:r,children:[d("img",{class:`${qo}-guide-bg ${e.fixedPosition}`,src:qU}),d("div",{class:`${qo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${qo}-guide-img`,src:rn("images/float_ball_intro.png")}),d("div",{class:`${qo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` +${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var qU="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMT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z4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var KS="imt-manga";function YS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===F+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=le(()=>{if(t(),!a.isPro){if(a.user)return window.open(q6);window.open(j6)}},[a,t]);return e?d("div",{onClick:o,id:F+"-popup-overlay",class:`${F}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${KS}-guide-bg ${r}`,src:`${xn}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${KS}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(bn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var mi="imt-fb";function M3(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Xe(r,a);let s=pt(r),u=e.ctx,{isFullScreen:l}=_S(),[c,m]=N(!1),g=xe(c);g.current=c;let[p,f]=N(!0),{pageStatus:h}=RS(),y=ii(u,r),b=le(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&hn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,hn,m]),v=le(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:S,active:x,ballRef:T,floatBallConfigRef:w,setActive:E}=FS({handleBallClick:b,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),k=y?.fixedPosition||"right",M=k==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:R}=OS(e.ctx,y),{closeTransform:P,logoContainerTransform:L,settingTransform:U,mangaTransform:B}=BS(y,x||I);HS(u,x);let{tooltipDelay:H,disableTooltip:W,tooltipText:Z,handleShowTooltip:Se}=US(u,h);jS(m,g),qS(E);let q=globalThis.innerWidth<=385;return C?d(ce,{children:d("div",{class:`${mi}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:x||I||c?"all":"none"},ref:S,children:[d(zU,{ctx:u,setVisible:f,closeTransform:P,setActive:E,getModalStyle:()=>QS(w.current.top,300,k)}),d(Pt,{enableMobile:!0,text:Z,position:M,delay:H,onShow:Se,disable:W,children:d("div",{class:`${mi}-btn ${k} btn-animate `,ref:T,style:{transform:L,opacity:x||I?1:.5},children:d("div",{children:[d(bn,{type:"logo"}),d(bn,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),d(GU,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:I}),d("div",{style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:[d(Pt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{od(J6,!0)},children:d(bn,{type:"file"})})}),d(Pt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${mi}-more-button`,onClick:()=>{E(!0),m(!0)},children:d(bn,{type:"setting"})})}),d(YU,{ctx:u,tooltipPosition:M,rule:y,active:x})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:d(Pt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"webReport"}}))}})})}),d(P3,{onClose:()=>{E(!1),m(!1)},isSheet:q,visible:c,getModalStyle:()=>QS(w.current.top,500,k)}),d(GS,{visible:I,top:w.current.top,fixedPosition:k,onClose:()=>{R(),E(!1)}})]})}):null}function zU(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ii(e.ctx,i),c=le(g=>{e.ctx&&o(p=>Ui({...p},g))},[e.ctx,o]),m=le(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(ce,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(bn,{type:"close"})}),d(WS,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function P3(e){let t=n=>{n?.target?.id===F+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(Im,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:F+"-popup-overlay",class:`${F}-popup-overlay`,children:d("div",{class:`${F}-popup-wrapper`,style:e.getModalStyle(),children:d(Im,{onClose:e.onClose})})}):null}function VU(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var QS=(e,t,n)=>{let a=VU().height,i={position:"fixed"},o=0;return l6()&&(e=WU.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},WU={position:"right",right:0,top:335};function GU({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=IS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();z(()=>{c||Ln().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),kt(p))})},[c,s]);let g=le(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await tt.get(mt,null);if(At(f)){e.user=f,e.isPro=!0,hn({method:"toggleTranslateManga"});return}s(!0);return}hn({method:"toggleTranslateManga"})},[]);return!Gd(l)||r||!l?.enable?null:d(ce,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(bn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(bn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(bn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(Pt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(bn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(vo,{detail:{type:"mangaReport"}}))}})})]}),d(YS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var KU="float_ball_upgrade_show_count";function YU(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=xe(!1),[u,l]=N(null),c=ne(()=>pu(n.config),[n]),m=p=>pu(p)?.upgradeShowCountCacheKey||KU;z(()=>{To(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=pu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return z(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wo(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(Pt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||ff,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${mi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(bn,{type:"upgrade"})})})}):d(Pt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(ff,"_blank")},children:d(bn,{type:"upgrade"})})})}async function JS(){try{let e=await Ze(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=F+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});QU(a,e,n),document.documentElement.appendChild(r)}catch{}}function QU(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=we(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);JU(e,[i]),e.appendChild(r),ya(d(Qi,{lang:t.interfaceLanguage,children:d(ZU,{ctx:n})}),r)}function JU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function ZU(e){let[t,n]=N(!1),r=xe(t);r.current=t;let a=xe(""),i=xe("");z(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xo,u),()=>{globalThis.document.addEventListener(xo,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(P3,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function _m(e){document.dispatchEvent(new CustomEvent(xo,{detail:e||{}}))}function XU(e,t){for(let n of t){if(X()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function R3(){let e=await Fr(),t=await ln(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await f4(r,t),i=gt(r.url,a?.blockUrls),o=await Mt();if(!a?.enable||i)return JS();let s=document.createElement("div");s.id=F+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return $U(u,e,o,r),document.documentElement.appendChild(s),s}function ZS(){let e=document.getElementById(F+"-popup");e&&e.remove(),R3()}function $U(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=we(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` `);XU(e,[o]),e.appendChild(a),ya(d(Qi,{lang:t.interfaceLanguage,children:d(M3,{localConfig:n,ctx:r})}),a)}var XS=!1;async function $S(){XS||(XS=!0,R3().catch(e=>{D.error("init popup error",e)}))}var oc=null;function sc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");oc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function I3(){let e=globalThis.location.href;if(!(!oc||oc.url!==e||!oc.subtitleItems.length))return oc}async function eT(){let e=I3();if(!e)return;let t=await Mt();t.downloadSubtitle=e,await kt(t),Ea(Z6)}async function tT(){let e=await Mt();if(e.downloadSubtitle)return e.downloadSubtitle}async function nT(e,t){let n,r;if(t){let a=Am(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Oi(!1,r)}return{siteUrl:location.href,pluginVersion:On(),isMobile:qe().any,platform:_i(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function rT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var F3={};function no(e){let t=Om(e)||{};F3[e.sourceUrl+"_"+e.to]={...t,...e}}function Om(e){return F3[e.sourceUrl+"_"+e.to]}async function aT(e,t){let n=location.href,r=Object.values(F3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:_i(),images:[],version:On()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=Am(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Oi(!1,o)}return a}async function iT(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var uc={width:94,height:80};function oT(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?oT(e.parentElement,t+1):e}function fu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=oT(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=uc.width+"px",c.style.height=uc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-uc.width)/2+"px",c.style.top=l.top-u.top+(l.height-uc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-uc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... @@ -6019,7 +6019,7 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide flex: 1;`),p.addEventListener("input",function(){T.disabled=c(),E&&(E.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let b="";tt.get(mt,null).then(k=>{k&&(b=k.email,f.value=k.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let k=l(this.value);T.disabled=c(),k?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=C.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let x=document.createElement("div");x.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),x.append(C),x.append(S),a.append(x);let T=document.createElement("button");T.className=F+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let k=await sT(e,t,C.checked);T.uploading=!0;try{lT(T,!0),await uT(e,t,p.value,f.value!==b?f.value:"",C.checked,k),ej(s,r,a,i,o)}catch{tj(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,lT(T,!1)}},i.appendChild(T);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function lT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function ej(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let h="";tt.get(mt,null).then(k=>{k&&(h=k.email,f.value=k.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let b=document.createElement("div");b.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),b.append(y),b.append(f),a.append(b);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let k=l(this.value);T.disabled=c(),k?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=C.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let x=document.createElement("div");x.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),x.append(C),x.append(S),a.append(x);let T=document.createElement("button");T.className=F+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let k=await sT(e,t,C.checked);T.uploading=!0;try{lT(T,!0),await uT(e,t,p.value,f.value!==h?f.value:"",C.checked,k),ej(s,r,a,i,o)}catch{tj(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,lT(T,!1)}},i.appendChild(T);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function lT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(F+"-loading-spinner"),e.appendChild(n))}function ej(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` @@ -6029,7 +6029,7 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Nm(s,e,t,r,a,i,o)},i.append(m)}function _3(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function Um(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var jm=[],cT=[];async function N3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(U3()||jm.includes(t))return"";if(jm.length>=s)return new Promise((l,c)=>{cT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});jm.push(t);try{let u=await ij(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await dT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{jm.shift(),(async()=>{let u=cT.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await N3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function nj(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ft}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${mT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await te({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rj(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aj(e,t,n){let r=await rj(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):te({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await I5(a)})}async function ij(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oj(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await Um(u);no({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nj(e,r,l,n.type);if(c.objectKey&&no({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aj(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(O3()+"/trigger",{method:"POST",body:ud(u),headers:{token:e.user?.token||""}}).then(async g=>(await ji(g,"manga"),g.json())):m=await te({url:O3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),no({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function dT(e,t,n,r,a){let i=U3();if(i)return;Rr("Translating",i);let o=await te({url:O3()+`/${t}/task-state?comicHash=${n}&domain=${mT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Xv(t,r.queryIntervalTime||100),dT(e,t,n,r,a))}function O3(){return ft+"comics"}function oj(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function mT(e){return e.replaceAll(".","_")}var Vt,j3,qm,dc,an=!1;function U3(){return an}var gT=!1;function hT(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!gT&&Vt.injectedCss&&(tr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),gT=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=vT(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await ut(20),await r(i,t))}},100);if(Ue("translate_manga",[{name:"translate_manga"}],e),n(),j3=new MutationObserver(a=>{n()}),j3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;dc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(zo(e,o.target),dc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}qm=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(dc?.unobserve(a),dc?.observe(a)):await zo(e,a)))}}async function zo(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Ds();if(n&&(an=!1),an||fj(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=uj(e,t);u||(s=fu(e,t,"translating")),n&&Ue("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await lj(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await sj(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||fu(e,t,"success")):(u||fu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&(Rr("Error",an),pj(e,l)),u))return;if(l instanceof lc)return fu(e,t,"error",l.type);fu(e,t,"error")}finally{n&&Rr(i,an),s?.remove()}}function bT(){if(!Vt)return;an=!0,j3?.disconnect(),qm?.disconnect(),dc?.disconnect();let e=vT(Vt);for(let t of e)Vo(t)}function Vo(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Vo(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function sj(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await cj(l,c,t.cloneNode(!0))}else o=await CT(t);if(an)return;if(!o||o.size<6*1e4){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await _3(o);return await H3(e,t,s)?!0:s?yT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function yT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await mj(n)||n,u=r||a;try{if(an)return;Rr("Translating",an),B3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};no(l);let m=await N3(e,u,s,a,i,g=>{B3(e,o,g)});return m?(l.targetUrl=m,no(l),await xT(Vt,t,m),Rr("Translated",an),!0):!1}catch(l){if(no({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function H3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl?(await xT(Vt,t,a.targetUrl||""),Rr("Translated",an),!0):!1}function uj(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl}return!1}async function lj(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gj(a,i)){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await H3(e,t,o))return!0;let s=null;if(Rr("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await ji(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await dj(i);else{let m=await te({url:i,responseType:"base64"});s=await ld(m)}if(an)return;if(await MC(s))throw new lc("GIFs not supported","gif_not_supported");let l=await _3(s);if(!o&&(o=l,await H3(e,t,o)))return!0;if(!o)return!1;return yT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function vT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function CT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function cj(e,t,n){return new Promise((r,a)=>{te({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await CT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function xT(e,t,n){try{return await pT(e,t,n)}catch{let a=await hj(n);return pT(e,t,a)}}async function pT(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function dj(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function mj(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gj(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Fd(e.inValidSrcRegex,t):!0}var Hm=0,cc=0;function pj(e,t){if(Hm!=0){cc++;return}if(t.message.indexOf("quota exceeded")>0){fT(e,t);return}cc++,Hm=setTimeout(()=>{if(cc<(Vt.errorTimes||3)){Hm=0,cc=0;return}fT(e,t),cc=0,Hm=0},Vt.errorInterval||3e3)}function fT(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(_n,{detail:r}))}function q3(e){return e.classList.contains("imt-img")||e.hasTranslate}function fj(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function hj(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var bj="showImagePricingModal";function zm(e){document.dispatchEvent(new CustomEvent(bj,{detail:JSON.stringify({trigger:e})}))}var Ha=null;async function ST(e,{srcUrl:t}){if(!oi(e))return;if(!await Ss(e)){zm("image_right_menu");return}if(!Ha){D.error("rightMenu image ele not found",t,Ha);return}if(Ha.translationStatus!=="translating"){if(Ha.hasTranslate){Vo(Ha);return}if(t!==Ha.src)try{let r=new URL(t),a=new URL(Ha.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,Ha.src,r);return}zo(e,Ha,!0,"image_right_menu")}}function TT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Ha=e.target)})}var wT=0;function gc(e){let t=Date.now();if(t-wT<2e3||(wT=t,yj()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,mc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=we();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,mc)}setTimeout(()=>{vj()},100)}function yj(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function vj(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function mc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ET(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var AT=0;async function kT(e){let t=Date.now();if(t-AT<2e3||(AT=t,Cj()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&z3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,z3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=we();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",S=>{S.target==g&&(g.style.display="none")}),e(g,u,l,z3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{xj()},100),m=setTimeout(c,2500)}function Cj(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function xj(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function z3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function V3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",DT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(U6)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(I0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(V6)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)},W3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{LT(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),DT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function DT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}var MT=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},RT=[()=>{Kt.unbind()}],PT=[...RT],Sj=hr(async()=>{await wa()},50),Tj=hr(async()=>{await id()},50),wj=hr(async()=>{await y5()},50),Ej=hr(async()=>{await b5()},50),IT=hr(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),G3=!1,Aj=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!G3&&e&&e.length>0?Cl({text:e}):Cl({})},50),kj=()=>{G3=!0,setTimeout(()=>{G3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(MT)return;MT=!0,X()||l5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(ie+"DocumentMessageUser",UT),document.addEventListener(ie+"DocumentMessageUpdateUser",jT),document.addEventListener(ie+"ChangeSuccessService",HT.bind(null,t)),document.addEventListener(ie+"ChangeService",qT.bind(null,t)),document.addEventListener(_n,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(v0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(vo,Zt.showModal.bind(null,t)),n.addEventListener(ie+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(f6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(h6,Zt.eventUpload.bind(null,t)),n.addEventListener(x0,a=>{xt()||J3(a,t)}),n.addEventListener(b6,VT),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",Aj),document.addEventListener("contextmenu",kj),TT(),xt()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(xt()||n.addEventListener(Gr,Zt.handlePopupInit)),xt()||Yi.rootIframe(L0).handleAsk("throttleRequest",fx)};function FT(e,t){Mj(),Zt.SetupDomListenersForOnce(t,e),X()&&(xt()||(S3(e.config),Pj(e.config))),vr()&&WT(e,t),He()&&S3(e.config)}Zt.handlePopupInit=e=>{$S()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===y0&&Ta(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){mc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Ue(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),BT({method:"retryFailedParagraphs"}),mc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}gc(V3.bind(null,t,o,i,s));return}}};async function Dj(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Lj(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;kT(ET.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;gc(V3.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?gc(Nm.bind(null,"manga",e)):r=="webReport"&&gc(Nm.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Y3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")BT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")v5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")Dj();else if(i.type==="toggleEnableInputTranslation")Lj();else if(i.type==="syncAppSetting")_T(i.data);else if(i.type==="translatePage")Rj(i.data);else if(i.type==="getAsyncTranslationServiceList")a=ws(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=$i(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await Ij(i.data,o)}catch(s){pc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await Fj(o,i.data)}catch(s){pc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await rd(i.data):i.type==="getAsyncDownloadSubtitle"?a=await tT():i.type==="sharePage"?J3({detail:i.data},r):i.type==="switchTranslationMode"?K3(i.data):i.type=="getAsyncAiAssistants"?a=await Wl():i.type=="addAiAssistantAsync"?a=await Bo("add",i.data):i.type=="removeAiAssistantAsync"?a=await Bo("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await Q3(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await zT(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Id("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await cv(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await T5()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await w5()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await dv(i.data)):i.type==="openPopup"?_m({...i.data,open:!0}):i.type==="closePopup"?_m({...i.data,open:!1}):i.type==="togglePopup"?_m({...i.data}):i.type==="getPageStatusAsync"?a=ot():i.type==="restorePage"?Bj():i.type==="getPageLanguageAsync"?a=Dt():i.type==="showFloatBallGuide"?NS():i.type=="getAsyncDetectAndSetLanguage"?a=await NT(i.data):i.type=="setFloatBallActive"?zS(i.data):IT(i.type);a!=null&&i.id&&pc(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{OT()},10)};Zt.handleSecurityPolicyViolation=e=>{Ae.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ue(n.name,[{name:n.name}],{...e})};function Mj(){PT.forEach(e=>{e()}),PT=RT}function Pj(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=F0.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:tl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:nl,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:$u,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:sf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===$u?Sj():i.id===sf?Tj():i.id===nl?wj():i.id===tl?Ej():IT(i.id)},i.key)}}function BT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}async function _T(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await at(Fe(),t)}async function Rj(e){let t=await _T(e);mr(t)}function pc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function Ij({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function Fj(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function Bj(){ot()!=="Original"&&ga()}var Wo={};async function Z3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return xr(n),n}async function GT(e){let t=0,n=0;Xn("Translating");let r=Dt(),a=Z0(),i=[...document.querySelectorAll(".source-text")];if(Hs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(qs(m,c.id)?.remove(),m.appendChild(Pl(e,c.id,!0)))}),await s(l),await ut(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=qs(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Wo[g]={ok:!1,sentence:m},YT(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Wo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function KT(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wo),a=[],i=[];for(let o of r){let s=Wo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wo[o],c.appendChild(Pl(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=qs(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Wo[l]={ok:!1,sentence:u},YT(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Wo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function X3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function YT(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(_n,{detail:i}))}var Vm={};async function QT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return xr(n),n}async function JT(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Vm),n=[];for(let r of t){let a=Vm[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${w0}='${r}']`);o&&o.remove(),n.push(a)}}try{rc(),await Lm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function ZT(e){Object.values(Vm).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=gu(e,t.targetNodes);to(e,i,r,t.rootNodes||[]),Uo(t.targetNodes)}else n==="dual"&&Uo(t.targetNodes)}),Xn("Original")}async function XT(e){Xn("Translating");let t=fl(),n=Da(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;zi(l,e);let c=l.body;if(!c)continue;La(l.documentElement,e.state.translationMode);let m=Pn(e);m.isModifyImage=!1;let g=[];await ci({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await ut(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=Kd(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:km(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await f3(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Vm[p.id]=p)}Lm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function Wm(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Hi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,$3,$T=!1,Gm=null,_j=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=F+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Nm(s,e,t,r,a,i,o)},i.append(m)}function _3(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function Um(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var jm=[],cT=[];async function N3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(U3()||jm.includes(t))return"";if(jm.length>=s)return new Promise((l,c)=>{cT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});jm.push(t);try{let u=await ij(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await dT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{jm.shift(),(async()=>{let u=cT.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await N3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function nj(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ft}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${mT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await te({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rj(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aj(e,t,n){let r=await rj(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):te({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await I5(a)})}async function ij(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oj(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await Um(u);no({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nj(e,r,l,n.type);if(c.objectKey&&no({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aj(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return X()?m=await fetch(O3()+"/trigger",{method:"POST",body:ud(u),headers:{token:e.user?.token||""}}).then(async g=>(await ji(g,"manga"),g.json())):m=await te({url:O3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),no({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function dT(e,t,n,r,a){let i=U3();if(i)return;Ir("Translating",i);let o=await te({url:O3()+`/${t}/task-state?comicHash=${n}&domain=${mT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Xv(t,r.queryIntervalTime||100),dT(e,t,n,r,a))}function O3(){return ft+"comics"}function oj(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function mT(e){return e.replaceAll(".","_")}var Vt,j3,qm,dc,an=!1;function U3(){return an}var gT=!1;function hT(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;an=!1,!gT&&Vt.injectedCss&&(tr(document,`${Vt.injectedCss}`,F+"-image-injected-css"),gT=!0);let t=!1,n=Bn(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=vT(Vt);for(let i of a){if(an)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await ut(20),await r(i,t))}},100);if(Ue("translate_manga",[{name:"translate_manga"}],e),n(),j3=new MutationObserver(a=>{n()}),j3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;dc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(zo(e,o.target),dc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}qm=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(dc?.unobserve(a),dc?.observe(a)):await zo(e,a)))}}async function zo(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Ds();if(n&&(an=!1),an||fj(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=uj(e,t);u||(s=fu(e,t,"translating")),n&&Ue("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await lj(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await sj(e,t,o,a,s)),an&&!n)return;l?(t.translationStatus="success",u||fu(e,t,"success")):(u||fu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Ir("Error",an))}catch(l){if(an&&!n||(t.translationStatus="error",a=="manga"&&(Ir("Error",an),pj(e,l)),u))return;if(l instanceof lc)return fu(e,t,"error",l.type);fu(e,t,"error")}finally{n&&Ir(i,an),s?.remove()}}function bT(){if(!Vt)return;an=!0,j3?.disconnect(),qm?.disconnect(),dc?.disconnect();let e=vT(Vt);for(let t of e)Vo(t)}function Vo(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Vo(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function sj(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await cj(l,c,t.cloneNode(!0))}else o=await CT(t);if(an)return;if(!o||o.size<6*1e4){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await _3(o);return await H3(e,t,s)?!0:s?yT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function yT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await mj(n)||n,u=r||a;try{if(an)return;Ir("Translating",an),B3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};no(l);let m=await N3(e,u,s,a,i,g=>{B3(e,o,g)});return m?(l.targetUrl=m,no(l),await xT(Vt,t,m),Ir("Translated",an),!0):!1}catch(l){if(no({sourceUrl:u,to:e.targetLanguage,error:l.message}),an)return;throw l}}async function H3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl?(await xT(Vt,t,a.targetUrl||""),Ir("Translated",an),!0):!1}function uj(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl}return!1}async function lj(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gj(a,i)){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await H3(e,t,o))return!0;let s=null;if(Ir("Translating",an),an)return;if(i.startsWith("blob:")){let m=await fetch(i);await ji(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await dj(i);else{let m=await te({url:i,responseType:"base64"});s=await ld(m)}if(an)return;if(await MC(s))throw new lc("GIFs not supported","gif_not_supported");let l=await _3(s);if(!o&&(o=l,await H3(e,t,o)))return!0;if(!o)return!1;return yT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function vT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function CT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function cj(e,t,n){return new Promise((r,a)=>{te({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await CT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function xT(e,t,n){try{return await pT(e,t,n)}catch{let a=await hj(n);return pT(e,t,a)}}async function pT(e,t,n){return new Promise((a,i)=>{if(an)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function dj(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function mj(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gj(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Fd(e.inValidSrcRegex,t):!0}var Hm=0,cc=0;function pj(e,t){if(Hm!=0){cc++;return}if(t.message.indexOf("quota exceeded")>0){fT(e,t);return}cc++,Hm=setTimeout(()=>{if(cc<(Vt.errorTimes||3)){Hm=0,cc=0;return}fT(e,t),cc=0,Hm=0},Vt.errorInterval||3e3)}function fT(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(_n,{detail:r}))}function q3(e){return e.classList.contains("imt-img")||e.hasTranslate}function fj(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function hj(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var bj="showImagePricingModal";function zm(e){document.dispatchEvent(new CustomEvent(bj,{detail:JSON.stringify({trigger:e})}))}var Ha=null;async function ST(e,{srcUrl:t}){if(!oi(e))return;if(!await Ss(e)){zm("image_right_menu");return}if(!Ha){D.error("rightMenu image ele not found",t,Ha);return}if(Ha.translationStatus!=="translating"){if(Ha.hasTranslate){Vo(Ha);return}if(t!==Ha.src)try{let r=new URL(t),a=new URL(Ha.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,Ha.src,r);return}zo(e,Ha,!0,"image_right_menu")}}function TT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Ha=e.target)})}var wT=0;function gc(e){let t=Date.now();if(t-wT<2e3||(wT=t,yj()))return;let n=`${F}-modal-root`,r=`${F}-modal`,a=document.getElementById(n),i=`${F}-modal-title`,o=`${F}-modal-body`,s=`${F}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,mc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=we();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=F+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=F+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let h=document.createElement("div");h.className=o+" notranslate",g.appendChild(h);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",b=>{b.target==u&&(u.style.display="none")}),e(u,f,h,y,mc)}setTimeout(()=>{vj()},100)}function yj(){let e=document.querySelector(`#${F}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-modal`)?.style.display=="block":!1}function vj(){let e=document.querySelector(`#${F}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-modal`);t&&(t.style.display="block")}}function mc(e,t=!1){let n=document.querySelector(`#${F}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ET(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();un({...l,sameLangCheck:!1}),o(i,!0)})}var AT=0;async function kT(e){let t=Date.now();if(t-AT<2e3||(AT=t,Cj()))return;let n=`${F}-toast-root`,r=`${F}-toast`,a=document.getElementById(n),i=`${F}-toast-msg`,o=`${F}-toast-content`,s=`${F}-toast-hidden`,u,l,c=()=>{l&&z3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,z3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${F}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),y=document.createElement("style"),b=we();y.textContent=b.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),h.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=F+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},h.addEventListener("click",S=>{S.target==g&&(g.style.display="none")}),e(g,u,l,z3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{xj()},100),m=setTimeout(c,2500)}function Cj(){let e=document.querySelector(`#${F}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${F}-toast`)?.style.display=="flex":!1}function xj(){let e=document.querySelector(`#${F}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${F}-toast`);t&&(t.style.display="flex")}}function z3(e,t=!1){let n=document.querySelector(`#${F}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${F}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function V3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${F}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",DT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(U6)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(I0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(V6)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)},W3(e,e.config.translationService,!1,f).then(h=>{h?(g=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{LT(h),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await un(f),DT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=F+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function DT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}var MT=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},RT=[()=>{Kt.unbind()}],PT=[...RT],Sj=br(async()=>{await wa()},50),Tj=br(async()=>{await id()},50),wj=br(async()=>{await y5()},50),Ej=br(async()=>{await b5()},50),IT=br(e=>{hn({method:e,data:{trigger:"userscript_menu"}})},50),G3=!1,Aj=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!G3&&e&&e.length>0?Cl({text:e}):Cl({})},50),kj=()=>{G3=!0,setTimeout(()=>{G3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(MT)return;MT=!0,X()||l5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(ie+"DocumentMessageUser",UT),document.addEventListener(ie+"DocumentMessageUpdateUser",jT),document.addEventListener(ie+"ChangeSuccessService",HT.bind(null,t)),document.addEventListener(ie+"ChangeService",qT.bind(null,t)),document.addEventListener(_n,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(v0,Zt.showToastByEvent.bind(null,t)),document.addEventListener(vo,Zt.showModal.bind(null,t)),n.addEventListener(ie+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(f6,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(h6,Zt.eventUpload.bind(null,t)),n.addEventListener(x0,a=>{xt()||J3(a,t)}),n.addEventListener(b6,VT),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",Aj),document.addEventListener("contextmenu",kj),TT(),xt()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),X()&&(xt()||n.addEventListener(Gr,Zt.handlePopupInit)),xt()||Yi.rootIframe(L0).handleAsk("throttleRequest",fx)};function FT(e,t){Mj(),Zt.SetupDomListenersForOnce(t,e),X()&&(xt()||(S3(e.config),Pj(e.config))),Cr()&&WT(e,t),He()&&S3(e.config)}Zt.handlePopupInit=e=>{$S()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===y0&&Ta(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){mc(n);return}let r=n.getAttribute(`data-${F}-event`);r&&Ue(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${F}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),BT({method:"retryFailedParagraphs"}),mc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${F}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}gc(V3.bind(null,t,o,i,s));return}}};async function Dj(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Lj(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;kT(ET.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;gc(V3.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?gc(Nm.bind(null,"manga",e)):r=="webReport"&&gc(Nm.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=Y3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")BT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")v5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")Dj();else if(i.type==="toggleEnableInputTranslation")Lj();else if(i.type==="syncAppSetting")_T(i.data);else if(i.type==="translatePage")Rj(i.data);else if(i.type==="getAsyncTranslationServiceList")a=ws(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=$i(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await Ij(i.data,o)}catch(s){pc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await Fj(o,i.data)}catch(s){pc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await rd(i.data):i.type==="getAsyncDownloadSubtitle"?a=await tT():i.type==="sharePage"?J3({detail:i.data},r):i.type==="switchTranslationMode"?K3(i.data):i.type=="getAsyncAiAssistants"?a=await Wl():i.type=="addAiAssistantAsync"?a=await Bo("add",i.data):i.type=="removeAiAssistantAsync"?a=await Bo("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await Q3(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await zT(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Id("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await cv(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await T5()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await w5()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await dv(i.data)):i.type==="openPopup"?_m({...i.data,open:!0}):i.type==="closePopup"?_m({...i.data,open:!1}):i.type==="togglePopup"?_m({...i.data}):i.type==="getPageStatusAsync"?a=ot():i.type==="restorePage"?Bj():i.type==="getPageLanguageAsync"?a=Dt():i.type==="showFloatBallGuide"?NS():i.type=="getAsyncDetectAndSetLanguage"?a=await NT(i.data):i.type=="setFloatBallActive"?zS(i.data):IT(i.type);a!=null&&i.id&&pc(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{OT()},10)};Zt.handleSecurityPolicyViolation=e=>{Ae.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ue(n.name,[{name:n.name}],{...e})};function Mj(){PT.forEach(e=>{e()}),PT=RT}function Pj(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=F0.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:tl,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:nl,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:$u,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:sf,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===$u?Sj():i.id===sf?Tj():i.id===nl?wj():i.id===tl?Ej():IT(i.id)},i.key)}}function BT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(Gr,{detail:e});globalThis.document.dispatchEvent(t)}async function _T(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await at(Fe(),t)}async function Rj(e){let t=await _T(e);gr(t)}function pc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function Ij({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await fn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function Fj(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await fn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function Bj(){ot()!=="Original"&&ga()}var Wo={};async function Z3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Sr(n),n}async function GT(e){let t=0,n=0;Xn("Translating");let r=Dt(),a=Z0(),i=[...document.querySelectorAll(".source-text")];if(Hs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(qs(m,c.id)?.remove(),m.appendChild(Pl(e,c.id,!0)))}),await s(l),await ut(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await fn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=qs(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Wo[g]={ok:!1,sentence:m},YT(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Wo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function KT(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wo),a=[],i=[];for(let o of r){let s=Wo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wo[o],c.appendChild(Pl(e,o)),i.push(s.sentence))}}}try{await fn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=qs(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Wo[l]={ok:!1,sentence:u},YT(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Wo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function X3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function YT(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(_n,{detail:i}))}var Vm={};async function QT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Sr(n),n}async function JT(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Vm),n=[];for(let r of t){let a=Vm[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${w0}='${r}']`);o&&o.remove(),n.push(a)}}try{rc(),await Lm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function ZT(e){Object.values(Vm).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=gu(e,t.targetNodes);to(e,i,r,t.rootNodes||[]),Uo(t.targetNodes)}else n==="dual"&&Uo(t.targetNodes)}),Xn("Original")}async function XT(e){Xn("Translating");let t=fl(),n=Da(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;zi(l,e);let c=l.body;if(!c)continue;La(l.documentElement,e.state.translationMode);let m=Pn(e);m.isModifyImage=!1;let g=[];await ci({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await ut(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=Kd(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:km(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await f3(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Vm[p.id]=p)}Lm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function Wm(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Hi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,$3,$T=!1,Gm=null,_j=` .${F}-input { position: absolute; top: 0; @@ -6081,9 +6081,9 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide box-shadow: 130px 0 var(--loading-color); } } -`;function tw(e){Wm().forEach(t=>{Oj(e,t)})}function Oj(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Gm===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};or.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||Gm===!1)return;let p=Qm(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(qj(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&ew(t,o,g.target)&&(s=0,n1(g,e,t,o))}function m(){$3=l,t.removeEventListener("keyup",$3),t.addEventListener("keyup",$3,!0)}zj(e)}function nw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Km(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var hu;function e1(e){let t=e.parentElement;if(!t)return;hu=document.createElement("div"),hu.className=F+"-input";let n=`
`;hu.innerHTML=Or?.createHTML(n)||n,t.appendChild(hu);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=_j,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function t1(){hu&&hu.remove()}async function Nj(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){i1(e,t,r,"shortcutKey");return}try{let h=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=Km(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=nw(u),S=g.split(C);if(S.length<2)return;if(m=S[S.length-1],c=S[0],S.length>2){let T=g.lastIndexOf(m),w=g.slice(0,T).lastIndexOf(S[S.length-2]);c=g.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let x=g.slice(c.length+1,g.indexOf(m)).trim();if(p=Km(x,u.codeAlias),!p){D.warn("not found alias",x);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};or.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=fa(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?h():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&h());let f=rw(m,u),b=await ze({text:f,pageLangs:["en"]});D.debug("translateContent",f,b);let y={text:f||"",id:0,from:b,to:p,url:"https://google.com",fromByClient:b,force:!0};if(!y.text||y.text.length>5e3)return;e1(l),Je(al,Date.now());try{e.specialAiAssistant=aa(e,e.inputTranslationService,!0);let C=await dr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a1(e),lw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let S=C.uiConfig(e);o1(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(_n,{detail:S}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}async function n1(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=Km(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=nw(r),b=s.split(f);if(b.length<2)return;if(o=b[b.length-1],i=b[0],b.length>2){let h=s.lastIndexOf(o),v=s.slice(0,h).lastIndexOf(b[b.length-2]);i=s.slice(0,v+b[b.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Km(y,r.codeAlias),!u){D.warn("not found alias",y);return}},a=Qm(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=fa(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=rw(o,r),c=await ze({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!$T){$T=!0;let f=await Vj(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(Gm=!1,f==="disable_forever"){let b=await Qt();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}else if(f==="disable_once"){let b=await Qt();b.isShowInputTranslationConsent=!1,await un(b)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(Gm=!1,f==="close_disable_forever"){let b=await Qt();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}return}else if(f==="enable"){let b=await Qt();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await un(b)}else if(f==="close_enable"){let b=await Qt();b.enableInputTranslation=!0,await un(b)}}e1(a),Je(al,Date.now());try{t.specialAiAssistant=aa(t,t.inputTranslationService,!0);let f=await dr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});a1(t),lw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let b=f.uiConfig(t);o1(b.action)&&(b.action="none"),n.document.dispatchEvent(new CustomEvent(_n,{detail:b}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}function ew(e,t,n){if(!n)return!1;if(r1(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`;function tw(e){Wm().forEach(t=>{Oj(e,t)})}function Oj(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Gm===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};or.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||Gm===!1)return;let p=Qm(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(qj(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&ew(t,o,g.target)&&(s=0,n1(g,e,t,o))}function m(){$3=l,t.removeEventListener("keyup",$3),t.addEventListener("keyup",$3,!0)}zj(e)}function nw({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Km(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var hu;function e1(e){let t=e.parentElement;if(!t)return;hu=document.createElement("div"),hu.className=F+"-input";let n=`
`;hu.innerHTML=lr?.createHTML(n)||n,t.appendChild(hu);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=_j,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function t1(){hu&&hu.remove()}async function Nj(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){i1(e,t,r,"shortcutKey");return}try{let b=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=Km(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=nw(u),S=g.split(C);if(S.length<2)return;if(m=S[S.length-1],c=S[0],S.length>2){let T=g.lastIndexOf(m),w=g.slice(0,T).lastIndexOf(S[S.length-2]);c=g.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let x=g.slice(c.length+1,g.indexOf(m)).trim();if(p=Km(x,u.codeAlias),!p){D.warn("not found alias",x);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};or.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=fa(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?b():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&b());let f=rw(m,u),h=await ze({text:f,pageLangs:["en"]});D.debug("translateContent",f,h);let y={text:f||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!y.text||y.text.length>5e3)return;e1(l),Je(al,Date.now());try{e.specialAiAssistant=aa(e,e.inputTranslationService,!0);let C=await mr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a1(e),lw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let S=C.uiConfig(e);o1(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(_n,{detail:S}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}async function n1(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=Km(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=nw(r),h=s.split(f);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let b=s.lastIndexOf(o),v=s.slice(0,b).lastIndexOf(h[h.length-2]);i=s.slice(0,v+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Km(y,r.codeAlias),!u){D.warn("not found alias",y);return}},a=Qm(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=fa(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=rw(o,r),c=await ze({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!$T){$T=!0;let f=await Vj(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(Gm=!1,f==="disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="disable_once"){let h=await Qt();h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(Gm=!1,f==="close_disable_forever"){let h=await Qt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}return}else if(f==="enable"){let h=await Qt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await un(h)}else if(f==="close_enable"){let h=await Qt();h.enableInputTranslation=!0,await un(h)}}e1(a),Je(al,Date.now());try{t.specialAiAssistant=aa(t,t.inputTranslationService,!0);let f=await mr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});a1(t),lw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let h=f.uiConfig(t);o1(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(_n,{detail:h}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,t1()}}function ew(e,t,n){if(!n)return!1;if(r1(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` `).reverse()[0],o=i.trim(),s=a<=r;D.debug("cursorPosition",r,"textLength",a),D.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return D.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=Uj(i,n);D.debug("Current text node:",i.textContent),D.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=He()?u[0]||u[1]:u[0];D.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else D.debug("Cursor is not within a text node.")}}return!1}function Uj(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function rw(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function aw(e,t){let n=t.innerHTML,r=fa(t);return{html:n.replace(r,e),text:e}}function Ym(e,t,n=!1){let r=fa(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function fa(e){return e.value||e.innerText||e.textContent}async function pa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function jj(e,t,n){await pa(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await pa(10)}async function iw(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await pa(10))}async function ow(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await pa(20),(t.value||t.value==="")&&(t.value=e.text)}async function sw(e,t){r1(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await pa(20))}var uw=[jj.bind(null,["plain"])];function r1(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Hj(e,t){if(r1(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function lw(e,t,n,r){await pa(50),await Hj(t,n),await pa(50);let a=e.rule.inputConfig,i=aw(r,n);try{await pa(50),a?.execCommandDeleteEnable&&!Zn()&&fa(n)?.trim()!=""&&(t.document.execCommand("delete"),await pa(50)),D.debug("clearContent",fa(n))}catch(o){D.error(o)}for(let o of[...uw,ow,sw,iw]){await o(i,n);let s=cw(t);if(!s)return;if(D.debug("setContent",o.name,Ym(i,s),fa(s),i),Ym(i,s))break}}function cw(e){return e.document.activeElement}function a1(e,t=""){Ue("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function qj(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function zj(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Bt(t,"")||Number(await Bt(al,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{Wj()},100),new Promise(m=>{let g=m;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let P=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),U=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${F}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let P=R.attachShadow({mode:"open"}),L=document.createElement("style"),U=we();L.textContent=U.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,P.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let B=document.createElement("div");B.className=F+"-modal-content notranslate "+F+"-modal-content-in-input",s.appendChild(B);let H=document.createElement("span");H.textContent="\xD7",H.className=F+"-close",B.appendChild(H),u=document.createElement("div"),u.className=r+" notranslate",B.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",B.appendChild(c),l=document.createElement("div"),l.className=i,B.appendChild(l),P.appendChild(s),H.onclick=function(){E(),m("close")},P.addEventListener("click",W=>{W.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${gm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Or?.createHTML(f)||f,c.innerHTML=Or?.createHTML("")||"";let b=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});b.innerHTML=Or?.createHTML(y)||y,b.style.cssText="margin-bottom:12px",c.appendChild(b);let h=document.createElement("div");h.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));h.innerHTML=Or?.createHTML(v)||v,c.appendChild(h);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function i1(e,t,n,r){if(zn)return;try{let o=Qm(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;zn=!0;let u=e.config.inputTargetLanguage,l=await ze({text:n,pageLangs:["en"]});D.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;e1(o),Je(al,Date.now());try{if(e.specialAiAssistant=aa(e,e.inputTranslationService,!0),a1(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let m=await dr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,m.text)}else{let m=await dr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,m.text)}}catch(m){if(m instanceof V){let g=m.uiConfig(e);o1(g.action)&&(g.action="none"),document.dispatchEvent(new CustomEvent(_n,{detail:g}))}}finally{zn=!1}}catch(o){throw zn=!1,o}finally{zn=!1,t1()}async function a(o,s,u,l){let c=o.rule.inputConfig,m=aw(l,u);try{await pa(50),c?.execCommandDeleteEnable&&!Zn()&&fa(u)?.trim()!=""&&(s.document.execCommand("delete"),await pa(50)),D.debug("clearContent",fa(u))}catch(g){D.error(g)}for(let g of[...uw,ow,sw,iw]){await g(m,u);let p=cw(s);if(!p)return;if(D.debug("setContent",g.name,Ym(m,p),fa(p),m),Ym(m,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let m=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("delete",!1);let g=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(g),!g.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function o1(e){return e==="retry"||e==="changeService"}function Jm({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&tr(c,a),e.appendChild(l);let m=c;if(s){let g=document.createElement("div");g.id="mount",g.style.display="block",c.appendChild(g),m=g}ya(d(Qi,{lang:t.config.interfaceLanguage,children:d(n,{...r})}),m)}function bu(e){return yu(e).subtitles}function yu(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${M1.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},rq=e=>/]*>[\s\S]*]*>/.test(e),Qw=An({name:Yw,build:nq,detect:rq,helper:M1,parse:tq});var aq="srt",vc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},iq=(e,t)=>{let n=[],r=t.eol||`\r `,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=vc.toMilliseconds(s[2]),u.end=vc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},oq=(e,t)=>{let n="",r=t.eol||`\r `;for(let a=0;a ${vc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},sq=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),Jw=An({name:aq,build:oq,detect:sq,helper:vc,parse:iq});var uq="sub",P1=25,lq=(e,t)=>{t.fps||=P1;let n=t.fps>0?t.fps:P1,r=[],a=t.eol||`\r `,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:P1,r="",a=t.eol||`\r `;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},dq=e=>/^\{\d+\}\{\d+\}.*/.test(e),Zw=An({name:uq,build:cq,detect:dq,parse:lq});var mq="vtt",Cc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},gq=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Cc.toMilliseconds(s[2]),l.end=Cc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},pq=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Cc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},fq=e=>/^\s*WEBVTT\r?\n/.test(e),Xw=An({name:mq,build:pq,detect:fq,helper:Cc,parse:gq});var hq={vtt:Xw,lrc:Gw,smi:Qw,ssa:zw,ass:Vw,sub:Zw,srt:Jw,sbv:Kw,json:Ww},$w=hq;var bq=e=>JSON.parse(JSON.stringify(e)),R1=class{format=$w;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),tg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];mu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ie+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&tr(document,`${t.join(` +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Cc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},fq=e=>/^\s*WEBVTT\r?\n/.test(e),Xw=An({name:mq,build:pq,detect:fq,helper:Cc,parse:gq});var hq={vtt:Xw,lrc:Gw,smi:Qw,ssa:zw,ass:Vw,sub:Zw,srt:Jw,sbv:Kw,json:Ww},$w=hq;var bq=e=>JSON.parse(JSON.stringify(e)),R1=class{format=$w;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),tg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];mu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ie+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${F}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&tr(document,`${t.join(` `)}`,F+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await at(Fe(),{});if(this.initConfig(n),await ut(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(pw(r),fw(a));return u&&this.setMemoryCache(o,u),u}catch(r){return D.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!gt(Fe(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle||this.tempEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:this.i18nFormat(`translationServices.${this.ctx.subtitleTranslateService}`)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} @@ -6281,7 +6281,7 @@ ${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lan ${u}`)}),ro(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[re(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Fe()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var lg=class extends yt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=n7(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=n7(o,r.itemsPath):s=Cq(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>xc(l,r.textKey)).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:xc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),$e(this.ctx,re(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>xc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=vq(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function n7(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Vs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,$e(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return wr(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=m4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Dt(),"en"]});return Hs(t,r)?void 0:(await dr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=ot(),n=await at(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await at(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var cg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=xq(r),o=await ze({text:i.map(u=>u.textContent).join(` +`+n,e):null}function Cq(e,t){if(!t)return null;let n=e[t.startKey||""],r=e[t.endKey||""],a=e[t.textKey||""];if(!(Array.isArray(n)&&n.length==r.length&&r.length==a.length))return null;let o=[],s=t.timeDivisor||1;for(let u=0;u{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Vs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,$e(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Yt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Yt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Er(t,["."+Yt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Yt);if(!a){let o=document.createElement("font");o.classList.add(Yt),o.classList.add("notranslate");let s=m4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Dt(),"en"]});return Hs(t,r)?void 0:(await mr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=ot(),n=await at(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await at(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var cg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=xq(r),o=await ze({text:i.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=r7(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=await this.translateSubtitle(a,i,re(o));if(this.config.enableHookDownload)try{let u=r7(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),re(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ha(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Sc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` `)}},Sc="http://www.w3.org/ns/ttml";function xq(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Sc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Sc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Sc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function r7(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Sc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:a7(i),end:a7(o),text:s})}),r}function a7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var dg=class extends yt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=yu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(ct(o,this.ctx.targetLanguage))return null;if($e(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,re(o))}catch(n){return D.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=vu(n.subtitles,bu(u));return n.subtitles=l,ro(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await fn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){D.debug("translate subtitle:",a,i,o);return}let s=ha(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} ${s}`)}),ro(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>re(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=wq(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` @@ -6292,13 +6292,13 @@ ${s}`)}),ro(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= `)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},i7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var fg=class extends qa{constructor(t){super(t),new wu(t)}};var hg=class extends qa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Ko.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){D.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Ko.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var bg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` `),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),re(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){D.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return D.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=l1(f,l),h=l1(b,l),v=En(y),C=En(h);u==="duration"&&(C=v+C);let S=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(S||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var yg=class extends yt{hasSubtitle=!1;async mutationVideoChange(){let t=Eq(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&($e(this.ctx,"ja","av"),this.hasSubtitle=!0,pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await te({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Ko.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function Eq(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var vg=class extends yt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&($e(this.ctx,n.language_code),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Aq={youtube:ig,netflix:og,webvtt:Tu,khanacademy:sg,udemy:ug,hulu:gg,mubi:vg,text_track:ao,text_track_dynamic:qa,general:lg,live:wu,ebutt:cg,disneyplus:dg,"fmp4.xml":mg,multi_attach_vtt:pg,twitter:fg,subsrt:hg,xml:bg,av:yg},Cg;async function Iw(e){try{X()&&await ut(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Aq[t.type];if(!n)return;Cg=new n(e)}catch(t){D.error(t)}}async function I1(){Cg?.onPageStatusChange()}async function kq(e,t){if(Cg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&xt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ue("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Dq(){Cg?.onTranslationModeChanged()}u5({autoEnableSubtitleChanged:kq,reloadSubtitleWithTranslationModeChanged:Dq});var fe=null;function bc(){return fe||null}function ag(e){let t=Pn(e);zi(document,e),Lq(e),_q(e,t),Iq(e),Bq(e),Rq(fe,t),Xn("Translated"),Fq(fe),Q8(Su),Mq(fe),I1(),Vq()}function Lq(e){let t=e.rule.initialSelectorGlobalAttributes;if(e.state.translationArea==="main"&&t){let n=Pn(e);e.rule.navHeadEnableTranslate&&Object.entries(t).forEach(([r,a])=>{a.sideHead&&delete t[r]}),j8(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}mu(e)&&zt(document.documentElement,ie+"_rtl",e.targetLanguage)}function Mq(e){let t=e.ctx;c7(t,!0),J8(e),Jv(window.location.href)}function Pq(e){let t=e.ctx;c7(t,!1),Z8()}async function Rq(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=H8(e.ctx,t);if(D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await di(s,e);await di(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await di(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}async function Iq(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Mt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await kt({...t,tempTranslationUrlMatches:[...i]})}}function Fq(e){e.ctx.rule.isTranslateTitle&&(l3(e.ctx),e.titleDynamicObserver=V8(e.ctx))}function Bq(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function x1(e,t){fe&&(e.isRichTranslate=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=Pn(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",La(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function _q(e,t){let n=fl();fe&&(n=fe.id),fe=fe||{},fe.ctx=e,fe.id=n,fe.paragraphQueue=fe.paragraphQueue||[],x1(e,t),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||qq(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||zq(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Uq(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||jq(fe),fe.injectCssToDocument=xg,fe.walkContainer=ci,e.specialAiAssistant=aa(e,e.translationService,!0),window.onerror=Nq(fe,e),window.immersiveTranslateSwitchTranslateState=B1.bind(fe)}function l7(e,t){t.getRootNode()instanceof ShadowRoot?xg(t.getRootNode(),e):xg(t.ownerDocument,e),Oq(e)}function Oq(e){fe||(fe={},fe.ctx=e,fe.id=fl(),F1(fe,e))}function F1(e,t){e.paragraphQueue=[],e.injectCssToDocument=xg,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=B1.bind(e);let n=aa(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=js(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function Su(e=!0){fe&&(Xn("Original"),I1(),Pq(fe),rc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),W8(fe.ctx),qv(),zv(),e&&B1.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Nq(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Su(),n=setTimeout(()=>{ag(t)},e.urlChangeDelay||2e3)),!0}}function Uq(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await g3(e,r.target),n.unobserve(r.target))})}function jq(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{p3(e,o)}),n.unobserve(a)}})})}var o7;function Hq(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(o7),e.translateState=="original"?!1:(Su(e.urlChangeDelay>20),o7=setTimeout(()=>{let a=e.ctx;ag(a)},e.urlChangeDelay),!0)):!1}function qq(e){let t=e.ctx.rule,n=Pn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&Hq(e)||e.interruptEffectDOM)return;let a=Bd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!wr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&wr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(k0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;s7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&v3(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&s7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||ka(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Vs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),u7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&u7(e,i.target)}catch(o){D.error(o)}})}function s7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{y3(n),ci({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{jo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function u7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function y3(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function v3(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function zq(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);s3(i)||(n.unobserve(r.target),Rt.clearMark(a),di(a,e))}})}async function B1(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await ga(),await ut(50),hn({method:"translatePage"});return}this.translateState=e,La(document.documentElement,e),this.inlineIFrames?.forEach(t=>{La(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{nc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function xg(e,t){if(e instanceof HTMLIFrameElement){zi(e.contentDocument,t);return}zi(e,t)}async function Fw(e){let t=xt(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Ws(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Ws(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await m5();return n==="auto"&&(n=await Y8()),a5(n),n}async function Bw(){if(!fe)return;rc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${w0}='${n}']`);i&&i.remove()}}Dm.call(fe,fe.ctx)}async function J3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ue("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Dt()});let r=fe?.ctx||t,a=await Mt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:G8(r)},await kt(a);let o=we().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ea(o)}catch(i){D.error(i)}}async function VT(){let e=await Mt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(y6,{detail:JSON.stringify(e.draft)}))}async function Vq(){try{if(await Do("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ea();await te({url:ft+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){D.error(e)}}function c7(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(ps,{detail:{tempEnableSubtitle:t}}))}var Wq=new AbortController,{signal:Gq}=Wq,wc=0,Ec=0,Yo=!1,io,d7=0,fi=[];function S1(e){Kq(),Wm().forEach(t=>{Sg(e,t)})}function Sg(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Xq(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Sg(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Sg(n,t))}t.document.addEventListener(Xu,s),fi.push(()=>{t.document.removeEventListener(Xu,s)});let u=hr(g=>{if(!(Math.abs(g.clientX-wc)+Math.abs(g.clientY-Ec)<=3)&&(wc=g.clientX,Ec=g.clientY,Yo&&!io&&N1(n,!1,t),o||Yo&&!io)){let p=f7(n.rule,t);if(p){if(O1(p))return;Tg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;O1(p)||(Tg(n,!0,t),N1(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&(d7=Date.now(),Yo=!1),f.length===1&&Kt[p]){let b=Date.now();Yo=!0,io&&clearTimeout(io),io=setTimeout(()=>{let y=d7-b;y>0&&y<=i?Yo=!1:l(g),io=void 0},i)}};if(fi.push(()=>{io&&clearTimeout(io)}),a)return;Tc("mousemove",u,t),fi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Yo=!1}if(Tc("blur",m,t),fi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=O6;Tc("keyup",m7,t),fi.push(()=>{t.removeEventListener("keyup",m7)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),fi.push(()=>{Kt.deleteScope("mouseHover")})}}function Kq(){fi.forEach(e=>e()),fi=[],Kt.setScope("all")}function m7(e){Yo=!1}function Tc(e,t,n=window){return n.addEventListener(e,t,{signal:Gq})}function Tg(e,t,n,r){if(r=r||f7(e.rule,n),!r){D.debug("can not find selection part!");return}if(Qq(e,r,t))return;if(O1(r)){D.debug("exclude dom");return}l7(e,r);let i=bc();i&&(i.setupMouseHoverListener=Sg);let o=Pn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=F1(i,e);ci({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{Bd(n.document.documentElement)!==e.state.translationMode&&La(n.document.documentElement,e.state.translationMode),jo(u,l,!0,"hover").then(m=>{if(m&&!s){s=!0;let g=Date.now();Je(x6,g);let p={translation_service:u?.translationService||""};Ue("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function f7(e,t){return Yq(wc,Ec,e,t)}function Yq(e,t,n,r){let a=gC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=pC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:p7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Zq(e,a)}),!0}function Jq(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Zq(e,t){let n=bc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{nc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function _1(e){return!!(e.host&&e.mode)}function g7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||_1(n))return e;for(;n&&n.nodeName!=="BODY"&&!_1(n)&&v4(n,t);){let r=n.parentNode;if(r&&_1(r))break;n=r}return n}function p7(e,t){return e.nodeType===Node.TEXT_NODE||v4(e,t)?g7(e,t):e}function h7(e,t,n){wc=t.clientX,Ec=t.clientY,Tg(e,!0,n),N1(e,!0,n)}async function N1(e,t,n,r){if(!oi(e))return;let a=fC(wc,Ec,e.rule,n);if(!a||D4(a.src)||a.translationStatus==="translating")return;let i=q3(a);if(i&&!t||i&&!r)return;if(i){Vo(a);return}if(!await Ss(e)){zm("image_mouse_hover");return}zo(e,a,!0,"image_mouse_hover")}function Xq(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Tg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Tc("mousedown",i,t),Tc("mouseup",o,t),fi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Ac=[];function U1(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Ac.push(()=>{document.removeEventListener("click",i)})}function b7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Ac.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function wg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Ac.push(()=>{document.removeEventListener("touchstart",r)})}var ic={touchShortcutsOff:()=>{},"multipleClick.2":U1,"multipleClick.3":U1,"multipleClick.4":U1,"slide.left":b7,"slide.right":b7,"fingers.2":wg,"fingers.3":wg,"fingers.4":wg,"fingers.5":wg};async function WT(e,t=window){try{rz();let n=await ln(),r=D0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=j1(e,n,a.command),o=ic[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{nz(a.command,e,t,l)})})}catch(n){D.error(n)}}function j1(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var $q=()=>{y1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},ez=()=>{C1();let e=new CustomEvent(Gr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},tz=()=>{v1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},y7=0,nz=(e,t,n,r)=>{if(!(new Date().getTime()-y7<200)){if(y7=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")$q();else if(e==="touchShortcutsToggleTranslationMask")tz();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")ez();else if(e==="touchShortcutsToggleTranslateTouchElement")h7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};n1(r,t,n,s)}}};function rz(){Ac.forEach(e=>{e()}),Ac=[]}function kc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(ic).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ei.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d(sa,{className:"select",maxWidth:250,items:ei.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:Ra(f)}),y=ei.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(ye,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(ye,{title:r,description:i||""}),d("div",{class:"nav",children:[d(sa,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})}function H1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=da(),{t:u}=O(),l=pt(t),c=cn(l);return l?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ma,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(kc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||nt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(az,{setSettings:n,config:l,localConfig:o}),d(eo,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function az({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(kc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||nt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function q1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),u=le(g=>{s&&n(p=>Ui({...p},g))},[s,n]),l=ii(s,t),{t:c}=O(),m=le((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ma,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(iz,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(oz,{t:m,rule:l,updateFloatBallRule:u}),d(sz,{t:m,rule:l,updateFloatBallRule:u}),d(uz,{t:m,rule:l,updateFloatBallRule:u})]})})}function iz({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function oz({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);z(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Jt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(la,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ua,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function sz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function uz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function z1(){let e=Oe(),[t,n,r,a,i]=e,[o]=da();Xe(t,n);let[s,u]=N(null),{t:l,lang:c}=O();z(()=>{Ze().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Es(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=D0.filter(b=>{if(b.name==="touch"){let y=Kr(o);return D.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Kr(o);return D.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let x="";v==="finger"?x=j1(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?x=t.generalRule[h]:x=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?x=t.shortcuts[h]:x=g.shortcuts[h];let T=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${h}`));let w,E;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[h],E=m.map(k=>{let M={service:k,name:null};return k.startsWith("custom-ai")&&(M.name=s.config.translationServices[k].name),M})),{command:h,type:v,shortcut:x,title:T,description:C,service:w,serviceIdList:E,disabled:!(X(!0)||ms())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):ms()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>lo(kc,{...h,key:`shortcut-${v}`,onChange:(C,S)=>{n(x=>{if(h.type==="finger"){let w={...x.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...x,generalRule:w}}else if(h.type==="mouseHoverHoldKey"){let w={...x.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...x,generalRule:w}}else if(h.type.startsWith("translateWithCustom")){let T={...x?.shortcuts};if(m.includes(C)){let E=T.translateWithCustomServices||{};return{...x,shortcuts:{...T,translateWithCustomServices:{...E,[h.command]:C}}}}let w={...x,shortcuts:{...T,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}else{let T={...x?.shortcuts},w={...x,shortcuts:{...T,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}}),S||nt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function lz(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function V1(){let[e,t,n,r,a]=Oe(),i=lz(),{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return z(()=>{e&&m()},[e]),d(ce,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(g,F+"-config-"+Os()+".txt")}}}function W1(){let e=Pr(),{t,lang:n}=O();return d(ce,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(y8,{}),d("h1",{children:t("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:r=>{r.preventDefault(),ur(`${Q}docs/CHANGELOG/#${e.replace(/\./ig,"")}`)},children:e}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(cz,{}),d(dz,{})]})]}),d("div",{className:"header-navbar-height"})]})}function cz(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:z6,target:"_blank",children:[d(v8,{}),d("span",{children:e("options.navbar.installApp")})]})}function dz(){let{t:e}=O();return d(Pt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:Q6,target:"_blank",children:[d(C8,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function G1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedMangaSites),c=`
+`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",y=l1(f,l),b=l1(h,l),v=En(y),C=En(b);u==="duration"&&(C=v+C);let S=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(S||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var yg=class extends yt{hasSubtitle=!1;async mutationVideoChange(){let t=Eq(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&($e(this.ctx,"ja","av"),this.hasSubtitle=!0,pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await te({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Ko.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){D.error("fetchSubtitle",n);return}}};function Eq(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var vg=class extends yt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&($e(this.ctx,n.language_code),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var Aq={youtube:ig,netflix:og,webvtt:Tu,khanacademy:sg,udemy:ug,hulu:gg,mubi:vg,text_track:ao,text_track_dynamic:qa,general:lg,live:wu,ebutt:cg,disneyplus:dg,"fmp4.xml":mg,multi_attach_vtt:pg,twitter:fg,subsrt:hg,xml:bg,av:yg},Cg;async function Iw(e){try{X()&&await ut(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=Aq[t.type];if(!n)return;Cg=new n(e)}catch(t){D.error(t)}}async function I1(){Cg?.onPageStatusChange()}async function kq(e,t){if(Cg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&xt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ue("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function Dq(){Cg?.onTranslationModeChanged()}u5({autoEnableSubtitleChanged:kq,reloadSubtitleWithTranslationModeChanged:Dq});var fe=null;function bc(){return fe||null}function ag(e){let t=Pn(e);zi(document,e),Lq(e),_q(e,t),Iq(e),Bq(e),Rq(fe,t),Xn("Translated"),Fq(fe),Q8(Su),Mq(fe),I1(),Vq()}function Lq(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=Pn(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}j8(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}mu(e)&&zt(document.documentElement,ie+"_rtl",e.targetLanguage)}function Mq(e){let t=e.ctx;c7(t,!0),J8(e),Jv(window.location.href)}function Pq(e){let t=e.ctx;c7(t,!1),Z8()}async function Rq(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=H8(e.ctx,t);if(D.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await di(s,e);await di(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await di(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}async function Iq(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Mt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await kt({...t,tempTranslationUrlMatches:[...i]})}}function Fq(e){e.ctx.rule.isTranslateTitle&&(l3(e.ctx),e.titleDynamicObserver=V8(e.ctx))}function Bq(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function x1(e,t){fe&&(e.isRichTranslate=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=Pn(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",La(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function _q(e,t){let n=fl();fe&&(n=fe.id),fe=fe||{},fe.ctx=e,fe.id=n,fe.paragraphQueue=fe.paragraphQueue||[],x1(e,t),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||qq(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||zq(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Uq(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||jq(fe),fe.injectCssToDocument=xg,fe.walkContainer=ci,e.specialAiAssistant=aa(e,e.translationService,!0),window.onerror=Nq(fe,e),window.immersiveTranslateSwitchTranslateState=B1.bind(fe)}function l7(e,t){t.getRootNode()instanceof ShadowRoot?xg(t.getRootNode(),e):xg(t.ownerDocument,e),Oq(e)}function Oq(e){fe||(fe={},fe.ctx=e,fe.id=fl(),F1(fe,e))}function F1(e,t){e.paragraphQueue=[],e.injectCssToDocument=xg,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=B1.bind(e);let n=aa(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=js(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function Su(e=!0){fe&&(Xn("Original"),I1(),Pq(fe),rc(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),W8(fe.ctx),qv(),zv(),e&&B1.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Nq(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Su(),n=setTimeout(()=>{ag(t)},e.urlChangeDelay||2e3)),!0}}function Uq(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await g3(e,r.target),n.unobserve(r.target))})}function jq(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{p3(e,o)}),n.unobserve(a)}})})}var o7;function Hq(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(o7),e.translateState=="original"?!1:(Su(e.urlChangeDelay>20),o7=setTimeout(()=>{let a=e.ctx;ag(a)},e.urlChangeDelay),!0)):!1}function qq(e){let t=e.ctx.rule,n=Pn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&Hq(e)||e.interruptEffectDOM)return;let a=Bd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Er(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Er(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(k0)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;s7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&v3(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&s7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||ka(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Vs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),u7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Yt])?!1:o.contains(l)).length&&u7(e,i.target)}catch(o){D.error(o)}})}function s7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{y3(n),ci({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{jo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function u7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function y3(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Yt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${F}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function v3(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Yt]))).length==0}function zq(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);s3(i)||(n.unobserve(r.target),Rt.clearMark(a),di(a,e))}})}async function B1(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await ga(),await ut(50),hn({method:"translatePage"});return}this.translateState=e,La(document.documentElement,e),this.inlineIFrames?.forEach(t=>{La(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{nc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Yt}`).forEach(t=>t.remove())}function xg(e,t){if(e instanceof HTMLIFrameElement){zi(e.contentDocument,t);return}zi(e,t)}async function Fw(e){let t=xt(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Ws(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Ws(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=x4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await m5();return n==="auto"&&(n=await Y8()),a5(n),n}async function Bw(){if(!fe)return;rc(),document.dispatchEvent(new CustomEvent(tn,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${w0}='${n}']`);i&&i.remove()}}Dm.call(fe,fe.ctx)}async function J3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ue("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Dt()});let r=fe?.ctx||t,a=await Mt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:G8(r)},await kt(a);let o=we().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ea(o)}catch(i){D.error(i)}}async function VT(){let e=await Mt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(y6,{detail:JSON.stringify(e.draft)}))}async function Vq(){try{if(await Do("reportActive")||"")return;D.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ea();await te({url:ft+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){D.error(e)}}function c7(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(ps,{detail:{tempEnableSubtitle:t}}))}var Wq=new AbortController,{signal:Gq}=Wq,wc=0,Ec=0,Yo=!1,io,d7=0,fi=[];function S1(e){Kq(),Wm().forEach(t=>{Sg(e,t)})}function Sg(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Xq(n,t);function s(){o=!o,o?(D.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,Sg(n,t)):(D.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,Sg(n,t))}t.document.addEventListener(Xu,s),fi.push(()=>{t.document.removeEventListener(Xu,s)});let u=br(g=>{if(!(Math.abs(g.clientX-wc)+Math.abs(g.clientY-Ec)<=3)&&(wc=g.clientX,Ec=g.clientY,Yo&&!io&&N1(n,!1,t),o||Yo&&!io)){let p=f7(n.rule,t);if(p){if(O1(p))return;Tg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;O1(p)||(Tg(n,!0,t),N1(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Kt.getPressedKeyCodes();if(f.length>1&&Kt[p]&&(d7=Date.now(),Yo=!1),f.length===1&&Kt[p]){let h=Date.now();Yo=!0,io&&clearTimeout(io),io=setTimeout(()=>{let y=d7-h;y>0&&y<=i?Yo=!1:l(g),io=void 0},i)}};if(fi.push(()=>{io&&clearTimeout(io)}),a)return;Tc("mousemove",u,t),fi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Yo=!1}if(Tc("blur",m,t),fi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=O6;Tc("keyup",m7,t),fi.push(()=>{t.removeEventListener("keyup",m7)}),p.includes(g)?Kt("*",{scope:"mouseHover",element:t.document},c):Kt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Kt.setScope("mouseHover"),fi.push(()=>{Kt.deleteScope("mouseHover")})}}function Kq(){try{fi.forEach(e=>e())}catch{}fi=[],Kt.setScope("all")}function m7(e){Yo=!1}function Tc(e,t,n=window){return n.addEventListener(e,t,{signal:Gq})}function Tg(e,t,n,r){if(r=r||f7(e.rule,n),!r){D.debug("can not find selection part!");return}if(Qq(e,r,t))return;if(O1(r)){D.debug("exclude dom");return}l7(e,r);let i=bc();i&&(i.setupMouseHoverListener=Sg);let o=Pn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=F1(i,e);ci({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{Bd(n.document.documentElement)!==e.state.translationMode&&La(n.document.documentElement,e.state.translationMode),jo(u,l,!0,"hover").then(m=>{if(m&&!s){s=!0;let g=Date.now();Je(x6,g);let p={translation_service:u?.translationService||""};Ue("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function f7(e,t){return Yq(wc,Ec,e,t)}function Yq(e,t,n,r){let a=gC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=pC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:p7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){D.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Zq(e,a)}),!0}function Jq(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(F+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${F}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Zq(e,t){let n=bc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{nc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function _1(e){return!!(e.host&&e.mode)}function g7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||_1(n))return e;for(;n&&n.nodeName!=="BODY"&&!_1(n)&&v4(n,t);){let r=n.parentNode;if(r&&_1(r))break;n=r}return n}function p7(e,t){return e.nodeType===Node.TEXT_NODE||v4(e,t)?g7(e,t):e}function h7(e,t,n){wc=t.clientX,Ec=t.clientY,Tg(e,!0,n),N1(e,!0,n)}async function N1(e,t,n,r){if(!oi(e))return;let a=fC(wc,Ec,e.rule,n);if(!a||D4(a.src)||a.translationStatus==="translating")return;let i=q3(a);if(i&&!t||i&&!r)return;if(i){Vo(a);return}if(!await Ss(e)){zm("image_mouse_hover");return}zo(e,a,!0,"image_mouse_hover")}function Xq(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Tg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Tc("mousedown",i,t),Tc("mouseup",o,t),fi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var Ac=[];function U1(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Ac.push(()=>{document.removeEventListener("click",i)})}function b7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Ac.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function wg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Ac.push(()=>{document.removeEventListener("touchstart",r)})}var ic={touchShortcutsOff:()=>{},"multipleClick.2":U1,"multipleClick.3":U1,"multipleClick.4":U1,"slide.left":b7,"slide.right":b7,"fingers.2":wg,"fingers.3":wg,"fingers.4":wg,"fingers.5":wg};async function WT(e,t=window){try{rz();let n=await ln(),r=D0.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=j1(e,n,a.command),o=ic[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{nz(a.command,e,t,l)})})}catch(n){D.error(n)}}function j1(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var $q=()=>{y1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},ez=()=>{C1();let e=new CustomEvent(Gr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},tz=()=>{v1();let e=new CustomEvent(Gr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},y7=0,nz=(e,t,n,r)=>{if(!(new Date().getTime()-y7<200)){if(y7=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")$q();else if(e==="touchShortcutsToggleTranslationMask")tz();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")ez();else if(e==="touchShortcutsToggleTranslateTouchElement")h7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};n1(r,t,n,s)}}};function rz(){Ac.forEach(e=>{e()}),Ac=[]}function kc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(ic).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=ei.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d(sa,{className:"select",maxWidth:250,items:ei.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let h=g("mouseHoldKey",{key:Ra(f)}),y=ei.includes(o),b=f===o;return o==="Off"&&f===o&&c&&(b=!1),f==="Auto"?h=g("mouseHoldKeyAuto"):f==="Off"?h=g("mouseHoldKeyOff"):f==="OtherCustom"?h=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?h=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(h=g("mouseHoldKeyPressHold")),y||f==="Other"&&(b=!0),{label:h,value:f,selected:b,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(ye,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(ye,{title:r,description:i||""}),d("div",{class:"nav",children:[d(sa,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:b=>{b.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(b.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Gh,{width:20,height:16})})})})]})]})}function H1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=da(),{t:u}=O(),l=pt(t),c=cn(l);return l?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ma,{image:rn("images/hover_intro.png"),nightImage:rn("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(kc,{onChange:(m,g)=>{n(p=>{let h={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(h.mouseHoverPreferenceKey=m),{...p,generalRule:h}}),g||nt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(az,{setSettings:n,config:l,localConfig:o}),d(eo,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function az({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(kc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||nt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function q1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=cn(o),u=le(g=>{s&&n(p=>Ui({...p},g))},[s,n]),l=ii(s,t),{t:c}=O(),m=le((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ma,{image:rn("images/float_ball_intro.png"),nightImage:rn("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(iz,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(oz,{t:m,rule:l,updateFloatBallRule:u}),d(sz,{t:m,rule:l,updateFloatBallRule:u}),d(uz,{t:m,rule:l,updateFloatBallRule:u})]})})}function iz({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function oz({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);z(()=>{Kt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,h,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(h=>{t.blockUrls=Jt(h,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,h)=>{a(!r),o(p),u(h)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(la,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ua,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function sz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function uz({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function z1(){let e=Oe(),[t,n,r,a,i]=e,[o]=da();Xe(t,n);let[s,u]=N(null),{t:l,lang:c}=O();z(()=>{Ze().then(h=>{wn({config:h,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Es(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=D0.filter(h=>{if(h.name==="touch"){let y=Kr(o);return D.debug("isSupportMouseHover",y),!y}else if(h.name==="mouse"){let y=Kr(o);return D.debug("isSupportMouseHover",y),y}else return!0}).map(h=>({name:h.name,shortcuts:h.shortcuts.map(y=>{let b="",v="normal";typeof y=="string"?b=y:(b=y.command,y.type&&(v=y.type));let C="";l(`desc.${b}`)!==`desc.${b}`&&(C=l(`desc.${b}`));let x="";v==="finger"?x=j1(s,t,b):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[b]!==void 0?x=t.generalRule[b]:x=g.generalRule[b]:t?.shortcuts&&t?.shortcuts[b]!==void 0?x=t.shortcuts[b]:x=g.shortcuts[b];let T=l(`browser.${b}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${b}`));let w,E;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[b],E=m.map(k=>{let M={service:k,name:null};return k.startsWith("custom-ai")&&(M.name=s.config.translationServices[k].name),M})),{command:b,type:v,shortcut:x,title:T,description:C,service:w,serviceIdList:E,disabled:!(X(!0)||ms())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return X(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):ms()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:h=>{h.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((h,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${h.name}`)}),h.shortcuts.map((b,v)=>lo(kc,{...b,key:`shortcut-${v}`,onChange:(C,S)=>{n(x=>{if(b.type==="finger"){let w={...x.generalRule||{},[b.command]:C||"touchShortcutsOff"};return b.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...x,generalRule:w}}else if(b.type==="mouseHoverHoldKey"){let w={...x.generalRule||{},[b.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...x,generalRule:w}}else if(b.type.startsWith("translateWithCustom")){let T={...x?.shortcuts};if(m.includes(C)){let E=T.translateWithCustomServices||{};return{...x,shortcuts:{...T,translateWithCustomServices:{...E,[b.command]:C}}}}let w={...x,shortcuts:{...T,[b.command]:C}};return C||(w.shortcuts[b.command]=""),w}else{let T={...x?.shortcuts},w={...x,shortcuts:{...T,[b.command]:C}};return C||(w.shortcuts[b.command]=""),w}}),S||nt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function lz(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function V1(){let[e,t,n,r,a]=Oe(),i=lz(),{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return z(()=>{e&&m()},[e]),d(ce,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});mo.saveAs(g,F+"-config-"+Os()+".txt")}}}function W1(){let e=Rr(),{t,lang:n}=O();return d(ce,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(y8,{}),d("h1",{children:t("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:r=>{r.preventDefault(),ur(`${Q}docs/CHANGELOG/#${e.replace(/\./ig,"")}`)},children:e}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(cz,{}),d(dz,{})]})]}),d("div",{className:"header-navbar-height"})]})}function cz(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:z6,target:"_blank",children:[d(v8,{}),d("span",{children:e("options.navbar.installApp")})]})}function dz(){let{t:e}=O();return d(Pt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:Q6,target:"_blank",children:[d(C8,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function G1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=cn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedMangaSites),c=``,m=[...l.map((p,f)=>` ${p.name} ${f!==l.length-1?", ":""} - `),c].join(""),g=oi(u,!0);return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ma,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:bf})+m,children:d("div",{class:"px-6",children:d(v7,{config:u.config,ctx:u})})}),d(v7,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:bf})+"
"+m}}),d(mz,{ctx:u})]})})}function v7({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Te(me),u=ii(t,r),{t:l}=O(),c=le((g,p)=>l("floatBallOptions."+g,p),[]),m=le(g=>{t&&a(p=>Ui({...p},g))},[t,a]);return u?d(ce,{children:d("div",{class:`nav ${n}`,children:[d(ye,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function mz({ctx:e}){let{t}=O();return oi(e,!0)?d(ce,{children:[d(ma,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:yf}),children:d("div",{class:"px-6",children:[d(C7,{ctx:e}),d(x7,{ctx:e,styles:{paddingTop:0}})]})}),d(C7,{ctx:e,className:"image-tools-enable"}),d(x7,{ctx:e,className:"image-tools-enable"}),d(gz,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:yf})}})]}):null}function C7({ctx:e,className:t}){let[n,r,a,i,o]=Te(me),s=e.rule.imageRule,{t:u}=O();return d(ce,{children:d("div",{class:`nav ${t}`,children:[d(ye,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function gz({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Te(me),p=e.config.generalRule.imageRule||{};z(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},b=(v,C,S,x)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(S=>{p.blockToolsUrls=Jt(S,p.blockToolsUrls)}),l(S=>({...S,generalRule:{...S.generalRule,"imageRule.add":{...S.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},h=(v,C,S)=>{r(!n),i(v),s(S)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(la,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:b,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ua,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:h})]})}function x7({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Te(me);return d("div",{class:`nav ${t}`,style:n,children:[d(ye,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function S7(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Mi,n)}catch{}}async function T7(){await S7();let e=document.getElementById("mount");e&&(async()=>{tp(O8);let t=await Ze();t.debug&&D.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ue("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),zi(document,n),ya(d(Qi,{lang:t.interfaceLanguage,children:d(pz,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function pz(e){let t=Io(),{t:n,lang:r}=O(),a=Pr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:oi(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];fz(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(hm,{}),"#services":d(Kh,{}),"#ai":d(Jh,{}),"#mouse_hover":d(H1,{}),"#input":d(Zh,{}),"#shortcuts":d(z1,{}),"#floating":d(q1,{}),"#import_export":d(Rh,{}),"#about":d($h,{}),"#advanced":d(e3,{}),"#developer":d(Xh,{}),"#subtitle":d(a3,{}),"#manga":d(G1,{}),"#contact":d(t3,{}),"#download_config":d(V1,{})};return u||delete m["#manga"],d(rt,{children:[d(W1,{}),d(ce,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),ur(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:ul,onClick:g=>{g.preventDefault(),ur(ul)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),ur(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Cf,onClick:g=>{g.preventDefault(),ur(Cf)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(S4,{value:t,defaultCase:d(hm,{}),cases:m})})]})})]})}function fz(e){let t=xe(0),n=xe(0),r=xe(),a=le(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await c5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);z(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),z(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}T7();})(); + `),c].join(""),g=oi(u,!0);return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ma,{image:rn("images/popup-manga-guide.png"),nightImage:rn("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:bf})+m,children:d("div",{class:"px-6",children:d(v7,{config:u.config,ctx:u})})}),d(v7,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:bf})+"
"+m}}),d(mz,{ctx:u})]})})}function v7({config:e,ctx:t,className:n}){let[r,a,i,o,s]=Te(me),u=ii(t,r),{t:l}=O(),c=le((g,p)=>l("floatBallOptions."+g,p),[]),m=le(g=>{t&&a(p=>Ui({...p},g))},[t,a]);return u?d(ce,{children:d("div",{class:`nav ${n}`,children:[d(ye,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function mz({ctx:e}){let{t}=O();return oi(e,!0)?d(ce,{children:[d(ma,{image:rn("images/image_tansalte_intro-qkKVLH.png"),nightImage:rn("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:yf}),children:d("div",{class:"px-6",children:[d(C7,{ctx:e}),d(x7,{ctx:e,styles:{paddingTop:0}})]})}),d(C7,{ctx:e,className:"image-tools-enable"}),d(x7,{ctx:e,className:"image-tools-enable"}),d(gz,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:yf})}})]}):null}function C7({ctx:e,className:t}){let[n,r,a,i,o]=Te(me),s=e.rule.imageRule,{t:u}=O();return d(ce,{children:d("div",{class:`nav ${t}`,children:[d(ye,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function gz({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=Te(me),p=e.config.generalRule.imageRule||{};z(()=>{Kt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},h=(v,C,S,x)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(S=>{p.blockToolsUrls=Jt(S,p.blockToolsUrls)}),l(S=>({...S,generalRule:{...S.generalRule,"imageRule.add":{...S.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},b=(v,C,S)=>{r(!n),i(v),s(S)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(la,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:h,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ua,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:b})]})}function x7({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=Te(me);return d("div",{class:`nav ${t}`,style:n,children:[d(ye,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function S7(){try{if(X())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Mi,n)}catch{}}async function T7(){await S7();let e=document.getElementById("mount");e&&(async()=>{tp(O8);let t=await Ze();t.debug&&D.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ue("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),zi(document,n),ya(d(Qi,{lang:t.interfaceLanguage,children:d(pz,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function pz(e){let t=Io(),{t:n,lang:r}=O(),a=Rr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:oi(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];fz(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;He()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(hm,{}),"#services":d(Kh,{}),"#ai":d(Jh,{}),"#mouse_hover":d(H1,{}),"#input":d(Zh,{}),"#shortcuts":d(z1,{}),"#floating":d(q1,{}),"#import_export":d(Rh,{}),"#about":d($h,{}),"#advanced":d(e3,{}),"#developer":d(Xh,{}),"#subtitle":d(a3,{}),"#manga":d(G1,{}),"#contact":d(t3,{}),"#download_config":d(V1,{})};return u||delete m["#manga"],d(rt,{children:[d(W1,{}),d(ce,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),ur(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:ul,onClick:g=>{g.preventDefault(),ur(ul)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),ur(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Cf,onClick:g=>{g.preventDefault(),ur(Cf)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${F}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(S4,{value:t,defaultCase:d(hm,{}),cases:m})})]})})]})}function fz(e){let t=xe(0),n=xe(0),r=xe(),a=le(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await c5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);z(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),z(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}T7();})(); /*! Bundled license information: js-yaml/dist/js-yaml.mjs: diff --git a/dist/firefox/popup.js b/dist/firefox/popup.js index 202d94f..2a19cf1 100644 --- a/dist/firefox/popup.js +++ b/dist/firefox/popup.js @@ -1,4 +1,4 @@ -(()=>{var eC=Object.defineProperty;var tC=(e,t)=>{for(var n in t)eC(e,n,{get:t[n],enumerable:!0})};var A={BUILD_TIME:"2024-11-22T10:30:05.000Z",VERSION:"1.11.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var eC=Object.defineProperty;var tC=(e,t)=>{for(var n in t)eC(e,n,{get:t[n],enumerable:!0})};var A={BUILD_TIME:"2024-11-25T09:06:11.000Z",VERSION:"1.11.7",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_FIREFOX:"1",INSTALL_FROM:"firefox_zip",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,23 +5447,23 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};var rC=Object.create,Bd=Object.defineProperty,aC=Object.getOwnPropertyDescriptor,y4=Object.getOwnPropertyNames,iC=Object.getPrototypeOf,oC=Object.prototype.hasOwnProperty,sC=(e,t)=>function(){return t||(0,e[y4(e)[0]])((t={exports:{}}).exports,t),t.exports},uC=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Fd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y4(t))!oC.call(e,a)&&a!==n&&Bd(e,a,{get:()=>t[a],enumerable:!(r=aC(t,a))||r.enumerable});return e},lC=(e,t,n)=>(Fd(e,t,"default"),n&&Fd(n,t,"default")),x4=(e,t,n)=>(n=e!=null?rC(iC(e)):{},Fd(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),v4=sC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(w,E=void 0){super(E),this.createItem=w}get(w){return this.has(w)||this.set(w,this.createItem(w)),super.get(w)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,w)=>(...E)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):w.singleCallbackArg||E.length<=1&&w.singleCallbackArg!==!1?C.resolve(E[0]):C.resolve(E)},c=C=>C==1?"argument":"arguments",d=(C,w)=>function(k,...P){if(P.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${P.length}`);return new Promise((F,M)=>{if(w.fallbackToNoCallback)try{k[C](...P,l({resolve:F,reject:M},w))}catch{k[C](...P),w.fallbackToNoCallback=!1,w.noCallback=!0,F()}else w.noCallback?(k[C](...P),F()):k[C](...P,l({resolve:F,reject:M},w))})},m=(C,w,E)=>new Proxy(w,{apply(k,P,F){return E.call(P,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,w={},E={})=>{let k=Object.create(null),P={has(M,I){return I in C||I in k},get(M,I,L){if(I in k)return k[I];if(!(I in C))return;let N=C[I];if(typeof N=="function")if(typeof w[I]=="function")N=m(C,C[I],w[I]);else if(p(E,I)){let B=d(I,E[I]);N=m(C,C[I],B)}else N=N.bind(C);else if(typeof N=="object"&&N!==null&&(p(w,I)||p(E,I)))N=g(N,w[I],E[I]);else if(p(E,"*"))N=g(N,w[I],E["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(B){C[I]=B}}),N;return k[I]=N,N},set(M,I,L,N){return I in k?k[I]=L:C[I]=L,!0},defineProperty(M,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(M,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,P)},h=C=>({addListener(w,E,...k){w.addListener(C.get(E),...k)},hasListener(w,E){return w.hasListener(C.get(E))},removeListener(w,E){w.removeListener(C.get(E))}}),b=new s(C=>typeof C!="function"?C:function(E){let k=g(E,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(E,k,P){let F=!1,M,I=new Promise(j=>{M=function(G){F=!0,j(G)}}),L;try{L=C(E,k,M)}catch(j){L=Promise.reject(j)}let N=L!==!0&&u(L);if(L!==!0&&!N&&!F)return!1;let B=j=>{j.then(G=>{P(G)},G=>{let z;G&&(G instanceof Error||typeof G.message=="string")?z=G.message:z="An unexpected error occurred",P({__mozWebExtensionPolyfillReject__:!0,message:z})}).catch(G=>{})};return B(N?L:I),!0}),y=({reject:C,resolve:w},E)=>{i.runtime.lastError?i.runtime.lastError.message===r?w():C(new Error(i.runtime.lastError.message)):E&&E.__mozWebExtensionPolyfillReject__?C(new Error(E.message)):w(E)},x=(C,w,E,...k)=>{if(k.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((P,F)=>{let M=y.bind(null,{resolve:P,reject:F});k.push(M),E.sendMessage(...k)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:x.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:x.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},T={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":T},services:{"*":T},websites:{"*":T}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),S4={};uC(S4,{default:()=>el});var cC=x4(v4());lC(S4,x4(v4()));var{default:b4,...dC}=cC,el=b4!==void 0?b4:dC;globalThis.immersiveTranslateBrowserAPI=el;var il,Fe,A4,mC,gs,T4,k4,nl={},D4=[],pC=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ma(e,t){for(var n in t)e[n]=t[n];return e}function L4(e){var t=e.parentNode;t&&t.removeChild(e)}function fs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?il.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return tl(e,o,r,a,null)}function tl(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++A4};return a==null&&Fe.vnode!=null&&Fe.vnode(i),i}function Gt(e){return e.children}function hi(e,t){this.props=e,this.context=t}function Xi(e,t){if(t==null)return e.__?Xi(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?tl(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:ol}),n.__[e]}function V(e){return hs=1,bC(G4,e)}function bC(e,t,n){var r=bs(eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):G4(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Lt,!Lt.u)){Lt.u=!0;var a=Lt.shouldComponentUpdate;Lt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function re(e,t){var n=bs(eo++,3);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__H.__h.push(n))}function ys(e,t){var n=bs(eo++,4);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__h.push(n))}function Te(e){return hs=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=bs(eo++,7);return jd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return hs=8,ye(function(){return e},t)}function ul(e){var t=Lt.context[e.__c],n=bs(eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Lt)),t.props.value):e.__}function yC(){for(var e;e=W4.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sl),e.__H.__h.forEach(Nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Lt=null,N4&&N4(e)},Fe.__r=function(e){j4&&j4(e),eo=0;var t=(Lt=e.__c).__H;t&&(Od===Lt?(t.__h=[],Lt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ol,n.__N=n.i=void 0})):(t.__h.forEach(sl),t.__h.forEach(Nd),t.__h=[])),Od=Lt},Fe.diffed=function(e){U4&&U4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(W4.push(t)!==1&&O4===Fe.requestAnimationFrame||((O4=Fe.requestAnimationFrame)||xC)(yC)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ol&&(n.__=n.__V),n.i=void 0,n.__V=ol})),Od=Lt=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(sl),n.__h=n.__h.filter(function(r){return!r.__||Nd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Fe.__e(r,n.__v)}}),H4&&H4(e,t)},Fe.unmount=function(e){q4&&q4(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{sl(r)}catch(a){t=a}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var z4=typeof requestAnimationFrame=="function";function xC(e){var t,n=function(){clearTimeout(r),z4&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);z4&&(t=requestAnimationFrame(n))}function sl(e){var t=Lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Lt=t}function Nd(e){var t=Lt;e.__c=e.__(),Lt=t}function jd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function G4(e,t){return typeof t=="function"?t(e):t}function ll(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function Le(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():A}var xe=Le();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):xe.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function ca(){return xe.PROD==="1"}function Ud(){return xe.PROD_API==="1"}function V4(){return xe.HAS_CSP_ERROR=="1"}function lt(){if(xe.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function cl(){return typeof Deno<"u"}var jO=Le().PROD==="1",to=Le().PROD!=="1";function dl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function K4(){return xe.IMMERSIVE_TRANSLATE_JSSDK==="1"}var Hd=/iPhone/i,Y4=/iPod/i,Q4=/iPad/i,J4=/\biOS-universal(?:.+)Mac\b/i,qd=/\bAndroid(?:.+)Mobile\b/i,Z4=/Android/i,no=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ml=/Silk/i,da=/Windows Phone/i,X4=/\bWindows(?:.+)ARM\b/i,$4=/BlackBerry/i,e3=/BB10/i,t3=/Opera Mini/i,n3=/\b(CriOS|Chrome)(?:.+)Mobile/i,r3=/Mobile(?:.+)Firefox\b/i,a3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function vC(e){return t=>t.test(e)}function We(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=vC(n),i={apple:{phone:a(Hd)&&!a(da),ipod:a(Y4),tablet:!a(Hd)&&(a(Q4)||a3(t))&&!a(da),universal:a(J4),device:(a(Hd)||a(Y4)||a(Q4)||a(J4)||a3(t))&&!a(da)},amazon:{phone:a(no),tablet:!a(no)&&a(ml),device:a(no)||a(ml)},android:{phone:!a(da)&&a(no)||!a(da)&&a(qd),tablet:!a(da)&&!a(no)&&!a(qd)&&(a(ml)||a(Z4)),device:!a(da)&&(a(no)||a(ml)||a(qd)||a(Z4))||a(/\bokhttp\b/i)},windows:{phone:a(da),tablet:a(X4),device:a(da)||a(X4)},other:{blackberry:a($4),blackberry10:a(e3),opera:a(t3),firefox:a(r3),chrome:a(n3),device:a($4)||a(e3)||a(t3)||a(r3)||a(n3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zd="DENO",pl="CHROME",gl="FIREFOX";function i3(e){let t=pl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=gl:/deno/i.test(n)&&(t=zd)}catch{}return e===pl&&t===pl||e===gl&&t===gl||e===zd&&t===zd}function o3(){return i3(pl)}function s3(){return typeof Deno<"u"}function Gn(){return Le().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:i3(gl)}function Vn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function xs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var u3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},l3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:u3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:u3,query:()=>{},sendMessage:()=>{}}};var ee;s3()?ee=l3:ee=globalThis.immersiveTranslateBrowserAPI;var J="immersiveTranslate",bi="Immersive Translate",_="immersive-translate";var g3="pdf/index.html";var $t="immersivetranslate.com",SC=`https://config.${$t}/`,rN=`https://app.${$t}/`,ie=ca()||Ud()?`https://${$t}/`:`https://test.${$t}/`,fl=`https://dash.${$t}/`,it=ca()||Ud()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,f3=`https://github.com/${_}/${_}/`,h3=`https://s.${$t}/`,aN=`https://onboarding.${$t}/`,b3=J+"DeeplGlobalState",Wd=J+"BingGlobalState",Gd=J+"YandexGlobalState",Vd=J+"BaiduQianfanGlobalConfigStorageKey",y3=J+"SiliconCloudGlobalConfigStorageKey",x3=J+"ZhipuGlobalConfigStorageKey";var Kd=J+"GoogleAccessToken",v3=J+"AuthFlow",S3=_+"-config-latest.json",TC=J+"AuthState",hl=J+"IframeMessage",iN=J+"WaitForRateLimit",T3=J+"DocumentMessageAsk",It=J+"DocumentMessageTellThirdParty",mn=J+"showError",yi=J+"showModal",bl=J+"showToast",C3=J+"DocumentMessageThirdPartyTell",w3=J+"DocumentMessageEventUpload",oN=J+"DocumentMessageTypeStopJsSDK",CC=J+"DocumentMessageHandler",yl=J+"DocumentSetFloatBallActive",xl=`${J}Share`,vl=`${J}ShowFloatBallGuide`,ro=J+"DocumentMessageTempEnableSubtitleChanged",vs=`${J}ToggleMouseHoverTranslateDirectly`,E3=`${J}ReqDraft`,A3=`${J}ResDraft`,wC=`${J}Container`,k3=`${J}SpecifiedContainer`,Sl="buildinConfig",Ss="localConfig",Yd="openOptionsPage",D3="translateMangaMenuId",Qd="openAboutPage";var Jd="openEbookViewer",Zd="openEbookBuilder";var xi=`${J}PageTranslatedStatus`,Ts=`${J}MangaTranslatedStatus`,sN=`${J}PageUrlChanged`,br=`${J}ReceiveCommand`,L3=J+"LastUseMouseHoverTime",Cs=J+"LastUseInputTime",sr=J+"LastUseManualTranslatePageTime",ws=`${J}PopupReceiveMessage`,vi=J+"DocumentMessageEventTogglePopup",Es=`${SC}default_config.json`,uN=`${J}Mark`,Kn=`${J}Root`,P3=`${J}Walked`,lN=`data-${_}-walked`,M3=`${J}Paragraph`,R3=`data-${_}-paragraph`,ao=`data-${_}-translation-element-mark`,F3=`${J}TranslationElementMark`,cN=`${J}TranslatedMark`,Xd=`${_}-input-injected-css`,B3=`${J}LoadingId`,$d=`data-${_}-loading-id`,I3=`${J}ErrorId`,Tl=`data-${_}-error-id`,EC=`${J}AtomicBlockMark`,_3=`${J}ExcludeMark`,dN=`data-${_}-exclude-mark`,AC=`${J}StayOriginalMark`,mN=`${J}PreWhitespaceMark`,Cl=`${J}InlineMark`,O3=`${J}BlockMark`,pN=`${J}Left`,gN=`${J}Right`,fN=`${J}Width`,hN=`${J}Height`,bN=`${J}Top`,yN=`${J}FontSize`,N3="lastRunTime";var xN=`${J}GlobalStyleMark`,io=["@","#"],wl=" --- ",j3=` -`,Pt=`${_}-target-wrapper`,vN=`${_}-pdf-target-container`,El=`${_}-target-inner`,SN=`${_}-source-wrapper`,em=`${_}-target-translation-block-wrapper`,TN=`${_}-root-translation-theme`,oo=`${J}RootTranslationTheme`,U3=`${_}-target-translation-vertical-block-wrapper`,CN=`${_}-target-translation-pdf-block-wrapper`,H3=`${_}-target-translation-pre-whitespace`,tm=`${_}-target-translation-inline-wrapper`;var q3={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var z3=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],W3=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",fl,fl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",wN=ie+"docs/communities/",EN=f3+"issues/1809",AN=f3+"issues/1179",Al={type:J+"ChildFrameToRootFrameIdentifier"},nm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],As=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],G3=["ctrl","alt","shift","cmd","command","option","control"];var kl=ca()?fl+"#general":"http://localhost:8000/dist/userscript/options/#general",rm="user_from_plugin",dt="user_info",Dl=ie+"accounts/login?from=plugin",V3=fl+"#general",kN=ie+"accounts/login?from=plugin&return_url="+encodeURIComponent(V3),K3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Y3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",ks=ie+"profile/",Ll=ie+"auth/pricing/",An=ie+"pricing/",kC=ie+"download/",DC=ie+"topup?type=open_ai&",LC=ie+"topup?type=deepl&",Q3=ie+"topup?type=comics&",PC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",J3=An+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",DN=kC+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",LN=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Pl=An+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",am=An+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",PN=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Z3=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",X3=DC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",$3=LC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",e1=ie+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",MC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",im=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",MN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",RN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",FN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",t1=ie+"docs/usage/",BN=ie+"docs/communities/",Ds=Le().TRANSLATE_FILE_URL,IN=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",n1=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",r1=`${Ds}download-subtitle/`,a1=`${Ds}pdf-pro/`,i1=`${Ds}text/`,Si=["deepl","openai","gemini","claude"],RC="G-BHWL0KMJB8",FC="7pr-olTJR6GKAjIW48UD0Q",c3="G-MKMD9LWFTR",d3="sitc4WmvShWYwfU0dANM3Q",m3="G-V5H2F5MJFJ",p3="UBjpGOLISEaY5LVXNj3WvQ";function Ml(){return K4()?[`https://www.google-analytics.com/mp/collect?measurement_id=${RC}&api_secret=${FC}`]:ca?[`https://www.google-analytics.com/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${m3}&api_secret=${p3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${m3}&api_secret=${p3}`]}var Ls=`https://analytics.${$t}/collect`,_N=`${ie}activities/components/image-pro`;var o1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",s1="0VmM83i2D1ICuYBf";function u1(e){let t=ee.runtime.getURL(g3),n=new URL(t);return e&&(e.startsWith("http")||!Gn())&&n.searchParams.set("file",e),n.href}var Ti=J+"CacheKey_";function Ci(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BC(){let e=ee.storage.local.refresh;e&&e()}function om(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ti)).filter(r=>r!==Ti+dt);if(n.length>0)return ee.storage.local.remove(n)}}var mt={get:Ci,set:wi,getExpired:om,setExpired:sm,remove:um,clear:lm,refresh:BC};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function l1(e){if(e){let t=new Date(e.createTime),n=IC(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function IC(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ps(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ht(t)}function so(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Rl(e,t){let n=so(),r=setTimeout(()=>n.reject(new cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function pt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var c1=class{#e=0;#t=[];#n=[];#r=so();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tuw,bgBlue:()=>mw,bgBrightBlack:()=>hw,bgBrightBlue:()=>vw,bgBrightCyan:()=>Tw,bgBrightGreen:()=>yw,bgBrightMagenta:()=>Sw,bgBrightRed:()=>bw,bgBrightWhite:()=>Cw,bgBrightYellow:()=>xw,bgCyan:()=>gw,bgGreen:()=>cw,bgMagenta:()=>pw,bgRed:()=>lw,bgRgb24:()=>kw,bgRgb8:()=>Ew,bgWhite:()=>fw,bgYellow:()=>dw,black:()=>VC,blue:()=>JC,bold:()=>jC,brightBlack:()=>p1,brightBlue:()=>aw,brightCyan:()=>ow,brightGreen:()=>nw,brightMagenta:()=>iw,brightRed:()=>tw,brightWhite:()=>sw,brightYellow:()=>rw,cyan:()=>XC,dim:()=>UC,getColorEnabled:()=>OC,gray:()=>ew,green:()=>YC,hidden:()=>WC,inverse:()=>zC,italic:()=>HC,magenta:()=>ZC,red:()=>KC,reset:()=>NC,rgb24:()=>Aw,rgb8:()=>ww,setColorEnabled:()=>_C,strikethrough:()=>GC,stripColor:()=>Lw,underline:()=>qC,white:()=>$C,yellow:()=>QC});var{Deno:d1}=globalThis,m1=typeof d1?.noColor=="boolean"?d1.noColor:!0,dm=!m1;function _C(e){m1||(dm=e)}function OC(){return dm}function Me(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Re(e,t){return dm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function NC(e){return Re(e,Me([0],0))}function jC(e){return Re(e,Me([1],22))}function UC(e){return Re(e,Me([2],22))}function HC(e){return Re(e,Me([3],23))}function qC(e){return Re(e,Me([4],24))}function zC(e){return Re(e,Me([7],27))}function WC(e){return Re(e,Me([8],28))}function GC(e){return Re(e,Me([9],29))}function VC(e){return Re(e,Me([30],39))}function KC(e){return Re(e,Me([31],39))}function YC(e){return Re(e,Me([32],39))}function QC(e){return Re(e,Me([33],39))}function JC(e){return Re(e,Me([34],39))}function ZC(e){return Re(e,Me([35],39))}function XC(e){return Re(e,Me([36],39))}function $C(e){return Re(e,Me([37],39))}function ew(e){return p1(e)}function p1(e){return Re(e,Me([90],39))}function tw(e){return Re(e,Me([91],39))}function nw(e){return Re(e,Me([92],39))}function rw(e){return Re(e,Me([93],39))}function aw(e){return Re(e,Me([94],39))}function iw(e){return Re(e,Me([95],39))}function ow(e){return Re(e,Me([96],39))}function sw(e){return Re(e,Me([97],39))}function uw(e){return Re(e,Me([40],49))}function lw(e){return Re(e,Me([41],49))}function cw(e){return Re(e,Me([42],49))}function dw(e){return Re(e,Me([43],49))}function mw(e){return Re(e,Me([44],49))}function pw(e){return Re(e,Me([45],49))}function gw(e){return Re(e,Me([46],49))}function fw(e){return Re(e,Me([47],49))}function hw(e){return Re(e,Me([100],49))}function bw(e){return Re(e,Me([101],49))}function yw(e){return Re(e,Me([102],49))}function xw(e){return Re(e,Me([103],49))}function vw(e){return Re(e,Me([104],49))}function Sw(e){return Re(e,Me([105],49))}function Tw(e){return Re(e,Me([106],49))}function Cw(e){return Re(e,Me([107],49))}function Fa(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function ww(e,t){return Re(e,Me([38,5,Fa(t)],39))}function Ew(e,t){return Re(e,Me([48,5,Fa(t)],49))}function Aw(e,t){return typeof t=="number"?Re(e,Me([38,2,t>>16&255,t>>8&255,t&255],39)):Re(e,Me([38,2,Fa(t.r),Fa(t.g),Fa(t.b)],39))}function kw(e,t){return typeof t=="number"?Re(e,Me([48,2,t>>16&255,t>>8&255,t&255],49)):Re(e,Me([48,2,Fa(t.r),Fa(t.g),Fa(t.b)],49))}var Dw=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Lw(e){return e.replace(Dw,"")}var mm=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Pw={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function pm(e,t){let n={...Pw,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new mm(a,n.maxAttempts)}var ma=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function gm(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2|t[r]>>6],n+=ma[t[r]&63];return r===a+1&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2],n+="="),n}var Mw=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD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DAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Fw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-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0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,fm={Space_Separator:Mw,ID_Start:Rw,ID_Continue:Fw},_t={isSpaceSeparator(e){return typeof e=="string"&&fm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||fm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||fm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},bm,kn,ga,Bl,Ba,yr,en,vm,Rs,Bw=function(e,t){bm=String(e),kn="start",ga=[],Bl=0,Ba=1,yr=0,en=void 0,vm=void 0,Rs=void 0;do en=Iw(),Nw[kn]();while(en.type!=="eof");return typeof t=="function"?ym({"":Rs},"",t):Rs};function ym(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;afunction(){return t||(0,e[y4(e)[0]])((t={exports:{}}).exports,t),t.exports},uC=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},Fd=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y4(t))!oC.call(e,a)&&a!==n&&Bd(e,a,{get:()=>t[a],enumerable:!(r=aC(t,a))||r.enumerable});return e},lC=(e,t,n)=>(Fd(e,t,"default"),n&&Fd(n,t,"default")),v4=(e,t,n)=>(n=e!=null?rC(iC(e)):{},Fd(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),x4=sC({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,r){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],r);else if(typeof e<"u")r(t);else{var a={exports:{}};r(a),n.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let r="The message port closed before a response was received.",a=i=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(w,E=void 0){super(E),this.createItem=w}get(w){return this.has(w)||this.set(w,this.createItem(w)),super.get(w)}}let u=C=>C&&typeof C=="object"&&typeof C.then=="function",l=(C,w)=>(...E)=>{i.runtime.lastError?C.reject(new Error(i.runtime.lastError.message)):w.singleCallbackArg||E.length<=1&&w.singleCallbackArg!==!1?C.resolve(E[0]):C.resolve(E)},c=C=>C==1?"argument":"arguments",d=(C,w)=>function(k,...P){if(P.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${P.length}`);return new Promise((F,M)=>{if(w.fallbackToNoCallback)try{k[C](...P,l({resolve:F,reject:M},w))}catch{k[C](...P),w.fallbackToNoCallback=!1,w.noCallback=!0,F()}else w.noCallback?(k[C](...P),F()):k[C](...P,l({resolve:F,reject:M},w))})},m=(C,w,E)=>new Proxy(w,{apply(k,P,F){return E.call(P,C,...F)}}),p=Function.call.bind(Object.prototype.hasOwnProperty),g=(C,w={},E={})=>{let k=Object.create(null),P={has(M,I){return I in C||I in k},get(M,I,L){if(I in k)return k[I];if(!(I in C))return;let N=C[I];if(typeof N=="function")if(typeof w[I]=="function")N=m(C,C[I],w[I]);else if(p(E,I)){let B=d(I,E[I]);N=m(C,C[I],B)}else N=N.bind(C);else if(typeof N=="object"&&N!==null&&(p(w,I)||p(E,I)))N=g(N,w[I],E[I]);else if(p(E,"*"))N=g(N,w[I],E["*"]);else return Object.defineProperty(k,I,{configurable:!0,enumerable:!0,get(){return C[I]},set(B){C[I]=B}}),N;return k[I]=N,N},set(M,I,L,N){return I in k?k[I]=L:C[I]=L,!0},defineProperty(M,I,L){return Reflect.defineProperty(k,I,L)},deleteProperty(M,I){return Reflect.deleteProperty(k,I)}},F=Object.create(C);return new Proxy(F,P)},h=C=>({addListener(w,E,...k){w.addListener(C.get(E),...k)},hasListener(w,E){return w.hasListener(C.get(E))},removeListener(w,E){w.removeListener(C.get(E))}}),b=new s(C=>typeof C!="function"?C:function(E){let k=g(E,{},{getContent:{minArgs:0,maxArgs:0}});C(k)}),f=new s(C=>typeof C!="function"?C:function(E,k,P){let F=!1,M,I=new Promise(j=>{M=function(G){F=!0,j(G)}}),L;try{L=C(E,k,M)}catch(j){L=Promise.reject(j)}let N=L!==!0&&u(L);if(L!==!0&&!N&&!F)return!1;let B=j=>{j.then(G=>{P(G)},G=>{let z;G&&(G instanceof Error||typeof G.message=="string")?z=G.message:z="An unexpected error occurred",P({__mozWebExtensionPolyfillReject__:!0,message:z})}).catch(G=>{})};return B(N?L:I),!0}),y=({reject:C,resolve:w},E)=>{i.runtime.lastError?i.runtime.lastError.message===r?w():C(new Error(i.runtime.lastError.message)):E&&E.__mozWebExtensionPolyfillReject__?C(new Error(E.message)):w(E)},v=(C,w,E,...k)=>{if(k.lengthw.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${c(w.maxArgs)} for ${C}(), got ${k.length}`);return new Promise((P,F)=>{let M=y.bind(null,{resolve:P,reject:F});k.push(M),E.sendMessage(...k)})},S={devtools:{network:{onRequestFinished:h(b)}},runtime:{onMessage:h(f),onMessageExternal:h(f),sendMessage:v.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:v.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},T={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":T},services:{"*":T},websites:{"*":T}},g(i,S,o)};n.exports=a(chrome)}else n.exports=globalThis.browser})}}),S4={};uC(S4,{default:()=>el});var cC=v4(x4());lC(S4,v4(x4()));var{default:b4,...dC}=cC,el=b4!==void 0?b4:dC;globalThis.immersiveTranslateBrowserAPI=el;var il,Fe,A4,mC,gs,T4,k4,nl={},D4=[],pC=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ma(e,t){for(var n in t)e[n]=t[n];return e}function L4(e){var t=e.parentNode;t&&t.removeChild(e)}function fs(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?il.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return tl(e,o,r,a,null)}function tl(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++A4};return a==null&&Fe.vnode!=null&&Fe.vnode(i),i}function Gt(e){return e.children}function hi(e,t){this.props=e,this.context=t}function Xi(e,t){if(t==null)return e.__?Xi(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?tl(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=f[c])===null||m&&p.key==m.key&&p.type===m.type)f[c]=void 0;else for(d=0;d=n.__.length&&n.__.push({__V:ol}),n.__[e]}function V(e){return hs=1,bC(G4,e)}function bC(e,t,n){var r=bs(eo++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):G4(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Lt,!Lt.u)){Lt.u=!0;var a=Lt.shouldComponentUpdate;Lt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var d=c.__[0];c.__=c.__N,c.__N=void 0,d!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function re(e,t){var n=bs(eo++,3);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__H.__h.push(n))}function ys(e,t){var n=bs(eo++,4);!Fe.__s&&jd(n.__H,t)&&(n.__=e,n.i=t,Lt.__h.push(n))}function Te(e){return hs=5,ye(function(){return{current:e}},[])}function ye(e,t){var n=bs(eo++,7);return jd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return hs=8,ye(function(){return e},t)}function ul(e){var t=Lt.context[e.__c],n=bs(eo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Lt)),t.props.value):e.__}function yC(){for(var e;e=W4.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sl),e.__H.__h.forEach(Nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}Fe.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Lt=null,N4&&N4(e)},Fe.__r=function(e){j4&&j4(e),eo=0;var t=(Lt=e.__c).__H;t&&(Od===Lt?(t.__h=[],Lt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ol,n.__N=n.i=void 0})):(t.__h.forEach(sl),t.__h.forEach(Nd),t.__h=[])),Od=Lt},Fe.diffed=function(e){U4&&U4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(W4.push(t)!==1&&O4===Fe.requestAnimationFrame||((O4=Fe.requestAnimationFrame)||vC)(yC)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ol&&(n.__=n.__V),n.i=void 0,n.__V=ol})),Od=Lt=null},Fe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(sl),n.__h=n.__h.filter(function(r){return!r.__||Nd(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Fe.__e(r,n.__v)}}),H4&&H4(e,t)},Fe.unmount=function(e){q4&&q4(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{sl(r)}catch(a){t=a}}),n.__H=void 0,t&&Fe.__e(t,n.__v))};var z4=typeof requestAnimationFrame=="function";function vC(e){var t,n=function(){clearTimeout(r),z4&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);z4&&(t=requestAnimationFrame(n))}function sl(e){var t=Lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Lt=t}function Nd(e){var t=Lt;e.__c=e.__(),Lt=t}function jd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function G4(e,t){return typeof t=="function"?t(e):t}function ll(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}function Le(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():A}var ve=Le();function ne(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):ve.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function ca(){return ve.PROD==="1"}function Ud(){return ve.PROD_API==="1"}function V4(){return ve.HAS_CSP_ERROR=="1"}function lt(){if(ve.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function cl(){return typeof Deno<"u"}var jO=Le().PROD==="1",to=Le().PROD!=="1";function dl(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function K4(){return ve.IMMERSIVE_TRANSLATE_JSSDK==="1"}var Hd=/iPhone/i,Y4=/iPod/i,Q4=/iPad/i,J4=/\biOS-universal(?:.+)Mac\b/i,qd=/\bAndroid(?:.+)Mobile\b/i,Z4=/Android/i,no=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ml=/Silk/i,da=/Windows Phone/i,X4=/\bWindows(?:.+)ARM\b/i,$4=/BlackBerry/i,e3=/BB10/i,t3=/Opera Mini/i,n3=/\b(CriOS|Chrome)(?:.+)Mobile/i,r3=/Mobile(?:.+)Firefox\b/i,a3=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function xC(e){return t=>t.test(e)}function We(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=xC(n),i={apple:{phone:a(Hd)&&!a(da),ipod:a(Y4),tablet:!a(Hd)&&(a(Q4)||a3(t))&&!a(da),universal:a(J4),device:(a(Hd)||a(Y4)||a(Q4)||a(J4)||a3(t))&&!a(da)},amazon:{phone:a(no),tablet:!a(no)&&a(ml),device:a(no)||a(ml)},android:{phone:!a(da)&&a(no)||!a(da)&&a(qd),tablet:!a(da)&&!a(no)&&!a(qd)&&(a(ml)||a(Z4)),device:!a(da)&&(a(no)||a(ml)||a(qd)||a(Z4))||a(/\bokhttp\b/i)},windows:{phone:a(da),tablet:a(X4),device:a(da)||a(X4)},other:{blackberry:a($4),blackberry10:a(e3),opera:a(t3),firefox:a(r3),chrome:a(n3),device:a($4)||a(e3)||a(t3)||a(r3)||a(n3)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var zd="DENO",pl="CHROME",gl="FIREFOX";function i3(e){let t=pl;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=gl:/deno/i.test(n)&&(t=zd)}catch{}return e===pl&&t===pl||e===gl&&t===gl||e===zd&&t===zd}function o3(){return i3(pl)}function s3(){return typeof Deno<"u"}function Vn(){return Le().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:i3(gl)}function Kn(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function vs(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var u3={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},l3={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:u3,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:u3,query:()=>{},sendMessage:()=>{}}};var ee;s3()?ee=l3:ee=globalThis.immersiveTranslateBrowserAPI;var J="immersiveTranslate",bi="Immersive Translate",_="immersive-translate";var g3="pdf/index.html";var $t="immersivetranslate.com",SC=`https://config.${$t}/`,rN=`https://app.${$t}/`,ie=ca()||Ud()?`https://${$t}/`:`https://test.${$t}/`,fl=`https://dash.${$t}/`,it=ca()||Ud()?`https://api2.${$t}/`:`https://test-api2.${$t}/`,f3=`https://github.com/${_}/${_}/`,h3=`https://s.${$t}/`,aN=`https://onboarding.${$t}/`,b3=J+"DeeplGlobalState",Wd=J+"BingGlobalState",Gd=J+"YandexGlobalState",Vd=J+"BaiduQianfanGlobalConfigStorageKey",y3=J+"SiliconCloudGlobalConfigStorageKey",v3=J+"ZhipuGlobalConfigStorageKey";var Kd=J+"GoogleAccessToken",x3=J+"AuthFlow",S3=_+"-config-latest.json",TC=J+"AuthState",hl=J+"IframeMessage",iN=J+"WaitForRateLimit",T3=J+"DocumentMessageAsk",It=J+"DocumentMessageTellThirdParty",mn=J+"showError",yi=J+"showModal",bl=J+"showToast",C3=J+"DocumentMessageThirdPartyTell",w3=J+"DocumentMessageEventUpload",oN=J+"DocumentMessageTypeStopJsSDK",CC=J+"DocumentMessageHandler",yl=J+"DocumentSetFloatBallActive",vl=`${J}Share`,xl=`${J}ShowFloatBallGuide`,ro=J+"DocumentMessageTempEnableSubtitleChanged",xs=`${J}ToggleMouseHoverTranslateDirectly`,E3=`${J}ReqDraft`,A3=`${J}ResDraft`,wC=`${J}Container`,k3=`${J}SpecifiedContainer`,Sl="buildinConfig",Ss="localConfig",Yd="openOptionsPage",D3="translateMangaMenuId",Qd="openAboutPage";var Jd="openEbookViewer",Zd="openEbookBuilder";var vi=`${J}PageTranslatedStatus`,Ts=`${J}MangaTranslatedStatus`,sN=`${J}PageUrlChanged`,br=`${J}ReceiveCommand`,L3=J+"LastUseMouseHoverTime",Cs=J+"LastUseInputTime",ur=J+"LastUseManualTranslatePageTime",ws=`${J}PopupReceiveMessage`,xi=J+"DocumentMessageEventTogglePopup",Es=`${SC}default_config.json`,uN=`${J}Mark`,Yn=`${J}Root`,P3=`${J}Walked`,lN=`data-${_}-walked`,M3=`${J}Paragraph`,R3=`data-${_}-paragraph`,ao=`data-${_}-translation-element-mark`,F3=`${J}TranslationElementMark`,cN=`${J}TranslatedMark`,Xd=`${_}-input-injected-css`,B3=`${J}LoadingId`,$d=`data-${_}-loading-id`,I3=`${J}ErrorId`,Tl=`data-${_}-error-id`,EC=`${J}AtomicBlockMark`,_3=`${J}ExcludeMark`,dN=`data-${_}-exclude-mark`,AC=`${J}StayOriginalMark`,mN=`${J}PreWhitespaceMark`,Cl=`${J}InlineMark`,O3=`${J}BlockMark`,pN=`${J}Left`,gN=`${J}Right`,fN=`${J}Width`,hN=`${J}Height`,bN=`${J}Top`,yN=`${J}FontSize`,N3="lastRunTime";var vN=`${J}GlobalStyleMark`,io=["@","#"],wl=" --- ",j3=` +`,Pt=`${_}-target-wrapper`,xN=`${_}-pdf-target-container`,El=`${_}-target-inner`,SN=`${_}-source-wrapper`,em=`${_}-target-translation-block-wrapper`,TN=`${_}-root-translation-theme`,oo=`${J}RootTranslationTheme`,U3=`${_}-target-translation-vertical-block-wrapper`,CN=`${_}-target-translation-pdf-block-wrapper`,H3=`${_}-target-translation-pre-whitespace`,tm=`${_}-target-translation-inline-wrapper`;var q3={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var z3=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],W3=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",fl,fl+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],Ra="zh-CN",wN=ie+"docs/communities/",EN=f3+"issues/1809",AN=f3+"issues/1179",Al={type:J+"ChildFrameToRootFrameIdentifier"},nm=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],As=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],G3=["ctrl","alt","shift","cmd","command","option","control"];var kl=ca()?fl+"#general":"http://localhost:8000/dist/userscript/options/#general",rm="user_from_plugin",dt="user_info",Dl=ie+"accounts/login?from=plugin",V3=fl+"#general",kN=ie+"accounts/login?from=plugin&return_url="+encodeURIComponent(V3),K3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Y3=Dl+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",ks=ie+"profile/",Ll=ie+"auth/pricing/",An=ie+"pricing/",kC=ie+"download/",DC=ie+"topup?type=open_ai&",LC=ie+"topup?type=deepl&",Q3=ie+"topup?type=comics&",PC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",J3=An+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",DN=kC+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",LN=An+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Pl=An+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",am=An+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",PN=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Z3=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",X3=DC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",$3=LC+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",e1=ie+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",MC=An+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",im=ks+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",MN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",RN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",FN=Ll+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",t1=ie+"docs/usage/",BN=ie+"docs/communities/",Ds=Le().TRANSLATE_FILE_URL,IN=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",n1=Ds+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",r1=`${Ds}download-subtitle/`,a1=`${Ds}pdf-pro/`,i1=`${Ds}text/`,Si=["deepl","openai","gemini","claude"],RC="G-BHWL0KMJB8",FC="7pr-olTJR6GKAjIW48UD0Q",c3="G-MKMD9LWFTR",d3="sitc4WmvShWYwfU0dANM3Q",m3="G-V5H2F5MJFJ",p3="UBjpGOLISEaY5LVXNj3WvQ";function Ml(){return K4()?[`https://www.google-analytics.com/mp/collect?measurement_id=${RC}&api_secret=${FC}`]:ca?[`https://www.google-analytics.com/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/mp/collect?measurement_id=${m3}&api_secret=${p3}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${c3}&api_secret=${d3}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${m3}&api_secret=${p3}`]}var Ls=`https://analytics.${$t}/collect`,_N=`${ie}activities/components/image-pro`;var o1="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",s1="0VmM83i2D1ICuYBf";function u1(e){let t=ee.runtime.getURL(g3),n=new URL(t);return e&&(e.startsWith("http")||!Vn())&&n.searchParams.set("file",e),n.href}var Ti=J+"CacheKey_";function Ci(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function BC(){let e=ee.storage.local.refresh;e&&e()}function om(e,t){let n=Ti+e;return ee.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(Ti)).filter(r=>r!==Ti+dt);if(n.length>0)return ee.storage.local.remove(n)}}var mt={get:Ci,set:wi,getExpired:om,setExpired:sm,remove:um,clear:lm,refresh:BC};function ht(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function l1(e){if(e){let t=new Date(e.createTime),n=IC(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function IC(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ps(e){if(e?.isPro)return!0;let t=await mt.get(dt,null);return ht(t)}function so(){let e,t="pending",n=new Promise((r,a)=>{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var cm=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Rl(e,t){let n=so(),r=setTimeout(()=>n.reject(new cm),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function pt(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var c1=class{#e=0;#t=[];#n=[];#r=so();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tuw,bgBlue:()=>mw,bgBrightBlack:()=>hw,bgBrightBlue:()=>xw,bgBrightCyan:()=>Tw,bgBrightGreen:()=>yw,bgBrightMagenta:()=>Sw,bgBrightRed:()=>bw,bgBrightWhite:()=>Cw,bgBrightYellow:()=>vw,bgCyan:()=>gw,bgGreen:()=>cw,bgMagenta:()=>pw,bgRed:()=>lw,bgRgb24:()=>kw,bgRgb8:()=>Ew,bgWhite:()=>fw,bgYellow:()=>dw,black:()=>VC,blue:()=>JC,bold:()=>jC,brightBlack:()=>p1,brightBlue:()=>aw,brightCyan:()=>ow,brightGreen:()=>nw,brightMagenta:()=>iw,brightRed:()=>tw,brightWhite:()=>sw,brightYellow:()=>rw,cyan:()=>XC,dim:()=>UC,getColorEnabled:()=>OC,gray:()=>ew,green:()=>YC,hidden:()=>WC,inverse:()=>zC,italic:()=>HC,magenta:()=>ZC,red:()=>KC,reset:()=>NC,rgb24:()=>Aw,rgb8:()=>ww,setColorEnabled:()=>_C,strikethrough:()=>GC,stripColor:()=>Lw,underline:()=>qC,white:()=>$C,yellow:()=>QC});var{Deno:d1}=globalThis,m1=typeof d1?.noColor=="boolean"?d1.noColor:!0,dm=!m1;function _C(e){m1||(dm=e)}function OC(){return dm}function Me(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Re(e,t){return dm?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function NC(e){return Re(e,Me([0],0))}function jC(e){return Re(e,Me([1],22))}function UC(e){return Re(e,Me([2],22))}function HC(e){return Re(e,Me([3],23))}function qC(e){return Re(e,Me([4],24))}function zC(e){return Re(e,Me([7],27))}function WC(e){return Re(e,Me([8],28))}function GC(e){return Re(e,Me([9],29))}function VC(e){return Re(e,Me([30],39))}function KC(e){return Re(e,Me([31],39))}function YC(e){return Re(e,Me([32],39))}function QC(e){return Re(e,Me([33],39))}function JC(e){return Re(e,Me([34],39))}function ZC(e){return Re(e,Me([35],39))}function XC(e){return Re(e,Me([36],39))}function $C(e){return Re(e,Me([37],39))}function ew(e){return p1(e)}function p1(e){return Re(e,Me([90],39))}function tw(e){return Re(e,Me([91],39))}function nw(e){return Re(e,Me([92],39))}function rw(e){return Re(e,Me([93],39))}function aw(e){return Re(e,Me([94],39))}function iw(e){return Re(e,Me([95],39))}function ow(e){return Re(e,Me([96],39))}function sw(e){return Re(e,Me([97],39))}function uw(e){return Re(e,Me([40],49))}function lw(e){return Re(e,Me([41],49))}function cw(e){return Re(e,Me([42],49))}function dw(e){return Re(e,Me([43],49))}function mw(e){return Re(e,Me([44],49))}function pw(e){return Re(e,Me([45],49))}function gw(e){return Re(e,Me([46],49))}function fw(e){return Re(e,Me([47],49))}function hw(e){return Re(e,Me([100],49))}function bw(e){return Re(e,Me([101],49))}function yw(e){return Re(e,Me([102],49))}function vw(e){return Re(e,Me([103],49))}function xw(e){return Re(e,Me([104],49))}function Sw(e){return Re(e,Me([105],49))}function Tw(e){return Re(e,Me([106],49))}function Cw(e){return Re(e,Me([107],49))}function Fa(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function ww(e,t){return Re(e,Me([38,5,Fa(t)],39))}function Ew(e,t){return Re(e,Me([48,5,Fa(t)],49))}function Aw(e,t){return typeof t=="number"?Re(e,Me([38,2,t>>16&255,t>>8&255,t&255],39)):Re(e,Me([38,2,Fa(t.r),Fa(t.g),Fa(t.b)],39))}function kw(e,t){return typeof t=="number"?Re(e,Me([48,2,t>>16&255,t>>8&255,t&255],49)):Re(e,Me([48,2,Fa(t.r),Fa(t.g),Fa(t.b)],49))}var Dw=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Lw(e){return e.replace(Dw,"")}var mm=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Pw={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function pm(e,t){let n={...Pw,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new mm(a,n.maxAttempts)}var ma=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function gm(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2|t[r]>>6],n+=ma[t[r]&63];return r===a+1&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=ma[t[r-2]>>2],n+=ma[(t[r-2]&3)<<4|t[r-1]>>4],n+=ma[(t[r-1]&15)<<2],n+="="),n}var Mw=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uA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804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Fw=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\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8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC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DED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,fm={Space_Separator:Mw,ID_Start:Rw,ID_Continue:Fw},_t={isSpaceSeparator(e){return typeof e=="string"&&fm.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||fm.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||fm.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},bm,kn,ga,Bl,Ba,yr,en,xm,Rs,Bw=function(e,t){bm=String(e),kn="start",ga=[],Bl=0,Ba=1,yr=0,en=void 0,xm=void 0,Rs=void 0;do en=Iw(),Nw[kn]();while(en.type!=="eof");return typeof t=="function"?ym({"":Rs},"",t):Rs};function ym(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=fa();if(!_t.isHexDigit(n))throw bt(q());e+=q()}return String.fromCodePoint(parseInt(e,16))}var Nw={start(){if(en.type==="eof")throw Ai();hm()},beforePropertyName(){switch(en.type){case"identifier":case"string":vm=en.value,kn="afterPropertyName";return;case"punctuator":Fl();return;case"eof":throw Ai()}},afterPropertyName(){if(en.type==="eof")throw Ai();kn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Ai();hm()},beforeArrayValue(){if(en.type==="eof")throw Ai();if(en.type==="punctuator"&&en.value==="]"){Fl();return}hm()},afterPropertyValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforePropertyName";return;case"}":Fl()}},afterArrayValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforeArrayValue";return;case"]":Fl()}},end(){}};function hm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Rs===void 0)Rs=e;else{let t=ga[ga.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,vm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ga.push(e),Array.isArray(e)?kn="beforeArrayValue":kn="beforePropertyName";else{let t=ga[ga.length-1];t==null?kn="end":Array.isArray(t)?kn="afterArrayValue":kn="afterPropertyValue"}}function Fl(){ga.pop();let e=ga[ga.length-1];e==null?kn="end":Array.isArray(e)?kn="afterArrayValue":kn="afterPropertyValue"}function bt(e){return Sm(e===void 0?`JSON5: invalid end of input at ${Ba}:${yr}`:`JSON5: invalid character '${jw(e)}' at ${Ba}:${yr}`)}function Ai(){return Sm(`JSON5: invalid end of input at ${Ba}:${yr}`)}function g1(){return yr-=5,Sm(`JSON5: invalid identifier character at ${Ba}:${yr}`)}function jw(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Sm(e){let t=new SyntaxError(e);return t.lineNumber=Ba,t.columnNumber=yr,t}var Uw=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let x=0;xh[x]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let x of b){let S=l(x,g);if(S!==void 0){let T=m(x)+":";s!==""&&(T+=" "),T+=S,f.push(T)}}let y;if(f.length===0)y="{}";else{let x;if(s==="")x=f.join(","),y="{"+x+"}";else{let S=`, -`+a;x=f.join(S),y=`{ -`+a+x+`, -`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!_t.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),Zw=(e,t)=>{for(var n in t)Cm(e,n,{get:t[n],enumerable:!0})},Tm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kw(t))!Qw.call(e,a)&&a!==n&&Cm(e,a,{get:()=>t[a],enumerable:!(r=Vw(t,a))||r.enumerable});return e},Xw=(e,t,n)=>(Tm(e,t,"default"),n&&Tm(n,t,"default")),y1=(e,t,n)=>(n=e!=null?Gw(Yw(e)):{},Tm(t||!e||!e.__esModule?Cm(n,"default",{value:e,enumerable:!0}):n,e)),x1=Jw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof _l=="object"&&_l&&_l.Object===Object&&_l,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(E,k,P){var F,M,I,L,N,B,j=0,G=!1,z=!1,ue=!0;if(typeof E!="function")throw new TypeError(n);k=w(k)||0,S(P)&&(G=!!P.leading,z="maxWait"in P,I=z?h(w(P.maxWait)||0,k):I,ue="trailing"in P?!!P.trailing:ue);function le(fe){var he=F,we=M;return F=M=void 0,j=fe,L=E.apply(we,he),L}function O(fe){return j=fe,N=setTimeout(Ee,k),G?le(fe):L}function H(fe){var he=fe-B,we=fe-j,Ue=k-he;return z?b(Ue,I-we):Ue}function Y(fe){var he=fe-B,we=fe-j;return B===void 0||he>=k||he<0||z&&we>=I}function Ee(){var fe=f();if(Y(fe))return ge(fe);N=setTimeout(Ee,H(fe))}function ge(fe){return N=void 0,ue&&F?le(fe):(F=M=void 0,L)}function je(){N!==void 0&&clearTimeout(N),j=0,F=B=M=N=void 0}function de(){return N===void 0?L:ge(f())}function me(){var fe=f(),he=Y(fe);if(F=arguments,M=this,B=fe,he){if(N===void 0)return O(B);if(z)return N=setTimeout(Ee,k),le(B)}return N===void 0&&(N=setTimeout(Ee,k)),L}return me.cancel=je,me.flush=de,me}function x(E,k,P){var F=!0,M=!0;if(typeof E!="function")throw new TypeError(n);return S(P)&&(F="leading"in P?!!P.leading:F,M="trailing"in P?!!P.trailing:M),y(E,k,{leading:F,maxWait:k,trailing:M})}function S(E){var k=typeof E;return!!E&&(k=="object"||k=="function")}function T(E){return!!E&&typeof E=="object"}function C(E){return typeof E=="symbol"||T(E)&&g.call(E)==a}function w(E){if(typeof E=="number")return E;if(C(E))return r;if(S(E)){var k=typeof E.valueOf=="function"?E.valueOf():E;E=S(k)?k+"":k}if(typeof E!="string")return E===0?E:+E;E=E.replace(i,"");var P=s.test(E);return P||u.test(E)?l(E.slice(2),P?2:8):o.test(E)?r:+E}t.exports=x}),v1={};Zw(v1,{default:()=>Yn});var $w=y1(x1());Xw(v1,y1(x1()));var{default:b1,...eE}=$w,Yn=b1!==void 0?b1:eE;var Ol=globalThis||(typeof window<"u"?window:self),tE=Object.create,Em=Object.defineProperty,nE=Object.getOwnPropertyDescriptor,rE=Object.getOwnPropertyNames,aE=Object.getPrototypeOf,iE=Object.prototype.hasOwnProperty,oE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sE=(e,t)=>{for(var n in t)Em(e,n,{get:t[n],enumerable:!0})},wm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of rE(t))!iE.call(e,a)&&a!==n&&Em(e,a,{get:()=>t[a],enumerable:!(r=nE(t,a))||r.enumerable});return e},uE=(e,t,n)=>(wm(e,t,"default"),n&&wm(n,t,"default")),T1=(e,t,n)=>(n=e!=null?tE(aE(e)):{},wm(t||!e||!e.__esModule?Em(n,"default",{value:e,enumerable:!0}):n,e)),C1=oE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,E,k){var P,F,M,I,L,N,B=0,j=!1,G=!1,z=!0;if(typeof w!="function")throw new TypeError(n);E=C(E)||0,x(k)&&(j=!!k.leading,G="maxWait"in k,M=G?h(C(k.maxWait)||0,E):M,z="trailing"in k?!!k.trailing:z);function ue(me){var fe=P,he=F;return P=F=void 0,B=me,I=w.apply(he,fe),I}function le(me){return B=me,L=setTimeout(Y,E),j?ue(me):I}function O(me){var fe=me-N,he=me-B,we=E-fe;return G?b(we,M-he):we}function H(me){var fe=me-N,he=me-B;return N===void 0||fe>=E||fe<0||G&&he>=M}function Y(){var me=f();if(H(me))return Ee(me);L=setTimeout(Y,O(me))}function Ee(me){return L=void 0,z&&P?ue(me):(P=F=void 0,I)}function ge(){L!==void 0&&clearTimeout(L),B=0,P=N=F=L=void 0}function je(){return L===void 0?I:Ee(f())}function de(){var me=f(),fe=H(me);if(P=arguments,F=this,N=me,fe){if(L===void 0)return le(N);if(G)return L=setTimeout(Y,E),ue(N)}return L===void 0&&(L=setTimeout(Y,E)),I}return de.cancel=ge,de.flush=je,de}function x(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function S(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||S(w)&&g.call(w)==a}function C(w){if(typeof w=="number")return w;if(T(w))return r;if(x(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=x(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var k=s.test(w);return k||u.test(w)?l(w.slice(2),k?2:8):o.test(w)?r:+w}t.exports=y}),w1={};sE(w1,{default:()=>_n});var lE=T1(C1());uE(w1,T1(C1()));var{default:S1,...cE}=lE,_n=S1!==void 0?S1:cE;var dE=Object.create,km=Object.defineProperty,mE=Object.getOwnPropertyDescriptor,pE=Object.getOwnPropertyNames,gE=Object.getPrototypeOf,fE=Object.prototype.hasOwnProperty,hE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bE=(e,t)=>{for(var n in t)km(e,n,{get:t[n],enumerable:!0})},Am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pE(t))!fE.call(e,a)&&a!==n&&km(e,a,{get:()=>t[a],enumerable:!(r=mE(t,a))||r.enumerable});return e},yE=(e,t,n)=>(Am(e,t,"default"),n&&Am(n,t,"default")),A1=(e,t,n)=>(n=e!=null?dE(gE(e)):{},Am(t||!e||!e.__esModule?km(n,"default",{value:e,enumerable:!0}):n,e)),k1=hE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(O,H){var Y={};for(var Ee in O)H.indexOf(Ee)>=0||Object.prototype.hasOwnProperty.call(O,Ee)&&(Y[Ee]=O[Ee]);return Y}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(O){return typeof O>"u"?"undefined":l(O)}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O>"u"?"undefined":l(O)},h=Object.assign||function(O){for(var H=1;H'+Ee+"
",we.onclick=function(){return M(Ue,he)},we.listener=function(K){(k(K)||P(K))&&N()},F(we,he),je&&je<1&&(je=1),!me&&je&&S(je).then(function(){return M(Ue,he)})},j=d.force=function(O,H){var Y=O.type,Ee=Y===void 0?5:Y,ge=O.text,je=O.buttonText,de=je===void 0?"OK":je,me=O.callback,fe=O.position,he=fe===void 0?f.positions.force||he.top:fe;T(),N();var we=document.createElement("div"),Ue=C();we.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ge+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(w[Ee]),be.innerHTML=de,be.onclick=function(){M(Ue,he),L(),me?me():H&&H()},we.appendChild(K),we.appendChild(be),we.listener=function(tt){k(tt)&&be.click()},F(we,he),I()},G=d.confirm=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Yes":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.confirm||Ue.top:we;T(),N();var K=document.createElement("div"),be=C();K.id=be;var tt=document.createElement("div");tt.classList.add(f.classes.textbox),tt.classList.add(f.classes.backgroundInfo),tt.innerHTML='
'+Ee+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=je,Ye.onclick=function(){M(be,Ue),L(),fe?fe():H&&H()};var Se=document.createElement("div");Se.classList.add(f.classes.button),Se.classList.add(f.classes.elementHalf),Se.classList.add(f.classes.backgroundError),Se.innerHTML=me,Se.onclick=function(){M(be,Ue),L(),he?he():Y&&Y()},K.appendChild(tt),K.appendChild(Ye),K.appendChild(Se),K.listener=function(vt){k(vt)?Ye.click():P(vt)&&Se.click()},F(K,Ue),I(K,Ue)},z=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Submit":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.input||Ue.top:we,K=p(O,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),N();var be=document.createElement("div"),tt=C();be.id=tt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+Ee+"
";var Se=document.createElement("input");Se.classList.add(f.classes.inputField),Se.setAttribute("autocapitalize",K.autocapitalize||"none"),Se.setAttribute("autocomplete",K.autocomplete||"off"),Se.setAttribute("autocorrect",K.autocorrect||"off"),Se.setAttribute("autofocus",K.autofocus||"true"),Se.setAttribute("inputmode",K.inputmode||"verbatim"),Se.setAttribute("max",K.max||""),Se.setAttribute("maxlength",K.maxlength||""),Se.setAttribute("min",K.min||""),Se.setAttribute("minlength",K.minlength||""),Se.setAttribute("placeholder",K.placeholder||""),Se.setAttribute("spellcheck",K.spellcheck||"default"),Se.setAttribute("step",K.step||"any"),Se.setAttribute("type",K.type||"text"),Se.value=K.value||"",K.allowed&&(Se.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",Cn=K.allowed,or=0;or'+Y+"
",he.appendChild(Ue),de.forEach(function(be,tt){var Ye=be.type,Se=Ye===void 0?1:Ye,vt=be.text,zt=be.handler,Dt=document.createElement("div");Dt.classList.add(w[Se]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=de[tt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Se&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=vt,Dt.onclick=function(){M(we,fe),L(),zt()},he.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ge,K.onclick=function(){M(we,fe),L(),je?je():H&&H()},he.appendChild(K),he.listener=function(be){P(be)&&K.click()},F(he,fe),I(he,fe)},le=d.date=function(O,H,Y){var Ee=O.value,ge=Ee===void 0?new Date:Ee,je=O.submitText,de=je===void 0?"OK":je,me=O.cancelText,fe=me===void 0?"Cancel":me,he=O.submitCallback,we=O.cancelCallback,Ue=O.position,K=Ue===void 0?f.positions.date||K.top:Ue;T(),N();var be="▾",tt=document.createElement("div"),Ye=document.createElement("div"),Se=document.createElement("div"),vt=function(St){tt.innerHTML=f.dateMonths[St.getMonth()],Ye.innerHTML=St.getDate(),Se.innerHTML=St.getFullYear()},zt=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+1,0).getDate(),Wn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Wn)>et&&(Wn=et.toString()),St.target.textContent=Wn,Number(Wn)<1&&(Wn="1"),ge.setDate(Number(Wn))},Dt=function(St){var et=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=et,ge.setFullYear(Number(et))},Bt=function(St){vt(ge)},Cn=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+St+1,0).getDate();ge.getDate()>et&&ge.setDate(et),ge.setMonth(ge.getMonth()+St),vt(ge)},or=function(St){ge.setDate(ge.getDate()+St),vt(ge)},ps=function(St){var et=ge.getFullYear()+St;et<0?ge.setFullYear(0):ge.setFullYear(ge.getFullYear()+St),vt(ge)},Ur=document.createElement("div"),gi=C();Ur.id=gi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var hr=document.createElement("div");hr.classList.add(f.classes.button),hr.classList.add(f.classes.elementThird),hr.classList.add(f.classes.dateSelectorUp),hr.innerHTML=be;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=be;var zn=document.createElement("div");zn.classList.add(f.classes.button),zn.classList.add(f.classes.elementThird),zn.classList.add(f.classes.dateSelectorUp),zn.innerHTML=be,tt.classList.add(f.classes.element),tt.classList.add(f.classes.elementThird),tt.innerHTML=f.dateMonths[ge.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ge.getDate(),Se.classList.add(f.classes.element),Se.classList.add(f.classes.elementThird),Se.setAttribute("contentEditable",!0),Se.addEventListener("input",Dt),Se.addEventListener("blur",Bt),Se.innerHTML=ge.getFullYear();var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementThird),oa.innerHTML=be;var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementThird),sa.innerHTML=be;var fi=document.createElement("div");fi.classList.add(f.classes.button),fi.classList.add(f.classes.elementThird),fi.innerHTML=be,hr.onclick=function(){return Cn(1)},dn.onclick=function(){return or(1)},zn.onclick=function(){return ps(1)},oa.onclick=function(){return Cn(-1)},sa.onclick=function(){return or(-1)},fi.onclick=function(){return ps(-1)};var wn=document.createElement("div");wn.classList.add(f.classes.button),wn.classList.add(f.classes.elementHalf),wn.classList.add(f.classes.backgroundSuccess),wn.innerHTML=de,wn.onclick=function(){M(gi,K),L(),he?he(ge):H&&H(ge)};var ua=document.createElement("div");ua.classList.add(f.classes.button),ua.classList.add(f.classes.elementHalf),ua.classList.add(f.classes.backgroundError),ua.innerHTML=fe,ua.onclick=function(){M(gi,K),L(),we?we(ge):Y&&Y(ge)},cn.appendChild(hr),cn.appendChild(dn),cn.appendChild(zn),cn.appendChild(tt),cn.appendChild(Ye),cn.appendChild(Se),cn.appendChild(oa),cn.appendChild(sa),cn.appendChild(fi),Qi.appendChild(cn),Ur.appendChild(Qi),Ur.appendChild(wn),Ur.appendChild(ua),Ur.listener=function(St){k(St)?wn.click():P(St)&&ua.click()},F(Ur,K),I(Ur,K)};d.default={alert:B,force:j,confirm:G,input:z,select:ue,date:le,setOptions:y,hideAlerts:N}}])})}).call(r,a(0)(n))}])})}),D1={};bE(D1,{default:()=>Nl});var xE=A1(k1());yE(D1,A1(k1()));var{default:E1,...vE}=xE,Nl=E1!==void 0?E1:vE;var jl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Fs(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Dm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function L1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;iuo[e.toLowerCase()]||vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),SE=e=>Object.keys(uo).find(t=>uo[t]===e),TE=e=>Object.keys(vr).find(t=>vr[t]===e);function I1(e){F1=e||"all"}function Bs(){return F1||"all"}function CE(){return ot.slice(0)}function wE(){return ot.map(e=>SE(e)||TE(e)||String.fromCharCode(e))}function EE(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Is(o))})})}),e}function AE(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function kE(e){return typeof e=="string"&&(e=Is(e)),ot.indexOf(e)!==-1}function DE(e,t){let n,r;e||(e=Bs());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in vr)vr[r]===t&&(ha[r]=!1)}}function _1(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Pm(n)});else if(typeof e=="object")e.key&&Pm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Pm({key:e,scope:n,method:r,splitKey:"+"})}}var Pm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Lm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Is(u);if(!Tt[l])return;t||(t=Bs());let c=s>1?Dm(vr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&L1(d.mods,c)))})};function M1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function R1(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ha.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ul[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in vr)vr[i]===r&&(ha[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Ul[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=Bs();if(n)for(let i=0;i-1}function ha(e,t,n){ot=[];let r=Lm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&_1(e,i);s1&&(a=Dm(vr,e)),e=e[e.length-1],e=e==="*"?"*":Is(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!PE(o)&&window&&(B1.push(o),Fs(o,"keydown",p=>{R1(p,o)},d),P1||(P1=!0,Fs(window,"focus",()=>{ot=[]},d),Fs(window,"click",()=>{ot=[]},!1)),Fs(o,"keyup",p=>{R1(p,o),LE(p)},d))}function ME(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Mm={getPressedKeyString:wE,setScope:I1,getScope:Bs,deleteScope:DE,getPressedKeyCodes:CE,getAllKeyCodes:EE,isPressed:kE,filter:AE,trigger:ME,unbind:_1,keyMap:uo,modifier:vr,modifierMap:Ul};for(let e in Mm)Object.prototype.hasOwnProperty.call(Mm,e)&&(ha[e]=Mm[e]);if(typeof window<"u"){let e=window.hotkeys;ha.noConflict=t=>(t&&window.hotkeys===ha&&(window.hotkeys=e),ha),window.hotkeys=ha}var On=ha;var RE={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},N1={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Dn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ia={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=W.getVersionPrecision(e),a=W.getVersionPrecision(t),i=Math.max(r,a),o=0,s=W.map([e,t],u=>{let l=i-W.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return W.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return RE[e]}static getBrowserTypeByAlias(e){return N1[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,FE=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(r,e),version:W.getSecondMatch(r,e)}}}],BE=FE,IE=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Dn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Dn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:Dn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Dn.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),r={name:Dn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Dn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),r={name:Dn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Dn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:Dn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Dn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Dn.Linux}}},{test:[/CrOS/],describe(){return{name:Dn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.PlayStation4,version:t}}}],_E=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],OE=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ia.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ia.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ia.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ia.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ia.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ia.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ia.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],NE=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(BE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(IE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(_E,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(OE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=W.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=W.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=W.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=W.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(W.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},O1=NE,jE=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new O1(e,t)}static parse(e){return new O1(e).getResult()}static get BROWSER_MAP(){return N1}static get ENGINE_MAP(){return Ia}static get OS_MAP(){return Dn}static get PLATFORMS_MAP(){return Ot}},lo=jE;var{entries:V1,setPrototypeOf:j1,isFrozen:UE,getPrototypeOf:HE,getOwnPropertyDescriptor:qE}=Object,{freeze:Ln,seal:Tr,create:zE}=Object,{apply:Om,construct:Nm}=typeof Reflect<"u"&&Reflect;Om||(Om=function(e,t,n){return e.apply(t,n)});Ln||(Ln=function(e){return e});Tr||(Tr=function(e){return e});Nm||(Nm=function(e,t){return new e(...t)});var WE=lr(Array.prototype.forEach),U1=lr(Array.prototype.pop),_s=lr(Array.prototype.push),zl=lr(String.prototype.toLowerCase),Rm=lr(String.prototype.toString),GE=lr(String.prototype.match),Sr=lr(String.prototype.replace),VE=lr(String.prototype.indexOf),KE=lr(String.prototype.trim),Qn=lr(RegExp.prototype.test),Os=YE(TypeError);function lr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),$E=Tr(/\${[\w\W]*}/gm),e8=Tr(/^data-[\-\w.\u00B7-\uFFFF]/),t8=Tr(/^aria-[\-\w]+$/),K1=Tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),n8=Tr(/^(?:\w+script|data):/i),r8=Tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y1=Tr(/^html$/i),G1=Object.freeze({__proto__:null,MUSTACHE_EXPR:ZE,ERB_EXPR:XE,TMPLIT_EXPR:$E,DATA_ATTR:e8,ARIA_ATTR:t8,IS_ALLOWED_URI:K1,IS_SCRIPT_OR_DATA:n8,ATTR_WHITESPACE:r8,DOCTYPE_NAME:Y1}),a8=()=>typeof window>"u"?null:window,i8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function Q1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a8(),t=R=>Q1(R);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Hl(g,"cloneNode"),b=Hl(g,"nextSibling"),f=Hl(g,"childNodes"),y=Hl(g,"parentNode");if(typeof o=="function"){let R=a.createElement("template");R.content&&R.content.ownerDocument&&(a=R.content.ownerDocument)}let x,S="",{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:E}=a,{importNode:k}=n,P={};t.isSupported=typeof V1=="function"&&typeof y=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:j}=G1,{IS_ALLOWED_URI:G}=G1,z=null,ue=Ne({},[...H1,...Fm,...Bm,...Im,...q1]),le=null,O=Ne({},[...z1,..._m,...W1,...ql]),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,Ee=null,ge=!0,je=!0,de=!1,me=!0,fe=!1,he=!1,we=!1,Ue=!1,K=!1,be=!1,tt=!1,Ye=!0,Se=!1,vt="user-content-",zt=!0,Dt=!1,Bt={},Cn=null,or=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ps=null,Ur=Ne({},["audio","video","img","source","image","track"]),gi=null,Qi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",zn=dn,oa=!1,sa=null,fi=Ne({},[cn,hr,dn],Rm),wn,ua=["application/xhtml+xml","text/html"],St="text/html",et,Wn=null,Q5=a.createElement("form"),s4=function(R){return R instanceof RegExp||R instanceof Function},Pd=function(R){if(!(Wn&&Wn===R)){if((!R||typeof R!="object")&&(R={}),R=co(R),wn=ua.indexOf(R.PARSER_MEDIA_TYPE)===-1?wn=St:wn=R.PARSER_MEDIA_TYPE,et=wn==="application/xhtml+xml"?Rm:zl,z="ALLOWED_TAGS"in R?Ne({},R.ALLOWED_TAGS,et):ue,le="ALLOWED_ATTR"in R?Ne({},R.ALLOWED_ATTR,et):O,sa="ALLOWED_NAMESPACES"in R?Ne({},R.ALLOWED_NAMESPACES,Rm):fi,gi="ADD_URI_SAFE_ATTR"in R?Ne(co(Qi),R.ADD_URI_SAFE_ATTR,et):Qi,ps="ADD_DATA_URI_TAGS"in R?Ne(co(Ur),R.ADD_DATA_URI_TAGS,et):Ur,Cn="FORBID_CONTENTS"in R?Ne({},R.FORBID_CONTENTS,et):or,Y="FORBID_TAGS"in R?Ne({},R.FORBID_TAGS,et):{},Ee="FORBID_ATTR"in R?Ne({},R.FORBID_ATTR,et):{},Bt="USE_PROFILES"in R?R.USE_PROFILES:!1,ge=R.ALLOW_ARIA_ATTR!==!1,je=R.ALLOW_DATA_ATTR!==!1,de=R.ALLOW_UNKNOWN_PROTOCOLS||!1,me=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=R.SAFE_FOR_TEMPLATES||!1,he=R.WHOLE_DOCUMENT||!1,K=R.RETURN_DOM||!1,be=R.RETURN_DOM_FRAGMENT||!1,tt=R.RETURN_TRUSTED_TYPE||!1,Ue=R.FORCE_BODY||!1,Ye=R.SANITIZE_DOM!==!1,Se=R.SANITIZE_NAMED_PROPS||!1,zt=R.KEEP_CONTENT!==!1,Dt=R.IN_PLACE||!1,G=R.ALLOWED_URI_REGEXP||K1,zn=R.NAMESPACE||dn,H=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(je=!1),be&&(K=!0),Bt&&(z=Ne({},[...q1]),le=[],Bt.html===!0&&(Ne(z,H1),Ne(le,z1)),Bt.svg===!0&&(Ne(z,Fm),Ne(le,_m),Ne(le,ql)),Bt.svgFilters===!0&&(Ne(z,Bm),Ne(le,_m),Ne(le,ql)),Bt.mathMl===!0&&(Ne(z,Im),Ne(le,W1),Ne(le,ql))),R.ADD_TAGS&&(z===ue&&(z=co(z)),Ne(z,R.ADD_TAGS,et)),R.ADD_ATTR&&(le===O&&(le=co(le)),Ne(le,R.ADD_ATTR,et)),R.ADD_URI_SAFE_ATTR&&Ne(gi,R.ADD_URI_SAFE_ATTR,et),R.FORBID_CONTENTS&&(Cn===or&&(Cn=co(Cn)),Ne(Cn,R.FORBID_CONTENTS,et)),zt&&(z["#text"]=!0),he&&Ne(z,["html","head","body"]),z.table&&(Ne(z,["tbody"]),delete Y.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=R.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else x===void 0&&(x=i8(p,r)),x!==null&&typeof S=="string"&&(S=x.createHTML(""));Ln&&Ln(R),Wn=R}},u4=Ne({},["mi","mo","mn","ms","mtext"]),l4=Ne({},["foreignobject","desc","title","annotation-xml"]),J5=Ne({},["title","style","font","a","script"]),Xu=Ne({},Fm);Ne(Xu,Bm),Ne(Xu,QE);let Md=Ne({},Im);Ne(Md,JE);let Z5=function(R){let oe=y(R);(!oe||!oe.tagName)&&(oe={namespaceURI:zn,tagName:"template"});let Q=zl(R.tagName),Je=zl(oe.tagName);return sa[R.namespaceURI]?R.namespaceURI===hr?oe.namespaceURI===dn?Q==="svg":oe.namespaceURI===cn?Q==="svg"&&(Je==="annotation-xml"||u4[Je]):!!Xu[Q]:R.namespaceURI===cn?oe.namespaceURI===dn?Q==="math":oe.namespaceURI===hr?Q==="math"&&l4[Je]:!!Md[Q]:R.namespaceURI===dn?oe.namespaceURI===hr&&!l4[Je]||oe.namespaceURI===cn&&!u4[Je]?!1:!Md[Q]&&(J5[Q]||!Xu[Q]):!!(wn==="application/xhtml+xml"&&sa[R.namespaceURI]):!1},Ji=function(R){_s(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},Rd=function(R,oe){try{_s(t.removed,{attribute:oe.getAttributeNode(R),from:oe})}catch{_s(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(R),R==="is"&&!le[R])if(K||be)try{Ji(oe)}catch{}else try{oe.setAttribute(R,"")}catch{}},c4=function(R){let oe,Q;if(Ue)R=""+R;else{let En=GE(R,/^[\r\n\t ]+/);Q=En&&En[0]}wn==="application/xhtml+xml"&&zn===dn&&(R=''+R+"");let Je=x?x.createHTML(R):R;if(zn===dn)try{oe=new m().parseFromString(Je,wn)}catch{}if(!oe||!oe.documentElement){oe=T.createDocument(zn,"template",null);try{oe.documentElement.innerHTML=oa?S:Je}catch{}}let Wt=oe.body||oe.documentElement;return R&&Q&&Wt.insertBefore(a.createTextNode(Q),Wt.childNodes[0]||null),zn===dn?E.call(oe,he?"html":"body")[0]:he?oe.documentElement:Wt},d4=function(R){return C.call(R.ownerDocument||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},X5=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},$u=function(R){return typeof s=="object"?R instanceof s:R&&typeof R=="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},la=function(R,oe,Q){P[R]&&WE(P[R],Je=>{Je.call(t,oe,Q,Wn)})},m4=function(R){let oe;if(la("beforeSanitizeElements",R,null),X5(R))return Ji(R),!0;let Q=et(R.nodeName);if(la("uponSanitizeElement",R,{tagName:Q,allowedTags:z}),R.hasChildNodes()&&!$u(R.firstElementChild)&&(!$u(R.content)||!$u(R.content.firstElementChild))&&Qn(/<[/\w]/g,R.innerHTML)&&Qn(/<[/\w]/g,R.textContent))return Ji(R),!0;if(!z[Q]||Y[Q]){if(!Y[Q]&&g4(Q)&&(H.tagNameCheck instanceof RegExp&&Qn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q)))return!1;if(zt&&!Cn[Q]){let Je=y(R)||R.parentNode,Wt=f(R)||R.childNodes;if(Wt&&Je){let En=Wt.length;for(let In=En-1;In>=0;--In)Je.insertBefore(h(Wt[In],!0),b(R))}}return Ji(R),!0}return R instanceof u&&!Z5(R)||(Q==="noscript"||Q==="noembed")&&Qn(/<\/no(script|embed)/i,R.innerHTML)?(Ji(R),!0):(fe&&R.nodeType===3&&(oe=R.textContent,oe=Sr(oe,F," "),oe=Sr(oe,M," "),oe=Sr(oe,I," "),R.textContent!==oe&&(_s(t.removed,{element:R.cloneNode()}),R.textContent=oe)),la("afterSanitizeElements",R,null),!1)},p4=function(R,oe,Q){if(Ye&&(oe==="id"||oe==="name")&&(Q in a||Q in Q5))return!1;if(!(je&&!Ee[oe]&&Qn(L,oe))&&!(ge&&Qn(N,oe))){if(!le[oe]||Ee[oe]){if(!(g4(R)&&(H.tagNameCheck instanceof RegExp&&Qn(H.tagNameCheck,R)||H.tagNameCheck instanceof Function&&H.tagNameCheck(R))&&(H.attributeNameCheck instanceof RegExp&&Qn(H.attributeNameCheck,oe)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(oe))||oe==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Qn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q))))return!1}else if(!gi[oe]&&!Qn(G,Sr(Q,j,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&R!=="script"&&VE(Q,"data:")===0&&ps[R])&&!(de&&!Qn(B,Sr(Q,j,"")))&&Q)return!1}return!0},g4=function(R){return R.indexOf("-")>0},f4=function(R){let oe,Q,Je,Wt;la("beforeSanitizeAttributes",R,null);let{attributes:En}=R;if(!En)return;let In={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le};for(Wt=En.length;Wt--;){oe=En[Wt];let{name:Xt,namespaceURI:Zi}=oe;if(Q=Xt==="value"?oe.value:KE(oe.value),Je=et(Xt),In.attrName=Je,In.attrValue=Q,In.keepAttr=!0,In.forceKeepAttr=void 0,la("uponSanitizeAttribute",R,In),Q=In.attrValue,In.forceKeepAttr||(Rd(Xt,R),!In.keepAttr))continue;if(!me&&Qn(/\/>/i,Q)){Rd(Xt,R);continue}fe&&(Q=Sr(Q,F," "),Q=Sr(Q,M," "),Q=Sr(Q,I," "));let h4=et(R.nodeName);if(p4(h4,Je,Q)){if(Se&&(Je==="id"||Je==="name")&&(Rd(Xt,R),Q=vt+Q),x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(h4,Je)){case"TrustedHTML":{Q=x.createHTML(Q);break}case"TrustedScriptURL":{Q=x.createScriptURL(Q);break}}try{Zi?R.setAttributeNS(Zi,Xt,Q):R.setAttribute(Xt,Q),U1(t.removed)}catch{}}}la("afterSanitizeAttributes",R,null)},$5=function R(oe){let Q,Je=d4(oe);for(la("beforeSanitizeShadowDOM",oe,null);Q=Je.nextNode();)la("uponSanitizeShadowNode",Q,null),!m4(Q)&&(Q.content instanceof i&&R(Q.content),f4(Q));la("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(R){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,Je,Wt,En;if(oa=!R,oa&&(R=""),typeof R!="string"&&!$u(R))if(typeof R.toString=="function"){if(R=R.toString(),typeof R!="string")throw Os("dirty is not a string, aborting")}else throw Os("toString is not a function");if(!t.isSupported)return R;if(we||Pd(oe),t.removed=[],typeof R=="string"&&(Dt=!1),Dt){if(R.nodeName){let Zi=et(R.nodeName);if(!z[Zi]||Y[Zi])throw Os("root node is forbidden and cannot be sanitized in-place")}}else if(R instanceof s)Q=c4(""),Je=Q.ownerDocument.importNode(R,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?Q=Je:Q.appendChild(Je);else{if(!K&&!fe&&!he&&R.indexOf("<")===-1)return x&&tt?x.createHTML(R):R;if(Q=c4(R),!Q)return K?null:tt?S:""}Q&&Ue&&Ji(Q.firstChild);let In=d4(Dt?R:Q);for(;Wt=In.nextNode();)m4(Wt)||(Wt.content instanceof i&&$5(Wt.content),f4(Wt));if(Dt)return R;if(K){if(be)for(En=w.call(Q.ownerDocument);Q.firstChild;)En.appendChild(Q.firstChild);else En=Q;return(le.shadowroot||le.shadowrootmod)&&(En=k.call(n,En,!0)),En}let Xt=he?Q.outerHTML:Q.innerHTML;return he&&z["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Qn(Y1,Q.ownerDocument.doctype.name)&&(Xt=" -`+Xt),fe&&(Xt=Sr(Xt,F," "),Xt=Sr(Xt,M," "),Xt=Sr(Xt,I," ")),x&&tt?x.createHTML(Xt):Xt},t.setConfig=function(R){Pd(R),we=!0},t.clearConfig=function(){Wn=null,we=!1},t.isValidAttribute=function(R,oe,Q){Wn||Pd({});let Je=et(R),Wt=et(oe);return p4(Je,Wt,Q)},t.addHook=function(R,oe){typeof oe=="function"&&(P[R]=P[R]||[],_s(P[R],oe))},t.removeHook=function(R){if(P[R])return U1(P[R])},t.removeHooks=function(R){P[R]&&(P[R]=[])},t.removeAllHooks=function(){P={}},t}var nt=Q1();var o8=Object.create,Um=Object.defineProperty,s8=Object.getOwnPropertyDescriptor,u8=Object.getOwnPropertyNames,l8=Object.getPrototypeOf,c8=Object.prototype.hasOwnProperty,Hm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of u8(t))!c8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=s8(t,a))||r.enumerable});return e},m8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),Z1=(e,t,n)=>(n=e!=null?o8(l8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),p8=Hm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var be=this._getInnerText(K);if(!(be.length<25)){var tt=this._getNodeAncestors(K,5);if(tt.length!==0){var Ye=0;Ye+=1,Ye+=be.split(",").length,Ye+=Math.min(Math.floor(be.length/100),3),this._forEachNode(tt,function(Se,vt){if(!(!Se.tagName||!Se.parentNode||typeof Se.parentNode.tagName>"u")){if(typeof Se.readability>"u"&&(this._initializeNode(Se),h.push(Se)),vt===0)var zt=1;else vt===1?zt=2:zt=vt*3;Se.readability.contentScore+=Ye/zt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(T,0,x),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,E=!1,k;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),E=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var P=[],F=1;F=.75&&P.push(this._getNodeAncestors(b[F]));var M=3;if(P.length>=M)for(k=w.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=M){w=k;break}k=k.parentNode}w.readability||this._initializeNode(w),k=w.parentNode;for(var N=w.readability.contentScore,B=N/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var j=k.readability.contentScore;if(jN){w=k;break}N=k.readability.contentScore,k=k.parentNode}for(k=w.parentNode;k.tagName!="BODY"&&k.children.length==1;)w=k,k=w.parentNode;w.readability||this._initializeNode(w)}var G=a.createElement("DIV");i&&(G.id="readability-content");var z=Math.max(10,w.readability.contentScore*.2);k=w.parentNode;for(var ue=k.children,le=0,O=ue.length;le=z)Y=!0;else if(H.nodeName==="P"){var ge=this._getLinkDensity(H),je=this._getInnerText(H),de=je.length;(de>80&&ge<.25||de<80&&de>0&&ge===0&&je.search(/\.( |$)/)!==-1)&&(Y=!0)}}Y&&(this.log("Appending node:",H),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(H.nodeName)===-1&&(this.log("Altering sibling:",H,"to div."),H=this._setNodeTag(H,"DIV")),G.appendChild(H),ue=k.children,le-=1,O-=1)}if(this._debug&&this.log("Article content pre-prep: "+G.innerHTML),this._prepArticle(G),this._debug&&this.log("Article content post-prep: "+G.innerHTML),E)w.id="readability-page-1",w.className="page";else{var me=a.createElement("DIV");for(me.id="readability-page-1",me.className="page";G.firstChild;)me.appendChild(G.firstChild);G.appendChild(me)}this._debug&&this.log("Article content after paging: "+G.innerHTML);var fe=!0,he=this._getInnerText(G,!0).length;if(he0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),x=0;x1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||f===1&&C<75||f>1;if(s&&w){for(var E=0;E1)return w;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),g8=Hm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),X1=Hm((e,t)=>{var n=p8(),r=g8();t.exports={Readability:n,isProbablyReaderable:r}}),$1={};d8($1,{Readability:()=>Wl,default:()=>n2,isProbablyReaderable:()=>t2});var e2=Z1(X1());m8($1,Z1(X1()));var{Readability:Wl,isProbablyReaderable:t2}=e2,{default:J1,...f8}=e2,n2=J1!==void 0?J1:f8;var h8=Nl.alert;var mo=console,qm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=ur.green;r>1e4?a=ur.red:r>1e3&&(a=ur.yellow),mo.debug(ur.dim(bi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ns=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&mo.log(ur.dim(bi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&mo.log(ur.green(bi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&mo.warn(ur.yellow(bi+" WARN:"),...t)}error(...t){this.#e<=3&&mo.error(ur.red(bi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&mo.error(ur.red(bi+" FATAL:"),...t)}timing(){return this.level===0?new qm:{reset:()=>{},stop:()=>{}}}},D=new Ns;var r2=["*://*/*","*","*://*"],i2="immersive-translate-wildcard-placeholder.com";function zm(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>r2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(r2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return y8(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,i2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=b8(l+":",a2(p),a2(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function a2(e){return e.replaceAll(i2,"*")}function b8(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return zm(e,t)!==null}function y8(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Gl={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var v8="";function pn(){return v8||Gl.version}function js(){return ee.runtime.getManifest().version}var S8="";function po(){return S8||globalThis.navigator.userAgent}function Us(){return po().includes("ImtFxiOS")}function o2(){let t=po().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Wm(){return po().includes("ImtFxAndroid")}function s2(){let e=po();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function u2(){let t=po().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Hs(){let e=po();if(Us()||Wm()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Jn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Gm={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},l2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Vm={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Km={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Jn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Jn[a]}else return"auto";else return Jn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var c2=J+"SyncStoreKey_";function Ut(e,t){let n=c2+e;return ee.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=c2+e;return ee.storage.sync.set({[n]:t})}var d2=J+"StoreKey_";function ki(e,t){let n=d2+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function m2(e,t){let n=d2+e;return ee.storage.local.set({[n]:t})}var UH=g2(2),p2=g2(3);function g2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var T8=/\s+/g,C8=/[\t\n\v\f\r ]+/g;function f2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?w8:E8;return String(e).replace(t.style==="html"?C8:T8,t.trim?A8(n):n)}function w8(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function E8(){return" "}function A8(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var h2={}.hasOwnProperty;function k8(e){return e==null?"":f2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function D8(e){return p2(" "+k8(e)+" ")}function L8(e){let t=D8(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function _8(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function O8(e,t,n,r){t=j8(t,n,r);let a=[],i;if(t)for(i in t)Vl.call(t,i)&&a.push([i,N8(e,t[i])]);return a.length===0?Qm():a.sort(U8)}function N8(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of J8){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?w2(e)?"zh-TW":"zh-CN":t:"auto"}var A2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jm=new Map(A2),Z8=new Map(A2.map(([e,t])=>[t,e]));function k2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>Z8.get(s));!t&&t!==0&&(t=25);let a=Yl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jm.keys()]},o=x2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Jm.get(d)}}let[s,u]=o[0],l=Jm.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function _a(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function X8(e,t){return e<>>32-t}function Jl(e,t,n,r,a,i){return _a(X8(_a(_a(t,e),_a(r,i)),a),n)}function gn(e,t,n,r,a,i,o){return Jl(t&n|~t&r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return Jl(t&r|n&~r,e,t,a,i,o)}function hn(e,t,n,r,a,i,o){return Jl(t^n^r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return Jl(n^(t|~r),e,t,a,i,o)}function Ql(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zm(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Ql(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Ql(a.concat(Zm(t)),512+t.length*8),D2(Ql(i.concat(o),512+128))}function L2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xm(e){return unescape(encodeURIComponent(e))}function P2(e){return $8(Xm(e))}function tA(e){return L2(P2(e))}function M2(e,t){return eA(Xm(e),Xm(t))}function nA(e,t){return L2(M2(e,t))}function Zn(e,t,n){return t?n?M2(t,e):nA(t,e):n?P2(e):tA(e)}var Zl=["caiyun","cai"],R2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],go={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:ie+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`&&q(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw bt(q());case void 0:throw bt(q())}return q()}function Ow(){let e="",t=fa();if(!_t.isHexDigit(t)||(e+=q(),t=fa(),!_t.isHexDigit(t)))throw bt(q());return e+=q(),String.fromCodePoint(parseInt(e,16))}function vm(){let e="",t=4;for(;t-- >0;){let n=fa();if(!_t.isHexDigit(n))throw bt(q());e+=q()}return String.fromCodePoint(parseInt(e,16))}var Nw={start(){if(en.type==="eof")throw Ai();hm()},beforePropertyName(){switch(en.type){case"identifier":case"string":xm=en.value,kn="afterPropertyName";return;case"punctuator":Fl();return;case"eof":throw Ai()}},afterPropertyName(){if(en.type==="eof")throw Ai();kn="beforePropertyValue"},beforePropertyValue(){if(en.type==="eof")throw Ai();hm()},beforeArrayValue(){if(en.type==="eof")throw Ai();if(en.type==="punctuator"&&en.value==="]"){Fl();return}hm()},afterPropertyValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforePropertyName";return;case"}":Fl()}},afterArrayValue(){if(en.type==="eof")throw Ai();switch(en.value){case",":kn="beforeArrayValue";return;case"]":Fl()}},end(){}};function hm(){let e;switch(en.type){case"punctuator":switch(en.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=en.value;break}if(Rs===void 0)Rs=e;else{let t=ga[ga.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,xm,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ga.push(e),Array.isArray(e)?kn="beforeArrayValue":kn="beforePropertyName";else{let t=ga[ga.length-1];t==null?kn="end":Array.isArray(t)?kn="afterArrayValue":kn="afterPropertyValue"}}function Fl(){ga.pop();let e=ga[ga.length-1];e==null?kn="end":Array.isArray(e)?kn="afterArrayValue":kn="afterPropertyValue"}function bt(e){return Sm(e===void 0?`JSON5: invalid end of input at ${Ba}:${yr}`:`JSON5: invalid character '${jw(e)}' at ${Ba}:${yr}`)}function Ai(){return Sm(`JSON5: invalid end of input at ${Ba}:${yr}`)}function g1(){return yr-=5,Sm(`JSON5: invalid identifier character at ${Ba}:${yr}`)}function jw(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Sm(e){let t=new SyntaxError(e);return t.lineNumber=Ba,t.columnNumber=yr,t}var Uw=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let g of t){let h;typeof g=="string"?h=g:(typeof g=="number"||g instanceof String||g instanceof Number)&&(h=String(g)),h!==void 0&&i.indexOf(h)<0&&i.push(h)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(g,h){let b=h[g];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(g):typeof b.toJSON=="function"&&(b=b.toJSON(g))),o&&(b=o.call(h,g,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?p(b):d(b)}function c(g){let h={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},f="";for(let v=0;vh[v]=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=i||Object.keys(g),f=[];for(let v of b){let S=l(v,g);if(S!==void 0){let T=m(v)+":";s!==""&&(T+=" "),T+=S,f.push(T)}}let y;if(f.length===0)y="{}";else{let v;if(s==="")v=f.join(","),y="{"+v+"}";else{let S=`, +`+a;v=f.join(S),y=`{ +`+a+v+`, +`+h+"}"}}return r.pop(),a=h,y}function m(g){if(g.length===0)return c(g,!0);let h=String.fromCodePoint(g.codePointAt(0));if(!_t.isIdStartChar(h))return c(g,!0);for(let b=h.length;b=0)throw TypeError("Converting circular structure to JSON5");r.push(g);let h=a;a=a+s;let b=[];for(let y=0;y()=>(t||e((t={exports:{}}).exports,t),t.exports),Zw=(e,t)=>{for(var n in t)Cm(e,n,{get:t[n],enumerable:!0})},Tm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kw(t))!Qw.call(e,a)&&a!==n&&Cm(e,a,{get:()=>t[a],enumerable:!(r=Vw(t,a))||r.enumerable});return e},Xw=(e,t,n)=>(Tm(e,t,"default"),n&&Tm(n,t,"default")),y1=(e,t,n)=>(n=e!=null?Gw(Yw(e)):{},Tm(t||!e||!e.__esModule?Cm(n,"default",{value:e,enumerable:!0}):n,e)),v1=Jw((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof _l=="object"&&_l&&_l.Object===Object&&_l,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(E,k,P){var F,M,I,L,N,B,j=0,G=!1,z=!1,ue=!0;if(typeof E!="function")throw new TypeError(n);k=w(k)||0,S(P)&&(G=!!P.leading,z="maxWait"in P,I=z?h(w(P.maxWait)||0,k):I,ue="trailing"in P?!!P.trailing:ue);function le(fe){var he=F,we=M;return F=M=void 0,j=fe,L=E.apply(we,he),L}function O(fe){return j=fe,N=setTimeout(Ee,k),G?le(fe):L}function H(fe){var he=fe-B,we=fe-j,Ue=k-he;return z?b(Ue,I-we):Ue}function Y(fe){var he=fe-B,we=fe-j;return B===void 0||he>=k||he<0||z&&we>=I}function Ee(){var fe=f();if(Y(fe))return ge(fe);N=setTimeout(Ee,H(fe))}function ge(fe){return N=void 0,ue&&F?le(fe):(F=M=void 0,L)}function je(){N!==void 0&&clearTimeout(N),j=0,F=B=M=N=void 0}function de(){return N===void 0?L:ge(f())}function me(){var fe=f(),he=Y(fe);if(F=arguments,M=this,B=fe,he){if(N===void 0)return O(B);if(z)return N=setTimeout(Ee,k),le(B)}return N===void 0&&(N=setTimeout(Ee,k)),L}return me.cancel=je,me.flush=de,me}function v(E,k,P){var F=!0,M=!0;if(typeof E!="function")throw new TypeError(n);return S(P)&&(F="leading"in P?!!P.leading:F,M="trailing"in P?!!P.trailing:M),y(E,k,{leading:F,maxWait:k,trailing:M})}function S(E){var k=typeof E;return!!E&&(k=="object"||k=="function")}function T(E){return!!E&&typeof E=="object"}function C(E){return typeof E=="symbol"||T(E)&&g.call(E)==a}function w(E){if(typeof E=="number")return E;if(C(E))return r;if(S(E)){var k=typeof E.valueOf=="function"?E.valueOf():E;E=S(k)?k+"":k}if(typeof E!="string")return E===0?E:+E;E=E.replace(i,"");var P=s.test(E);return P||u.test(E)?l(E.slice(2),P?2:8):o.test(E)?r:+E}t.exports=v}),x1={};Zw(x1,{default:()=>Qn});var $w=y1(v1());Xw(x1,y1(v1()));var{default:b1,...eE}=$w,Qn=b1!==void 0?b1:eE;var Ol=globalThis||(typeof window<"u"?window:self),tE=Object.create,Em=Object.defineProperty,nE=Object.getOwnPropertyDescriptor,rE=Object.getOwnPropertyNames,aE=Object.getPrototypeOf,iE=Object.prototype.hasOwnProperty,oE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sE=(e,t)=>{for(var n in t)Em(e,n,{get:t[n],enumerable:!0})},wm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of rE(t))!iE.call(e,a)&&a!==n&&Em(e,a,{get:()=>t[a],enumerable:!(r=nE(t,a))||r.enumerable});return e},uE=(e,t,n)=>(wm(e,t,"default"),n&&wm(n,t,"default")),T1=(e,t,n)=>(n=e!=null?tE(aE(e)):{},wm(t||!e||!e.__esModule?Em(n,"default",{value:e,enumerable:!0}):n,e)),C1=oE((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,d=typeof self=="object"&&self&&self.Object===Object&&self,m=c||d||Function("return this")(),p=Object.prototype,g=p.toString,h=Math.max,b=Math.min,f=function(){return m.Date.now()};function y(w,E,k){var P,F,M,I,L,N,B=0,j=!1,G=!1,z=!0;if(typeof w!="function")throw new TypeError(n);E=C(E)||0,v(k)&&(j=!!k.leading,G="maxWait"in k,M=G?h(C(k.maxWait)||0,E):M,z="trailing"in k?!!k.trailing:z);function ue(me){var fe=P,he=F;return P=F=void 0,B=me,I=w.apply(he,fe),I}function le(me){return B=me,L=setTimeout(Y,E),j?ue(me):I}function O(me){var fe=me-N,he=me-B,we=E-fe;return G?b(we,M-he):we}function H(me){var fe=me-N,he=me-B;return N===void 0||fe>=E||fe<0||G&&he>=M}function Y(){var me=f();if(H(me))return Ee(me);L=setTimeout(Y,O(me))}function Ee(me){return L=void 0,z&&P?ue(me):(P=F=void 0,I)}function ge(){L!==void 0&&clearTimeout(L),B=0,P=N=F=L=void 0}function je(){return L===void 0?I:Ee(f())}function de(){var me=f(),fe=H(me);if(P=arguments,F=this,N=me,fe){if(L===void 0)return le(N);if(G)return L=setTimeout(Y,E),ue(N)}return L===void 0&&(L=setTimeout(Y,E)),I}return de.cancel=ge,de.flush=je,de}function v(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function S(w){return!!w&&typeof w=="object"}function T(w){return typeof w=="symbol"||S(w)&&g.call(w)==a}function C(w){if(typeof w=="number")return w;if(T(w))return r;if(v(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=v(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var k=s.test(w);return k||u.test(w)?l(w.slice(2),k?2:8):o.test(w)?r:+w}t.exports=y}),w1={};sE(w1,{default:()=>_n});var lE=T1(C1());uE(w1,T1(C1()));var{default:S1,...cE}=lE,_n=S1!==void 0?S1:cE;var dE=Object.create,km=Object.defineProperty,mE=Object.getOwnPropertyDescriptor,pE=Object.getOwnPropertyNames,gE=Object.getPrototypeOf,fE=Object.prototype.hasOwnProperty,hE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bE=(e,t)=>{for(var n in t)km(e,n,{get:t[n],enumerable:!0})},Am=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pE(t))!fE.call(e,a)&&a!==n&&km(e,a,{get:()=>t[a],enumerable:!(r=mE(t,a))||r.enumerable});return e},yE=(e,t,n)=>(Am(e,t,"default"),n&&Am(n,t,"default")),A1=(e,t,n)=>(n=e!=null?dE(gE(e)):{},Am(t||!e||!e.__esModule?km(n,"default",{value:e,enumerable:!0}):n,e)),k1=hE((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,d){l(r)==="object"&&l(i)==="object"?i.exports=d():(s=[],o=d,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function d(p){if(m[p])return m[p].exports;var g=m[p]={i:p,l:!1,exports:{}};return c[p].call(g.exports,g,g.exports,d),g.l=!0,g.exports}var m={};return d.m=c,d.c=m,d.i=function(p){return p},d.d=function(p,g,h){d.o(p,g)||Object.defineProperty(p,g,{configurable:!1,enumerable:!0,get:h})},d.n=function(p){var g=p&&p.__esModule?function(){return p.default}:function(){return p};return d.d(g,"a",g),g},d.o=function(p,g){return Object.prototype.hasOwnProperty.call(p,g)},d.p="",d(d.s=0)}([function(c,d,m){function p(O,H){var Y={};for(var Ee in O)H.indexOf(Ee)>=0||Object.prototype.hasOwnProperty.call(O,Ee)&&(Y[Ee]=O[Ee]);return Y}Object.defineProperty(d,"__esModule",{value:!0});var g=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(O){return typeof O>"u"?"undefined":l(O)}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O>"u"?"undefined":l(O)},h=Object.assign||function(O){for(var H=1;H'+Ee+"
",we.onclick=function(){return M(Ue,he)},we.listener=function(K){(k(K)||P(K))&&N()},F(we,he),je&&je<1&&(je=1),!me&&je&&S(je).then(function(){return M(Ue,he)})},j=d.force=function(O,H){var Y=O.type,Ee=Y===void 0?5:Y,ge=O.text,je=O.buttonText,de=je===void 0?"OK":je,me=O.callback,fe=O.position,he=fe===void 0?f.positions.force||he.top:fe;T(),N();var we=document.createElement("div"),Ue=C();we.id=Ue;var K=document.createElement("div");K.classList.add(f.classes.textbox),K.classList.add(f.classes.backgroundInfo),K.innerHTML='
'+ge+"
";var be=document.createElement("div");be.classList.add(f.classes.button),be.classList.add(w[Ee]),be.innerHTML=de,be.onclick=function(){M(Ue,he),L(),me?me():H&&H()},we.appendChild(K),we.appendChild(be),we.listener=function(tt){k(tt)&&be.click()},F(we,he),I()},G=d.confirm=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Yes":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.confirm||Ue.top:we;T(),N();var K=document.createElement("div"),be=C();K.id=be;var tt=document.createElement("div");tt.classList.add(f.classes.textbox),tt.classList.add(f.classes.backgroundInfo),tt.innerHTML='
'+Ee+"
";var Ye=document.createElement("div");Ye.classList.add(f.classes.button),Ye.classList.add(f.classes.elementHalf),Ye.classList.add(f.classes.backgroundSuccess),Ye.innerHTML=je,Ye.onclick=function(){M(be,Ue),L(),fe?fe():H&&H()};var Se=document.createElement("div");Se.classList.add(f.classes.button),Se.classList.add(f.classes.elementHalf),Se.classList.add(f.classes.backgroundError),Se.innerHTML=me,Se.onclick=function(){M(be,Ue),L(),he?he():Y&&Y()},K.appendChild(tt),K.appendChild(Ye),K.appendChild(Se),K.listener=function(xt){k(xt)?Ye.click():P(xt)&&Se.click()},F(K,Ue),I(K,Ue)},z=function(O,H,Y){var Ee=O.text,ge=O.submitText,je=ge===void 0?"Submit":ge,de=O.cancelText,me=de===void 0?"Cancel":de,fe=O.submitCallback,he=O.cancelCallback,we=O.position,Ue=we===void 0?f.positions.input||Ue.top:we,K=p(O,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);T(),N();var be=document.createElement("div"),tt=C();be.id=tt;var Ye=document.createElement("div");Ye.classList.add(f.classes.textbox),Ye.classList.add(f.classes.backgroundInfo),Ye.innerHTML='
'+Ee+"
";var Se=document.createElement("input");Se.classList.add(f.classes.inputField),Se.setAttribute("autocapitalize",K.autocapitalize||"none"),Se.setAttribute("autocomplete",K.autocomplete||"off"),Se.setAttribute("autocorrect",K.autocorrect||"off"),Se.setAttribute("autofocus",K.autofocus||"true"),Se.setAttribute("inputmode",K.inputmode||"verbatim"),Se.setAttribute("max",K.max||""),Se.setAttribute("maxlength",K.maxlength||""),Se.setAttribute("min",K.min||""),Se.setAttribute("minlength",K.minlength||""),Se.setAttribute("placeholder",K.placeholder||""),Se.setAttribute("spellcheck",K.spellcheck||"default"),Se.setAttribute("step",K.step||"any"),Se.setAttribute("type",K.type||"text"),Se.value=K.value||"",K.allowed&&(Se.oninput=function(){var Dt=void 0;if(Array.isArray(K.allowed)){for(var Bt="",Cn=K.allowed,sr=0;sr'+Y+"
",he.appendChild(Ue),de.forEach(function(be,tt){var Ye=be.type,Se=Ye===void 0?1:Ye,xt=be.text,zt=be.handler,Dt=document.createElement("div");Dt.classList.add(w[Se]),Dt.classList.add(f.classes.button),Dt.classList.add(f.classes.selectChoice);var Bt=de[tt+1];Bt&&!Bt.type&&(Bt.type=1),Bt&&Bt.type===Se&&Dt.classList.add(f.classes.selectChoiceRepeated),Dt.innerHTML=xt,Dt.onclick=function(){M(we,fe),L(),zt()},he.appendChild(Dt)});var K=document.createElement("div");K.classList.add(f.classes.backgroundNeutral),K.classList.add(f.classes.button),K.innerHTML=ge,K.onclick=function(){M(we,fe),L(),je?je():H&&H()},he.appendChild(K),he.listener=function(be){P(be)&&K.click()},F(he,fe),I(he,fe)},le=d.date=function(O,H,Y){var Ee=O.value,ge=Ee===void 0?new Date:Ee,je=O.submitText,de=je===void 0?"OK":je,me=O.cancelText,fe=me===void 0?"Cancel":me,he=O.submitCallback,we=O.cancelCallback,Ue=O.position,K=Ue===void 0?f.positions.date||K.top:Ue;T(),N();var be="▾",tt=document.createElement("div"),Ye=document.createElement("div"),Se=document.createElement("div"),xt=function(St){tt.innerHTML=f.dateMonths[St.getMonth()],Ye.innerHTML=St.getDate(),Se.innerHTML=St.getFullYear()},zt=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+1,0).getDate(),Gn=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Gn)>et&&(Gn=et.toString()),St.target.textContent=Gn,Number(Gn)<1&&(Gn="1"),ge.setDate(Number(Gn))},Dt=function(St){var et=St.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);St.target.textContent=et,ge.setFullYear(Number(et))},Bt=function(St){xt(ge)},Cn=function(St){var et=new Date(ge.getFullYear(),ge.getMonth()+St+1,0).getDate();ge.getDate()>et&&ge.setDate(et),ge.setMonth(ge.getMonth()+St),xt(ge)},sr=function(St){ge.setDate(ge.getDate()+St),xt(ge)},ps=function(St){var et=ge.getFullYear()+St;et<0?ge.setFullYear(0):ge.setFullYear(ge.getFullYear()+St),xt(ge)},Ur=document.createElement("div"),gi=C();Ur.id=gi;var Qi=document.createElement("div");Qi.classList.add(f.classes.backgroundInfo);var cn=document.createElement("div");cn.classList.add(f.classes.dateSelectorInner);var hr=document.createElement("div");hr.classList.add(f.classes.button),hr.classList.add(f.classes.elementThird),hr.classList.add(f.classes.dateSelectorUp),hr.innerHTML=be;var dn=document.createElement("div");dn.classList.add(f.classes.button),dn.classList.add(f.classes.elementThird),dn.classList.add(f.classes.dateSelectorUp),dn.innerHTML=be;var Wn=document.createElement("div");Wn.classList.add(f.classes.button),Wn.classList.add(f.classes.elementThird),Wn.classList.add(f.classes.dateSelectorUp),Wn.innerHTML=be,tt.classList.add(f.classes.element),tt.classList.add(f.classes.elementThird),tt.innerHTML=f.dateMonths[ge.getMonth()],Ye.classList.add(f.classes.element),Ye.classList.add(f.classes.elementThird),Ye.setAttribute("contentEditable",!0),Ye.addEventListener("input",zt),Ye.addEventListener("blur",Bt),Ye.innerHTML=ge.getDate(),Se.classList.add(f.classes.element),Se.classList.add(f.classes.elementThird),Se.setAttribute("contentEditable",!0),Se.addEventListener("input",Dt),Se.addEventListener("blur",Bt),Se.innerHTML=ge.getFullYear();var oa=document.createElement("div");oa.classList.add(f.classes.button),oa.classList.add(f.classes.elementThird),oa.innerHTML=be;var sa=document.createElement("div");sa.classList.add(f.classes.button),sa.classList.add(f.classes.elementThird),sa.innerHTML=be;var fi=document.createElement("div");fi.classList.add(f.classes.button),fi.classList.add(f.classes.elementThird),fi.innerHTML=be,hr.onclick=function(){return Cn(1)},dn.onclick=function(){return sr(1)},Wn.onclick=function(){return ps(1)},oa.onclick=function(){return Cn(-1)},sa.onclick=function(){return sr(-1)},fi.onclick=function(){return ps(-1)};var wn=document.createElement("div");wn.classList.add(f.classes.button),wn.classList.add(f.classes.elementHalf),wn.classList.add(f.classes.backgroundSuccess),wn.innerHTML=de,wn.onclick=function(){M(gi,K),L(),he?he(ge):H&&H(ge)};var ua=document.createElement("div");ua.classList.add(f.classes.button),ua.classList.add(f.classes.elementHalf),ua.classList.add(f.classes.backgroundError),ua.innerHTML=fe,ua.onclick=function(){M(gi,K),L(),we?we(ge):Y&&Y(ge)},cn.appendChild(hr),cn.appendChild(dn),cn.appendChild(Wn),cn.appendChild(tt),cn.appendChild(Ye),cn.appendChild(Se),cn.appendChild(oa),cn.appendChild(sa),cn.appendChild(fi),Qi.appendChild(cn),Ur.appendChild(Qi),Ur.appendChild(wn),Ur.appendChild(ua),Ur.listener=function(St){k(St)?wn.click():P(St)&&ua.click()},F(Ur,K),I(Ur,K)};d.default={alert:B,force:j,confirm:G,input:z,select:ue,date:le,setOptions:y,hideAlerts:N}}])})}).call(r,a(0)(n))}])})}),D1={};bE(D1,{default:()=>Nl});var vE=A1(k1());yE(D1,A1(k1()));var{default:E1,...xE}=vE,Nl=E1!==void 0?E1:xE;var jl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Fs(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function Dm(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function L1(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;iuo[e.toLowerCase()]||xr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),SE=e=>Object.keys(uo).find(t=>uo[t]===e),TE=e=>Object.keys(xr).find(t=>xr[t]===e);function I1(e){F1=e||"all"}function Bs(){return F1||"all"}function CE(){return ot.slice(0)}function wE(){return ot.map(e=>SE(e)||TE(e)||String.fromCharCode(e))}function EE(){let e=[];return Object.keys(Tt).forEach(t=>{Tt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>Is(o))})})}),e}function AE(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function kE(e){return typeof e=="string"&&(e=Is(e)),ot.indexOf(e)!==-1}function DE(e,t){let n,r;e||(e=Bs());for(let a in Tt)if(Object.prototype.hasOwnProperty.call(Tt,a))for(n=Tt[a],r=0;r=0&&ot.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ot.splice(0,ot.length),(t===93||t===224)&&(t=91),t in tn){tn[t]=!1;for(let r in xr)xr[r]===t&&(ha[r]=!1)}}function _1(e,...t){if(typeof e>"u")Object.keys(Tt).forEach(n=>delete Tt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&Pm(n)});else if(typeof e=="object")e.key&&Pm(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),Pm({key:e,scope:n,method:r,splitKey:"+"})}}var Pm=({key:e,scope:t,method:n,splitKey:r="+"})=>{Lm(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":Is(u);if(!Tt[l])return;t||(t=Bs());let c=s>1?Dm(xr,o):[];Tt[l]=Tt[l].filter(d=>!((n?d.method===n:!0)&&d.scope===t&&L1(d.mods,c)))})};function M1(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(!tn[i]&&t.mods.indexOf(+i)>-1||tn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!tn[16]&&!tn[18]&&!tn[17]&&!tn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ot),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function R1(e,t){let n=Tt["*"],r=e.keyCode||e.which||e.charCode;if(!ha.filter.call(this,e))return;if((r===93||r===224)&&(r=91),ot.indexOf(r)===-1&&r!==229&&ot.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=Ul[i];e[i]&&ot.indexOf(o)===-1?ot.push(o):!e[i]&&ot.indexOf(o)>-1?ot.splice(ot.indexOf(o),1):i==="metaKey"&&e[i]&&ot.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ot=ot.slice(ot.indexOf(o))))}),r in tn){tn[r]=!0;for(let i in xr)xr[i]===r&&(ha[i]=!0);if(!n)return}for(let i in tn)Object.prototype.hasOwnProperty.call(tn,i)&&(tn[i]=e[Ul[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ot.indexOf(17)===-1&&ot.push(17),ot.indexOf(18)===-1&&ot.push(18),tn[17]=!0,tn[18]=!0);let a=Bs();if(n)for(let i=0;i-1}function ha(e,t,n){ot=[];let r=Lm(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",d=!1,m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(d=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(m=!0)),typeof t=="string"&&(i=t),m&&_1(e,i);s1&&(a=Dm(xr,e)),e=e[e.length-1],e=e==="*"?"*":Is(e),e in Tt||(Tt[e]=[]),Tt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!PE(o)&&window&&(B1.push(o),Fs(o,"keydown",p=>{R1(p,o)},d),P1||(P1=!0,Fs(window,"focus",()=>{ot=[]},d),Fs(window,"click",()=>{ot=[]},!1)),Fs(o,"keyup",p=>{R1(p,o),LE(p)},d))}function ME(e,t="all"){Object.keys(Tt).forEach(n=>{Tt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var Mm={getPressedKeyString:wE,setScope:I1,getScope:Bs,deleteScope:DE,getPressedKeyCodes:CE,getAllKeyCodes:EE,isPressed:kE,filter:AE,trigger:ME,unbind:_1,keyMap:uo,modifier:xr,modifierMap:Ul};for(let e in Mm)Object.prototype.hasOwnProperty.call(Mm,e)&&(ha[e]=Mm[e]);if(typeof window<"u"){let e=window.hotkeys;ha.noConflict=t=>(t&&window.hotkeys===ha&&(window.hotkeys=e),ha),window.hotkeys=ha}var On=ha;var RE={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},N1={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ot={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Dn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ia={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=W.getVersionPrecision(e),a=W.getVersionPrecision(t),i=Math.max(r,a),o=0,s=W.map([e,t],u=>{let l=i-W.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return W.map(c.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return RE[e]}static getBrowserTypeByAlias(e){return N1[e]||""}},st=/version\/(\d+(\.?_?\d+)+)/i,FE=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(st,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(st,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(r,e),version:W.getSecondMatch(r,e)}}}],BE=FE,IE=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Dn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Dn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:Dn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Dn.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),r={name:Dn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Dn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),r={name:Dn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Dn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:Dn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Dn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Dn.Linux}}},{test:[/CrOS/],describe(){return{name:Dn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Dn.PlayStation4,version:t}}}],_E=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ot.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ot.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ot.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ot.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ot.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ot.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ot.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ot.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ot.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ot.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ot.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ot.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ot.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ot.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ot.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ot.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ot.tv}}}],OE=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ia.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ia.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ia.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ia.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ia.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ia.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ia.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],NE=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(BE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(IE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(_E,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(OE,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=W.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=W.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=W.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=W.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(W.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},O1=NE,jE=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new O1(e,t)}static parse(e){return new O1(e).getResult()}static get BROWSER_MAP(){return N1}static get ENGINE_MAP(){return Ia}static get OS_MAP(){return Dn}static get PLATFORMS_MAP(){return Ot}},lo=jE;var{entries:V1,setPrototypeOf:j1,isFrozen:UE,getPrototypeOf:HE,getOwnPropertyDescriptor:qE}=Object,{freeze:Ln,seal:Tr,create:zE}=Object,{apply:Om,construct:Nm}=typeof Reflect<"u"&&Reflect;Om||(Om=function(e,t,n){return e.apply(t,n)});Ln||(Ln=function(e){return e});Tr||(Tr=function(e){return e});Nm||(Nm=function(e,t){return new e(...t)});var WE=cr(Array.prototype.forEach),U1=cr(Array.prototype.pop),_s=cr(Array.prototype.push),zl=cr(String.prototype.toLowerCase),Rm=cr(String.prototype.toString),GE=cr(String.prototype.match),Sr=cr(String.prototype.replace),VE=cr(String.prototype.indexOf),KE=cr(String.prototype.trim),Jn=cr(RegExp.prototype.test),Os=YE(TypeError);function cr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),$E=Tr(/\${[\w\W]*}/gm),e8=Tr(/^data-[\-\w.\u00B7-\uFFFF]/),t8=Tr(/^aria-[\-\w]+$/),K1=Tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),n8=Tr(/^(?:\w+script|data):/i),r8=Tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y1=Tr(/^html$/i),G1=Object.freeze({__proto__:null,MUSTACHE_EXPR:ZE,ERB_EXPR:XE,TMPLIT_EXPR:$E,DATA_ATTR:e8,ARIA_ATTR:t8,IS_ALLOWED_URI:K1,IS_SCRIPT_OR_DATA:n8,ATTR_WHITESPACE:r8,DOCTYPE_NAME:Y1}),a8=()=>typeof window>"u"?null:window,i8=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function Q1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a8(),t=R=>Q1(R);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=e,g=u.prototype,h=Hl(g,"cloneNode"),b=Hl(g,"nextSibling"),f=Hl(g,"childNodes"),y=Hl(g,"parentNode");if(typeof o=="function"){let R=a.createElement("template");R.content&&R.content.ownerDocument&&(a=R.content.ownerDocument)}let v,S="",{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:E}=a,{importNode:k}=n,P={};t.isSupported=typeof V1=="function"&&typeof y=="function"&&T&&T.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:j}=G1,{IS_ALLOWED_URI:G}=G1,z=null,ue=Ne({},[...H1,...Fm,...Bm,...Im,...q1]),le=null,O=Ne({},[...z1,..._m,...W1,...ql]),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,Ee=null,ge=!0,je=!0,de=!1,me=!0,fe=!1,he=!1,we=!1,Ue=!1,K=!1,be=!1,tt=!1,Ye=!0,Se=!1,xt="user-content-",zt=!0,Dt=!1,Bt={},Cn=null,sr=Ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ps=null,Ur=Ne({},["audio","video","img","source","image","track"]),gi=null,Qi=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cn="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",Wn=dn,oa=!1,sa=null,fi=Ne({},[cn,hr,dn],Rm),wn,ua=["application/xhtml+xml","text/html"],St="text/html",et,Gn=null,Q5=a.createElement("form"),s4=function(R){return R instanceof RegExp||R instanceof Function},Pd=function(R){if(!(Gn&&Gn===R)){if((!R||typeof R!="object")&&(R={}),R=co(R),wn=ua.indexOf(R.PARSER_MEDIA_TYPE)===-1?wn=St:wn=R.PARSER_MEDIA_TYPE,et=wn==="application/xhtml+xml"?Rm:zl,z="ALLOWED_TAGS"in R?Ne({},R.ALLOWED_TAGS,et):ue,le="ALLOWED_ATTR"in R?Ne({},R.ALLOWED_ATTR,et):O,sa="ALLOWED_NAMESPACES"in R?Ne({},R.ALLOWED_NAMESPACES,Rm):fi,gi="ADD_URI_SAFE_ATTR"in R?Ne(co(Qi),R.ADD_URI_SAFE_ATTR,et):Qi,ps="ADD_DATA_URI_TAGS"in R?Ne(co(Ur),R.ADD_DATA_URI_TAGS,et):Ur,Cn="FORBID_CONTENTS"in R?Ne({},R.FORBID_CONTENTS,et):sr,Y="FORBID_TAGS"in R?Ne({},R.FORBID_TAGS,et):{},Ee="FORBID_ATTR"in R?Ne({},R.FORBID_ATTR,et):{},Bt="USE_PROFILES"in R?R.USE_PROFILES:!1,ge=R.ALLOW_ARIA_ATTR!==!1,je=R.ALLOW_DATA_ATTR!==!1,de=R.ALLOW_UNKNOWN_PROTOCOLS||!1,me=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=R.SAFE_FOR_TEMPLATES||!1,he=R.WHOLE_DOCUMENT||!1,K=R.RETURN_DOM||!1,be=R.RETURN_DOM_FRAGMENT||!1,tt=R.RETURN_TRUSTED_TYPE||!1,Ue=R.FORCE_BODY||!1,Ye=R.SANITIZE_DOM!==!1,Se=R.SANITIZE_NAMED_PROPS||!1,zt=R.KEEP_CONTENT!==!1,Dt=R.IN_PLACE||!1,G=R.ALLOWED_URI_REGEXP||K1,Wn=R.NAMESPACE||dn,H=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&s4(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(je=!1),be&&(K=!0),Bt&&(z=Ne({},[...q1]),le=[],Bt.html===!0&&(Ne(z,H1),Ne(le,z1)),Bt.svg===!0&&(Ne(z,Fm),Ne(le,_m),Ne(le,ql)),Bt.svgFilters===!0&&(Ne(z,Bm),Ne(le,_m),Ne(le,ql)),Bt.mathMl===!0&&(Ne(z,Im),Ne(le,W1),Ne(le,ql))),R.ADD_TAGS&&(z===ue&&(z=co(z)),Ne(z,R.ADD_TAGS,et)),R.ADD_ATTR&&(le===O&&(le=co(le)),Ne(le,R.ADD_ATTR,et)),R.ADD_URI_SAFE_ATTR&&Ne(gi,R.ADD_URI_SAFE_ATTR,et),R.FORBID_CONTENTS&&(Cn===sr&&(Cn=co(Cn)),Ne(Cn,R.FORBID_CONTENTS,et)),zt&&(z["#text"]=!0),he&&Ne(z,["html","head","body"]),z.table&&(Ne(z,["tbody"]),delete Y.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=R.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=i8(p,r)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Ln&&Ln(R),Gn=R}},u4=Ne({},["mi","mo","mn","ms","mtext"]),l4=Ne({},["foreignobject","desc","title","annotation-xml"]),J5=Ne({},["title","style","font","a","script"]),Xu=Ne({},Fm);Ne(Xu,Bm),Ne(Xu,QE);let Md=Ne({},Im);Ne(Md,JE);let Z5=function(R){let oe=y(R);(!oe||!oe.tagName)&&(oe={namespaceURI:Wn,tagName:"template"});let Q=zl(R.tagName),Je=zl(oe.tagName);return sa[R.namespaceURI]?R.namespaceURI===hr?oe.namespaceURI===dn?Q==="svg":oe.namespaceURI===cn?Q==="svg"&&(Je==="annotation-xml"||u4[Je]):!!Xu[Q]:R.namespaceURI===cn?oe.namespaceURI===dn?Q==="math":oe.namespaceURI===hr?Q==="math"&&l4[Je]:!!Md[Q]:R.namespaceURI===dn?oe.namespaceURI===hr&&!l4[Je]||oe.namespaceURI===cn&&!u4[Je]?!1:!Md[Q]&&(J5[Q]||!Xu[Q]):!!(wn==="application/xhtml+xml"&&sa[R.namespaceURI]):!1},Ji=function(R){_s(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},Rd=function(R,oe){try{_s(t.removed,{attribute:oe.getAttributeNode(R),from:oe})}catch{_s(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(R),R==="is"&&!le[R])if(K||be)try{Ji(oe)}catch{}else try{oe.setAttribute(R,"")}catch{}},c4=function(R){let oe,Q;if(Ue)R=""+R;else{let En=GE(R,/^[\r\n\t ]+/);Q=En&&En[0]}wn==="application/xhtml+xml"&&Wn===dn&&(R=''+R+"");let Je=v?v.createHTML(R):R;if(Wn===dn)try{oe=new m().parseFromString(Je,wn)}catch{}if(!oe||!oe.documentElement){oe=T.createDocument(Wn,"template",null);try{oe.documentElement.innerHTML=oa?S:Je}catch{}}let Wt=oe.body||oe.documentElement;return R&&Q&&Wt.insertBefore(a.createTextNode(Q),Wt.childNodes[0]||null),Wn===dn?E.call(oe,he?"html":"body")[0]:he?oe.documentElement:Wt},d4=function(R){return C.call(R.ownerDocument||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},X5=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},$u=function(R){return typeof s=="object"?R instanceof s:R&&typeof R=="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},la=function(R,oe,Q){P[R]&&WE(P[R],Je=>{Je.call(t,oe,Q,Gn)})},m4=function(R){let oe;if(la("beforeSanitizeElements",R,null),X5(R))return Ji(R),!0;let Q=et(R.nodeName);if(la("uponSanitizeElement",R,{tagName:Q,allowedTags:z}),R.hasChildNodes()&&!$u(R.firstElementChild)&&(!$u(R.content)||!$u(R.content.firstElementChild))&&Jn(/<[/\w]/g,R.innerHTML)&&Jn(/<[/\w]/g,R.textContent))return Ji(R),!0;if(!z[Q]||Y[Q]){if(!Y[Q]&&g4(Q)&&(H.tagNameCheck instanceof RegExp&&Jn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q)))return!1;if(zt&&!Cn[Q]){let Je=y(R)||R.parentNode,Wt=f(R)||R.childNodes;if(Wt&&Je){let En=Wt.length;for(let In=En-1;In>=0;--In)Je.insertBefore(h(Wt[In],!0),b(R))}}return Ji(R),!0}return R instanceof u&&!Z5(R)||(Q==="noscript"||Q==="noembed")&&Jn(/<\/no(script|embed)/i,R.innerHTML)?(Ji(R),!0):(fe&&R.nodeType===3&&(oe=R.textContent,oe=Sr(oe,F," "),oe=Sr(oe,M," "),oe=Sr(oe,I," "),R.textContent!==oe&&(_s(t.removed,{element:R.cloneNode()}),R.textContent=oe)),la("afterSanitizeElements",R,null),!1)},p4=function(R,oe,Q){if(Ye&&(oe==="id"||oe==="name")&&(Q in a||Q in Q5))return!1;if(!(je&&!Ee[oe]&&Jn(L,oe))&&!(ge&&Jn(N,oe))){if(!le[oe]||Ee[oe]){if(!(g4(R)&&(H.tagNameCheck instanceof RegExp&&Jn(H.tagNameCheck,R)||H.tagNameCheck instanceof Function&&H.tagNameCheck(R))&&(H.attributeNameCheck instanceof RegExp&&Jn(H.attributeNameCheck,oe)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(oe))||oe==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Jn(H.tagNameCheck,Q)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Q))))return!1}else if(!gi[oe]&&!Jn(G,Sr(Q,j,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&R!=="script"&&VE(Q,"data:")===0&&ps[R])&&!(de&&!Jn(B,Sr(Q,j,"")))&&Q)return!1}return!0},g4=function(R){return R.indexOf("-")>0},f4=function(R){let oe,Q,Je,Wt;la("beforeSanitizeAttributes",R,null);let{attributes:En}=R;if(!En)return;let In={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:le};for(Wt=En.length;Wt--;){oe=En[Wt];let{name:Xt,namespaceURI:Zi}=oe;if(Q=Xt==="value"?oe.value:KE(oe.value),Je=et(Xt),In.attrName=Je,In.attrValue=Q,In.keepAttr=!0,In.forceKeepAttr=void 0,la("uponSanitizeAttribute",R,In),Q=In.attrValue,In.forceKeepAttr||(Rd(Xt,R),!In.keepAttr))continue;if(!me&&Jn(/\/>/i,Q)){Rd(Xt,R);continue}fe&&(Q=Sr(Q,F," "),Q=Sr(Q,M," "),Q=Sr(Q,I," "));let h4=et(R.nodeName);if(p4(h4,Je,Q)){if(Se&&(Je==="id"||Je==="name")&&(Rd(Xt,R),Q=xt+Q),v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zi)switch(p.getAttributeType(h4,Je)){case"TrustedHTML":{Q=v.createHTML(Q);break}case"TrustedScriptURL":{Q=v.createScriptURL(Q);break}}try{Zi?R.setAttributeNS(Zi,Xt,Q):R.setAttribute(Xt,Q),U1(t.removed)}catch{}}}la("afterSanitizeAttributes",R,null)},$5=function R(oe){let Q,Je=d4(oe);for(la("beforeSanitizeShadowDOM",oe,null);Q=Je.nextNode();)la("uponSanitizeShadowNode",Q,null),!m4(Q)&&(Q.content instanceof i&&R(Q.content),f4(Q));la("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(R){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q,Je,Wt,En;if(oa=!R,oa&&(R=""),typeof R!="string"&&!$u(R))if(typeof R.toString=="function"){if(R=R.toString(),typeof R!="string")throw Os("dirty is not a string, aborting")}else throw Os("toString is not a function");if(!t.isSupported)return R;if(we||Pd(oe),t.removed=[],typeof R=="string"&&(Dt=!1),Dt){if(R.nodeName){let Zi=et(R.nodeName);if(!z[Zi]||Y[Zi])throw Os("root node is forbidden and cannot be sanitized in-place")}}else if(R instanceof s)Q=c4(""),Je=Q.ownerDocument.importNode(R,!0),Je.nodeType===1&&Je.nodeName==="BODY"||Je.nodeName==="HTML"?Q=Je:Q.appendChild(Je);else{if(!K&&!fe&&!he&&R.indexOf("<")===-1)return v&&tt?v.createHTML(R):R;if(Q=c4(R),!Q)return K?null:tt?S:""}Q&&Ue&&Ji(Q.firstChild);let In=d4(Dt?R:Q);for(;Wt=In.nextNode();)m4(Wt)||(Wt.content instanceof i&&$5(Wt.content),f4(Wt));if(Dt)return R;if(K){if(be)for(En=w.call(Q.ownerDocument);Q.firstChild;)En.appendChild(Q.firstChild);else En=Q;return(le.shadowroot||le.shadowrootmod)&&(En=k.call(n,En,!0)),En}let Xt=he?Q.outerHTML:Q.innerHTML;return he&&z["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&Jn(Y1,Q.ownerDocument.doctype.name)&&(Xt=" +`+Xt),fe&&(Xt=Sr(Xt,F," "),Xt=Sr(Xt,M," "),Xt=Sr(Xt,I," ")),v&&tt?v.createHTML(Xt):Xt},t.setConfig=function(R){Pd(R),we=!0},t.clearConfig=function(){Gn=null,we=!1},t.isValidAttribute=function(R,oe,Q){Gn||Pd({});let Je=et(R),Wt=et(oe);return p4(Je,Wt,Q)},t.addHook=function(R,oe){typeof oe=="function"&&(P[R]=P[R]||[],_s(P[R],oe))},t.removeHook=function(R){if(P[R])return U1(P[R])},t.removeHooks=function(R){P[R]&&(P[R]=[])},t.removeAllHooks=function(){P={}},t}var nt=Q1();var o8=Object.create,Um=Object.defineProperty,s8=Object.getOwnPropertyDescriptor,u8=Object.getOwnPropertyNames,l8=Object.getPrototypeOf,c8=Object.prototype.hasOwnProperty,Hm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d8=(e,t)=>{for(var n in t)Um(e,n,{get:t[n],enumerable:!0})},jm=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of u8(t))!c8.call(e,a)&&a!==n&&Um(e,a,{get:()=>t[a],enumerable:!(r=s8(t,a))||r.enumerable});return e},m8=(e,t,n)=>(jm(e,t,"default"),n&&jm(n,t,"default")),Z1=(e,t,n)=>(n=e!=null?o8(l8(e)):{},jm(t||!e||!e.__esModule?Um(n,"default",{value:e,enumerable:!0}):n,e)),p8=Hm((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var d=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(d,l)}else{for(var m=this._doc.createElement("span");l.firstChild;)m.appendChild(l.firstChild);l.parentNode.replaceChild(m,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),d=l.getAttribute("poster"),m=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),d&&l.setAttribute("poster",o(d)),m){var p=m.replace(this.REGEXPS.srcsetUrl,function(g,h,b,f){return o(h)+(b||"")+f});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var d=r.getElementsByTagName("h1");d.length===1&&(a=this._getInnerText(d[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var m=s(a);return m<=4&&(!o||m!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ue=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ue&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ue=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var d=null,m=l.firstChild;m;){var p=m.nextSibling;if(this._isPhrasingContent(m))d!==null?d.appendChild(m):this._isWhitespace(m)||(d=a.createElement("p"),l.replaceChild(d,m),d.appendChild(m));else if(d!==null){for(;d.lastChild&&this._isWhitespace(d.lastChild);)d.removeChild(d.lastChild);d=null}m=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var g=l.children[0];l.parentNode.replaceChild(g,l),l=g,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var h=[];this._forEachNode(u,function(K){if(!(!K.parentNode||typeof K.parentNode.tagName>"u")){var be=this._getInnerText(K);if(!(be.length<25)){var tt=this._getNodeAncestors(K,5);if(tt.length!==0){var Ye=0;Ye+=1,Ye+=be.split(",").length,Ye+=Math.min(Math.floor(be.length/100),3),this._forEachNode(tt,function(Se,xt){if(!(!Se.tagName||!Se.parentNode||typeof Se.parentNode.tagName>"u")){if(typeof Se.readability>"u"&&(this._initializeNode(Se),h.push(Se)),xt===0)var zt=1;else xt===1?zt=2:zt=xt*3;Se.readability.contentScore+=Ye/zt}})}}}});for(var b=[],f=0,y=h.length;fC.readability.contentScore){b.splice(T,0,v),b.length>this._nbTopCandidates&&b.pop();break}}}var w=b[0]||null,E=!1,k;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),E=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var P=[],F=1;F=.75&&P.push(this._getNodeAncestors(b[F]));var M=3;if(P.length>=M)for(k=w.parentNode;k.tagName!=="BODY";){for(var I=0,L=0;L=M){w=k;break}k=k.parentNode}w.readability||this._initializeNode(w),k=w.parentNode;for(var N=w.readability.contentScore,B=N/3;k.tagName!=="BODY";){if(!k.readability){k=k.parentNode;continue}var j=k.readability.contentScore;if(jN){w=k;break}N=k.readability.contentScore,k=k.parentNode}for(k=w.parentNode;k.tagName!="BODY"&&k.children.length==1;)w=k,k=w.parentNode;w.readability||this._initializeNode(w)}var G=a.createElement("DIV");i&&(G.id="readability-content");var z=Math.max(10,w.readability.contentScore*.2);k=w.parentNode;for(var ue=k.children,le=0,O=ue.length;le=z)Y=!0;else if(H.nodeName==="P"){var ge=this._getLinkDensity(H),je=this._getInnerText(H),de=je.length;(de>80&&ge<.25||de<80&&de>0&&ge===0&&je.search(/\.( |$)/)!==-1)&&(Y=!0)}}Y&&(this.log("Appending node:",H),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(H.nodeName)===-1&&(this.log("Altering sibling:",H,"to div."),H=this._setNodeTag(H,"DIV")),G.appendChild(H),ue=k.children,le-=1,O-=1)}if(this._debug&&this.log("Article content pre-prep: "+G.innerHTML),this._prepArticle(G),this._debug&&this.log("Article content post-prep: "+G.innerHTML),E)w.id="readability-page-1",w.className="page";else{var me=a.createElement("DIV");for(me.id="readability-page-1",me.className="page";G.firstChild;)me.appendChild(G.firstChild);G.appendChild(me)}this._debug&&this.log("Article content after paging: "+G.innerHTML);var fe=!0,he=this._getInnerText(G,!0).length;if(he0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(m){return(m["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,d=this._textSimilarity(u.headline,l)>.75;d&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(m){return m&&typeof m.name=="string"}).map(function(m){return m.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(m){this.log(m.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),d=l.getAttribute("property"),m=l.getAttribute("content");if(m){var p=null,g=null;d&&(p=d.match(s),p&&(g=p[0].toLowerCase().replace(/\s/g,""),i[g]=m.trim())),!p&&c&&u.test(c)&&(g=c,m&&(g=g.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[g]=m.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var d=["col","colgroup","tfoot","thead","th"],m=function(g){return!!o.getElementsByTagName(g)[0]};if(d.some(m)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(k){return k._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,k=>u+=this._getInnerText(k).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var d=0;if(c+d<0)return!0;if(this._getCharCount(i,",")<10){for(var m=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,g=i.getElementsByTagName("li").length-100,h=i.getElementsByTagName("input").length,b=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),f=0,y=this._getAllNodesWithTag(i,["object","embed","iframe"]),v=0;v1&&m/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&g>m||h>Math.floor(m/3)||!s&&b<.9&&C<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&T>.2||c>=25&&T>.5||f===1&&C<75||f>1;if(s&&w){for(var E=0;E1)return w;let k=i.getElementsByTagName("li").length;if(p==k)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),g8=Hm((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(m){c.add(m.parentNode)}),u=Array.from(c)}var d=0;return[].some.call(u,function(m){if(!o.visibilityChecker(m))return!1;var p=m.className+" "+m.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||m.matches("li p"))return!1;var g=m.textContent.trim().length;return go.minScore)})}typeof t=="object"&&(t.exports=a)}),X1=Hm((e,t)=>{var n=p8(),r=g8();t.exports={Readability:n,isProbablyReaderable:r}}),$1={};d8($1,{Readability:()=>Wl,default:()=>n2,isProbablyReaderable:()=>t2});var e2=Z1(X1());m8($1,Z1(X1()));var{Readability:Wl,isProbablyReaderable:t2}=e2,{default:J1,...f8}=e2,n2=J1!==void 0?J1:f8;var h8=Nl.alert;var mo=console,qm=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=lr.green;r>1e4?a=lr.red:r>1e3&&(a=lr.yellow),mo.debug(lr.dim(bi+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},Ns=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&mo.log(lr.dim(bi+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&mo.log(lr.green(bi+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&mo.warn(lr.yellow(bi+" WARN:"),...t)}error(...t){this.#e<=3&&mo.error(lr.red(bi+" ERROR:"),...t)}fatal(...t){this.#e<=4&&mo.error(lr.red(bi+" FATAL:"),...t)}timing(){return this.level===0?new qm:{reset:()=>{},stop:()=>{}}}},D=new Ns;var r2=["*://*/*","*","*://*"],i2="immersive-translate-wildcard-placeholder.com";function zm(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>r2.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(r2.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,d=l.port===o;return l.port?c&&d:c}else return y8(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let b=u.split("://");l=b[0],l==="*"&&b.length>1&&(l="*",u="https://"+b[1])}else l="*",u="https://"+u;let d=u.replace(/\*/g,i2),m;try{m=new URL(d)}catch{return D.debug("invalid match pattern",d,"raw match value:",c),!1}let p=m.host,g=m.pathname;g==="/"&&(c.replace("://","").includes("/")||(g="/*"));let h=b8(l+":",a2(p),a2(g));return h?h.test(e):!1}});if(s)return s}return null}catch{return null}}function a2(e){return e.replaceAll(i2,"*")}function b8(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function Ze(e,t){return zm(e,t)!==null}function y8(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Gl={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.7",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var x8="";function pn(){return x8||Gl.version}function js(){return ee.runtime.getManifest().version}var S8="";function po(){return S8||globalThis.navigator.userAgent}function Us(){return po().includes("ImtFxiOS")}function o2(){let t=po().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Wm(){return po().includes("ImtFxAndroid")}function s2(){let e=po();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function u2(){let t=po().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Hs(){let e=po();if(Us()||Wm()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var Zn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Gm={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},l2={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Vm={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Km={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function $(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Zn.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":Zn[a]}else return"auto";else return Zn[r]}function Ct(){return $(document?.documentElement?.lang||"en")}var c2=J+"SyncStoreKey_";function Ut(e,t){let n=c2+e;return ee.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function rt(e,t){let n=c2+e;return ee.storage.sync.set({[n]:t})}var d2=J+"StoreKey_";function ki(e,t){let n=d2+e;return ee.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function m2(e,t){let n=d2+e;return ee.storage.local.set({[n]:t})}var UH=g2(2),p2=g2(3);function g2(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var T8=/\s+/g,C8=/[\t\n\v\f\r ]+/g;function f2(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?w8:E8;return String(e).replace(t.style==="html"?C8:T8,t.trim?A8(n):n)}function w8(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function E8(){return" "}function A8(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var h2={}.hasOwnProperty;function k8(e){return e==null?"":f2(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function D8(e){return p2(" "+k8(e)+" ")}function L8(e){let t=D8(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function _8(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function O8(e,t,n,r){t=j8(t,n,r);let a=[],i;if(t)for(i in t)Vl.call(t,i)&&a.push([i,N8(e,t[i])]);return a.length===0?Qm():a.sort(U8)}function N8(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of J8){let u=s[1],l=s[0],c=e.match(u),d=c?c.length:0;o[l]=d,d>n&&(n=d,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?w2(e)?"zh-TW":"zh-CN":t:"auto"}var A2=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Jm=new Map(A2),Z8=new Map(A2.map(([e,t])=>[t,e]));function k2(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>Z8.get(s));!t&&t!==0&&(t=25);let a=Yl(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Jm.keys()]},o=v2(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(d=="eng"&&m<.95)break;return Jm.get(d)}}let[s,u]=o[0],l=Jm.get(s);if(l&&u>.9)return l}}catch(r){D.error(r)}return"auto"}function _a(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function X8(e,t){return e<>>32-t}function Jl(e,t,n,r,a,i){return _a(X8(_a(_a(t,e),_a(r,i)),a),n)}function gn(e,t,n,r,a,i,o){return Jl(t&n|~t&r,e,t,a,i,o)}function fn(e,t,n,r,a,i,o){return Jl(t&r|n&~r,e,t,a,i,o)}function hn(e,t,n,r,a,i,o){return Jl(t^n^r,e,t,a,i,o)}function bn(e,t,n,r,a,i,o){return Jl(n^(t|~r),e,t,a,i,o)}function Ql(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Zm(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=Ql(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=Ql(a.concat(Zm(t)),512+t.length*8),D2(Ql(i.concat(o),512+128))}function L2(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Xm(e){return unescape(encodeURIComponent(e))}function P2(e){return $8(Xm(e))}function tA(e){return L2(P2(e))}function M2(e,t){return eA(Xm(e),Xm(t))}function nA(e,t){return L2(M2(e,t))}function Xn(e,t,n){return t?n?M2(t,e):nA(t,e):n?P2(e):tA(e)}var Zl=["caiyun","cai"],R2=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],go={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:ie+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Cr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:ie+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: @@ -5479,8 +5479,8 @@ select.text-gray-6 { {{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:ie+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:ie+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function F2(e,t,n){let r=rA(e,t),a=[],i={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of r)(i.tempSentences.reduce((u,l)=>u+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function rA(e,t){let n=[],r=[];for(let a=0;a0?ht){let y=[];$m(b,t,y);for(let x=0;x0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$m(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:iA([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var Xl=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(Cr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&<()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Cr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=go);let h=ep(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function B2(e,t,n){return Xl(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:aA(r.config,n))}function aA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function I2(e,t,n="en",r){return Xl(e,t,n).find(o=>o.id===r)}function zs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function _2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function O2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Si.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function iA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var fo=[],Pq=1e3*3600*24;async function $l(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function N2(e){let t=`${_}-${e.service}@${e.from}->${e.to}`;return await uA(t,{...e,createAt:new Date().getTime()})}async function j2(e){let t=Zn(e.originalText),n=`${_}-${e.service}@${e.from}->${e.to}`;return await sA(n,t)}async function sA(e,t){let n=await $l(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function uA(e,t){let n=await $l(e);return(await U2()).includes(e)||await lA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function lA(e){let t="cache_list",n=await $l(_+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),fo.push(e)},a.onerror=i=>{n.close()}}async function U2(){if(fo&&fo.length>0)return fo;let e=await $l(_+"-cacheList","cache_list");return fo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),fo}async function H2(){try{let t=(await U2()).map(r=>cA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function cA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function at(){try{let e=[Le().EBOOK_BUILDER_URL,Le().EBOOK_VIEWER_URL,Le().SUBTITLE_BUILDER_URL,Le().HTML_VIEWER_URL,Le().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];ca()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ec="Original";function Ve(){return ec}function Pn(e){ec=e,z2(ec);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:ec})});document.dispatchEvent(t)}var q2="Original";function ho(){return q2}function cr(e,t){if(t)return;q2=e;let n=new CustomEvent(Ts,{detail:e});document.dispatchEvent(n)}var G2="auto",tc="auto",W2="auto";function V2(e){G2=e}function Xn(e){tc=e}function ct(){return tc!=="auto"?tc:W2!=="auto"?W2:G2}function nc(){return tc}var Ws=new Map,qr=class{fromType;logger;constructor(t,n=!1){this.logger=new Ns,n&&this.logger.setLevel("debug"),this.fromType=t,Ws.has(t)||(Ws.set(t,new Map),ee.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=np(s),{type:m,name:p}=d;if(m!==t)return!1;let g=np(o),b=Ws.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,x={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,x);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,x).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ws.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new tp(`${i}:${t}`,this.logger);return Ws.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},tp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=np(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ee.runtime.sendMessage(o);return K2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ee.tabs.sendMessage(i,o);return K2(o,s,this.logger)}}};function K2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function np(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ba(e){return e?.id?.endsWith("pdfWebPage")||!1}function Di(e){try{if(!e||!ba(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var _e={},zr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),rt(sr,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),rt(sr,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),rt(sr,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),rt(sr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ba(a?.rule)){let s=Di(a.rule);bo(!0,s||o);return}await _e.toggleTranslatePage(r),rt(sr,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),rt(sr,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),rt(sr,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),rt(sr,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),rt(sr,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(xl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(vs,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")at()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!at())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}})):n===D3&&await _e.translateSelectImage(a,r)}};function Y2(e){Object.assign(_e,e)}function Q2(e){Object.assign(_e,e)}function J2(e){Object.assign(_e,e)}var dA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=ct();return _e.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Xn(r),ct();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Di(a?.rule)}}},rc,ac;function Z2(){let e=ic();at()||mA(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function ic(){return rc||(rc=new qr("content_script",!1).getConnection("main",zr),rc)}function mA(){return ac||(ac=new qr("content_script",!1).getConnection("main_sync",dA,{sync:!0}),ac)}var pA=new Map;function oc(e){let t=gA(64),n=new CustomEvent(T3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{pA.set(t,(i,o)=>{i?a(i):r(o)})})}function gA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Z({url:sc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function fA(e,t){return Math.floor(Math.random()*(t-e+1))+e}var hA=30,ap="RATE_LIMITER_TICKS",yo=class e{static strictTicks={};static clearStrictTicks(){wr(ap,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Li(ap)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await wr(ap,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=fA(4,hA);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ut(e){return await ic().sendMessage("background:main",e)}function Z(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,va(e)):ut({method:"fetch",data:e})}function dr(){return ne()?wt():ut({method:"getConfig"})}function Ht(e){return ne()?ja(e):ut({method:"setUserConfig",data:e})}function Mt(){return ne()?yn():ut({method:"getUserConfig"})}function Mn(){return ne()?Vt():ut({method:"getLocalConfig"})}function xa(e){return ne()?Rt(e):ut({method:"setLocalConfig",data:e})}function X2(e){return ne()?mc(e):ut({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Yl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||lt()){if(e.translateService&&!Zl.includes(e.translateService))return Promise.resolve("auto");let r=k2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ut({method:"detectLanguage",data:e});return Promise.resolve(t)}function $2(){return ut({method:"detectTabLanguage"})}async function uc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(ne()||lt()){let n=e.substring(0,200);t=await ya.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function z2(e){let t=new CustomEvent(xi,{detail:e});if(document.dispatchEvent(t),ne())return;ic().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function eb(e){return ne()?j2(e):ut({method:"queryParagraphCache",data:e})}async function tb(e){if(ne()){await N2(e);return}return ut({method:"setParagraphCache",data:e})}async function nb(){if(ne())return Promise.resolve();await ut({method:"mockRequest"})}function Na(e=!1,t=""){return document.querySelector(`meta[name=${_}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):ut({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function lc(e=""){return ne()||lt()?Le().OPTIONS_URL:ee.runtime.getURL("options.html")}function ip(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function cc(e=!1){return ne()?(ee.extra.openAboutPage(e),Promise.resolve()):ut({method:"openAboutPage"})}function Wr(e){return ne()?(ee.extra.openInTab(e),Promise.resolve()):ut({method:"openInTab",data:e})}function rb(e=!1){return ne()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):ut({method:"openEbookViewerPage"})}function ab(e=!1){return ne()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):ut({method:"openEbookBuilderPage"})}function ib(e){lt()}function bo(e=!1,t){return ne()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):ut({method:"openPdfViewerPage",data:{url:t}})}function ob(e=!1){return ne()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):ut({method:"openSubtitleBuilderPage"})}function Gs(e){return ne()?Promise.resolve():ut({method:"setBadge",data:{text:e}})}function sb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ut({method:"autoSyncLatestConfig"})}function dc(e,t=!1){return ne()?ee.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function ub(e,t){return ne()||xe.MOCK==="1"?yo.getDelay(e,t):ut({method:"getDelay",data:{key:e,options:t}})}async function lb(){return ne()?!1:ut({method:"getIsSupportIsOnToolbar"})}async function cb(){return ne()?!1:ut({method:"getIsOnToolbar"})}async function op(){if(!ne())return ut({method:"updateVideoSubtitleStatus"})}function Vs({targetLanguage:e,text:t}){ne()||ut({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ks(){ne()||ut({method:"updateImageMenu"})}var db={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(b.length>t){let y=[];$m(b,t,y);for(let v=0;v0&&h{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&$m(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:f.i18n?.[r]?.name||f.name,value:f.id}))?.filter(f=>f.label&&f.value)||[];if(b.length>0){let f=[{label:"aiAssistant.common",value:"common"}];b.length>1&&f.push({label:"aiAssistant.auto",value:"auto"});let y={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:iA([...f,...b,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(y),o.props=[y]}}let g=[],h=[];if(l||d==="pro"&&(c=!1),p.length>0){p.forEach(f=>{m.length>0&&f.providers&&f.providers.length>0&&!f.providers.includes(d)||(f.optional?h.push(f):g.push(f))});let b=h.concat(g).filter(f=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(f.name,s.model,f.required)));if(b.length>0){for(let f of b)if(!s[f.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:d,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:h,explicitProps:g}}var Xl=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=ht(u),c=Object.keys(Cr);t!=="translationService"&&c.unshift("inherit");let d=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...d].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&<()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let g=Cr[p];e.config.translationServices[p]?.type=="custom-ai"&&(g=go);let h=ep(t,p,e,n);return p==="inherit"||p==e.config[t]||h?.ok&&e.config.rawUserConfig?.translationServices?.[p]||m(g,p)?h:null}).filter(p=>!!p);function m(p,g){let h=!!p.canary,b=!!p.alpha,f=!!p.beta;return g===e[t]||h&&o||b&&(a||o)||f&&(i||a||o)?!0:!b&&!f&&!h}};function B2(e,t,n){return Xl(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:aA(r.config,n))}function aA(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function I2(e,t,n="en",r){return Xl(e,t,n).find(o=>o.id===r)}function zs(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function _2(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function O2(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Si.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function iA(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var fo=[],Pq=1e3*3600*24;async function $l(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function N2(e){let t=`${_}-${e.service}@${e.from}->${e.to}`;return await uA(t,{...e,createAt:new Date().getTime()})}async function j2(e){let t=Xn(e.originalText),n=`${_}-${e.service}@${e.from}->${e.to}`;return await sA(n,t)}async function sA(e,t){let n=await $l(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function uA(e,t){let n=await $l(e);return(await U2()).includes(e)||await lA(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function lA(e){let t="cache_list",n=await $l(_+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),fo.push(e)},a.onerror=i=>{n.close()}}async function U2(){if(fo&&fo.length>0)return fo;let e=await $l(_+"-cacheList","cache_list");return fo=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),fo}async function H2(){try{let t=(await U2()).map(r=>cA(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function cA(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}function at(){try{let e=[Le().EBOOK_BUILDER_URL,Le().EBOOK_VIEWER_URL,Le().SUBTITLE_BUILDER_URL,Le().HTML_VIEWER_URL,Le().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+$t];ca()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var ec="Original";function Ve(){return ec}function Pn(e){ec=e,z2(ec);let t=new CustomEvent(It,{detail:JSON.stringify({type:"updatePageStatus",payload:ec})});document.dispatchEvent(t)}var q2="Original";function ho(){return q2}function dr(e,t){if(t)return;q2=e;let n=new CustomEvent(Ts,{detail:e});document.dispatchEvent(n)}var G2="auto",tc="auto",W2="auto";function V2(e){G2=e}function $n(e){tc=e}function ct(){return tc!=="auto"?tc:W2!=="auto"?W2:G2}function nc(){return tc}var Ws=new Map,qr=class{fromType;logger;constructor(t,n=!1){this.logger=new Ns,n&&this.logger.setLevel("debug"),this.fromType=t,Ws.has(t)||(Ws.set(t,new Map),ee.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let d=np(s),{type:m,name:p}=d;if(m!==t)return!1;let g=np(o),b=Ws.get(m).get(p);if(!b)return this.logger.debug(`no message handler for ${m}:${s}, but it's ok`),!1;let{messageHandler:f,sync:y}=b,v={type:t,name:g.name,id:u,url:l,active:c};if(y){try{let S=f(r.payload,v);i({ok:!0,data:S})}catch(S){i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.details,errorStatus:S.status})}return!1}else return f(r.payload,v).then(S=>{i({ok:!0,data:S})}).catch(S=>{i({ok:!1,errorName:S.name,errorMessage:S.message,errorDetails:S.message,errorStatus:S.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=Ws.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new tp(`${i}:${t}`,this.logger);return Ws.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},tp=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=np(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await ee.runtime.sendMessage(o);return K2(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await ee.tabs.sendMessage(i,o);return K2(o,s,this.logger)}}};function K2(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new U(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new U("noResponse","Unknown error")}function np(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function ba(e){return e?.id?.endsWith("pdfWebPage")||!1}function Di(e){try{if(!e||!ba(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var _e={},zr=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return _e.getIsDulSubtitle();if(n==="getPageStatus")return Ve();n==="updateContextState"&&await _e.updateContextState(r);let a=await _e.updateGlobalContext(),i=Date.now();if(D.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await _e.translateTheWholePage(r),rt(ur,i);else if(n==="translateTheMainPage")await _e.translateTheMainPage(r),rt(ur,i);else if(n==="translateToThePageEndImmediately")await _e.translateToThePageEndImmediately(r),rt(ur,i);else if(n==="toggleTranslateManga")await _e.toggleTranslateManga(),rt(ur,i);else if(n==="toggleTranslatePage"){let o=location.href;if(ba(a?.rule)){let s=Di(a.rule);bo(!0,s||o);return}await _e.toggleTranslatePage(r),rt(ur,i)}else if(n==="toggleTranslateTheWholePage")await _e.toggleTranslateTheWholePage(r),rt(ur,i);else if(n==="toggleTranslateTheMainPage")await _e.toggleTranslateTheMainPage(r),rt(ur,i);else if(n==="toggleOnlyTransation")await _e.ensureSwitchTranslationMode(r),rt(ur,i);else if(n=="toggleEnableEditTranslation")_e.toggleEnableEditTranslation();else if(n==="translatePage")await _e.translatePage(a,r),rt(ur,i);else if(n==="toggleTranslationMask")await _e.toggleTranslationMask(r);else if(n==="restorePage")_e.restorePage();else if(n==="retryFailedParagraphs")_e.retryFailedParagraphs();else if(n=="change_translate_service")_e.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await _e.switchTranslationMode(r.mode),await _e.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")_e.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(vl,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await _e.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(xs,{detail:r}));else if(n==="translateWithOpenAI")await _e.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await _e.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await _e.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await _e.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await _e.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await _e.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await _e.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await _e.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await _e.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")at()||await _e.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!at())return JSON.stringify(a);await pt(5e3)}else if(n==="inputSelectedTextTranslate")await _e.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return _e.popupEventReport(a,r);if(n==="updateFloatBallEnable")return _e.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}})):n===D3&&await _e.translateSelectImage(a,r)}};function Y2(e){Object.assign(_e,e)}function Q2(e){Object.assign(_e,e)}function J2(e){Object.assign(_e,e)}var dA=function(e,t){let{method:n,data:r}=e;if(D.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return Ve();if(n==="getCurrentPageLanguage"){let a=ct();return _e.detectCurrentPageLanguage().catch(i=>{D.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return $n(r),ct();if(n==="getContextString"){let a=_e.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=_e.getPureGlobalContext();return Di(a?.rule)}}},rc,ac;function Z2(){let e=ic();at()||mA(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function ic(){return rc||(rc=new qr("content_script",!1).getConnection("main",zr),rc)}function mA(){return ac||(ac=new qr("content_script",!1).getConnection("main_sync",dA,{sync:!0}),ac)}var pA=new Map;function oc(e){let t=gA(64),n=new CustomEvent(T3,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{pA.set(t,(i,o)=>{i?a(i):r(o)})})}function gA(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await Z({url:sc,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function fA(e,t){return Math.floor(Math.random()*(t-e+1))+e}var hA=30,ap="RATE_LIMITER_TICKS",yo=class e{static strictTicks={};static clearStrictTicks(){wr(ap,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Li(ap)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){D.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await wr(ap,JSON.stringify(this.strictTicks))}catch(a){D.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=fA(4,hA);await pt(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function ut(e){return await ic().sendMessage("background:main",e)}function Z(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):ut({method:"fetch",data:e})}function mr(){return ne()?wt():ut({method:"getConfig"})}function Ht(e){return ne()?ja(e):ut({method:"setUserConfig",data:e})}function Mt(){return ne()?yn():ut({method:"getUserConfig"})}function Mn(){return ne()?Vt():ut({method:"getLocalConfig"})}function va(e){return ne()?Rt(e):ut({method:"setLocalConfig",data:e})}function X2(e){return ne()?mc(e):ut({method:"setBuildinConfig",data:e})}async function Ie(e){if(e.text){let n=Yl(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(ne()||lt()){if(e.translateService&&!Zl.includes(e.translateService))return Promise.resolve("auto");let r=k2(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await ut({method:"detectLanguage",data:e});return Promise.resolve(t)}function $2(){return ut({method:"detectTabLanguage"})}async function uc(e){let t=await Ie({text:e,pageLangs:["en"]});try{if(ne()||lt()){let n=e.substring(0,200);t=await ya.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function z2(e){let t=new CustomEvent(vi,{detail:e});if(document.dispatchEvent(t),ne())return;ic().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function eb(e){return ne()?j2(e):ut({method:"queryParagraphCache",data:e})}async function tb(e){if(ne()){await N2(e);return}return ut({method:"setParagraphCache",data:e})}async function nb(){if(ne())return Promise.resolve();await ut({method:"mockRequest"})}function Na(e=!1,t=""){return document.querySelector(`meta[name=${_}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):ne()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):ut({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function lc(e=""){return ne()||lt()?Le().OPTIONS_URL:ee.runtime.getURL("options.html")}function ip(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function cc(e=!1){return ne()?(ee.extra.openAboutPage(e),Promise.resolve()):ut({method:"openAboutPage"})}function Wr(e){return ne()?(ee.extra.openInTab(e),Promise.resolve()):ut({method:"openInTab",data:e})}function rb(e=!1){return ne()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):ut({method:"openEbookViewerPage"})}function ab(e=!1){return ne()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):ut({method:"openEbookBuilderPage"})}function ib(e){lt()}function bo(e=!1,t){return ne()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):ut({method:"openPdfViewerPage",data:{url:t}})}function ob(e=!1){return ne()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):ut({method:"openSubtitleBuilderPage"})}function Gs(e){return ne()?Promise.resolve():ut({method:"setBadge",data:{text:e}})}function sb(){return ne()?(D.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):ut({method:"autoSyncLatestConfig"})}function dc(e,t=!1){return ne()?ee.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function ub(e,t){return ne()||ve.MOCK==="1"?yo.getDelay(e,t):ut({method:"getDelay",data:{key:e,options:t}})}async function lb(){return ne()?!1:ut({method:"getIsSupportIsOnToolbar"})}async function cb(){return ne()?!1:ut({method:"getIsOnToolbar"})}async function op(){if(!ne())return ut({method:"updateVideoSubtitleStatus"})}function Vs({targetLanguage:e,text:t}){ne()||ut({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Ks(){ne()||ut({method:"updateImageMenu"})}var db={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5492,7 +5492,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u548C\u5BFC\u822A\u6761\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F\u4E0E\u9876\u90E8\u5BFC\u822A\u83DC\u5355"};var mb={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F"};var mb={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5506,7 +5506,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u548C\u5C0E\u822A\u689D\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04\u8207\u9802\u90E8\u5C0E\u822A\u83DC\u55AE"};var pb={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u958B\u555F\u5074\u908A\u6B04\u7FFB\u8B6F"};var pb={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5519,7 +5519,7 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","subtitle.ytAIAsrProTooltip":"This feature is only available to Pro users, <1>click here to upgrade to a member.","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)"};var vA=[{code:"zh-CN",messages:db},{code:"zh-TW",messages:mb},{code:"en",messages:pb}],gb=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ua={};for(let e of vA)Ua[e.code]=e.messages;function SA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=CA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:_+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function fb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function TA(e,t,n,r){if(!Ua.hasOwnProperty(t)&&!Ua.hasOwnProperty(n))return e;let a=fb(Ua,t,e);return a===e&&t!==n&&(a=fb(Ua,n,e)),SA(a,r)}function CA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return TA(t,e,"en",n)}function hb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function bb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Si.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)",disableNavTranslate:"Close sidebar translation",enableNavTranslate:"Enable sidebar translation"};var xA=[{code:"zh-CN",messages:db},{code:"zh-TW",messages:mb},{code:"en",messages:pb}],gb=ne()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Ua={};for(let e of xA)Ua[e.code]=e.messages;function SA(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=CA(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:_+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let d=n.substring(u+s.length,c),m=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${d}`,`<${l} ${m}>${d}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function fb(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function TA(e,t,n,r){if(!Ua.hasOwnProperty(t)&&!Ua.hasOwnProperty(n))return e;let a=fb(Ua,t,e);return a===e&&t!==n&&(a=fb(Ua,n,e)),SA(a,r)}function CA(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return TA(t,e,"en",n)}function hb(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function bb(e){return new Date(e).getTime()}var U=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Si.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:kl,2:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:ie+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Si.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:_,href:Q3})];sp(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

@@ -5528,11 +5528,11 @@ To translate an image, right-click on any image and select 'Translate Image'. Ad

${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:_,href:Pl}));else{let d="";u=="AI"?d=X3:d=$3,o?l.push(r("proQuotaError.trail",{brandId:_,href:im})):l.push(r("proQuotaError.package",{brandId:_,href:d,translationService:u})),sp(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((d,m)=>`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function sp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||bb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:hb(i,"YYYY-MM-DD HH:mm:ss")}))}function pc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function yb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function xb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function gc(e){let{mimeType:t,base64:n}=wA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await pm(vb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await vb(e);return t}async function vb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=pc(e.body):r=="urlSearchParams"?a.body=yb(e.body):r=="blob"&&e.body&&(a.body=gc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of EA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` -`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){D.error("parse response failed",h)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*EA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,AA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Ys(e){return e.then(void 0,function(){}),e}function DA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function PA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function MA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ha(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function mr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function xo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function $n(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];xt(e,t),mr(e,RA),t[1]=e[0]>>>1,xt(e,t),mr(e,FA),t[1]=e[0]>>>1,xt(e,t)}var hc=[2277735313,289559509],bc=[1291169091,658871167],wb=[0,5],BA=[0,1390208809],IA=[0,944331445];function _A(e,t){var n=MA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function OA(e){var t;return fc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function NA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function jA(e){return typeof e!="function"}function UA(e,t){var n=Ys(new Promise(function(r){var a=Date.now();Sb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function qA(){var e=window,t=navigator;return er(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ob()}function vc(){var e=window,t=navigator;return er(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Dr(){var e=window,t=navigator;return er(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function fp(){var e=window,t=e.HTMLElement,n=e.Document;return er(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Qs(){var e=window;return NA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Nb(){var e,t,n=window;return er(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function zA(){var e=window;return er([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function WA(){var e=window;return er(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Js(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return er([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function GA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return er(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function VA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function KA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function hp(){var e=vc(),t=Nb(),n=window,r=navigator,a="connection";return e?er([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?er(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function YA(){return ZA()?-4:QA()}function QA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(JA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=XA(a),u=s[0],l=s[1],c=Ys(u.then(function(d){return $A(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function JA(){return Dr()&&!fp()&&!WA()}function ZA(){return Dr()&&Js()&&Qs()}function XA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Eb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Ib(g)&&Ys(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Eb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function $A(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function P7(){var e=new Date().getFullYear();return Math.max(kr(new Date(e,0,1).getTimezoneOffset()),kr(new Date(e,6,1).getTimezoneOffset()))}function M7(){try{return!!window.sessionStorage}catch{return!0}}function R7(){try{return!!window.localStorage}catch{return!0}}function F7(){if(!(Ob()||qA()))try{return!!window.indexedDB}catch{return!0}}function B7(){return!!window.openDatabase}function I7(){return navigator.cpuClass}function _7(){var e=navigator.platform;return e==="MacIntel"&&Dr()&&!fp()?GA()?"iPad":"iPhone":e}function O7(){return navigator.vendor||""}function N7(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function q7(){return Dr()||hp()}function z7(e){var t;return Er(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Ar(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},kb(r),u=0;u`${m+1}. ${d}`).join("
")}`;return r("errorReason",{message:c})}};function sp(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||bb(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:hb(i,"YYYY-MM-DD HH:mm:ss")}))}function pc(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function yb(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function vb(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function gc(e){let{mimeType:t,base64:n}=wA(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await pm(xb.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await xb(e);return t}async function xb(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=pc(e.body):r=="urlSearchParams"?a.body=yb(e.body):r=="blob"&&e.body&&(a.body=gc(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,d=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=d}let l;try{l=await o(t,a)}catch(c){D.debug("fetch error",t,c);let d=c.message||"Unknown Error";throw new U("fetchError",d).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new U("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),d=Object.fromEntries([...l.headers.entries()]),m=l.url;return m||(l.headers.get("X-Final-URL")?m=l.headers.get("X-Final-URL"):m=t),{body:c,headers:d,status:l.status,statusText:l.statusText,url:m}}else if(n==="base64"){let c=await l.blob(),d=new FileReader,m=new Promise((p,g)=>{d.onload=function(){let h=d.result;p(h)},d.onerror=function(){g(d.error)}});return d.readAsDataURL(c),m}else if(n==="stream"){let c="",d;if(l.body&&l.body instanceof ReadableStream)for await(let m of EA(l.body)){let p=new TextDecoder().decode(m);c+=p;let g;for(;(g=c.indexOf(` +`))>=0;){let h=c.slice(0,g).trim();if(c=c.slice(g+1),h.startsWith("event:")||h==="")continue;let b="";if(h.startsWith("data:")&&(b=h.slice(5).trim()),b==="[DONE]")break;let f;try{f=JSON.parse(b??"")}catch(y){D.debug("json error",y);continue}d=f}}return d}}else{let c;try{c=await l.text()}catch(h){D.error("parse response failed",h)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,500));let m=d,g=new URL(t).hostname.endsWith(`.${$t}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(m="bingAuth:"+d),g&&(d.includes("quota exceeded")&&(m="ProQuota:"+d),d.includes("translation quota reached")&&(m="NewProQuota:"+d)),new U("fetchError",m).initNetWork(l.status)}}async function*EA(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,AA()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function Ys(e){return e.then(void 0,function(){}),e}function DA(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function PA(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(m,p){o[m]=o[m]||[],o[m].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(d)u(d[1],(n=(t=d[4])!==null&&t!==void 0?t:d[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function MA(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ha(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i+l,m+=p>>>16,p&=65535,m+=a+u,d+=m>>>16,m&=65535,d+=r+s,c+=d>>>16,d&=65535,c+=n+o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function pr(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,d=0,m=0,p=0;p+=i*l,m+=p>>>16,p&=65535,m+=a*l,d+=m>>>16,m&=65535,m+=i*u,d+=m>>>16,m&=65535,d+=r*l,c+=d>>>16,d&=65535,d+=a*u,c+=d>>>16,d&=65535,d+=i*s,c+=d>>>16,d&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|d,e[1]=m<<16|p}function vo(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function er(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];vt(e,t),pr(e,RA),t[1]=e[0]>>>1,vt(e,t),pr(e,FA),t[1]=e[0]>>>1,vt(e,t)}var hc=[2277735313,289559509],bc=[1291169091,658871167],wb=[0,5],BA=[0,1390208809],IA=[0,944331445];function _A(e,t){var n=MA(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function OA(e){var t;return fc({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function NA(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function jA(e){return typeof e!="function"}function UA(e,t){var n=Ys(new Promise(function(r){var a=Date.now();Sb(e.bind(null,t),function(){for(var i=[],o=0;o=4}function qA(){var e=window,t=navigator;return tr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ob()}function xc(){var e=window,t=navigator;return tr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Dr(){var e=window,t=navigator;return tr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function fp(){var e=window,t=e.HTMLElement,n=e.Document;return tr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Qs(){var e=window;return NA(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Nb(){var e,t,n=window;return tr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function zA(){var e=window;return tr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function WA(){var e=window;return tr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Js(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return tr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function GA(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return tr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function VA(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function KA(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function hp(){var e=xc(),t=Nb(),n=window,r=navigator,a="connection";return e?tr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?tr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function YA(){return ZA()?-4:QA()}function QA(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(JA())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=XA(a),u=s[0],l=s[1],c=Ys(u.then(function(d){return $A(d.getChannelData(0).subarray(n))},function(d){if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return function(){return l(),c}}function JA(){return Dr()&&!fp()&&!WA()}function ZA(){return Dr()&&Js()&&Qs()}function XA(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,d=0;e.oncomplete=function(g){return s(g.renderedBuffer)};var m=function(){setTimeout(function(){return u(Eb("timeout"))},Math.min(r,d+a-Date.now()))},p=function(){try{var g=e.startRendering();switch(Ib(g)&&Ys(g),e.state){case"running":d=Date.now(),l&&m();break;case"suspended":document.hidden||c++,l&&c>=t?u(Eb("suspended")):setTimeout(p,n);break}}catch(h){u(h)}};p(),i=function(){l||(l=!0,d>0&&m())}});return[o,i]}function $A(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function P7(){var e=new Date().getFullYear();return Math.max(kr(new Date(e,0,1).getTimezoneOffset()),kr(new Date(e,6,1).getTimezoneOffset()))}function M7(){try{return!!window.sessionStorage}catch{return!0}}function R7(){try{return!!window.localStorage}catch{return!0}}function F7(){if(!(Ob()||qA()))try{return!!window.indexedDB}catch{return!0}}function B7(){return!!window.openDatabase}function I7(){return navigator.cpuClass}function _7(){var e=navigator.platform;return e==="MacIntel"&&Dr()&&!fp()?GA()?"iPad":"iPhone":e}function O7(){return navigator.vendor||""}function N7(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];td.length*.6}),s.sort(),[2,s]}})})}function q7(){return Dr()||hp()}function z7(e){var t;return Er(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Ar(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},kb(r),u=0;u')}function ak(){return navigator.pdfViewerEnabled}function ik(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ok(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(sk())return-3;try{return e.canMakePayments()?1:0}catch(t){return uk(t)}}var sk=n7;function uk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function lk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Ub=-1,Hb=-2,ck=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),mk=["FRAGMENT_SHADER","VERTEX_SHADER"],pk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],qb="WEBGL_debug_renderer_info",gk="WEBGL_polygon_mode";function fk(e){var t,n,r,a,i,o,s=e.cache,u=zb(s);if(!u)return Ub;if(!Gb(u))return Hb;var l=Wb()?null:u.getExtension(qb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function hk(e){var t=e.cache,n=zb(t);if(!n)return Ub;if(!Gb(n))return Hb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Bb,"/npm-monitoring"),!0),e.send()}catch{}}function Fk(e){var t;return e===void 0&&(e={}),Er(this,void 0,void 0,function(){var n,r,a;return Ar(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Rk(),n=e.delayFallback,r=e.debug,[4,Pk(n)];case 1:return i.sent(),a=Tk({cache:{},debug:r}),[2,Mk(a,r)]}})})}var bp={load:Fk,hashComponents:Vb,componentsToDebugString:Dk};async function Zs(){let e=await Ut("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Ut("installedAt","");return n||(n=await ki("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await _k(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var Bk=10;async function To(){let e=await Ut("userTag","");if(e)return e;let{fakeUserId:t}=await Zs(),r=t.charCodeAt(0)%Bk;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Ik(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Ok(i,e)}catch{return Ik(64)}}function Ok(e,t=32){let n="";for(let a=0;a{}),wc)}async function Xs(e,t){try{let n=Le(),r=n.INSTALL_FROM==="firefox_store";if(Hs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=at(),s=n.PROD==="1",u=pn(),l=new Date,{fakeUserId:c,installedAt:d}=await Zs(),m=await To(),p=await Co(),g=await wo(),h=new Date(d),b=qa(h),f=qa(l),y=b===f,x=24*60*60*1e3,S=l.getTime()-h.getTime()<7*x,T=l.getTime()-h.getTime()<30*x,C=l.getTime()-h.getTime()<365*x,w=Ml(),E="";typeof navigator<"u"&&(E=window.navigator.userAgent);let k=lo.parse(E),P=e.map(F=>{let M=F.params||{};if(k.os&&(M.os_name=k.os.name||"unknown",M.os_version=k.os.version||"unknown",M.os_version_name=k.os.versionName||"unknown"),k.browser){M.browser_name=k.browser.name||"unknown",M.browser_version=k.browser.version||"unknown";let I=Hs();I&&(M.browser_name=I.name,M.browser_version=I.version)}if(k.platform&&(M.platform_type=k.platform.type||"unknown"),k.engine&&(M.engine_name=k.engine.name||"unknown",M.engine_version=k.engine.version||"unknown"),u&&(M.version=u),n.INSTALL_FROM&&(M.install_from=n.INSTALL_FROM),b){M.install_day=Sc(h);let I=Cc(h);M.install_week=`${I.year}${I.week}`}return M.userscript=i.toString(),y?M.is_new_user_today="1":M.is_new_user_today="0",M.is_new_user_this_week=S?"1":"0",M.is_new_user_this_month=T?"1":"0",M.is_new_user_this_year=C?"1":"0",o?M.main_frame=0:M.main_frame=1,m&&(M.ab_tag=m),p&&(M.ab_group=p),M.campaign=g||"none",{...F,params:M}});w.forEach(async F=>{let M=await $s({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:P})})}),t&&Uk(c,P)}catch{}}async function jk(e){return await Nk().sendMessage("background:main",e)}function $s(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,va(e)):jk({method:"fetch",data:e})}function Uk(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Tc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);$s({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Ec={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function G7(){for(var e=0,t=["rec2020","p3","srgb"];e')}function ak(){return navigator.pdfViewerEnabled}function ik(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function ok(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(sk())return-3;try{return e.canMakePayments()?1:0}catch(t){return uk(t)}}var sk=n7;function uk(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function lk(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Ub=-1,Hb=-2,ck=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dk=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),mk=["FRAGMENT_SHADER","VERTEX_SHADER"],pk=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],qb="WEBGL_debug_renderer_info",gk="WEBGL_polygon_mode";function fk(e){var t,n,r,a,i,o,s=e.cache,u=zb(s);if(!u)return Ub;if(!Gb(u))return Hb;var l=Wb()?null:u.getExtension(qb);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function hk(e){var t=e.cache,n=zb(t);if(!n)return Ub;if(!Gb(n))return Hb;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,d=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Bb,"/npm-monitoring"),!0),e.send()}catch{}}function Fk(e){var t;return e===void 0&&(e={}),Er(this,void 0,void 0,function(){var n,r,a;return Ar(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&Rk(),n=e.delayFallback,r=e.debug,[4,Pk(n)];case 1:return i.sent(),a=Tk({cache:{},debug:r}),[2,Mk(a,r)]}})})}var bp={load:Fk,hashComponents:Vb,componentsToDebugString:Dk};async function Zs(){let e=await Ut("fakeUserId","");e||(e=await ki("fakeUserId",""),e&&await rt("fakeUserId",e));let t=new Date,n=await Ut("installedAt","");return n||(n=await ki("installedAt",""),n&&await rt("installedAt",n)),e?n||(n=new Date(0).toISOString(),await rt("installedAt",n)):(e=await _k(64),await rt("fakeUserId",e)),n||(n=t.toISOString(),await rt("installedAt",n)),{fakeUserId:e,installedAt:n}}var Bk=10;async function To(){let e=await Ut("userTag","");if(e)return e;let{fakeUserId:t}=await Zs(),r=t.charCodeAt(0)%Bk;return e=String.fromCharCode(r+"a".charCodeAt(0)),await rt("userTag",e),e}function Ik(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):Ok(i,e)}catch{return Ik(64)}}function Ok(e,t=32){let n="";for(let a=0;a{}),wc)}async function Xs(e,t){try{let n=Le(),r=n.INSTALL_FROM==="firefox_store";if(Hs()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=ne(),o=at(),s=n.PROD==="1",u=pn(),l=new Date,{fakeUserId:c,installedAt:d}=await Zs(),m=await To(),p=await Co(),g=await wo(),h=new Date(d),b=qa(h),f=qa(l),y=b===f,v=24*60*60*1e3,S=l.getTime()-h.getTime()<7*v,T=l.getTime()-h.getTime()<30*v,C=l.getTime()-h.getTime()<365*v,w=Ml(),E="";typeof navigator<"u"&&(E=window.navigator.userAgent);let k=lo.parse(E),P=e.map(F=>{let M=F.params||{};if(k.os&&(M.os_name=k.os.name||"unknown",M.os_version=k.os.version||"unknown",M.os_version_name=k.os.versionName||"unknown"),k.browser){M.browser_name=k.browser.name||"unknown",M.browser_version=k.browser.version||"unknown";let I=Hs();I&&(M.browser_name=I.name,M.browser_version=I.version)}if(k.platform&&(M.platform_type=k.platform.type||"unknown"),k.engine&&(M.engine_name=k.engine.name||"unknown",M.engine_version=k.engine.version||"unknown"),u&&(M.version=u),n.INSTALL_FROM&&(M.install_from=n.INSTALL_FROM),b){M.install_day=Sc(h);let I=Cc(h);M.install_week=`${I.year}${I.week}`}return M.userscript=i.toString(),y?M.is_new_user_today="1":M.is_new_user_today="0",M.is_new_user_this_week=S?"1":"0",M.is_new_user_this_month=T?"1":"0",M.is_new_user_this_year=C?"1":"0",o?M.main_frame=0:M.main_frame=1,m&&(M.ab_tag=m),p&&(M.ab_group=p),M.campaign=g||"none",{...F,params:M}});w.forEach(async F=>{let M=await $s({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:P})})}),t&&Uk(c,P)}catch{}}async function jk(e){return await Nk().sendMessage("background:main",e)}function $s(e){return dl()?oc({method:"request",data:e}):ne()||cl()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):jk({method:"fetch",data:e})}function Uk(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=Tc(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);$s({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var Ec={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5775,19 +5775,19 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{sideHead:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{sideHead:"1","default-translate":"no"},nav:{sideHead:"1","default-translate":"no"}},navHeadEnableTranslate:!0,selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.5]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ"],translationMode:"translation"},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` `},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"}},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"im.zendesk",matches:"https://immersivetranslate.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"],"excludeSelectors.add":["blockquote"]},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{generalSetting:{startKey:"start",endKey:"end",textKey:"text",timeDivisor:1e3},attachRule:{appendSelector:".video-wrapper",injectedGlobalCSS:[".closed-captions {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 15%;}"]}}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};var Qb="userConfig",Ac="userPromptPool",kc="userObjectPool";async function Dc(){let e=await ty(Qb)||{},t=await Li(Ac)||{},n=await Li(kc)||{};return qk(e,t,n)}async function Jb(e){let{userConfig:t,promptPool:n,objectPool:r}=await yp(e);await ey(Qb,t),await wr(Ac,n),await wr(kc,r)}function yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Zb(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Xb(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function qk(e,t,n){return Zb(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Xb(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Zb(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Xb(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function za(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=$b(r);for(let o of i)delete a[o]}),n}function xp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=$b(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function $b(e){let t=Cr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=go.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function ry(){if(xe.PROD==="1")return{};let e={};if(xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(xe.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=xe.DEEPL_PROXY_ENDPOINT),xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}xe.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=xe.IMMERSIVE_TRANSLATE_SERVICE);let t={};return xe.DEBUG==="1"&&(t.debug=!0,t.cache=!1),xe.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await ee.storage.local.get(Ss);if(e[Ss]){let t=e[Ss],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await ee.storage.local.set({[Ss]:e})}async function mc(e){await ee.storage.local.set({[Sl]:e})}async function ay(){return xe.DEBUG==="1"?void 0:(await ee.storage.local.get(Sl))[Sl]}async function Lc(){let e=await ay(),n={...await vp(),...Ec,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function wt(){let e=await ay(),t={...Ec,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let N=new Date(e.buildinConfigUpdatedAt),B=new Date(t.buildinConfigUpdatedAt);N>B&&(t=e)}let n=await Gk(t);t.targetLanguage=n;let r=await mt.get(dt,null),a={};if(!ne()&&ee.commands&&ee.commands.getAll){let N=await ee.commands.getAll();for(let B of N)B.name&&B.shortcut&&(a[B.name]=B.shortcut)}let i=await vp(),o=ry(),s=await yn(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Vt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let N=await zk();d.interfaceLanguage=N}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await ki("translage_page_daily",0)),w=Number(await Ut(sr,0)),E;w>0&&(Date.now()-w0&&(Date.now()-C0){let N=l.tempTranslationUrlMatches.filter(B=>new Date(B.expiredAt)>c);if(N.length>0){let B=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(B)?B:[B],G=Array.from(new Set(j.concat(N.map(z=>z.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:G}}}let M=Object.assign(i,t);Gr({rule:t,valueIsArray:N=>Array.isArray(i[N]),getMergedValue:N=>i[N],onMergedResult:(N,B)=>{N!="generalRule"&&(M[N]=B)}}),Gr({rule:t.generalRule,valueIsArray:N=>Array.isArray(i.generalRule[N]),getMergedValue:N=>i.generalRule[N],onMergedResult:(N,B)=>{M.generalRule[N]=B}}),Yk(M,T),Vk(r,d,M);let I=Object.keys(M),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let N of I){let B=N;if(B==="generalRule")typeof d[B]=="object"&&(M[B]=Mc(M[B],d[B]));else if(B==="translationServices")Kk(d,M);else if(typeof d[B]!="string"&&typeof d[B]!="boolean"&&typeof d[B]!="number"&&L.includes(B))d[B]&&(M[B]=Object.assign(M[B],d[B])),B==="shortcuts"&&(ne()||lt()?M[B]={...M[B],...a}:M[B]={...a});else if(B==="rules"){if(Array.isArray(d[B])){let j=M.rules||[],G={};for(let ue of j)ue.id&&(G[ue.id]=ue);let z=d[B].map(ue=>ue.id&&G[ue.id]?sy(M.generalRule,G[ue.id],ue):ue);M[B]=[...z,...M[B]]}if(xe.PROD==="0"&&xe.DEV_RULES){let j=JSON.parse(xe.DEV_RULES);M[B]=[...j,...M[B]]}}else d[B]!==void 0&&(M[B]=d[B])}return M.donateUrl=t.donateUrl,M.minVersion=t.minVersion,M.feedbackUrl=t.feedbackUrl,M.rawUserConfig=s,M}function yn(){return Dc()}function ja(e){return Jb(e)}async function ey(e,t){await ee.storage.sync.set({[e]:t})}async function ty(e){return(await ee.storage.sync.get(e))[e]}async function wr(e,t){await ee.storage.local.set({[e]:t})}async function Li(e){return(await ee.storage.local.get(e))[e]}var iy={};function Pc(e){return iy[e]}function oy(e,t){iy[e]=t}var zk=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>gb.find(a=>a===r));return n||"en"},vp=async()=>{let e={...Ec,buildinConfigUpdatedAt:xe.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function Wk(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function Gk(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=ny(l,r[s]))}),Gr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=ny(l,n[s]))}),Gr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function Yk(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function ny(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Sp(e){return e.replace(//g,">")}var Rc=!1,Qk=ne();function uy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function Jk(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&ly(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Wa(i,Cl)){if(a===!0)return!0;continue}if(eu(i.nodeName,t.inlineTags))return!0;if(!Tp(i,t))return!1}}return!0}function Cp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(eu(e.nodeName,n)||Tp(e,t)){if(Wa(e,O3)||eu(e.nodeName,["BR"]))return!1;if(Wa(e,Cl))return!0;if(Tp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return Jk(e,t)}else return Wa(e,Cl);return!1}function ly(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Wa(e,_3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Wa(e,k3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||eu(e.nodeName,i))}function Fc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!dy(r)&&r.length>=n}function cy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(dy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function dy(e){for(let t=0;t127)return!1;return!0}function my(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function py(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function gy(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function fy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function hy(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Wa(e,t,n=!1){return wp(e,t,"1",n)}function wp(e,t,n,r=!1){return Rc&&!r?e[Kn]?e[Kn]?.[t]===n:!1:e.dataset?.[t]===n}function Eo(e){return(e.innerText||e.textContent||"").trim()}function Ep(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Bc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Rc&&!r?(e[Kn]||(e[Kn]={}),e[Kn][t]||(e[Kn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function by(e,t,n=!1){if(Rc&&!n){if(!e[Kn]||!e[Kn][t])return;delete e[Kn][t]}else delete e.dataset[t]}function yy(e,t,n=!1){return Rc&&!n?!e[Kn]||!e[Kn][t]?void 0:e[Kn][t]:e.dataset[t]}function Tp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!eu(e.nodeName,n)}function De(){if(!globalThis||!globalThis.location)return"https://example.com";if(!at())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Fn(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Ga(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(Qk){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${_}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function eu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function xy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function vy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ly(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Sy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Ty(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var wy=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(wy=!0)});function Ic(){return wy}var pr=Cy;function Ay(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(Xk(t,o))return"";i=Ey(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(b=>{let f=Ey(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";return}u=f,l+=g(b)||""}),h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};var Qb="userConfig",Ac="userPromptPool",kc="userObjectPool";async function Dc(){let e=await ty(Qb)||{},t=await Li(Ac)||{},n=await Li(kc)||{};return qk(e,t,n)}async function Jb(e){let{userConfig:t,promptPool:n,objectPool:r}=await yp(e);await ey(Qb,t),await wr(Ac,n),await wr(kc,r)}function yp(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Zb(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),Xb(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function qk(e,t,n){return Zb(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),Xb(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Zb(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function Xb(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function za(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=$b(r);for(let o of i)delete a[o]}),n}function vp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=$b(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function $b(e){let t=Cr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=go.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function ry(){if(ve.PROD==="1")return{};let e={};if(ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:ve.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:ve.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:ve.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:ve.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:ve.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:ve.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(ve.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:ve.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(ve.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=ve.DEEPL_PROXY_ENDPOINT),ve.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=ve.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),ve.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:ve.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}ve.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=ve.IMMERSIVE_TRANSLATE_SERVICE);let t={};return ve.DEBUG==="1"&&(t.debug=!0,t.cache=!1),ve.MOCK==="1"&&(t.translationService="mock"),t}async function Vt(){let e=await ee.storage.local.get(Ss);if(e[Ss]){let t=e[Ss],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await Rt(i),i}else return{}}async function Rt(e){await ee.storage.local.set({[Ss]:e})}async function mc(e){await ee.storage.local.set({[Sl]:e})}async function ay(){return ve.DEBUG==="1"?void 0:(await ee.storage.local.get(Sl))[Sl]}async function Lc(){let e=await ay(),n={...await xp(),...Ec,buildinConfigUpdatedAt:ve.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function wt(){let e=await ay(),t={...Ec,buildinConfigUpdatedAt:ve.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let N=new Date(e.buildinConfigUpdatedAt),B=new Date(t.buildinConfigUpdatedAt);N>B&&(t=e)}let n=await Gk(t);t.targetLanguage=n;let r=await mt.get(dt,null),a={};if(!ne()&&ee.commands&&ee.commands.getAll){let N=await ee.commands.getAll();for(let B of N)B.name&&B.shortcut&&(a[B.name]=B.shortcut)}let i=await xp(),o=ry(),s=await yn(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Vt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let N=await zk();d.interfaceLanguage=N}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let v=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,v=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ut("installedAt",""),C=Number(await ki("translage_page_daily",0)),w=Number(await Ut(ur,0)),E;w>0&&(Date.now()-w0&&(Date.now()-C0){let N=l.tempTranslationUrlMatches.filter(B=>new Date(B.expiredAt)>c);if(N.length>0){let B=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],j=Array.isArray(B)?B:[B],G=Array.from(new Set(j.concat(N.map(z=>z.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:G}}}let M=Object.assign(i,t);Gr({rule:t,valueIsArray:N=>Array.isArray(i[N]),getMergedValue:N=>i[N],onMergedResult:(N,B)=>{N!="generalRule"&&(M[N]=B)}}),Gr({rule:t.generalRule,valueIsArray:N=>Array.isArray(i.generalRule[N]),getMergedValue:N=>i.generalRule[N],onMergedResult:(N,B)=>{M.generalRule[N]=B}}),Yk(M,T),Vk(r,d,M);let I=Object.keys(M),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let N of I){let B=N;if(B==="generalRule")typeof d[B]=="object"&&(M[B]=Mc(M[B],d[B]));else if(B==="translationServices")Kk(d,M);else if(typeof d[B]!="string"&&typeof d[B]!="boolean"&&typeof d[B]!="number"&&L.includes(B))d[B]&&(M[B]=Object.assign(M[B],d[B])),B==="shortcuts"&&(ne()||lt()?M[B]={...M[B],...a}:M[B]={...a});else if(B==="rules"){if(Array.isArray(d[B])){let j=M.rules||[],G={};for(let ue of j)ue.id&&(G[ue.id]=ue);let z=d[B].map(ue=>ue.id&&G[ue.id]?sy(M.generalRule,G[ue.id],ue):ue);M[B]=[...z,...M[B]]}if(ve.PROD==="0"&&ve.DEV_RULES){let j=JSON.parse(ve.DEV_RULES);M[B]=[...j,...M[B]]}}else d[B]!==void 0&&(M[B]=d[B])}return M.donateUrl=t.donateUrl,M.minVersion=t.minVersion,M.feedbackUrl=t.feedbackUrl,M.rawUserConfig=s,M}function yn(){return Dc()}function ja(e){return Jb(e)}async function ey(e,t){await ee.storage.sync.set({[e]:t})}async function ty(e){return(await ee.storage.sync.get(e))[e]}async function wr(e,t){await ee.storage.local.set({[e]:t})}async function Li(e){return(await ee.storage.local.get(e))[e]}var iy={};function Pc(e){return iy[e]}function oy(e,t){iy[e]=t}var zk=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(r){D.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>gb.find(a=>a===r));return n||"en"},xp=async()=>{let e={...Ec,buildinConfigUpdatedAt:ve.BUILD_TIME};return{...e,targetLanguage:Ra,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function Wk(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function Gk(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Ra;let n=await Ut("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=ny(l,r[s]))}),Gr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=ny(l,n[s]))}),Gr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function Yk(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){D.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function ny(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}function Sp(e){return e.replace(//g,">")}var Rc=!1,Qk=ne();function uy(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function Jk(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&ly(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(Wa(i,Cl)){if(a===!0)return!0;continue}if(eu(i.nodeName,t.inlineTags))return!0;if(!Tp(i,t))return!1}}return!0}function Cp(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(eu(e.nodeName,n)||Tp(e,t)){if(Wa(e,O3)||eu(e.nodeName,["BR"]))return!1;if(Wa(e,Cl))return!0;if(Tp(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return Jk(e,t)}else return Wa(e,Cl);return!1}function ly(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&Wa(e,_3,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&Wa(e,k3))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||eu(e.nodeName,i))}function Fc(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!dy(r)&&r.length>=n}function cy(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(dy(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function dy(e){for(let t=0;t127)return!1;return!0}function my(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function py(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function gy(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function fy(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function hy(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function Wa(e,t,n=!1){return wp(e,t,"1",n)}function wp(e,t,n,r=!1){return Rc&&!r?e[Yn]?e[Yn]?.[t]===n:!1:e.dataset?.[t]===n}function Eo(e){return(e.innerText||e.textContent||"").trim()}function Ep(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Bc(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function Et(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Rc&&!r?(e[Yn]||(e[Yn]={}),e[Yn][t]||(e[Yn][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function by(e,t,n=!1){if(Rc&&!n){if(!e[Yn]||!e[Yn][t])return;delete e[Yn][t]}else delete e.dataset[t]}function yy(e,t,n=!1){return Rc&&!n?!e[Yn]||!e[Yn][t]?void 0:e[Yn][t]:e.dataset[t]}function Tp(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!eu(e.nodeName,n)}function De(){if(!globalThis||!globalThis.location)return"https://example.com";if(!at())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Fn(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){D.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else D.warn("injectCSS failed, rootDocument does not have head node",e)}function Ga(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(Qk){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${_}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function eu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function vy(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function xy(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ly(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return D.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function Sy(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function Ty(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.widthe,createScript:e=>e})}catch{}var wy=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(wy=!0)});function Ic(){return wy}var Nn=Cy;function Ay(e,t,n,r,a){if(!e)return"";for(let b of r||[])if(t?.querySelector(b))return"";let i=n[0],o=n[n.length-1];if(Xk(t,o))return"";i=Ey(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(b=>{let f=Ey(t,b);if(c+=g(b),u&&f!=u){h(),u=f,l=g(b)||"";return}u=f,l+=g(b)||""}),h();let d=p(c),m=p(t.textContent||"");if(d==m&&t.innerText.split(` `).filter(b=>!!b.trim()).length>1)return t.innerHTML;return s;function p(b){return b.replace(/\s+/g,"")}function g(b){return b instanceof HTMLElement?b.innerText:b?.textContent||""}function h(){let b=p(g(u)),f=p(l);if(b==f){let y=g(u).replace(/ */g,"");if(!c.startsWith(` `)&&y?.startsWith(` `)||!c.endsWith(` `)&&y?.endsWith(` -`)){s+=l;return}s+=Fy(u,a)}else s+=l}}function ky(e,t,n,r,a){return!e||!t?"":t.replace(Fy(n,a)||"",r)}var Ap=globalThis.document?.createElement("div");function Zk(e){return Ap?(Ap.innerHTML=pr?.createHTML(e)||e,Ap?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Dy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||Zk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Ly(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function Py(e,t,n,r){let a="";return n?a=My(e,t,n):a=Ry(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function My(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?My(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Ry(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Ry(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Fy(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=Fy(u,a)}else s+=l}}function ky(e,t,n,r,a){return!e||!t?"":t.replace(Fy(n,a)||"",r)}var Ap=globalThis.document?.createElement("div");function Zk(e){return Ap?(Ap.innerHTML=Nn?.createHTML(e)||e,Ap?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Dy(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||Zk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Ly(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function Py(e,t,n,r){let a="";return n?a=My(e,t,n):a=Ry(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function My(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?My(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function Ry(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Ry(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function Fy(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` `)<0?r=nt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=nt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function Xk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ey(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function _c(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function kp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Gr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function By(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?kp(e.rule):e.rule}function Oc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var $k=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function tr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Vr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(tr(e,i))return!1;if(tr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!tr(e,o)),c;function d(){return n&&n.display?!!$k.includes(n.display):tr(e,r)}}var At=tr;function Mi(e){return!!e.shadowRoot}function Va(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function tu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Kr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Pi(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Kr(n,t)}function ko(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Dp(e){let{rule:t}=e,n=eD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function eD(e){let t=e.config.loadingTheme;return`${_}-loading-${t}`}function nu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Pt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,B3,t.toString());let i=Dp(e);return a.append(n?" ...":nt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${$d}='${t}']`)}function Iy(){document.querySelectorAll(`[${$d}]`).forEach(t=>{t.remove()})}function _y(){document.querySelectorAll(`.${Pt}-error`).forEach(t=>{t.remove()})}function Oy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ga(n)&&t.push(n)}),t}function Lp(e,t){return t?tD(e):nD(e)}function tD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Ny(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Sp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function nD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Ny(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Sp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Pp(e,t){return t?rD(e):aD(e)}function rD(e){let{text:t,variables:n}=e,r=Oc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function aD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Ny(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||hy(l)||my(l)||fy(l)||py(l)||gy(l)||oD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Fc(i?.trim(),n,r)}function Ri(e){return e.nodeType===Node.ELEMENT_NODE}function jy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Ut("fakeUserId","")}async function iD(){return await Ut("installedAt","")}async function jc(e,t){let r=Le().INSTALL_FROM,a=pn(),i=await iD(),o=await Lr(),s=await wt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await To(),m=await wo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await Co();return g&&(p.abGroup=g),p}function ru(e,t){let[n,r]=V();return re(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!lt()&&ne()||We().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=sD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function sD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Hy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function qy(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Nc[e]=setTimeout(()=>{n("")},t)})}function Wy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ka(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Hc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Fi(){return Wm()?"imtAndroid":Us()?"imtIOS":ne()?"userscript":lt()?"safari":Gn()?"firefox":o3()?"chrome":"other"}function Yr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function qc(e){return e?.getAttribute("imt-state")||""}function Qr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function zc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(tr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Gy(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Qa(e){if(e.beta)return!1;if(lt()&&e.spVersion)return Ya(js(),e.spVersion);if(s2()&&e.gspVersion){let t=u2();if(t)return Ya(t,e.gspVersion)}if(Us()&&e.ispVersion){let t=o2();if(t)return Ya(t,e.ispVersion)}return!1}function Ya(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Fp(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),Ks())}async function Vy(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),uD(a.toString())}function uD(e){try{lt()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ky(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Yy(e){return ht(e)}function Wc(e){return Array.isArray(e)?e:e?[e]:[]}function Gc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Qy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Mc(e,t){let n={...e};return $y(n,t),lD(n,t),n}function sy(e,t,n){let r={...e};return Gr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Gr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function lD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;$y(e,a)}function Gr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Jy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=Jy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Wc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Zy(u))return;d=Bp(c,l)}else if(s=="remove_v"){if(!Zy(u))return;d=Xy(c,l)}else s==="add"?d=Bp(c,l):s=="remove"&&(d=Xy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Bp(c,l):d=l,r(o,d)})}function $y(e,t){return Gr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Bp(e,t){let n;if(Array.isArray(e)){let r=Wc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Jy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Zy(e){let t=pn();return e&&Ya(t,e)}function Xy(e,t){if(Array.isArray(e)){let n=Wc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Mo="input is invalid type",Ip=typeof window=="object",Ja=Ip?window:{};Ja.JS_SHA256_NO_WINDOW&&(Ip=!1);var cD=!Ip&&typeof self=="object",dD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;dD?Ja=global:cD&&(Ja=self);var BV=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,IV=typeof define=="function"&&define.amd,au=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),mD=[-2147483648,8388608,32768,128],Pr=[24,16,8,0],Kc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Yc=["hex","array","digest","arrayBuffer"],nn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});au&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var e9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},n9=function(e){var t=e9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=mD[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+Kc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Kc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Kc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+Kc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=pe[e>>28&15]+pe[e>>24&15]+pe[e>>20&15]+pe[e>>16&15]+pe[e>>12&15]+pe[e>>8&15]+pe[e>>4&15]+pe[e&15]+pe[t>>28&15]+pe[t>>24&15]+pe[t>>20&15]+pe[t>>16&15]+pe[t>>12&15]+pe[t>>8&15]+pe[t>>4&15]+pe[t&15]+pe[n>>28&15]+pe[n>>24&15]+pe[n>>20&15]+pe[n>>16&15]+pe[n>>12&15]+pe[n>>8&15]+pe[n>>4&15]+pe[n&15]+pe[r>>28&15]+pe[r>>24&15]+pe[r>>20&15]+pe[r>>16&15]+pe[r>>12&15]+pe[r>>8&15]+pe[r>>4&15]+pe[r&15]+pe[a>>28&15]+pe[a>>24&15]+pe[a>>20&15]+pe[a>>16&15]+pe[a>>12&15]+pe[a>>8&15]+pe[a>>4&15]+pe[a&15]+pe[i>>28&15]+pe[i>>24&15]+pe[i>>20&15]+pe[i>>16&15]+pe[i>>12&15]+pe[i>>8&15]+pe[i>>4&15]+pe[i&15]+pe[o>>28&15]+pe[o>>24&15]+pe[o>>20&15]+pe[o>>16&15]+pe[o>>12&15]+pe[o>>8&15]+pe[o>>4&15]+pe[o&15];return this.is224||(u+=pe[s>>28&15]+pe[s>>24&15]+pe[s>>20&15]+pe[s>>16&15]+pe[s>>12&15]+pe[s>>8&15]+pe[s>>4&15]+pe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Qc(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Mo);if(au&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!au||!ArrayBuffer.isView(e)))throw new Error(Mo)}else throw new Error(Mo);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Qc.prototype=new rn;Qc.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Ro=n9();Ro.sha256=Ro;Ro.sha224=n9(!0);Ro.sha256.hmac=r9();Ro.sha224.hmac=r9(!0);var a9=Ro;var i9=a9.sha256;function Nn(e){return Promise.resolve(i9(e))}function Fo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function nr(e,t){let n=i9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function o9(e,t){let n=await nr(e,t);return Fo(n)}async function Jc(e,t){let n=pD(t),r=await nr(e,n);return Fo(r)}function pD(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var gD={lang:"en"};function _p(e){let t=Object.assign({},gD,e),[n,r]=V(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var fD=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--fD,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var Op=$i(null),Za=e=>{let{t,setLang:n,lang:r}=_p({lang:e.lang});return v(Op.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return ul(Op)}function l9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Mr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=hD(e,a)),i||(i=bD(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function hD(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=jp({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function bD(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function jp(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function c9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Zc(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&s9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&s9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await yn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await xa(n),await ja(i)}catch{return!1}return a}async function d9(){return(await Mn()).aiAssistants||[]}async function yD(e,t){(await Promise.allSettled(e.map(r=>Z({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Zc("add",a,t)}})}async function xD(e,t,n=!0){e||(e=await wt()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await TD();i=await SD(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&yD(o,t)}var Ta=_n(xD,1500);function s9(e){return Ya(js(),e.extensionVersion)}function vD(e,t){return t?!Ya(e.version,t):!1}function SD(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{vD(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function TD(){return(await Z({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var CD=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function p9(e,t,n,r,a){let i={...t},o=jp(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,c9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=l9(i,i.langOverrides,n),o||CD.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function rr(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Bo(t,o),f=Bo(t,g),y=s,x=Object.keys(u);for(let K of x){let be=u[K];if(Bo(t,be)){y=K;break}}let S=l,T=Object.keys(c);for(let K of T){let be=c[K];if(be&&Bo(t,be)){S=K;break}}let C=Bo(t,d),w=m9(t,d);w||(w=Ze(t,W3)),w||(w=Ze(t,n.blockUrls));let E=m9(t,n.inputTranslationUrlPattern);E||(E=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),P=Object.keys(p),F={};for(let K of P){let be=p[K];if(be&&be.matches)for(let tt of be.matches)F[tt]=K}let M=Object.keys(F),I=zm(t,M);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&Xn(F[I]));let L=a.hostname,N=await Nn(L),B=a.pathname+a.search+a.hash,j=await Nn(B),G=`https://${N}.com/${j}`,z=await Vt(),ue=await Lc(),le=n.translationStartMode,O=ED(z,n);z.aiAssistants=AD(O,n),le==="dynamic"&&f&&(le="immediate");let H=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let Ee=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Ee=n.subtitleTranslateService);let ge=await mt.get(dt,null),je=!1;ge&&(je=ht(ge));let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:H,mouseHoverTranslationService:Y,subtitleTranslateService:Ee,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:G,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:z};ge&&(de.user=ge,je?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(K=>!de.config.generalRule.bodyTranslateTags.includes(K)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let me=n.translationServices[de.translationService]||{};me.immediateTranslationTextCount!==void 0&&wD(me.immediateTranslationTextCount)&&me.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCount),de.translationService==="deepl"&&(me&&me.authKey&&me.authKey.startsWith("immersive_")||me&&me.provider==="pro"&&de.user?.token)&&me.immediateTranslationTextCountForImmersiveDeepl!==void 0&&me.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCountForImmersiveDeepl),me&&me.translationDebounce&&typeof me.translationDebounce=="number"&&(de.state.translationDebounce=me.translationDebounce);let fe=ue.immediateTranslationTextCount;n.immediateTranslationTextCount!==fe&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,we;globalThis.PDFViewerApplication?we=he.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?we=he.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?we=he.find(K=>K.pageType=="ebookBuilder"):we=he.find(K=>Bo(t,K)),we&&we.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(we&&(de.rule=Mc(Ue,we)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(K=>!de.rule.bodyTranslateTags.includes(K)&&!de.rule.forceTranslateTags.includes(K))),de.rule.mainFrameSelector){let K=document.querySelector(de.rule.mainFrameSelector);K&&(de.mainFrame=K)}return de}function Bo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Bc(i)?!1:!!(a&&a.length>0&&Bc(a))}function m9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Bc(r))}function wD(e){return typeof e=="number"}function ED(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function AD(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Qy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function g9(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function Xc(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(Up(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Up(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var Hp={get:(e,t,n)=>ee.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ee.storage[n].set({[e]:t})};function $c(e,t,n){let[r]=V(()=>typeof t=="function"?t():t),[a]=V(n),[i,o]=V(r),[s,u]=V(!1),[l,c]=V("");re(()=>{Hp.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),Hp.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function qp(e,t,n){let r=[];return function(){let[i,o,s,u]=$c(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return re(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function f9(e,t){return qp(e,t,"sync")}var kD="userConfig",DD=null,LD=f9(kD,DD);function Rr(e){let[t,n,r,a]=LD(),[i,o]=V();re(()=>{(async function(){let u=await Dc();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&zp(l);let{userConfig:c,promptPool:d,objectPool:m}=await yp(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await wr(Ac,d),await wr(kc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function zp(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var PD=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(ws,{detail:{tabId:a,payload:e}})))},e0;function h9(){iu()}function iu(){return e0||(e0=new qr("popup",!1).getConnection("main_sync",PD),e0)}var t0="DROP_DOWN_DEFAULT_VALUE";function Wp(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Te(null);return v("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:t0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==t0){s.current.value=t0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:t0,label:e.label}].concat(a).map((u,l)=>v("option",{value:u.value,children:u.label},"option-"+l))})}function Io(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var MD=({date:e})=>{let{t}=se(),[n,r]=V(!1);return re(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:v("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},RD=({minVersion:e})=>{let{t}=se();return v("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},FD=()=>{let{t:e}=se();return v("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ie+"docs/installation/"})}})},BD=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return v("p",{class:"text-sm",children:[r("failToSyncRules")," ",v("a",{onClick:t,children:r("retry")}),v("br",{}),r("failedReason"),"\uFF1A",e,v("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Gp(e){let{isShowError:t,request:n}=e,[r,a]=V(null),{t:i}=se(),[o,s]=V(null),[u,l]=V(null),[c,d]=V(""),[m,p]=V(!1),[g,h]=V(!1),[b,f]=V(!1),[y,x]=V(null),[S,T]=V(null),C=pn(),w=async()=>{d("");let E=o;if(o===null)try{let k=await n({url:Es});k?(s(k),E=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return re(()=>{wt().then(E=>{let k=E.buildinConfigUpdatedAt;x(E);let P=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Es}).then(F=>{let M=F,I=M.minVersion,L=C;s(M);let N=M.latestVersion;if(N&&(Io(L,N)?T(!0):T(!1)),Io(L,I)){let B=M.buildinConfigUpdatedAt;new Date(B)>P?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),re(()=>{wt().then(E=>{x(E),Ta(E)})},[r]),y?v("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?v(FD,{}):c?t===!1?null:v(BD,{handleSyncing:w,message:c,date:r||""}):g?t===!1?null:v(RD,{minVersion:o.minVersion}):u===null||u===!0?null:m?v(MD,{date:r}):null}):null}function ID(){return navigator.userAgent.indexOf("Mac")!==-1}var b9={Alt:"\u2325"};function _o(e=""){return ID()?Object.keys(b9).reduce((t,n)=>t.replace(n,b9[n]),e):e}var n0='',Oo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1ID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DEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var _D="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?v("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${_D}-logo-img`,children:[v("path",{fill:"none",d:"M0 0h24v24H0z"}),v("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("g",{"clip-path":"url(#clip0_2589_9951)",children:v("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),v("defs",{children:v("clipPath",{id:"clip0_2589_9951",children:v("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),v("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?v("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("g",{id:"manhua",children:[v("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),v("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?v("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),v("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),v("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),v("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),v("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),v("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),v("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),v("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),v("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),v("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),v("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),v("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?v("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[v("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),v("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),v("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),v("defs",{children:v("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#272727"}),v("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var S9=v("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),v("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),v("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),v("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var T9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),C9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[v("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),v("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),v("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),w9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),v("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),E9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var A9=v("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),v("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),k9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[v("g",{"clip-path":"url(#clip0_13006_12686)",children:[v("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),v("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),v("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),v("defs",{children:[v("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#FFEAB5"}),v("stop",{offset:"1","stop-color":"#F9C235"})]}),v("clipPath",{id:"clip0_13006_12686",children:v("rect",{width:"12",height:"12",fill:"white"})})]})]}),D9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[v("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),v("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),v("defs",{children:v("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#222222"}),v("stop",{offset:"1","stop-color":"#696969"})]})})]}),L9=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:v("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function No(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function P9(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Qa(t)&&!r?v("div",{}):v("div",{class:"flex items-center",children:[v("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(ks,`${e.type}_user_info`);return}e.onOpenUrl(Dl,`${e.type}_user_info`)},children:[v("img",{src:n?x9:y9}),v("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),v(OD,{...e})]})}function OD(e){let{t}=se(),n=ye(()=>No(e.config),[e.config]);return e.isProUser?v("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(ks,`${e.type}_pro_logo`)},children:v("img",{src:Oo})}):n?v("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||An)},children:[v(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),v("span",{children:n.title})]}):v("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(An,`${e.type}_user_upgrade`)},children:[k9,v("span",{children:t("popup.upgrade")})]})}var Xa=(e,t,n,r)=>{let a=l2[e]||e,i=Gm[e]||e,o=Vm[e],s=Km[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vp(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Vm,a="zh-CN"):n==="zh-TW"?(r=Km,a="zh-TW"):(r=Gm,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=F2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=j3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Kr(this.serviceConfig);if(f.tempSentences.forEach((B,j)=>{let G=Lp({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(G&&G.text&&G.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:B,from:T,to:f.to})}let P="";w&&w.length>=2?P=E.map((B,j)=>{let{item:G}=B;return j===E.length-1?G.text:G.text+w[0]+(j+1)+w[1]}).join(""):P=E.map(({item:B})=>B.text).join(C);let F=await this.translate({text:P,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:M}=F,I=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let j=new RegExp(B,"g");I=M.split(j)}else I=M.split(C);let L=[];if(I.length>E.length){for(let B=0;BB.text);return k=Kr(this.serviceConfig,!0),L.forEach((B,j)=>{let G=E[j],z=G.index,ue=G.variables||{};Object.keys(ue).length>0&&(B=Pp({text:B,delimiters:k,variables:ue},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[z]=B}),{sourceTempSentences:f.tempSentences,text:N,from:F.from,to:F.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let E=0;E{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Kr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Lp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Kr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Pp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var M9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ou=class e extends Ae{static langMap=new Map(M9);maxTextGroupLength=50;static langMapReverse=new Map(M9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Nn(a)].join(` -`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Nn(c)].join(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function Xk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Ey(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function _c(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function kp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Gr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Ao(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function By(e,t){let n=t||e.translationService;return Ao(e,n,e.config.translationServices)?kp(e.rule):e.rule}function Oc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var $k=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function nr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Vr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(nr(e,i))return!1;if(nr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!nr(e,o)),c;function d(){return n&&n.display?!!$k.includes(n.display):nr(e,r)}}var At=nr;function Mi(e){return!!e.shadowRoot}function Va(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function tu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Kr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Pi(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Kr(n,t)}function ko(e,t){return Oa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Dp(e){let{rule:t}=e,n=eD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function eD(e){let t=e.config.loadingTheme;return`${_}-loading-${t}`}function nu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Pt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),Et(a,B3,t.toString());let i=Dp(e);return a.append(n?" ...":nt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Do(e,t){return e.querySelector(`[${$d}='${t}']`)}function Iy(){document.querySelectorAll(`[${$d}]`).forEach(t=>{t.remove()})}function _y(){document.querySelectorAll(`.${Pt}-error`).forEach(t=>{t.remove()})}function Oy(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ga(n)&&t.push(n)}),t}function Lp(e,t){return t?tD(e):nD(e)}function tD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Ny(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=Sp(p),m.replace(p,`${p}`)})})}catch(c){D.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function nD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Ny(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=Sp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){D.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function Pp(e,t){return t?rD(e):aD(e)}function rD(e){let{text:t,variables:n}=e,r=Oc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function aD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Ny(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Lo(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||hy(l)||my(l)||fy(l)||py(l)||gy(l)||oD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Fc(i?.trim(),n,r)}function Ri(e){return e.nodeType===Node.ELEMENT_NODE}function jy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Lr(){return await Ut("fakeUserId","")}async function iD(){return await Ut("installedAt","")}async function jc(e,t){let r=Le().INSTALL_FROM,a=pn(),i=await iD(),o=await Lr(),s=await wt(),u=!1,l=await mt.get(dt,null),c=!1;l&&ht(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await To(),m=await wo(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await Co();return g&&(p.abGroup=g),p}function ru(e,t){let[n,r]=V();return re(()=>{!e||!t||(async()=>{let a=await Mp(e,t);r(a)})()},[e,t,r]),n}async function Mp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!lt()&&ne()||We().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ut("installedAt","");new Date(o).getTime()s==n),a=sD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>Ze(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>Ze(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function sD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Hy(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function qy(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Nc[e]=setTimeout(()=>{n("")},t)})}function Wy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ka(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new U(t,n).initNetWork(e.status)}function Hc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Fi(){return Wm()?"imtAndroid":Us()?"imtIOS":ne()?"userscript":lt()?"safari":Vn()?"firefox":o3()?"chrome":"other"}function Yr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function qc(e){return e?.getAttribute("imt-state")||""}function Qr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function zc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(nr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Gy(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Qa(e){if(e.beta)return!1;if(lt()&&e.spVersion)return Ya(js(),e.spVersion);if(s2()&&e.gspVersion){let t=u2();if(t)return Ya(t,e.gspVersion)}if(Us()&&e.ispVersion){let t=o2();if(t)return Ya(t,e.ispVersion)}return!1}function Ya(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Fp(e){e.message?.indexOf("token invalid")>=0&&(mt.remove(dt),Ks())}async function Vy(e){let n=(await wt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),uD(a.toString())}function uD(e){try{lt()?Wr(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ky(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;D.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Yy(e){return ht(e)}function Wc(e){return Array.isArray(e)?e:e?[e]:[]}function Gc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Qy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Mc(e,t){let n={...e};return $y(n,t),lD(n,t),n}function sy(e,t,n){let r={...e};return Gr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Gr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function lD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;$y(e,a)}function Gr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Jy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=Jy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Wc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Zy(u))return;d=Bp(c,l)}else if(s=="remove_v"){if(!Zy(u))return;d=Xy(c,l)}else s==="add"?d=Bp(c,l):s=="remove"&&(d=Xy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Bp(c,l):d=l,r(o,d)})}function $y(e,t){return Gr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Bp(e,t){let n;if(Array.isArray(e)){let r=Wc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Jy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Zy(e){let t=pn();return e&&Ya(t,e)}function Xy(e,t){if(Array.isArray(e)){let n=Wc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Mo="input is invalid type",Ip=typeof window=="object",Ja=Ip?window:{};Ja.JS_SHA256_NO_WINDOW&&(Ip=!1);var cD=!Ip&&typeof self=="object",dD=!Ja.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;dD?Ja=global:cD&&(Ja=self);var BV=!Ja.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,IV=typeof define=="function"&&define.amd,au=!Ja.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",pe="0123456789abcdef".split(""),mD=[-2147483648,8388608,32768,128],Pr=[24,16,8,0],Kc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Yc=["hex","array","digest","arrayBuffer"],nn=[];(Ja.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});au&&(Ja.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var e9=function(e,t){return function(n){return new rn(t,!0).update(n)[e]()}},n9=function(e){var t=e9("hex",e);t.create=function(){return new rn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};rn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=mD[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};rn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+Kc[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+Kc[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+Kc[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+Kc[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};rn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=pe[e>>28&15]+pe[e>>24&15]+pe[e>>20&15]+pe[e>>16&15]+pe[e>>12&15]+pe[e>>8&15]+pe[e>>4&15]+pe[e&15]+pe[t>>28&15]+pe[t>>24&15]+pe[t>>20&15]+pe[t>>16&15]+pe[t>>12&15]+pe[t>>8&15]+pe[t>>4&15]+pe[t&15]+pe[n>>28&15]+pe[n>>24&15]+pe[n>>20&15]+pe[n>>16&15]+pe[n>>12&15]+pe[n>>8&15]+pe[n>>4&15]+pe[n&15]+pe[r>>28&15]+pe[r>>24&15]+pe[r>>20&15]+pe[r>>16&15]+pe[r>>12&15]+pe[r>>8&15]+pe[r>>4&15]+pe[r&15]+pe[a>>28&15]+pe[a>>24&15]+pe[a>>20&15]+pe[a>>16&15]+pe[a>>12&15]+pe[a>>8&15]+pe[a>>4&15]+pe[a&15]+pe[i>>28&15]+pe[i>>24&15]+pe[i>>20&15]+pe[i>>16&15]+pe[i>>12&15]+pe[i>>8&15]+pe[i>>4&15]+pe[i&15]+pe[o>>28&15]+pe[o>>24&15]+pe[o>>20&15]+pe[o>>16&15]+pe[o>>12&15]+pe[o>>8&15]+pe[o>>4&15]+pe[o&15];return this.is224||(u+=pe[s>>28&15]+pe[s>>24&15]+pe[s>>20&15]+pe[s>>16&15]+pe[s>>12&15]+pe[s>>8&15]+pe[s>>4&15]+pe[s&15]),u};rn.prototype.toString=rn.prototype.hex;rn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};rn.prototype.array=rn.prototype.digest;rn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Qc(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Mo);if(au&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!au||!ArrayBuffer.isView(e)))throw new Error(Mo)}else throw new Error(Mo);e.length>64&&(e=new rn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}rn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Qc.prototype=new rn;Qc.prototype.finalize=function(){if(rn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();rn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),rn.prototype.finalize.call(this)}};var Ro=n9();Ro.sha256=Ro;Ro.sha224=n9(!0);Ro.sha256.hmac=r9();Ro.sha224.hmac=r9(!0);var a9=Ro;var i9=a9.sha256;function jn(e){return Promise.resolve(i9(e))}function Fo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rr(e,t){let n=i9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function o9(e,t){let n=await rr(e,t);return Fo(n)}async function Jc(e,t){let n=pD(t),r=await rr(e,n);return Fo(r)}function pD(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var gD={lang:"en"};function _p(e){let t=Object.assign({},gD,e),[n,r]=V(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var fD=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--fD,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var Op=$i(null),Za=e=>{let{t,setLang:n,lang:r}=_p({lang:e.lang});return x(Op.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return ul(Op)}function l9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Mr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=hD(e,a)),i||(i=bD(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function hD(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=jp({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function bD(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function jp(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>Ze(a,s.matches)&&!Ze(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){D.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function c9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Zc(e,t,n){n=n||await Mn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&s9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&s9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await yn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await va(n),await ja(i)}catch{return!1}return a}async function d9(){return(await Mn()).aiAssistants||[]}async function yD(e,t){(await Promise.allSettled(e.map(r=>Z({url:`${A.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Zc("add",a,t)}})}async function vD(e,t,n=!0){e||(e=await wt()),t||(t=await Mn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await TD();i=await SD(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&yD(o,t)}var Ta=_n(vD,1500);function s9(e){return Ya(js(),e.extensionVersion)}function xD(e,t){return t?!Ya(e.version,t):!1}function SD(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{xD(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function TD(){return(await Z({url:`${A.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var CD=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function p9(e,t,n,r,a){let i={...t},o=jp(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,c9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=l9(i,i.langOverrides,n),o||CD.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function ar(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=Bo(t,o),f=Bo(t,g),y=s,v=Object.keys(u);for(let K of v){let be=u[K];if(Bo(t,be)){y=K;break}}let S=l,T=Object.keys(c);for(let K of T){let be=c[K];if(be&&Bo(t,be)){S=K;break}}let C=Bo(t,d),w=m9(t,d);w||(w=Ze(t,W3)),w||(w=Ze(t,n.blockUrls));let E=m9(t,n.inputTranslationUrlPattern);E||(E=Ze(t,n.inputTranslationBlockUrls));let k=Ze(t,n.mutationBlockUrls),P=Object.keys(p),F={};for(let K of P){let be=p[K];if(be&&be.matches)for(let tt of be.matches)F[tt]=K}let M=Object.keys(F),I=zm(t,M);I&&(i=F[I]??"auto",F[I]&&F[I]!=="auto"&&$n(F[I]));let L=a.hostname,N=await jn(L),B=a.pathname+a.search+a.hash,j=await jn(B),G=`https://${N}.com/${j}`,z=await Vt(),ue=await Lc(),le=n.translationStartMode,O=ED(z,n);z.aiAssistants=AD(O,n),le==="dynamic"&&f&&(le="immediate");let H=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let Ee=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Ee=n.subtitleTranslateService);let ge=await mt.get(dt,null),je=!1;ge&&(je=ht(ge));let de={targetLanguage:h,config:n,translationService:y,inputTranslationService:H,mouseHoverTranslationService:Y,subtitleTranslateService:Ee,isTranslateUrl:C,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:G,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:le,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:z};ge&&(de.user=ge,je?de.isPro=!0:de.isPro=!1),de.state.translationArea==="body"&&(de.config.generalRule.excludeTags=de.config.generalRule.excludeTags.filter(K=>!de.config.generalRule.bodyTranslateTags.includes(K)),de.config.generalRule.additionalExcludeSelectors=de.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let me=n.translationServices[de.translationService]||{};me.immediateTranslationTextCount!==void 0&&wD(me.immediateTranslationTextCount)&&me.immediateTranslationTextCount>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCount),de.translationService==="deepl"&&(me&&me.authKey&&me.authKey.startsWith("immersive_")||me&&me.provider==="pro"&&de.user?.token)&&me.immediateTranslationTextCountForImmersiveDeepl!==void 0&&me.immediateTranslationTextCountForImmersiveDeepl>=0&&(de.state.immediateTranslationTextCount=me.immediateTranslationTextCountForImmersiveDeepl),me&&me.translationDebounce&&typeof me.translationDebounce=="number"&&(de.state.translationDebounce=me.translationDebounce);let fe=ue.immediateTranslationTextCount;n.immediateTranslationTextCount!==fe&&(de.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,we;globalThis.PDFViewerApplication?we=he.find(K=>K.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?we=he.find(K=>K.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?we=he.find(K=>K.pageType=="ebookBuilder"):we=he.find(K=>Bo(t,K)),we&&we.pageType==="ebookBuilder"&&(de.state.translationStartMode="immediate");let Ue=n.generalRule;if(we&&(de.rule=Mc(Ue,we)),de.rule.selectors.length>0&&(de.rule.paragraphMinTextCount=2,de.rule.paragraphMinWordCount=1),de.state.translationArea==="body"&&de.rule.excludeTags&&(de.rule.excludeTags=de.rule.excludeTags.filter(K=>!de.rule.bodyTranslateTags.includes(K)&&!de.rule.forceTranslateTags.includes(K))),de.rule.mainFrameSelector){let K=document.querySelector(de.rule.mainFrameSelector);K&&(de.mainFrame=K)}return de}function Bo(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&Ze(e,r)?!1:n&&n.length>0&&Ze(e,n)?!0:i&&i.length>0&&Bc(i)?!1:!!(a&&a.length>0&&Bc(a))}function m9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&Ze(e,n)||r&&r.length>0&&Bc(r))}function wD(e){return typeof e=="number"}function ED(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function AD(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Qy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return D.error(n),e}}function g9(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return!!(r&&t.hostname===r)}function Xc(e){let t;try{t=new URL(e)}catch{return!1}let n=ip(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(Up(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Up(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}var Hp={get:(e,t,n)=>ee.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ee.storage[n].set({[e]:t})};function $c(e,t,n){let[r]=V(()=>typeof t=="function"?t():t),[a]=V(n),[i,o]=V(r),[s,u]=V(!1),[l,c]=V("");re(()=>{Hp.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=ke(m=>{let p=typeof m=="function"?m(i):m;D.debug("new settings",p),Hp.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function qp(e,t,n){let r=[];return function(){let[i,o,s,u]=$c(e,t,n),l=ke(c=>{for(let d of r)d(c)},[]);return re(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function f9(e,t){return qp(e,t,"sync")}var kD="userConfig",DD=null,LD=f9(kD,DD);function Rr(e){let[t,n,r,a]=LD(),[i,o]=V();re(()=>{(async function(){let u=await Dc();o(u)})()},[t]);let s=ke(async u=>{let l=typeof u=="function"?u(i):u;l&&zp(l);let{userConfig:c,promptPool:d,objectPool:m}=await yp(l);D.debug("userConfig size",JSON.stringify(c).length,c),D.debug("promptPool size",JSON.stringify(d).length,d),D.debug("objectPool size",JSON.stringify(m).length,m),await wr(Ac,d),await wr(kc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function zp(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var PD=function(e,t){let{method:n,data:r}=e;D.debug(`popup received message: ${n}`,r||" ");let a;t.active&&(a=t.id,globalThis.document.dispatchEvent(new CustomEvent(ws,{detail:{tabId:a,payload:e}})))},e0;function h9(){iu()}function iu(){return e0||(e0=new qr("popup",!1).getConnection("main_sync",PD),e0)}var t0="DROP_DOWN_DEFAULT_VALUE";function Wp(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Te(null);return x("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:t0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==t0){s.current.value=t0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:t0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function Io(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var MD=({date:e})=>{let{t}=se(),[n,r]=V(!1);return re(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},RD=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},FD=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ie+"docs/installation/"})}})},BD=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Gp(e){let{isShowError:t,request:n}=e,[r,a]=V(null),{t:i}=se(),[o,s]=V(null),[u,l]=V(null),[c,d]=V(""),[m,p]=V(!1),[g,h]=V(!1),[b,f]=V(!1),[y,v]=V(null),[S,T]=V(null),C=pn(),w=async()=>{d("");let E=o;if(o===null)try{let k=await n({url:Es});k?(s(k),E=k,p(!0)):(d(i("unknownError")),l(null))}catch(k){l(null),d(k.message);return}E!==null?(e.setStorageBuildinConfig(E),l(!1),a(E.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return re(()=>{wt().then(E=>{let k=E.buildinConfigUpdatedAt;v(E);let P=new Date(k);if(a(k),C==="0.0.0"){f(!0);return}n({url:Es}).then(F=>{let M=F,I=M.minVersion,L=C;s(M);let N=M.latestVersion;if(N&&(Io(L,N)?T(!0):T(!1)),Io(L,I)){let B=M.buildinConfigUpdatedAt;new Date(B)>P?(l(!0),w()):l(!1)}else h(!0),l(null)}).catch(F=>{l(null),d(F.message)})})},[]),re(()=>{wt().then(E=>{v(E),Ta(E)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x(FD,{}):c?t===!1?null:x(BD,{handleSyncing:w,message:c,date:r||""}):g?t===!1?null:x(RD,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(MD,{date:r}):null}):null}function ID(){return navigator.userAgent.indexOf("Mac")!==-1}var b9={Alt:"\u2325"};function _o(e=""){return ID()?Object.keys(b9).reduce((t,n)=>t.replace(n,b9[n]),e):e}var n0='',Oo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9u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hI6mCGBPonSaIF9StMUMe0hzrGjslhBGp7tDIUzfRPTnvhWhiHLQxjYQrwIoQ5nAXtZ3uD8AAkKYTsk0sAocNVSqqpkRaK+MYYNSTkms3wXXodCMZpAKD9FLzF6Bxg/ExMgXS+RluKHkGEZUYOi7sIf3DrTlPNAfOx2XSDyj+xM5QGg2yTIua+wLJVy7abZvKuVn7TwCyKmN+3PjJblAAAAAElFTkSuQmCC",x9="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyYW1lIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTguNzEwMjMgMTMuMzg3NkwxMy4yODkzIDguODA4NkwxNC4wOTc3IDguMDAwMjJMMTMuMjg5NyA3LjE5MjIyTDguNzEwMjMgMi42MTI3OUw3LjkwMjIzIDMuNDIwNzlMMTEuOTA5NSA3LjQyODc5SDEuOTA1NjZWOC41NzE2NUgxMS45MDk1TDcuOTAxODUgMTIuNTc5M0w4LjcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";var _D="imt-fb";function Kt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${_D}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}var S9=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var T9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),C9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),w9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),E9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var A9=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),k9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),D9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),L9=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function No(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function P9(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Qa(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(ks,`${e.type}_user_info`);return}e.onOpenUrl(Dl,`${e.type}_user_info`)},children:[x("img",{src:n?v9:y9}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(OD,{...e})]})}function OD(e){let{t}=se(),n=ye(()=>No(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(ks,`${e.type}_pro_logo`)},children:x("img",{src:Oo})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||An)},children:[x(Kt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(An,`${e.type}_user_upgrade`)},children:[k9,x("span",{children:t("popup.upgrade")})]})}var Xa=(e,t,n,r)=>{let a=l2[e]||e,i=Gm[e]||e,o=Vm[e],s=Km[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vp(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Vm,a="zh-CN"):n==="zh-TW"?(r=Km,a="zh-TW"):(r=Gm,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}var Ae=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=F2(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let C=y instanceof U?new U(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(C,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],T=0;for(let C=0;C{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(w=>w.text),forces:f.tempSentences.map(w=>w.force),xpaths:f.tempSentences.map(w=>w.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let C=j3;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(C=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let E=[],k=Kr(this.serviceConfig);if(f.tempSentences.forEach((B,j)=>{let G=Lp({text:B.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:k,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);B.force!==!0&&(G&&G.text&&G.text.trim().lengthj.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:B,from:T,to:f.to})}let P="";w&&w.length>=2?P=E.map((B,j)=>{let{item:G}=B;return j===E.length-1?G.text:G.text+w[0]+(j+1)+w[1]}).join(""):P=E.map(({item:B})=>B.text).join(C);let F=await this.translate({text:P,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:E.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:M}=F,I=[];if(w&&w.length>=2){let B=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(B=w[2]);let j=new RegExp(B,"g");I=M.split(j)}else I=M.split(C);let L=[];if(I.length>E.length){for(let B=0;BB.text);return k=Kr(this.serviceConfig,!0),L.forEach((B,j)=>{let G=E[j],z=G.index,ue=G.variables||{};Object.keys(ue).length>0&&(B=Pp({text:B,delimiters:k,variables:ue},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[z]=B}),{sourceTempSentences:f.tempSentences,text:N,from:F.from,to:F.to}}};m.push(S().then(T=>{let{text:C,sourceTempSentences:w}=T;for(let E=0;E{if(T instanceof U&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let C=0;C{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Kr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Lp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){D.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Kr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Pp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var M9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ou=class e extends Ae{static langMap=new Map(M9);maxTextGroupLength=50;static langMapReverse=new Map(M9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new U("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await jn(a)].join(` +`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await jn(c)].join(` `),p=await o9(d,`TC3${n}`),g=await Jc(i,p),h=await Jc("tc3_request",g),b=await Jc(m,h),f=await Z({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new U(f.Response.Error.Message);return f}};var R9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ND={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},su=class e extends Ae{static langMap=new Map(R9);static langMapReverse=new Map(R9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await Z({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:ND,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var F9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],uu=class e extends Ae{static langMap=new Map(F9);static langMapReverse=new Map(F9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new U("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new U("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await Z({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function jD(e,t){return t?e+(t-e%t):e}function UD(e,t){return e.split(t).length-1}function Kp(e){let t=Date.now(),n=1;for(let r of e)n+=UD(r,"i");return jD(t,n)}function HD(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Yp(){return HD(1e6,1e8)}var Qp="https://www2.deepl.com/jsonrpc",Jp="auto",B9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function qD(e=B9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Zp(e){return qD()[e.toLowerCase()]}var zD={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function WD(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function GD(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function VD(e,t,n,r,a,i,o){let s=Yp(),u=GD(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Kp(t);let c=await Z({retry:2,method:"POST",url:e,body:WD(u),headers:zD}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function I9(e,t,n,r=Jp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:VD(e,t,Zp(n),Zp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var _9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],jo=class e extends Ae{static langMap=new Map(_9);static langMapReverse=new Map(_9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Qp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(Qp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await I9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var lu=class e extends Ae{static langMap=new Map(rp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ya.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Le(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=O9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await Z({url:sc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new U(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Le(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=O9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` `));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await Z({url:sc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new U(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function O9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Xp(){return Math.random()>=.001}var Uo=class extends Ae{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Xp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await nb(),!Xp())throw new U("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var j9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],$p=new Map(j9),N9=new Map(j9.map(([e,t])=>[t,e])),eg=class e extends Ae{static langMap=$p;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new U("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await Z({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:$p.get(r)||"auto",target_lang:$p.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:N9.get(o.source_lang),to:N9.get(o.target_lang)}}else throw new U(i.msg)}},r0=eg;var tg="https://{s}bing.com",W9=tg+"/translator",KD=tg+"/ttranslatev3",YD=tg+"/tspellcheckv3",a0="bingGlobalConfig",G9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],U9=new Map(G9),H9=new Map(G9.map(([e,t])=>[t,e])),q9=1e3,Fr,Ho;function ng(e,t){return e.replace("{s}",t?t+".":"")}async function QD(){if(!Fr){let n=await ee.storage.local.get(a0);return n&&(Fr=n[a0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Fr;return Date.now()-e>t}async function z9(){let e,t,n,r,a,i,o,s,u,l;try{let c=ng(W9,e),d=await Z({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Fr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ee.storage.local.set({[a0]:Fr}),Fr}function JD(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Fr;return ng(e?YD:KD,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Fr.count++:"")}function ZD(e,t,n,r){let{token:a,key:i}=Fr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function V9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>q9)throw new Error(`The supported maximum length of text is ${q9}. Please shorten the text.`);Ho||(Ho=z9()),await Ho,await QD()&&(Ho=z9(),await Ho),t=t||"auto",n=n||"zh-CN",t=U9.get(t)||t,n=U9.get(n)||n;let a=JD(!1),i=ZD(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:ng(W9,Fr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await Z({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Fr=null,Ho=null,await ee.storage.local.remove(a0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, @@ -5796,7 +5796,7 @@ Translate the content to {{to}} Language: `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:H9.get(m.language),to:H9.get(d.to)}}function $a(e){return e!=null}function Q9(e,t,n){return`${e.type}#${t}#${n}`}function J9(e,t,n,r,a){return{body:a,id:r,type:Q9(e,t,n)}}function XD(e,t,n,r){return{id:n,response:r,type:Q9(e,"ask",t)}}function Z9(e,t,n,r){if($a(r)){let a=r.type;if($a(a)&&$a(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function $D(e,t,n){if($a(n)){let r=n.type;if($a(r)&&$a(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function eL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function tL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;$D(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function nL(e,t,n,r){let a=i=>{let o=i.data;Z9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function K9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Z9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(XD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function rL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(J9(t,"tell",n,i,r),a)}async function Y9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await tL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(J9(n,"ask",r,s,a),i),u}var ei=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;K9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if($a(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Y9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(nL(this.thisWindow,this.protocol,t,n))}tell(t,n){rL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(K9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Y9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){eL(this.listeners)}};var X9;async function $9(){if(at()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ei.iframe(Al,"*",{targetWindow:t});X9=n,await ei.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function e6(){return X9}var i0=new Map;async function rg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),i0.has(t))return i0.get(t);let n=Z(e);i0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{i0.delete(t)},3e3)}}async function t6(e){return rg(e)}async function Jr(e){if(at()){let n=e6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return rg(e)}else return rg(e)}function n6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function s0(e){await um(e)}async function Zr(e,t){let n=await om(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return o0(e,t)}return o0(e,t)}async function o0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await sm(e,n,i-1e3),n}var aL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ag=new Map(aL),Br=class extends Ae{static langMap=ag;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await s0(Wd)}async translate(t){let{text:n,from:r,to:a}=t;return n?await V9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Zr(Wd,async()=>{let t=await Jr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return n6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ag.get(n)||"auto",o=ag.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Z({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var iL=["chinese","english","japanese","korean","french","spanish","deutsch"],Xr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},u0=e=>Xr.chinese.test(e),oL=e=>Xr.english.test(e),sL=e=>Xr.japanese.test(e),uL=e=>Xr.korean.test(e),lL=e=>Xr.french.test(e),cL=e=>Xr.deutsch.test(e),dL=e=>Xr.spanish.test(e),BZ={chinese:xr(u0),english:xr(oL),japanese:xr(sL),korean:xr(uL),french:xr(lL),spanish:xr(dL),deutsch:xr(cL)},r6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,IZ=new RegExp(`^(\\d|\\s|${r6.source})+$`),mL=new RegExp(`${Xr.chinese.source}|${Xr.japanese.source}|${Xr.korean.source}`),_Z=xr(e=>(e.replace(new RegExp(r6,"g")," ").replace(new RegExp(mL,"g")," x ").match(/\S+/g)||"").length),OZ=[...iL,"others","matchAll"];var i6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],cu=new Map(i6),pL=new Map(i6.map(([e,t])=>[t,e])),ig=class extends Ae{static langMap=cu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=it;immersiveTranslateDeeplProApiUrl=it+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:cu.get(n)||"",target_lang:cu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:cu.get(n)||"auto",target_lang:cu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await Z({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>og(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Br({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&pL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ca()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},qo=ig;function og(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&u0(e[0])&&a6(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&u0(e[e.length-1])&&a6(e,"\u300A")==1?e+"\u300B":e}function a6(e,t){return e.split(t).length-1}var gL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],sg=new Map(gL),ug=class extends Ae{static langMap=sg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:sg.get(r)||r,to:sg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Z(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:H9.get(m.language),to:H9.get(d.to)}}function $a(e){return e!=null}function Q9(e,t,n){return`${e.type}#${t}#${n}`}function J9(e,t,n,r,a){return{body:a,id:r,type:Q9(e,t,n)}}function XD(e,t,n,r){return{id:n,response:r,type:Q9(e,"ask",t)}}function Z9(e,t,n,r){if($a(r)){let a=r.type;if($a(a)&&$a(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function $D(e,t,n){if($a(n)){let r=n.type;if($a(r)&&$a(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function eL(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function tL(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;$D(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function nL(e,t,n,r){let a=i=>{let o=i.data;Z9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function K9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(Z9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(XD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function rL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(J9(t,"tell",n,i,r),a)}async function Y9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await tL(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(J9(n,"ask",r,s,a),i),u}var ei=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;K9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if($a(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Y9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(nL(this.thisWindow,this.protocol,t,n))}tell(t,n){rL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(K9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return Y9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){eL(this.listeners)}};var X9;async function $9(){if(at()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ei.iframe(Al,"*",{targetWindow:t});X9=n,await ei.connect(n).catch(r=>{D.error("connect with parent frame error",r)})}}function e6(){return X9}var i0=new Map;async function rg(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Xn(e.body)),i0.has(t))return i0.get(t);let n=Z(e);i0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{i0.delete(t)},3e3)}}async function t6(e){return rg(e)}async function Jr(e){if(at()){let n=e6();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw D.error("can not comunicate with root frame, use strict limiter",r),r}else return rg(e)}else return rg(e)}function n6(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function s0(e){await um(e)}async function Zr(e,t){let n=await om(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return o0(e,t)}return o0(e,t)}async function o0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await sm(e,n,i-1e3),n}var aL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ag=new Map(aL),Br=class extends Ae{static langMap=ag;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await s0(Wd)}async translate(t){let{text:n,from:r,to:a}=t;return n?await V9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Zr(Wd,async()=>{let t=await Jr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return n6(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ag.get(n)||"auto",o=ag.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await Z({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new U("Microsoft translate error "+JSON.stringify(d))}};var iL=["chinese","english","japanese","korean","french","spanish","deutsch"],Xr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},u0=e=>Xr.chinese.test(e),oL=e=>Xr.english.test(e),sL=e=>Xr.japanese.test(e),uL=e=>Xr.korean.test(e),lL=e=>Xr.french.test(e),cL=e=>Xr.deutsch.test(e),dL=e=>Xr.spanish.test(e),BZ={chinese:vr(u0),english:vr(oL),japanese:vr(sL),korean:vr(uL),french:vr(lL),spanish:vr(dL),deutsch:vr(cL)},r6=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,IZ=new RegExp(`^(\\d|\\s|${r6.source})+$`),mL=new RegExp(`${Xr.chinese.source}|${Xr.japanese.source}|${Xr.korean.source}`),_Z=vr(e=>(e.replace(new RegExp(r6,"g")," ").replace(new RegExp(mL,"g")," x ").match(/\S+/g)||"").length),OZ=[...iL,"others","matchAll"];var i6=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],cu=new Map(i6),pL=new Map(i6.map(([e,t])=>[t,e])),ig=class extends Ae{static langMap=cu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${$t}/v2/translate`;immersiveTranslateDeeplTokenUrl=it;immersiveTranslateDeeplProApiUrl=it+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new U("authKey are required");if(!this.authKey)throw new U("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:cu.get(n)||"",target_lang:cu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:cu.get(n)||"auto",target_lang:cu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await Z({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await Z({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>og(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Br({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&pL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ca()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},qo=ig;function og(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&u0(e[0])&&a6(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&u0(e[e.length-1])&&a6(e,"\u300A")==1?e+"\u300B":e}function a6(e,t){return e.split(t).length-1}var gL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],sg=new Map(gL),ug=class extends Ae{static langMap=sg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:sg.get(r)||r,to:sg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await Z(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` `)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new U(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},o6=ug;var fL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],lg=new Map(fL),cg=class extends Ae{static langMap=lg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new U("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:lg.get(a)||a};r!=="auto"&&(i.from=lg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await Z(c);if(d.length===0)throw new U("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},s6=cg;var hL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],zo=new Map(hL),dg=class extends Ae{static langMap=zo;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!zo.get(r)?(i=(await Z({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||zo.get(r)||r,target:zo.get(a)||a})):u.body=JSON.stringify({text:s,source:zo.get(r),target:zo.get(a)||a});let l=await Z(u);if(l.translatedText==="")throw new U("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},u6=dg;function l6(e){let t=e.split(` @@ -5807,20 +5807,20 @@ Translate the content to {{to}} Language: %% `;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let d=i?.sourceProgram,m=["subtitle","videoSubtitle"].includes(d),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),m&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let g="",h="",b=s.includes("{{json}}"),f=s.includes("{{yaml}}");if(_c(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",b){let E=[],k=c.imt_json_item||"";m&&(k=c.imt_subtitle_json_item||k);for(let P=0;PP==="from"?u:P==="to"?l+" Language":P==="text"?n:P=="json"?g:P=="yaml"?h:c[P]===""?"":c[P]||k).replace(/{{(.+?)}}/g,(k,P)=>c[P]||k)}}async rawRequest(t){return await Z(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`)}s=w(s);let y=w(this.systemPrompt),v=await this.handleOptions(y,s,t);D.debug("request options",v),D.debug("request body",v.body);let S=await this.rawRequest(v),T=this.parseResponse(S),C=await this.interceptResponse(T,{...t,text:p});if(C.handled)return{from:r,to:a,text:C.result||""};if(T=this.filterContent(n,T,s,p),D.debug("filterContent after",T),T&&(T=bL(n,T),T=_2(T)),!b&&!f||!T)return{from:r,to:a,text:T||n};try{let E={};if(b){D.debug("extractValidJson before",T);let F=this.extractValidJson(T);D.debug("parse before",T),E=Il.parse(F)}else if(f){D.debug("parseYAML before",T);let F=this.extractValidYaml(T);E=l6(F)}let k=c.imt_trans_field;m&&(k=c.imt_sub_trans_field||k);let P=c.imt_source_field;return m&&(P=c.imt_sub_source_field||P),T=this.restoreText(p,E,k,this.translationTextSeparator,P),{from:r,to:a,text:T}}catch(E){return D.error("parse response failed",T,E),{from:r,to:a,text:T}}function w(E){return E.replace(/{{(.+?)}}/g,(k,P)=>P==="from"?u:P==="to"?l+" Language":P==="text"?n:P=="json"?g:P=="yaml"?h:c[P]===""?"":c[P]||k).replace(/{{(.+?)}}/g,(k,P)=>c[P]||k)}}async rawRequest(t){return await Z(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Zn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ti=mg;function bL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var yL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],c6=new Map(yL),pg=class extends ti{static langMap=c6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=it+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return c6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Zn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!qo.langMap.has(n.to)||!qo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new qo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},d6=pg;function sn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function xL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ni(e,t){return e<>>32-t}function $r(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Wo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function m6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Go(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ea(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var p6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?sn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return $r(a(m,r),t)},this.b64=function(m){return ta(a(m),n)},this.any=function(m,p){return ea(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return $r(i(m,p),t)},this.b64_hmac=function(m,p){return ta(i(m,p),n)},this.any_hmac=function(m,p,g){return ea(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?sn(m):m,m6(o(Go(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?sn(m):m,p=r?sn(p):p,g=Go(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Go(p)),512+p.length*8),m6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Ca(c)),512+c.length*8),Wo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(E=x(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,P[w]=E[w]^1549556828;return C=x(k.concat(Ca(T)),512+T.length*8),Wo(x(P.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,P,F,M,I,L,N,B,j,G,z;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,B=0;B32&&(S=s(S,b.length*8));x<32;x+=1)T[x]=S[x]^909522486,C[x]=S[x]^1549556828;return y=s(T.concat(Ca(f)),1024+f.length*8),Wo(s(C.concat(y),1024+512))}function s(b,f){var y,x,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),P=new u(0,0),F=new u(0,0),M=new u(0,0),I=new u(0,0),L=new u(0,0),N=new u(0,0),B=new u(0,0),j=new u(0,0),G=new u(0,0),z=new u(0,0),ue=new u(0,0),le=new u(0,0),O=new u(0,0),H=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)T[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(x>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=x&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,x,S){var T=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(C>>>16),E=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|E<<16}function h(b,f,y,x,S,T){var C=(f.l&65535)+(y.l&65535)+(x.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),E=(f.h&65535)+(y.h&65535)+(x.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),k=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(S.h>>>16)+(T.h>>>16)+(E>>>16);b.l=C&65535|w<<16,b.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return $r(u(h,r))},this.b64=function(h){return ta(u(h,r),n)},this.any=function(h,b){return ea(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return $r(l(h,b))},this.b64_hmac=function(h,b){return ta(l(h,b),n)},this.any_hmac=function(h,b,f){return ea(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?sn(h):h,c(d(Go(h),h.length*8))}function l(h,b){h=r?sn(h):h,b=r?sn(b):b;var f,y,x=Go(h),S=Array(16),T=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)S[f]=x[f]^909522486,T[f]=x[f]^1549556828;return y=d(S.concat(Go(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,S,T=1732584193,C=4023233417,w=2562383102,E=271733878,k=3285377520,P,F,M,I,L,N,B,j,G,z;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new p6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Z({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var vL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},gg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=gg(t);if(r)return Array.isArray(n)?`${r}=${n.map(gg).sort().join(`&${r}=`)}`:`${r}=${gg(n)}`}).filter(t=>t).join("&"),Vo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await Nn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Fo(await nr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){D.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Xn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},ti=mg;function bL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var yL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],c6=new Map(yL),pg=class extends ti{static langMap=c6;provider="custom";immersiveApiUrl=`https://openai-api.${$t}/v1/chat/completions`;immersiveProApiUrl=it+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return c6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Xn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!qo.langMap.has(n.to)||!qo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new qo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},d6=pg;function sn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function vL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function ni(e,t){return e<>>32-t}function $r(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Wo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function m6(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Go(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function ea(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var p6={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?sn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return $r(a(m,r),t)},this.b64=function(m){return ta(a(m),n)},this.any=function(m,p){return ea(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return $r(i(m,p),t)},this.b64_hmac=function(m,p){return ta(i(m,p),n)},this.any_hmac=function(m,p,g){return ea(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?sn(m):m,m6(o(Go(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?sn(m):m,p=r?sn(p):p,g=Go(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Go(p)),512+p.length*8),m6(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,T=-1732584194,C=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(Ca(c)),512+c.length*8),Wo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,T=-271733879,C=-1732584194,w=271733878,E=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(E=v(E,S.length*8));w<16;w+=1)k[w]=E[w]^909522486,P[w]=E[w]^1549556828;return C=v(k.concat(Ca(T)),512+T.length*8),Wo(v(P.concat(C),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,C){return S&T^~S&C}function c(S,T,C){return S&T^S&C^T&C}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,T){var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),E,k,P,F,M,I,L,N,B,j,G,z;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,B=0;B32&&(S=s(S,b.length*8));v<32;v+=1)T[v]=S[v]^909522486,C[v]=S[v]^1549556828;return y=s(T.concat(Ca(f)),1024+f.length*8),Wo(s(C.concat(y),1024+512))}function s(b,f){var y,v,S,T=new Array(80),C=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],E=new u(0,0),k=new u(0,0),P=new u(0,0),F=new u(0,0),M=new u(0,0),I=new u(0,0),L=new u(0,0),N=new u(0,0),B=new u(0,0),j=new u(0,0),G=new u(0,0),z=new u(0,0),ue=new u(0,0),le=new u(0,0),O=new u(0,0),H=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)T[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),C=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=v&65535|S<<16,b.h=T&65535|C<<16}function g(b,f,y,v,S){var T=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),C=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(T>>>16),w=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(C>>>16),E=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(w>>>16);b.l=T&65535|C<<16,b.h=w&65535|E<<16}function h(b,f,y,v,S,T){var C=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(T.l>>>16)+(C>>>16),E=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(T.h&65535)+(w>>>16),k=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T.h>>>16)+(E>>>16);b.l=C&65535|w<<16,b.h=E&65535|k<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return $r(u(h,r))},this.b64=function(h){return ta(u(h,r),n)},this.any=function(h,b){return ea(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return $r(l(h,b))},this.b64_hmac=function(h,b){return ta(l(h,b),n)},this.any_hmac=function(h,b,f){return ea(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?sn(h):h,c(d(Go(h),h.length*8))}function l(h,b){h=r?sn(h):h,b=r?sn(b):b;var f,y,v=Go(h),S=Array(16),T=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,T[f]=v[f]^1549556828;return y=d(S.concat(Go(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,T=1732584193,C=4023233417,w=2562383102,E=271733878,k=3285377520,P,F,M,I,L,N,B,j,G,z;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new U("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new p6.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await Z({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new U(g.Message);return g}};var xL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Nt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},gg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},fg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=gg(t);if(r)return Array.isArray(n)?`${r}=${n.map(gg).sort().join(`&${r}=`)}`:`${r}=${gg(n)}`}).filter(t=>t).join("&"),Vo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${Nt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[Nt.tokenHeader]=t.sessionToken),a[Nt.dateHeader]=r,a[Nt.notSignBody]="",a[Nt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[Nt.algorithmKey]=Nt.algorithm,a[Nt.signHeadersKey]="",a[Nt.signQueriesKey]=void 0,a[Nt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[Nt.signQueriesKey]=Object.keys(a).sort().join(";"),a[Nt.signatureKey]=s,fg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Nt.dateHeader]=n,t.sessionToken&&(this.request.headers[Nt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[Nt.contentSha256Header]=await jn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Fo(await rr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(Nt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=fg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new U(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Nn(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return vL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await nr(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await nr(r,i),s=await nr(a,o);return nr(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var f6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],hg=new Map(f6),SL=new Map(f6.map(([e,t])=>[t,e])),bg=class extends Ae{static langMap=hg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Vo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Z({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=hg.get(r),o={TargetLanguage:hg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Vo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Z({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=SL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},h6=bg;var b6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],yg=new Map(b6),TL=new Map(b6.map(([e,t])=>[t,e])),mu=class extends Ae{static langMap=yg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=yg.get(r)||"detect",o=yg.get(a)||a,u=await Z({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=TL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var CL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],xg=new Map(CL),pu=class extends Ae{static langMap=xg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:xg.get(r)||r,target_lang:xg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Z({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:og(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var y6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],vg=new Map(y6),wL=new Map(y6.map(([e,t])=>[t,e])),Sg=class extends Ae{static langMap=vg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Zn(a+o+n+i);this.domain&&(l=Zn(a+o+n+this.domain+i));let c=new URLSearchParams({from:vg.get(s)||"auto",to:vg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Z({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:wL.get(g)||g,to:u,text:h.join(` -`)}}},x6=Sg;var Bi=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?EL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function EL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var v6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Tg=class extends Bi{static langMap=new Map(v6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:v6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},S6=Tg;var AL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(AL),Cg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Z({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},T6=Cg;var C6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],wg=new Map(C6),kL=new Map(C6.map(([e,t])=>[t,e]));function DL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Eg=class extends Ae{static langMap=wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=LL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+DL(n)+i+o+this.appSecret,u=await Nn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:wg.get(r)||"auto",to:wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Z({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await jn(t)}async hexEncodedBodyHash(){return this.request.headers[Nt.contentSha256Header]?this.request.headers[Nt.contentSha256Header]:this.request.body?await this.hexEncodedHash(fg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return xL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await rr(n,`${Nt.kDatePrefix}${t.secretKey}`),o=await rr(r,i),s=await rr(a,o);return rr(Nt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,Nt.v4Identifier].join("/")}};var f6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],hg=new Map(f6),SL=new Map(f6.map(([e,t])=>[t,e])),bg=class extends Ae{static langMap=hg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new U("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Vo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await Z({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new U(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new U(s.Code,s.Message)}else throw new U("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=hg.get(r),o={TargetLanguage:hg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Vo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await Z({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=SL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new U(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new U(d.Code,d.Message)}else throw new U("response: "+JSON.stringify(c))}},h6=bg;var b6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],yg=new Map(b6),TL=new Map(b6.map(([e,t])=>[t,e])),mu=class extends Ae{static langMap=yg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=yg.get(r)||"detect",o=yg.get(a)||a,u=await Z({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=TL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new U(l.status_code.toString(),l.status_message)}}};var CL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],vg=new Map(CL),pu=class extends Ae{static langMap=vg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new U("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:vg.get(r)||r,target_lang:vg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await Z({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:og(u.data,a),from:r,to:a};throw new U(u.message||u.message||"API Error")}};var y6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],xg=new Map(y6),wL=new Map(y6.map(([e,t])=>[t,e])),Sg=class extends Ae{static langMap=xg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new U("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Xn(a+o+n+i);this.domain&&(l=Xn(a+o+n+this.domain+i));let c=new URLSearchParams({from:xg.get(s)||"auto",to:xg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await Z({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new U("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:wL.get(g)||g,to:u,text:h.join(` +`)}}},v6=Sg;var Bi=class extends Ae{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new U("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new U(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await $s(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?EL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ya.detectLanguageRemotelyByTransmart(t)}};function EL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var x6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Tg=class extends Bi{static langMap=new Map(x6);constructor(t,n,r,a){if(!t?.token)throw new U("token are required");super({...t,isSupportList:!0,langs:x6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},S6=Tg;var AL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],l0=new Map(AL),Cg=class extends Ae{static langMap=l0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!l0.get(a))throw new U(`Unsupported language: ${a}`);if(r==="auto")throw new U("Unsupported language: auto");let o=n;return{text:(await Z({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${l0.get(r)||"auto"}2${l0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},T6=Cg;var C6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],wg=new Map(C6),kL=new Map(C6.map(([e,t])=>[t,e]));function DL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Eg=class extends Ae{static langMap=wg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new U("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=LL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+DL(n)+i+o+this.appSecret,u=await jn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:wg.get(r)||"auto",to:wg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await Z({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new U(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` `),from:kL.get(g),to:a}}};function LL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var kg=class extends Ae{static langMap=Ag;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Ag.get(r)||"auto",to:Ag.get(a)||a},o=new URLSearchParams(i),s=await Z({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},A6=kg;var gu=class extends Bi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Dg=class extends ti{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Dg;var k6=_+"-gemini-fake-user-key",PL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],D6=new Map(PL),Lg=class extends c0{static langMap=D6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=it+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return D6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ci(k6,""),this.fakeId||(this.fakeId=ML(10),await wi(k6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function ML(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Jr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Mg.get(r)+"-"}${Mg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Z({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var BL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],R6=new Map(BL),hu=class extends ti{static langMap=R6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Zr(Vd+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Jr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return R6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(o0(Vd+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var IL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F6=new Map(IL),jn=class extends ti{static langMap=F6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return F6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends jn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await nr(t,"TC3"+this.secret_key),a=await nr(this.service,r),i=await nr("tc3_request",a),o=await nr(n,i);return Fo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Nn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`),from:r,to:a};throw new U("Youdao translation failed: "+JSON.stringify(s))}},A6=kg;var gu=class extends Bi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Dg=class extends ti{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new U("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new U("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},c0=Dg;var k6=_+"-gemini-fake-user-key",PL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],D6=new Map(PL),Lg=class extends c0{static langMap=D6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=it+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return D6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ci(k6,""),this.fakeId||(this.fakeId=ML(10),await wi(k6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new U("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function ML(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Jr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Mg.get(r)+"-"}${Mg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await Z({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var BL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],R6=new Map(BL),hu=class extends ti{static langMap=R6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Zr(Vd+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Jr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return R6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(o0(Vd+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new U("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new U(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var IL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],F6=new Map(IL),Un=class extends ti{static langMap=F6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return F6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var d0=class extends Un{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new U(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await rr(t,"TC3"+this.secret_key),a=await rr(this.service,r),i=await rr("tc3_request",a),o=await rr(n,i);return Fo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await jn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await Nn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await jn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5828,51 +5828,51 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var m0=class extends jn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(y3,async()=>{let t=await Jr({responseType:"json",url:`${it}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Rg=["glm-4-flash"],p0=class extends jn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Rg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Rg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(x3,async()=>{let t=await Jr({responseType:"json",url:`${it}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Br.langMap.has(n.to)||!Br.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Br(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Rg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:Uo,mock2:Uo,custom:gu,google:uu,transmart:lu,deepl:qo,volc:h6,volcAlpha:mu,bing:Br,tencent:ou,tenAlpha:su,baidu:x6,caiyun:S6,cai:T6,openl:r0,youdao:w6,you:A6,d:jo,dpro:jo,deeplx:pu,niu:o6,azure:s6,openai:d6,gemini:L6,claude:M6,papago:u6,aliyun:du,yandex:fu,qianfan:hu,"custom-ai":jn,deepseek:jn,"aliyun-bailian":jn,doubao:jn,hunyuan:d0,siliconcloud:m0,lingyiwanwu:jn,zhipu:p0};globalThis.TranslationServicesClass=g0;var ri={};Object.keys(Cr).forEach(e=>{ri[e]={...Cr[e],class:g0[e]}});function f0(e,t){let n=Jn;if(ri[e]&&ri[e].class&&ri[e].class.langMap&&ri[e].class.langMap.size>0){let r=ri[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Jn}async function na(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function B6(e,t){for(let n of e)try{return await na({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Fg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ri[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function _L(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),Ta(a,t.localConfig,!1),d=p9(m,d,{sourceLanguage:_L(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(g&&(E.refresh=!0),h&&(E.debug=!0),E.text&&(E.text=OL(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,S=ht(t.user),T;try{T=new ri[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(E){if(n){b.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let P of b){let F=E instanceof U?new U(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(F,null,P)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){x++;let k=l;l==="openl"&&(k=l+"-"+d.codename||r0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(k=P+"-"+k);let F=null;try{F=await Rl(eb({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(M){D.warn("query cache DB error, but it's ok",M)}if(F){let M={...E,text:F.translatedText};f.sentences[x]=M,n&&n(null,M,E)}else b.push(E)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(E,k,P)=>{if(n&&n(E,k,P),!E&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||r0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(F=M+"-"+F),o.cache&&Rl(tb({translatedText:k.text,from:P.from,to:P.to,detectedFrom:k.from,key:Zn(P.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let E of w?.sentences||[]){let k=f.sentences.findIndex(P=>!P);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=E}return f}function OL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function I6({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=f0(t.config.translationService,t.config.targetLanguage),s=Jn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return v("div",{class:"flex mt-4 items-center",children:[v(NL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),v("img",{src:v9,style:{maxWidth:"unset"},class:"mx-2"}),v(jL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function NL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),v("div",{class:"language-select-container",children:[v("label",{children:a}),v("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Xa(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Xa(r,e.interfaceLanguage)+` (${t("languages.auto")})`),v("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function jL(e){return v("div",{class:"language-select-container",children:[v("label",{children:e.label}),v("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Xa(t,e.interfaceLanguage);return v("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ai(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),v("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>v("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Bg;function Wg(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function W6(e,t=","){return e.map(Wg).join(t)}var G6=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function b0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function y0(e,t="@media "){return t+ar(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ar(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function UL(){}var un={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function V6(e){return e.match(/[-=:;]/g)?.length||0}function Ug(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(V6(e),15)<<18}var HL=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Gg({n:e,i:t,v:n=[]},r,a,i){e&&(e=Wg({n:e,i:t,v:n})),i=[...ar(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ar(u&&y0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|Ug(l):s=="dark"?1073741824:l[0]=="@"?Ug(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~HL.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Vg=new Map;function _6(e){if(e.d){let t=[],n=Ig(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Ig(r,i=>Ig(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):_g(i,o)}return _g(o,i)})):r,"&"),r=>_g(r,e.n?"."+G6(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Ig(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function _g(e,t){return e.replace(/&/g,t)}var O6=new Intl.Collator("en",{numeric:!0});function qL(e,t){for(var n=0,r=e.length;n>1;0>=K6(e[a],t)?n=a+1:r=a}return r}function K6(e,t){let n=e.p&un.o;return n==(t.p&un.o)&&(n==un.b||n==un.o)?0:e.p-t.p||e.o-t.o||O6.compare(N6(e.n),N6(t.n))||O6.compare(j6(e.n),j6(t.n))}function N6(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function j6(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Og(e,t){return Math.round(parseInt(e,16)*t)}function ii(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[Og(e.substr(1,i),o),Og(e.substr(1+i,i),o),Og(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Y6(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let x=o[y];if(y[0]=="@"){if(!x)continue;if(y[1]=="a"){m.push(...J6(s,u,Yg(""+x),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ar(x))m.push(...i(S,{n:s,p:(b=un[y[7]],u&~un.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ar(x).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:un.d,o:0,r:[y],d:i(x,{p:un.d},d).map(_6).join("")});continue}if(y[1]=="f"){m.push(...ar(x).map(S=>({p:un.d,o:0,r:[y],d:i(S,{p:un.d},d).map(_6).join("")})));continue}}if(typeof x!="object"||Array.isArray(x))y=="label"&&x?s=x+b0(JSON.stringify([u,c,o])):(x||x===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:V6(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ar(x).map(S=>d.s(y,Q6(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(T,C)=>{let w=d.theme("screens",C);return w?(S|=67108864,y0(w,"")):T}),S|=Ug(y)),m.push(...i(x,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(x,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(K6)}(e,Gg(t,n,r,a),n)}function Q6(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ii(s):""+ar(s).filter(u=>Object(u)!==u)})}function Kg(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Hg(e,t,n=un.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=Vg.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=Gg(u,l,c,d),Kg(Hg(Yg(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ar(d),...ar(g.r)],p:(h=c,b=g.p??c,h&~un.o|b)}}):Y6(p,u,l,c,d):[{c:Wg(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(qL(i,s),0,s);return i}function J6(e,t,n,r,a,i,o,s){return Kg((s?n.flatMap(u=>Hg([u],r,a,i,o)):Hg(n,r,a,i,o)).map(u=>u.p&un.o&&(u.n||t==un.b)?{...u,p:u.p&~un.o|t,o:0}:u),e)}function zL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=Gg(i,o,t);return n&&J6(s,t,n,o,u,l,c,r)},Vg.set(e,a),e}function Ng(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(WL),i:a}))}}function WL(e,t,n){return n.indexOf(e)==t}var U6=new Map;function Yg(e){let t=U6.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&Ng(n,r)),a=s+1};for(;s1?d.slice(0,-1)+b0(JSON.stringify([d,m])):d+"("+W6(m)+")",un.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),U6.set(e,t=r[0])}return t}function Z6(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function X6(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Z6(e,t,n=>jg(n).trim()):t.filter(Boolean).reduce((n,r)=>n+jg(r),e?jg(e):"")}function jg(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=X6(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var une=$6("@"),lne=$6("~");function $6(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return W6(Yg(n+e+"("+X6(r,a)+")"))}}function qg(e,t){return Array.isArray(e)?H6(Z6(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?H6(e):[e]}var GL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function H6(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=GL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function ex(e,...t){var n;let r=qg(e,t),a=(r.find(i=>i.label)?.label||"css")+b0(JSON.stringify(r));return n=(i,o)=>Kg(r.flatMap(s=>Y6(s,i,o,un.o)),a),Vg.set(a,n),a}var cne=new Proxy(function(e,t){return q6("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return q6(t,n,r)}}});function q6(e,t,n){return{toString(){return ex({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,VL(t,n)]}function VL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):zg(n,1)}):n=>e||{[n[1]]:zg(n,2)}}function zg(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,r){return[e,KL(t,n,r)]}function KL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=tx(e||a[1]),s=i.theme(o,a.$$)??Ko(a.$$,o,i);if(s!=null)return a._=zg(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,YL(t,n)]}function YL(e={},t){return(n,r)=>{let{section:a=tx(n[0]).replace("-","")+"Color"}=e,[i,o]=QL(n.$$);if(!i)return;let s=r.theme(a,i)||Ko(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Ko(o,l,r),p=t||(({_:h})=>{let b=bu(c,h);return d?{[d]:b}:b});n._={value:ii(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ii(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ii(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ii(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function QL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ko(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=h0(Q6(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function tx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function h0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>h0(n)+r+h0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var dne=Symbol();var nx=new Proxy(UL,{apply(e,t,n){return Bg(n[0])},get(e,t){let n=Bg[t];return typeof n=="function"?function(){return n.apply(Bg,arguments)}:n}});var mne=function e(t){return new Proxy(function(n,...r){return z6(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return z6(t,r,a,i)}}})}();function z6(e,t,n,r){return{toString(){let a=qg(n,r),i=G6(t+b0(JSON.stringify([t,a])));return(typeof e=="function"?e:nx)(ex({[`@keyframes ${i}`]:qg(n,r)})),i}}}var rx={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...ir(4,"rem",4,.5,.5),...ir(12,"rem",4,5),14:"3.5rem",...ir(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...ir(200,"",100,0,50),...ir(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...ir(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...yu(2,6),...yu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...yu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...yu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...ir(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...ir(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:ir(200,"",100,0,50),scale:{...ir(150,"",100,0,50),...ir(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:ir(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...yu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...ir(50,"",1,0,10),auto:"auto"}};function yu(e,t){let n={};do for(var r=1;rt(e)}var Pne={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${rx.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${rx.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Rne=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ko(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[y0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",x0),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",ax),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",ux),te("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",sx),te("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",ux),te("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",sx),te("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>x0(ax(e))),X("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",ix),X("(content|items|self)-",e=>({["align-"+e[1]]:ix(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",Yo("padding")),te("-?m([xytrbl])?(?:$|-)","margin",Yo("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=ar(e))[1]=="string"?{fontFamily:Ir(e)}:{fontFamily:Ir(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...oi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),X("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ii(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",x0),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ii(n[0])}-radius`]:t,[`border-${Ii(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...oi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},Yo("border","Color")),Qt("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",Yo("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ii(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ii(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ii(t("ringOffsetColor","","#fff")),"--tw-ring-color":ii(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Ir(e),"--tw-shadow-colored":Ir(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),X("mix-blend-","mixBlendMode"),...ox(),...ox("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Ir(e),transitionTimingFunction:e._=="none"?void 0:Ir(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Ir(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Ir),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Ir),te("delay(?:$|-)","transitionDelay","transitionDelay",Ir),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Ir(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",Jg),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":lx(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Jg()})),te("-?(rotate)-","rotate",Qg),te("-?(translate-[xy])-","translate",Qg),te("-?(skew-[xy])-","skew",Qg),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",x0),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...oi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",Yo("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Yo("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...oi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function x0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function ax(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ii(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Ir(e){return e&&""+(e._||e)}function ix({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Yo(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...bu(e+"-"+Ii(a[0])+t,r),...bu(e+"-"+Ii(a[1])+t,r)}:bu(e+t,r)}}function ox(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...oi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>te(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ar(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Qg({1:e,_:t}){return{["--tw-"+e]:t,...Jg()}}function Jg(){return{...oi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":lx()}),transform:"var(--tw-transform)"}}function lx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function sx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function ux({1:e}){return`repeat(${e},minmax(0,1fr))`}function oi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var v0=globalThis||(typeof window<"u"?window:self),XL=Object.create,Xg=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,eP=Object.getOwnPropertyNames,tP=Object.getPrototypeOf,nP=Object.prototype.hasOwnProperty,rP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aP=(e,t)=>{for(var n in t)Xg(e,n,{get:t[n],enumerable:!0})},Zg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eP(t))!nP.call(e,a)&&a!==n&&Xg(e,a,{get:()=>t[a],enumerable:!(r=$L(t,a))||r.enumerable});return e},iP=(e,t,n)=>(Zg(e,t,"default"),n&&Zg(n,t,"default")),dx=(e,t,n)=>(n=e!=null?XL(tP(e)):{},Zg(t||!e||!e.__esModule?Xg(n,"default",{value:e,enumerable:!0}):n,e)),mx=rP((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof v0=="object"&&v0.global===v0?v0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var x=b.result;x=h?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=x:location=x,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),px={};aP(px,{default:()=>S0});var oP=dx(mx());iP(px,dx(mx()));var{default:cx,...sP}=oP,S0=cx!==void 0?cx:sP;function Lx(e){return typeof e>"u"||e===null}function uP(e){return typeof e=="object"&&e!==null}function lP(e){return Array.isArray(e)?e:Lx(e)?[]:[e]}function cP(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n{let t=await Jr({responseType:"json",url:`${it}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Rg=["glm-4-flash"],p0=class extends Un{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Rg.includes(this.model)&&!this.apiKeys.length)throw new U("apiKey are required");if(!Rg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Lr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Zr(v3,async()=>{let t=await Jr({responseType:"json",url:`${it}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Br.langMap.has(n.to)||!Br.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Br(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Rg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var g0={mock:Uo,mock2:Uo,custom:gu,google:uu,transmart:lu,deepl:qo,volc:h6,volcAlpha:mu,bing:Br,tencent:ou,tenAlpha:su,baidu:v6,caiyun:S6,cai:T6,openl:r0,youdao:w6,you:A6,d:jo,dpro:jo,deeplx:pu,niu:o6,azure:s6,openai:d6,gemini:L6,claude:M6,papago:u6,aliyun:du,yandex:fu,qianfan:hu,"custom-ai":Un,deepseek:Un,"aliyun-bailian":Un,doubao:Un,hunyuan:d0,siliconcloud:m0,lingyiwanwu:Un,zhipu:p0};globalThis.TranslationServicesClass=g0;var ri={};Object.keys(Cr).forEach(e=>{ri[e]={...Cr[e],class:g0[e]}});function f0(e,t){let n=Zn;if(ri[e]&&ri[e].class&&ri[e].class.langMap&&ri[e].class.langMap.size>0){let r=ri[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Zn}async function na(e,t,n){if(!e.text)return e;let r=null,a=await Yt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new U("translateFailed","translate failed")}async function B6(e,t){for(let n of e)try{return await na({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Fg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ht(e.user);await new ri[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function _L(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Yt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),Ta(a,t.localConfig,!1),d=p9(m,d,{sourceLanguage:_L(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(E=>(g&&(E.refresh=!0),h&&(E.debug=!0),E.text&&(E.text=OL(E.text)),E))),l==="openai"&&(e.sentences=e.sentences.map(E=>({...E,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ht(t.user),T;try{T=new ri[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(E){if(n){b.push(...e.sentences);let k={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let P of b){let F=E instanceof U?new U(E.name,E.message).initNetWork(E.status).initData(E.data||k):E;n(F,null,P)}}return{sentences:[]}}if(o.cache)for(let E of e.sentences){v++;let k=l;l==="openl"&&(k=l+"-"+d.codename||r0.DEFAULT_CODENAME);let P=T.getCacheKeyPrefix();P&&(k=P+"-"+k);let F=null;try{F=await Rl(eb({originalText:E.text,from:E.from,to:E.to,service:k}),200)}catch(M){D.warn("query cache DB error, but it's ok",M)}if(F){let M={...E,text:F.translatedText};f.sentences[v]=M,n&&n(null,M,E)}else b.push(E)}else b.push(...e.sentences);let C=b.length;if(y-C>0&&D.debug(`use ${y-C} sentences from cache`),!b.length)return f;let w=await T.multipleTranslate({sentences:b},d,(E,k,P)=>{if(n&&n(E,k,P),!E&&k&&!l.startsWith("mock")&&o.cache){let F=l;l==="openl"&&(F=l+"-"+d.codename||r0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(F=M+"-"+F),o.cache&&Rl(tb({translatedText:k.text,from:P.from,to:P.to,detectedFrom:k.from,key:Xn(P.text),service:F}),3e3).catch(I=>{D.warn("set cache DB error",I)})}});for(let E of w?.sentences||[]){let k=f.sentences.findIndex(P=>!P);if(k===-1)throw new U("translateFailed","can not match the result");f.sentences[k]=E}return f}function OL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function I6({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=f0(t.config.translationService,t.config.targetLanguage),s=Zn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(NL,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:x9,style:{maxWidth:"unset"},class:"mx-2"}),x(jL,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function NL(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Xa(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Xa(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function jL(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vp(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Xa(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ai(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Bg;function Wg(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function W6(e,t=","){return e.map(Wg).join(t)}var G6=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function b0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function y0(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function UL(){}var un={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function V6(e){return e.match(/[-=:;]/g)?.length||0}function Ug(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(V6(e),15)<<18}var HL=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Gg({n:e,i:t,v:n=[]},r,a,i){e&&(e=Wg({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&y0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|Ug(l):s=="dark"?1073741824:l[0]=="@"?Ug(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~HL.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Vg=new Map;function _6(e){if(e.d){let t=[],n=Ig(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Ig(r,i=>Ig(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):_g(i,o)}return _g(o,i)})):r,"&"),r=>_g(r,e.n?"."+G6(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Ig(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function _g(e,t){return e.replace(/&/g,t)}var O6=new Intl.Collator("en",{numeric:!0});function qL(e,t){for(var n=0,r=e.length;n>1;0>=K6(e[a],t)?n=a+1:r=a}return r}function K6(e,t){let n=e.p&un.o;return n==(t.p&un.o)&&(n==un.b||n==un.o)?0:e.p-t.p||e.o-t.o||O6.compare(N6(e.n),N6(t.n))||O6.compare(j6(e.n),j6(t.n))}function N6(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function j6(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Og(e,t){return Math.round(parseInt(e,16)*t)}function ii(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[Og(e.substr(1,i),o),Og(e.substr(1+i,i),o),Og(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function Y6(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...J6(s,u,Yg(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ir(v))m.push(...i(S,{n:s,p:(b=un[y[7]],u&~un.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:un.d,o:0,r:[y],d:i(v,{p:un.d},d).map(_6).join("")});continue}if(y[1]=="f"){m.push(...ir(v).map(S=>({p:un.d,o:0,r:[y],d:i(S,{p:un.d},d).map(_6).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+b0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:V6(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(v).map(S=>d.s(y,Q6(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(T,C)=>{let w=d.theme("screens",C);return w?(S|=67108864,y0(w,"")):T}),S|=Ug(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(K6)}(e,Gg(t,n,r,a),n)}function Q6(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?ii(s):""+ir(s).filter(u=>Object(u)!==u)})}function Kg(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Hg(e,t,n=un.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=Vg.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=Gg(u,l,c,d),Kg(Hg(Yg(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~un.o|b)}}):Y6(p,u,l,c,d):[{c:Wg(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(qL(i,s),0,s);return i}function J6(e,t,n,r,a,i,o,s){return Kg((s?n.flatMap(u=>Hg([u],r,a,i,o)):Hg(n,r,a,i,o)).map(u=>u.p&un.o&&(u.n||t==un.b)?{...u,p:u.p&~un.o|t,o:0}:u),e)}function zL(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=Gg(i,o,t);return n&&J6(s,t,n,o,u,l,c,r)},Vg.set(e,a),e}function Ng(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(WL),i:a}))}}function WL(e,t,n){return n.indexOf(e)==t}var U6=new Map;function Yg(e){let t=U6.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&Ng(n,r)),a=s+1};for(;s1?d.slice(0,-1)+b0(JSON.stringify([d,m])):d+"("+W6(m)+")",un.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),U6.set(e,t=r[0])}return t}function Z6(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function X6(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Z6(e,t,n=>jg(n).trim()):t.filter(Boolean).reduce((n,r)=>n+jg(r),e?jg(e):"")}function jg(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=X6(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var une=$6("@"),lne=$6("~");function $6(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return W6(Yg(n+e+"("+X6(r,a)+")"))}}function qg(e,t){return Array.isArray(e)?H6(Z6(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?H6(e):[e]}var GL=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function H6(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=GL.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function ev(e,...t){var n;let r=qg(e,t),a=(r.find(i=>i.label)?.label||"css")+b0(JSON.stringify(r));return n=(i,o)=>Kg(r.flatMap(s=>Y6(s,i,o,un.o)),a),Vg.set(a,n),a}var cne=new Proxy(function(e,t){return q6("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return q6(t,n,r)}}});function q6(e,t,n){return{toString(){return ev({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function X(e,t,n){return[e,VL(t,n)]}function VL(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):zg(n,1)}):n=>e||{[n[1]]:zg(n,2)}}function zg(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,r){return[e,KL(t,n,r)]}function KL(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=tv(e||a[1]),s=i.theme(o,a.$$)??Ko(a.$$,o,i);if(s!=null)return a._=zg(a,0,s),r(a,i,o)}}function Qt(e,t={},n){return[e,YL(t,n)]}function YL(e={},t){return(n,r)=>{let{section:a=tv(n[0]).replace("-","")+"Color"}=e,[i,o]=QL(n.$$);if(!i)return;let s=r.theme(a,i)||Ko(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&Ko(o,l,r),p=t||(({_:h})=>{let b=bu(c,h);return d?{[d]:b}:b});n._={value:ii(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>ii(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:ii(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>ii(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function QL(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ko(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=h0(Q6(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function tv(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function h0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>h0(n)+r+h0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var dne=Symbol();var nv=new Proxy(UL,{apply(e,t,n){return Bg(n[0])},get(e,t){let n=Bg[t];return typeof n=="function"?function(){return n.apply(Bg,arguments)}:n}});var mne=function e(t){return new Proxy(function(n,...r){return z6(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return z6(t,r,a,i)}}})}();function z6(e,t,n,r){return{toString(){let a=qg(n,r),i=G6(t+b0(JSON.stringify([t,a])));return(typeof e=="function"?e:nv)(ev({[`@keyframes ${i}`]:qg(n,r)})),i}}}var rv={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ke("blur"),backdropBrightness:Ke("brightness"),backdropContrast:Ke("contrast"),backdropGrayscale:Ke("grayscale"),backdropHueRotate:Ke("hueRotate"),backdropInvert:Ke("invert"),backdropOpacity:Ke("opacity"),backdropSaturate:Ke("saturate"),backdropSepia:Ke("sepia"),backgroundColor:Ke("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ke("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ke("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ke("spacing"),borderWidth:{DEFAULT:"1px",...gr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ke("colors"),caretColor:Ke("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ke("borderColor"),divideOpacity:Ke("borderOpacity"),divideWidth:Ke("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...yu(2,6),...yu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ke("spacing"),gradientColorStops:Ke("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...yu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...yu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ke("spacing"),placeholderColor:Ke("colors"),placeholderOpacity:Ke("opacity"),outlineColor:Ke("colors"),outlineOffset:gr(8,"px"),outlineWidth:gr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ke("colors"),ringOffsetWidth:gr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gr(8,"px")},rotate:{...gr(2,"deg"),...gr(12,"deg",3),...gr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ke("spacing"),scrollPadding:Ke("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gr(2,"deg"),...gr(12,"deg",3)},space:Ke("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Ke("colors"),textDecorationColor:Ke("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gr(8,"px")},textUnderlineOffset:{auto:"auto",...gr(8,"px")},textIndent:Ke("spacing"),textOpacity:Ke("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ke("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...yu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function yu(e,t){let n={};do for(var r=1;rt(e)}var Pne={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${rv.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${rv.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},Rne=[X("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ko(`[${t}]`,"",n)}}})),X("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),X("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[y0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),X("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),X("box-(border|content)","boxSizing",({1:e})=>e+"-box"),X("hidden",{display:"none"}),X("table-(auto|fixed)","tableLayout"),X(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",X("isolate","isolation"),X("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),X("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",v0),X("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),X("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),X("(visible|collapse)","visibility"),X("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),X("flex-((row|col)(-reverse)?)","flexDirection",av),X("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),X("grid-cols-(\\d+)","gridTemplateColumns",uv),te("col-","gridColumn"),X("col-(span)-(\\d+)","gridColumn",sv),te("col-start-","gridColumnStart"),X("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),X("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),X("grid-rows-(\\d+)","gridTemplateRows",uv),te("row-","gridRow"),X("row-(span)-(\\d+)","gridRow",sv),te("row-start-","gridRowStart"),X("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),X("row-end-(auto|\\d+)","gridRowEnd"),X("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>v0(av(e))),X("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",X("justify-","justifyContent",iv),X("(content|items|self)-",e=>({["align-"+e[1]]:iv(e)})),X("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",Yo("padding")),te("-?m([xytrbl])?(?:$|-)","margin",Yo("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),X("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Ir(e)}:{fontFamily:Ir(e[0]),...e[1]}),X("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),X("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),X("italic","fontStyle"),X("not-italic",{fontStyle:"normal"}),X("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...oi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),X("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),X("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Qt("placeholder-",{property:"color",selector:"&::placeholder"}),X("text-(left|center|right|justify|start|end)","textAlign"),X("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),Qt("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),X("(overline|underline|line-through)","textDecorationLine"),X("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),Qt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),X("decoration-","textDecorationStyle"),X("(uppercase|lowercase|capitalize)","textTransform"),X("normal-case",{textTransform:"none"}),X("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),X("align-","verticalAlign"),X("whitespace-","whiteSpace"),X("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),X("break-words",{overflowWrap:"break-word"}),X("break-all",{wordBreak:"break-all"}),X("break-keep",{wordBreak:"keep-all"}),Qt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Qt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),X("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ii(e," ")},var(--tw-gradient-stops))`),Qt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Qt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Qt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),X("bg-(fixed|local|scroll)","backgroundAttachment"),X("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),X(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),X("bg-blend-","backgroundBlendMode"),X("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Qt("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),X("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",v0),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ii(n[0])}-radius`]:t,[`border-${Ii(n[1])}-radius`]:t}}),X("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),X("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...oi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Qt("border-([xytrbl])-",{section:"borderColor"},Yo("border","Color")),Qt("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",Yo("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),X("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),X("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ii(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ii(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Qt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Qt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),X("ring-inset",{"--tw-ring-inset":"inset"}),Qt("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ii(t("ringOffsetColor","","#fff")),"--tw-ring-color":ii(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Qt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...oi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Ir(e),"--tw-shadow-colored":Ir(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),X("mix-blend-","mixBlendMode"),...ov(),...ov("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Ir(e),transitionTimingFunction:e._=="none"?void 0:Ir(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Ir(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Ir),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Ir),te("delay(?:$|-)","transitionDelay","transitionDelay",Ir),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Ir(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",X("transform",Jg),X("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":lv(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Jg()})),te("-?(rotate)-","rotate",Qg),te("-?(translate-[xy])-","translate",Qg),te("-?(skew-[xy])-","skew",Qg),X("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",v0),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",X("snap-(none)","scroll-snap-type"),X("snap-(x|y|both)",({1:e})=>({...oi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),X("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),X("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),X("snap-(normal|always)","scroll-snap-stop"),X("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",Yo("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Yo("scroll-margin")),X("touch-(auto|none|manipulation)","touch-action"),X("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...oi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),X("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),X("outline",{outlineStyle:"solid"}),X("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),Qt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],X("select-(none|text|all|auto)","userSelect"),Qt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Qt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),X("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),X("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function v0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function av(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ii(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Ir(e){return e&&""+(e._||e)}function iv({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Yo(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...bu(e+"-"+Ii(a[0])+t,r),...bu(e+"-"+Ii(a[1])+t,r)}:bu(e+t,r)}}function ov(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...oi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,X(`${e}filter`,n),...t.map(r=>te(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Qg({1:e,_:t}){return{["--tw-"+e]:t,...Jg()}}function Jg(){return{...oi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":lv()}),transform:"var(--tw-transform)"}}function lv(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function sv({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function uv({1:e}){return`repeat(${e},minmax(0,1fr))`}function oi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var x0=globalThis||(typeof window<"u"?window:self),XL=Object.create,Xg=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,eP=Object.getOwnPropertyNames,tP=Object.getPrototypeOf,nP=Object.prototype.hasOwnProperty,rP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),aP=(e,t)=>{for(var n in t)Xg(e,n,{get:t[n],enumerable:!0})},Zg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of eP(t))!nP.call(e,a)&&a!==n&&Xg(e,a,{get:()=>t[a],enumerable:!(r=$L(t,a))||r.enumerable});return e},iP=(e,t,n)=>(Zg(e,t,"default"),n&&Zg(n,t,"default")),dv=(e,t,n)=>(n=e!=null?XL(tP(e)):{},Zg(t||!e||!e.__esModule?Xg(n,"default",{value:e,enumerable:!0}):n,e)),mv=rP((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof x0=="object"&&x0.global===x0?x0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),pv={};aP(pv,{default:()=>S0});var oP=dv(mv());iP(pv,dv(mv()));var{default:cv,...sP}=oP,S0=cv!==void 0?cv:sP;function Lv(e){return typeof e>"u"||e===null}function uP(e){return typeof e=="object"&&e!==null}function lP(e){return Array.isArray(e)?e:Lv(e)?[]:[e]}function cP(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function ef(e,t){return Jt.repeat(" ",t-e.length)+e}function xP(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=$g(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+ef((e.line-u+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function xu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Pv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}xu.prototype=Object.create(Error.prototype);xu.prototype.constructor=xu;xu.prototype.toString=function(e){return this.name+": "+Pv(this,e)};var Hn=xu;function $g(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function ef(e,t){return Jt.repeat(" ",t-e.length)+e}function vP(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=$g(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Jt.repeat(" ",t.indent)+ef((e.line-u+1).toString(),c)+" | "+l.str+` `+s;for(l=$g(e.buffer,r[o],a[o],e.position,d),s+=Jt.repeat(" ",t.indent)+ef((e.line+1).toString(),c)+" | "+l.str+` `,s+=Jt.repeat("-",t.indent+c+3+l.pos)+`^ `,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=$g(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Jt.repeat(" ",t.indent)+ef((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var vP=xP,SP=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],TP=["scalar","sequence","mapping"];function CP(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function wP(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(SP.indexOf(n)===-1)throw new Un('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=CP(t.styleAliases||null),TP.indexOf(this.kind)===-1)throw new Un('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var xn=wP;function gx(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function EP(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),VP=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KP(e){return!(e===null||!VP.test(e)||e[e.length-1]==="_")}function YP(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var QP=/^[-+]?[0-9]+e/;function JP(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),QP.test(n)?n.replace("e",".e"):n}function ZP(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var XP=new xn("tag:yaml.org,2002:float",{kind:"scalar",resolve:KP,construct:YP,predicate:ZP,represent:JP,defaultStyle:"lowercase"}),$P=PP.extend({implicit:[BP,NP,GP,XP]}),eM=$P,Mx=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Rx=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tM(e){return e===null?!1:Mx.exec(e)!==null||Rx.exec(e)!==null}function nM(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=Mx.exec(e),t===null&&(t=Rx.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function rM(e){return e.toISOString()}var aM=new xn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tM,construct:nM,instanceOf:Date,represent:rM});function iM(e){return e==="<<"||e===null}var oM=new xn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iM}),uf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function sM(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=uf;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function uM(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=uf,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function lM(e){var t="",n=0,r,a,i=e.length,o=uf;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function cM(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var dM=new xn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sM,construct:uM,predicate:cM,represent:lM}),mM=Object.prototype.hasOwnProperty,pM=Object.prototype.toString;function gM(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Nx=new Array(256),jx=new Array(256);for(_i=0;_i<256;_i++)Nx[_i]=bx(_i)?1:0,jx[_i]=bx(_i);var _i;function FM(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fx,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ux(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=vP(n),new Un(t,n)}function ve(e,t){throw Ux(e,t)}function w0(e,t){e.onWarning&&e.onWarning.call(null,Ux(e,t))}var yx={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&w0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],_x.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),ui.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),Ox.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function si(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` -`,t-1))}function BM(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Hn(p)||Jo(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),Hn(a)||n&&Jo(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),Hn(a)||n&&Jo(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Hn(r))break}else{if(e.position===e.lineStart&&k0(e)||n&&Jo(p))break;if(ra(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(si(e,i,o,!1),cf(e,e.line-u),i=o=e.position,s=!1),Oi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return si(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function IM(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(si(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ra(n)?(si(e,r,a,!0),cf(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&k0(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function _M(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return si(e,n,e.position,!0),e.position++,!0;if(s===92){if(si(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ra(s))qt(e,!1,t);else if(s<256&&Nx[s])e.result+=jx[s],e.position++;else if((o=PM(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=LM(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=RM(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else ra(s)?(si(e,n,r,!0),cf(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&k0(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function OM(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Hn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,Xo(e,t,T0,!1,!0),b=e.tag,h=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),Xo(e,t,T0,!1,!0),f=e.result),p?Zo(e,s,g,b,h,f,r,a,i):d?s.push(Zo(e,null,g,b,h,f,r,a,i)):s.push(h),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function NM(e,t){var n,r,a=tf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)tf===a?a=d===43?fx:EM:ve(e,"repeat of a chomping mode identifier");else if((c=MM(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Oi(d)){do d=e.input.charCodeAt(++e.position);while(Oi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ra(d)&&d!==0)}for(;d!==0;){for(lf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ra(d)){u++;continue}if(e.lineIndent=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),VP=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KP(e){return!(e===null||!VP.test(e)||e[e.length-1]==="_")}function YP(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var QP=/^[-+]?[0-9]+e/;function JP(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jt.isNegativeZero(e))return"-0.0";return n=e.toString(10),QP.test(n)?n.replace("e",".e"):n}function ZP(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Jt.isNegativeZero(e))}var XP=new vn("tag:yaml.org,2002:float",{kind:"scalar",resolve:KP,construct:YP,predicate:ZP,represent:JP,defaultStyle:"lowercase"}),$P=PP.extend({implicit:[BP,NP,GP,XP]}),eM=$P,Mv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Rv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tM(e){return e===null?!1:Mv.exec(e)!==null||Rv.exec(e)!==null}function nM(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=Mv.exec(e),t===null&&(t=Rv.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function rM(e){return e.toISOString()}var aM=new vn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tM,construct:nM,instanceOf:Date,represent:rM});function iM(e){return e==="<<"||e===null}var oM=new vn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iM}),uf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function sM(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=uf;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function uM(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=uf,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function lM(e){var t="",n=0,r,a,i=e.length,o=uf;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function cM(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var dM=new vn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sM,construct:uM,predicate:cM,represent:lM}),mM=Object.prototype.hasOwnProperty,pM=Object.prototype.toString;function gM(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var Nv=new Array(256),jv=new Array(256);for(_i=0;_i<256;_i++)Nv[_i]=bv(_i)?1:0,jv[_i]=bv(_i);var _i;function FM(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Uv(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xP(n),new Hn(t,n)}function xe(e,t){throw Uv(e,t)}function w0(e,t){e.onWarning&&e.onWarning.call(null,Uv(e,t))}var yv={YAML:function(e,t,n){var r,a,i;e.version!==null&&xe(e,"duplication of %YAML directive"),n.length!==1&&xe(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&xe(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&xe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&w0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&xe(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],_v.test(r)||xe(e,"ill-formed tag handle (first argument) of the TAG directive"),ui.call(e.tagMap,r)&&xe(e,'there is a previously declared suffix for "'+r+'" tag handle'),Ov.test(a)||xe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{xe(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function si(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Jt.repeat(` +`,t-1))}function BM(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),qn(p)||Jo(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),qn(a)||n&&Jo(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),qn(a)||n&&Jo(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),qn(r))break}else{if(e.position===e.lineStart&&k0(e)||n&&Jo(p))break;if(ra(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,qt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(si(e,i,o,!1),cf(e,e.line-u),i=o=e.position,s=!1),Oi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return si(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function IM(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(si(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ra(n)?(si(e,r,a,!0),cf(e,qt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&k0(e)?xe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);xe(e,"unexpected end of the stream within a single quoted scalar")}function _M(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return si(e,n,e.position,!0),e.position++,!0;if(s===92){if(si(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ra(s))qt(e,!1,t);else if(s<256&&Nv[s])e.result+=jv[s],e.position++;else if((o=PM(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=LM(s))>=0?i=(i<<4)+o:xe(e,"expected hexadecimal character");e.result+=RM(i),e.position++}else xe(e,"unknown escape sequence");n=r=e.position}else ra(s)?(si(e,n,r,!0),cf(e,qt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&k0(e)?xe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}xe(e,"unexpected end of the stream within a double quoted scalar")}function OM(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(qt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&xe(e,"expected the node content, but found ','"):xe(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),qn(l)&&(d=m=!0,e.position++,qt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,Xo(e,t,T0,!1,!0),b=e.tag,h=e.result,qt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),qt(e,!0,t),Xo(e,t,T0,!1,!0),f=e.result),p?Zo(e,s,g,b,h,f,r,a,i):d?s.push(Zo(e,null,g,b,h,f,r,a,i)):s.push(h),qt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}xe(e,"unexpected end of the stream within a flow collection")}function NM(e,t){var n,r,a=tf,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)tf===a?a=d===43?fv:EM:xe(e,"repeat of a chomping mode identifier");else if((c=MM(d))>=0)c===0?xe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?xe(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Oi(d)){do d=e.input.charCodeAt(++e.position);while(Oi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ra(d)&&d!==0)}for(;d!==0;){for(lf(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ra(d)){u++;continue}if(e.lineIndentt)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),Xo(e,t,C0,!0,a)&&(b?g=e.result:h=e.result),b||(Zo(e,d,m,p,g,h,o,s,u),p=g=h=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function zM(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Hn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;Oi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ra(o));break}if(ra(o))break;for(n=e.position;o!==0&&!Hn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&lf(e),ui.call(yx,r)?yx[r](e,r,a):w0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),Xo(e,e.lineIndent-1,C0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&kM.test(e.input.slice(t,e.position))&&w0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&k0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Hx(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)xe(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),Xo(e,t,C0,!0,a)&&(b?g=e.result:h=e.result),b||(Zo(e,d,m,p,g,h,o,s,u),p=g=h=null),qt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)xe(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&xe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):xe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function zM(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(qt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!qn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&xe(e,"directive name must not be less than one character in length");o!==0;){for(;Oi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ra(o));break}if(ra(o))break;for(n=e.position;o!==0&&!qn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&lf(e),ui.call(yv,r)?yv[r](e,r,a):w0(e,'unknown document directive "'+r+'"')}if(qt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qt(e,!0,-1)):i&&xe(e,"directives end mark is expected"),Xo(e,e.lineIndent-1,C0,!1,!0),qt(e,!0,-1),e.checkLineBreaks&&kM.test(e.input.slice(t,e.position))&&w0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&k0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Hv(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Jx(e){var t=/^\n* /;return t.test(e)}var Zx=1,of=2,Xx=3,$x=4,Qo=5;function vR(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=yR(xu(e,0))&&xR(xu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=xu(e,u),!Cu(l))return Qo;h=h&&Cx(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=xu(e,u),l===Su)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Cu(l))return Qo;h=h&&Cx(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?Zx:i===Tu?Qo:of:n>9&&Jx(e)?Qo:o?i===Tu?Qo:of:m?$x:Xx}function SR(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Tu?'""':"''";if(!e.noCompatMode&&(dR.indexOf(t)!==-1||mR.test(t)))return e.quotingType===Tu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return bR(e,l)}switch(vR(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Zx:return t;case of:return"'"+t.replace(/'/g,"''")+"'";case Xx:return"|"+wx(t,e.indent)+Ex(Sx(t,i));case $x:return">"+wx(t,e.indent)+Ex(Sx(TR(t,o),i));case Qo:return'"'+CR(t)+'"';default:throw new Un("impossible error: invalid scalar style")}}()}function wx(e,t){var n=Jx(e)?String(t):"",r=e[e.length-1]===` +`+Jt.repeat(" ",e.indent*t)}function bR(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Jv(e){var t=/^\n* /;return t.test(e)}var Zv=1,of=2,Xv=3,$v=4,Qo=5;function xR(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=yR(vu(e,0))&&vR(vu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=vu(e,u),!Cu(l))return Qo;h=h&&Cv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=vu(e,u),l===Su)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Cu(l))return Qo;h=h&&Cv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?Zv:i===Tu?Qo:of:n>9&&Jv(e)?Qo:o?i===Tu?Qo:of:m?$v:Xv}function SR(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===Tu?'""':"''";if(!e.noCompatMode&&(dR.indexOf(t)!==-1||mR.test(t)))return e.quotingType===Tu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return bR(e,l)}switch(xR(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case Zv:return t;case of:return"'"+t.replace(/'/g,"''")+"'";case Xv:return"|"+wv(t,e.indent)+Ev(Sv(t,i));case $v:return">"+wv(t,e.indent)+Ev(Sv(TR(t,o),i));case Qo:return'"'+CR(t)+'"';default:throw new Hn("impossible error: invalid scalar style")}}()}function wv(e,t){var n=Jv(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function Ex(e){return e[e.length-1]===` +`}function Ev(e){return e[e.length-1]===` `?e.slice(0,-1):e}function TR(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,Ax(e.slice(0,l),t)}(),a=e[0]===` +`);return l=l!==-1?l:e.length,n.lastIndex=l,Av(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+Ax(u,t),a=i}return r}function Ax(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+Av(u,t),a=i}return r}function Av(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function CR(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=xu(e,a),r=vn[n],!r&&Cu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||gR(n);return t}function wR(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function kx(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=af(e,t)),e.dump&&Su===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function ER(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function AR(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Un("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Su===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=af(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Su===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function Dx(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Dx(e,n,!1)||Dx(e,n,!0);var s=zx.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(AR(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(ER(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?kx(e,t-1,e.dump,a):kx(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(wR(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&SR(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Un("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function kR(e,t){var n=[],r=[],a,i;for(sf(e,n,r),a=0,i=r.length;ac.selected),[r,a]=V(!1),i=Te(null),[o,s]=V(ev),[u,l]=V(0);return ys(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,x=t.length*b+f*3,S=g+d.height;if(x>m.clientHeight-S){let T=Math.min(y,x);l(m.clientHeight-g-T-h)}else l(0);s(Math.max(ev,y))}},[i.current,r,t]),re(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),v("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[v("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[v(nv,{item:n,isDefault:!0}),L9]}),v(RR,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function RR(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Te(null);return re(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;uv(nv,{item:o,onClick:e.onClick},o.value))})}function nv(e){let t=e.item,{t:n}=se();return t?v("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&v("img",{class:"custom-select-item-img",src:t.img}),v("span",{children:[t.label,t.isShowProOrCustom&&v("span",{class:"custom-select-item-pro",children:["(",v("img",{src:Oo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&v("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var FR={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeL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zrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTjyPtxhVTdV69fd+9mJlG8VUhMefQYaqmMgmRShSK6PFpIlGBKIldKqQtJY2iiBocQLToHmMzJs4Vl0FoIyKLNEJYtudnEQcpogRJC4qgZQNdJS1woQyedlXE0kgAQUaPLgJA8A0EFIM5R+ouRKCilZiB4UpjOX0xIdGZCS7yS1j9MbChUcp6y1xjIxudKmVEXOEYh8cmGNYz4rE5WK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aycZ56aqQ4jx17IUlCsi/yiViopiRr161/FevTPnqlVJMLAXZQmn2S2QZNZlYJnJFVdE0/3W4fElRVyIn6R/bSlMcAJnwXgAAAABJRU5ErkJggg==",gemini:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubf39/k5OTq6urm5ubn5+fm5ubm5ubm5ubl5eXm5ubl5eXo6Ojk5OTn5+f////m5ub9/P3v7+/x8fHn5+f89/np6en19fVMjer5+flHluTs7Oz3+v739/dNi+tJkuZdku/w7fdLj+lKkOfY6Pr9/f6auvVPh+35+/71+P7u9P1nnO5OieyHoOrGu+X7/P7j2e7r6+tKkeeUk9uIecyLeMr+///y9/7l8PxjguJmgeB8fNOXiNKTdsaWdsTS5Pn29vajyfKMoelcoOi0teeTidR/e9GGes2ZdcC8dJy3apbFcY7EZ4D4+P3q8vzc6fukxPV8ru55fdWQd8e6aZHHcYnHZnr7+/v9+vvy8vvK3vjE2fi11PWWuPTc3POav/OErfF1pPBpou1Shutwq+qPoOdTnOZMlObEvOVNmuVHleXewNbgv9SDes+OeMnhsLycdLrjr7nBc5j5+P329vvh7fv59vrj5/nQ3/no6Pixz/WgxPOcxfGXwfHg2fCDsfDY1O+TwO+NvO+Cs++Ctu5omO7a0e1Xju1knexemuxYluuytehYnudPl+azsONsgN2inNuWktnqytXgsL7ir7q5eKSxbJ7LcoTCZ4TKZnXn8Pz28vjV3fe71vavyvaqx/WQtvTk4PO+zPP17PLT1PKUvPKUsPD57e94q+7y5OzTzezGxux9tex6sux1rexZk+zp3Ou9v+tppupSk+pPj+rOx+lZheiYpOZsjOVehOXJvOTCuOR7kuN2juPYxuLr0t6BhtlyftnFrtjw09enldWHhNWYi9TgvtGagcvmtbymebfgqLPKjKu0a5vt7fnZ4vnx7vjb4vjX3/jL1vWz0fWgvvXCz/SpwvSt0PN7p/Hb1e+Jt+9+neuGmONog+GkpOBqg+C8sN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n5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function D0(e){let t=FR[e];return t}function rv(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=OR(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?v("div",{class:"translation-service-container mt-3",children:[v(av,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),v(BR,{...e,currentTranslationService:a})]}):null}function av(e){let t=ye(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=Mr(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return v("div",{class:`min-select-container ${e.class||""}`,children:[v("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?v(tv,{className:"translate-service",items:t}):v(ai,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function BR({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=_R(e,o),l=IR(e,o),c=ke((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:v(Gt,{children:d.map(({label:m,items:p},g)=>v(av,{label:m,items:p,ctx:e},"field-"+g))})}function IR(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function _R(e,t){let{lang:n}=se();return ye(()=>{let a=I2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Cr,ep,e,n,t])}function OR({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?B2(t,"translationService",c):[],[t,c]),m=ke(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Qa(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=O2(f,e,g,l,!0),x=D0(f.id);f.id.startsWith("custom-ai")&&(x=D0("custom-ai")),f.id.startsWith("mock")&&(x="");let S=Si.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:x,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:D0("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function iv(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ov(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=NR(e),[o,s]=V(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return v("div",{class:"flex justify-between mt-5",children:[v(ai,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),v("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function NR({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&Xc(e)){c=iv(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(x=>Ze(e,x)),m=!!y.find(x=>Ze(e,x))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],x=y.filter(T=>T.match!==f),S=!1;x.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...x]})},[r]),b=ke((f,y)=>{if(f==="default"){s(T=>{let C={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:pf(e,C.matches),excludeMatches:pf(e,C.excludeMatches)}}}),h();return}let x=f,S=x==="matches"?"excludeMatches":"matches";l&&s(T=>{let C={...T.translationUrlPattern};return C[S]=pf(e,C[S]),C[x]=Gc(y,C[x]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...C}}}),x==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):x==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function pf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function sv(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",gf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=gf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:gf(n)},r,a);return jR(i)}catch{return Promise.reject("Encryption failed")}}function jR(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=Sc(y);let B=Cc(y);L.install_week=`${B.year}${B.week}`}if(n.user){let B=l1(n.user);B&&Object.keys(B).forEach(j=>{L[j]=B[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let j=new URL(B);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...I,params:L}});if(i)return;P.forEach(async I=>{let L=await Z({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:M})})}),n.config.enableSelfServiceReport&&UR(p,M),n.config.enablePerformanceReport&&zR(n,M)}catch(r){D.debug("report error",r)}}function UR(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};uv(r);let a=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var HR=Date.now(),qR=["translate_page","translate_video_subtitle"];function zR(e,t){try{t.forEach(async n=>{if(!qR.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};uv(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-HR},s=await sv(JSON.stringify(o),o1,s1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function uv(e){return e?.install_day&&(e.install_day=Tc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var WR=1e5;async function Ea(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GR(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:E,onFrame:k,onIgnoreElement:P,id:F,isLongHtml:M}=w,I=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let j=N(B);return j==NodeFilter.FILTER_ACCEPT?ft.mark(B,F,p):$R(B,j,r)&&x(),j}),L=E;if(N(L)===NodeFilter.FILTER_REJECT)return;for(ft.mark(L,F,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:G}=y(I,L,u);if(j)L=j;else break;if(!G)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){k&&k(j),x(),ff(g,!0),L=I.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&hf(j,s),d&&yf(j,d));let G=Vr(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(G&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(G=!1),At(j,o)&&!G){S(j);let le=null;for(;!(le=I.nextSibling())&&I.parentNode(););L=le;continue}let z=Mi(j);if(!lv(g,j)||G){x(j);let le=G?j:j.parentElement;le&&le.childNodes.length>0&&T(g,le,le.immersiveTranslateComputedStyle||null)}z&&j.shadowRoot?.mode==="open"&&(G?k?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&At(j,r.likePreSelectors)&&l&&(M||QR(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=I.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function N(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ri(B)){if(d){let ue=Object.keys(d);if(ue.length>0&&At(B,ue))for(let O of ue){let H=d[O];if(B.matches(O)){let Y=d[O],Ee=Object.keys(Y);for(let ge of Ee){let je=Y[ge];B.getAttribute(ge)!==je&&(je===null?B.removeAttribute(ge):B.setAttribute(ge,je))}break}}}if(!w.force&&ft.isMarked(B,F)||jy(B,F)||L0(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Ga(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let ue=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=ue,bf(ue))return P&&P(B),NodeFilter.FILTER_REJECT;let le=Vr(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},ue||null);if(B.isBlock=le,At(B,o)&&le)return NodeFilter.FILTER_REJECT}let j=B.getBoundingClientRect(),{width:G,height:z}=j;return B.nodeName==="IMG"&&(G>48&&z>48?B.immersiveTranslateComputedStyle={display:"block"}:G>0&&z>0&&m!==!1&&(B.setAttribute("width",G),B.setAttribute("height",z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(G>0&&G<4||z>0&&z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let j=B.textContent?.trim();if(!j)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let G=B.parentNode;if(G.getBoundingClientRect){let{width:z,height:ue}=G.getBoundingClientRect();if(z>0&&z<4||ue>0&&ue<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JR(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){D.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(w,E,k){let P=E.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(E))if(h=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,x(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,x(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};return{currentNode:E,isMatchedSelection:!0}}function x(w){let E=g.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let P=E;P>=0;P--){let M=g.flatNodes[P]?.textContent?.trim()||"";if(!M||new RegExp(r.skipTrailTextRegex).test(M)){g.flatNodes.splice(P,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eF(w,r);let P=[...g.flatNodes],F=g.flatNodes.filter(M=>w.parentNode?.contains(M));F.length>0&&P.length!=F.length&&(g.flatNodes=F,g.flatNodes.original=P)}let k=YR(g,a,r);k&&n&&n(k),ff(g)}function S(w){if(!lv(g,w)){x(),ff(g);let E=w.parentNode;E&&T(g,E,E.computedStyle)}g.flatNodes.push(w)}function T(w,E,k){w.commonAncestorContainer=E;let P=C(k);w.isPreWhitespace=P}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function lv(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mi(t));let r=KR(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GR(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VR(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function hf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KR(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mi(t)):!1}function YR(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=zc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VR(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WR){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Wy(o)}}else return null}function ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function bf(e){return e.display==="none"}var ft={_marked_key:P3,isMarked(e,t){return wp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return by(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QR(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function JR(e,t,n){let r=e.textContent||"",a=qy(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=uy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function dv(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),d=e.querySelector(u);if(d)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let h=d.innerText||d.textContent||"";if(!h.trim()||XR(d,a,i,o)||!cy(h,n,r))continue}d.getAttribute(m)!==p&&(p===null?d.removeAttribute(m):d.setAttribute(m,p))}}}function yf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function L0(e,t){return ZR(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function ZR(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(Hc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function wu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function XR(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&L0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Fc(o,t,n))return!0}}return!1}function $R(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Vr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Vr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function xf(e,t,n=[],r){let a=["notranslate"];return r&&a.push(H3),e&&(a.push(`${_}-target-translation-theme-${e}`),t?a.push(`${tm}-theme-${e}`):a.push(`${em}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(tm):a.push(em),a}function vf(e){let t=["notranslate",El];return e&&t.push(`${_}-target-translation-theme-${e}-inner`),t}function mv(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Pi(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),C=f[T-1]===" ",w=f[T+S.length]===" ",k=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),P=Number(k);if(isNaN(P))return S;let F=o[P];if(F&&F.type==="element"){let M=nt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(M=" "+M),w||(M=M+" "),M}else D.error("variable type not supported",F,S);return S}));let y=xf(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(U3);let x=vf(i);return Sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:x,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function P0(e,t,n,r,a){let i=t.original||t,o=Ay(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function pv(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function gv(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=nt.sanitize(Oc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Py(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Pi(t);if(c.length>2){let d=c[2];return tF({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=mv(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function Tf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),S=p[x-1]===" ",T=p[x+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],E=Number(w);if(isNaN(E))return y;let k=o[Number(E)];if(k&&k.type==="element"){let P=nt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(P=" "+P),T||(P=P+" "),P}else if(k&&k.type==="text"){let P=k.value;return S||(P=" "+P),T||(P=P+" "),P}else D.error("variable type not supported",k,y);return y}));let b=xf(l,n,r||[],s),f=vf(l);return Sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Cf(e){let t=e[e.length-1];return t?t.text:""}function fv(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Wl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nF(u.content,t),n&&(r=bv(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Gy(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function hv(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function nF(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rF(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return zc(i,document.body,t)}function rF(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function bv(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(wl)||wf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Eu="";async function wf(e){let t=document.title;if(!t||t.includes(wl))return;Eu!==t&&(Eu=t);let n=await Ie({text:t,pageLangs:[ct(),"en"]});if(!ko(e,n))try{let r=await na({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Eu,document.title=r.text+wl+Eu)}catch(r){throw r}}function xv(e){e.rule.isTranslateTitle&&(document.title=Eu)}function $o(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function M0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function CR(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=vu(e,a),r=xn[n],!r&&Cu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||gR(n);return t}function wR(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&wa(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function kv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&wa(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=af(e,t)),e.dump&&Su===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function ER(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wa(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function AR(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Hn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&Su===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=af(e,t)),wa(e,t+1,c,!0,d)&&(e.dump&&Su===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function Dv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function wa(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Dv(e,n,!1)||Dv(e,n,!0);var s=zv.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(AR(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(ER(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?kv(e,t-1,e.dump,a):kv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(wR(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&SR(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Hn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function kR(e,t){var n=[],r=[],a,i;for(sf(e,n,r),a=0,i=r.length;ac.selected),[r,a]=V(!1),i=Te(null),[o,s]=V(ex),[u,l]=V(0);return ys(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let T=Math.min(y,v);l(m.clientHeight-g-T-h)}else l(0);s(Math.max(ex,y))}},[i.current,r,t]),re(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(nx,{item:n,isDefault:!0}),L9]}),x(RR,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function RR(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Te(null);return re(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(nx,{item:o,onClick:e.onClick},o.value))})}function nx(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:Oo}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var FR={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2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ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTjyPtxhVTdV69fd+9mJlG8VUhMefQYaqmMgmRShSK6PFpIlGBKIldKqQtJY2iiBocQLToHmMzJs4Vl0FoIyKLNEJYtudnEQcpogR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znZsYHjfziW5SzHcQ6Y8whHoCqp8axgHHZUnlvg0L8e89B/PpLa4sGYNvL6Ao5CajEap0rxMPBgMjQ6jQkUUo3FaSLsyi2bIpmKTOMarVAGFkRaycZ56aqQ4jx17IUlCsi/yiViopiRr161/FevTPnqlVJMLAXZQmn2S2QZNZlYJnJFVdE0/3W4fElRVyIn6R/bSlMcAJnwXgAAAABJRU5ErkJggg==",gemini:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubf39/k5OTq6urm5ubn5+fm5ubm5ubm5ubl5eXm5ubl5eXo6Ojk5OTn5+f////m5ub9/P3v7+/x8fHn5+f89/np6en19fVMjer5+flHluTs7Oz3+v739/dNi+tJkuZdku/w7fdLj+lKkOfY6Pr9/f6auvVPh+35+/71+P7u9P1nnO5OieyHoOrGu+X7/P7j2e7r6+tKkeeUk9uIecyLeMr+///y9/7l8PxjguJmgeB8fNOXiNKTdsaWdsTS5Pn29vajyfKMoelcoOi0teeTidR/e9GGes2ZdcC8dJy3apbFcY7EZ4D4+P3q8vzc6fukxPV8ru55fdWQd8e6aZHHcYnHZnr7+/v9+vvy8vvK3vjE2fi11PWWuPTc3POav/OErfF1pPBpou1Shutwq+qPoOdTnOZMlObEvOVNmuVHleXewNbgv9SDes+OeMnhsLycdLrjr7nBc5j5+P329vvh7fv59vrj5/nQ3/no6Pixz/WgxPOcxfGXwfHg2fCDsfDY1O+TwO+NvO+Cs++Ctu5omO7a0e1Xju1knexemuxYluuytehYnudPl+azsONsgN2inNuWktnqytXgsL7ir7q5eKSxbJ7LcoTCZ4TKZnXn8Pz28vjV3fe71vavyvaqx/WQtvTk4PO+zPP17PLT1PKUvPKUsPD57e94q+7y5OzTzezGxux9tex6sux1rexZk+zp3Ou9v+tppupSk+pPj+rOx+lZheiYpOZsjOVehOXJvOTCuOR7kuN2juPYxuLr0t6BhtlyftnFrtjw09enldWHhNWYi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GxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function D0(e){let t=FR[e];return t}function rx(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=OR(e),a=ye(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(ax,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(BR,{...e,currentTranslationService:a})]}):null}function ax(e){let t=ye(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=Mr(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(tx,{className:"translate-service",items:t}):x(ai,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function BR({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=_R(e,o),l=IR(e,o),c=ke((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=ye(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Gt,{children:d.map(({label:m,items:p},g)=>x(ax,{label:m,items:p,ctx:e},"field-"+g))})}function IR(e,t){return ye(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function _R(e,t){let{lang:n}=se();return ye(()=>{let a=I2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Cr,ep,e,n,t])}function OR({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=ye(()=>t?B2(t,"translationService",c):[],[t,c]),m=ke(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=ye(()=>{let g=Qa(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=O2(f,e,g,l,!0),v=D0(f.id);f.id.startsWith("custom-ai")&&(v=D0("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Si.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:D0("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function ix(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ox(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=NR(e),[o,s]=V(()=>a?"excludeMatches":"matches"),u=ye(()=>r||a||!1,[r,a]),l=ke(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(ai,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function NR({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=ye(()=>new URL(e||""),[e]),t.config&&e&&Xc(e)){c=ix(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>Ze(e,v)),m=!!y.find(v=>Ze(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=ke(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(T=>T.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=ke((f,y)=>{if(f==="default"){s(T=>{let C={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:pf(e,C.matches),excludeMatches:pf(e,C.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(T=>{let C={...T.translationUrlPattern};return C[S]=pf(e,C[S]),C[v]=Gc(y,C[v]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...C}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function pf(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!Ze(e,n)):t):[]}async function sx(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",gf(t),"AES-GCM",!0,["encrypt","decrypt"]),a=gf(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:gf(n)},r,a);return jR(i)}catch{return Promise.reject("Encryption failed")}}function jR(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=I.params||{};if(F.os&&(L.os_name=F.os.name||"unknown",L.os_version=F.os.version||"unknown",L.os_version_name=F.os.versionName||"unknown"),F.browser&&(L.browser_name=F.browser.name||"unknown",L.browser_version=F.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),F.platform&&(L.platform_type=F.platform.type||"unknown"),F.engine&&(L.engine_name=F.engine.name||"unknown",L.engine_version=F.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let B=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),B&&(B.provider&&(L.translation_service_provider=B.provider),n.translationService==="openai"&&B.provider==="custom"&&(B.apiUrl?B.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),B.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Sc(y);let B=Cc(y);L.install_week=`${B.year}${B.week}`}if(n.user){let B=l1(n.user);B&&Object.keys(B).forEach(j=>{L[j]=B[j]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=E?"1":"0",L.is_new_user_this_year=k?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let B=n.url;try{let j=new URL(B);L.site_host=j.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...I,params:L}});if(i)return;P.forEach(async I=>{let L=await Z({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:M})})}),n.config.enableSelfServiceReport&&UR(p,M),n.config.enablePerformanceReport&&zR(n,M)}catch(r){D.debug("report error",r)}}function UR(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};ux(r);let a=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){D.debug("report self service error",n)}}var HR=Date.now(),qR=["translate_page","translate_video_subtitle"];function zR(e,t){try{t.forEach(async n=>{if(!qR.includes(n.name)||e.config.performanceBlockUrls?.some(l=>Ze(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};ux(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-HR},s=await sx(JSON.stringify(o),o1,s1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);Z({url:Ls,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){D.debug("report self service error",n)}}function ux(e){return e?.install_day&&(e.install_day=Tc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}var WR=1e5;async function Ea(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=GR(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(w){let{container:E,onFrame:k,onIgnoreElement:P,id:F,isLongHtml:M}=w,I=document.createTreeWalker(E,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,B=>{let j=N(B);return j==NodeFilter.FILTER_ACCEPT?ft.mark(B,F,p):$R(B,j,r)&&v(),j}),L=E;if(N(L)===NodeFilter.FILTER_REJECT)return;for(ft.mark(L,F,p);L;){if(i?.interruptEffectDOM)return;let B=Date.now()-t;if(B>50&&(D.debug("taskTime",B),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:j,isMatchedSelection:G}=y(I,L,u);if(j)L=j;else break;if(!G)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let j=L;if(j.nodeName==="IFRAME"){k&&k(j),v(),ff(g,!0),L=I.nextNode();continue}j.nodeType===Node.ELEMENT_NODE&&(s&&hf(j,s),d&&yf(j,d));let G=Vr(j,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},j.immersiveTranslateComputedStyle||null);if(G&&r.paragraphFirstLetterFontSize>0&&j.childNodes.length==1&&j.childNodes[0].nodeType===Node.TEXT_NODE&&j.innerText?.length==1&&j?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(G=!1),At(j,o)&&!G){S(j);let le=null;for(;!(le=I.nextSibling())&&I.parentNode(););L=le;continue}let z=Mi(j);if(!lx(g,j)||G){v(j);let le=G?j:j.parentElement;le&&le.childNodes.length>0&&T(g,le,le.immersiveTranslateComputedStyle||null)}z&&j.shadowRoot?.mode==="open"&&(G?k?.(j.shadowRoot):f({...w,container:j.shadowRoot})),j.nodeType===Node.ELEMENT_NODE&&At(j,r.likePreSelectors)&&l&&(M||QR(j))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=I.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function N(B){if(B.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ri(B)){if(d){let ue=Object.keys(d);if(ue.length>0&&At(B,ue))for(let O of ue){let H=d[O];if(B.matches(O)){let Y=d[O],Ee=Object.keys(Y);for(let ge of Ee){let je=Y[ge];B.getAttribute(ge)!==je&&(je===null?B.removeAttribute(ge):B.setAttribute(ge,je))}break}}}if(!w.force&&ft.isMarked(B,F)||jy(B,F)||L0(B,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||B.nodeName==="IFRAME"&&!Ga(B))return NodeFilter.FILTER_REJECT;if(B.nodeType===Node.ELEMENT_NODE){let ue=window.getComputedStyle(B);if(B.immersiveTranslateComputedStyle=ue,bf(ue))return P&&P(B),NodeFilter.FILTER_REJECT;let le=Vr(B,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},ue||null);if(B.isBlock=le,At(B,o)&&le)return NodeFilter.FILTER_REJECT}let j=B.getBoundingClientRect(),{width:G,height:z}=j;return B.nodeName==="IMG"&&(G>48&&z>48?B.immersiveTranslateComputedStyle={display:"block"}:G>0&&z>0&&m!==!1&&(B.setAttribute("width",G),B.setAttribute("height",z))),!B.childNodes||B.childNodes&&B.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(G>0&&G<4||z>0&&z<4)&&(B.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(B.nodeType===Node.TEXT_NODE){let j=B.textContent?.trim();if(!j)return/^( )+$/.test(B.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(B.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let G=B.parentNode;if(G.getBoundingClientRect){let{width:z,height:ue}=G.getBoundingClientRect();if(z>0&&z<4||ue>0&&ue<4)return NodeFilter.FILTER_REJECT}return c>0&&j.length>=c&&JR(B,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(w){D.error(w)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&v();function y(w,E,k){let P=E.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(E))if(h=!1,E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,v(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h}}else if(E&&E.nodeType===Node.ELEMENT_NODE)if(wu(E,k))h=!0,b=E,v(),T(g,b,P);else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};else return h=!1,E=w.nextNode(),{currentNode:E,isMatchedSelection:h};return{currentNode:E,isMatchedSelection:!0}}function v(w){let E=g.flatNodes.length-1;if(r.skipTrailTextRegex&&E>0)for(let P=E;P>=0;P--){let M=g.flatNodes[P]?.textContent?.trim()||"";if(!M||new RegExp(r.skipTrailTextRegex).test(M)){g.flatNodes.splice(P,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=eF(w,r);let P=[...g.flatNodes],F=g.flatNodes.filter(M=>w.parentNode?.contains(M));F.length>0&&P.length!=F.length&&(g.flatNodes=F,g.flatNodes.original=P)}let k=YR(g,a,r);k&&n&&n(k),ff(g)}function S(w){if(!lx(g,w)){v(),ff(g);let E=w.parentNode;E&&T(g,E,E.computedStyle)}g.flatNodes.push(w)}function T(w,E,k){w.commonAncestorContainer=E;let P=C(k);w.isPreWhitespace=P}function C(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function lx(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mi(t));let r=KR(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function GR(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function VR(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function hf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function KR(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mi(t)):!1}function YR(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=zc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=VR(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>WR){D.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Wy(o)}}else return null}function ff(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function bf(e){return e.display==="none"}var ft={_marked_key:P3,isMarked(e,t){return wp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return by(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ft.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mi(e)))return Et(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QR(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=Nn?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function JR(e,t,n){let r=e.textContent||"",a=qy(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=uy(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function dx(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||XR(p,a,i,o)||!cy(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function yf(e,t){if(t){let n=Object.keys(t);if(n.length>0&&At(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function L0(e,t){return ZR(e,t.excludeSelectorsRegexes)?!0:At(e,t.excludeSelectors||[])?At(e,t.selectors||[])?!1:!At(e,t.stayOriginalSelectors||[]):!1}function ZR(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!At(e,[r]))continue;if(Hc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return D.error(n),!1}}function wu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return At(e,t.concat(n))}function XR(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&L0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Fc(o,t,n))return!0}}return!1}function $R(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&Vr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function eF(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&Vr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function vf(e,t,n=[],r){let a=["notranslate"];return r&&a.push(H3),e&&(a.push(`${_}-target-translation-theme-${e}`),t?a.push(`${tm}-theme-${e}`):a.push(`${em}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(tm):a.push(em),a}function xf(e){let t=["notranslate",El];return e&&t.push(`${_}-target-translation-theme-${e}-inner`),t}function mx(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Pi(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),C=f[T-1]===" ",w=f[T+S.length]===" ",k=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),P=Number(k);if(isNaN(P))return S;let F=o[P];if(F&&F.type==="element"){let M=nt.sanitize(F.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return C||(M=" "+M),w||(M=M+" "),M}else D.error("variable type not supported",F,S);return S}));let y=vf(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(U3);let v=xf(i);return Sf({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function P0(e,t,n,r,a){let i=t.original||t,o=Ay(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function px(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function gx(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=nt.sanitize(Oc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Py(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Pi(t);if(c.length>2){let d=c[2];return tF({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=mx(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function Tf(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function tF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",T=p[v+y.length]===" ",C=y.match(h);if(!C)return y;let w=C[1],E=Number(w);if(isNaN(E))return y;let k=o[Number(E)];if(k&&k.type==="element"){let P=nt.sanitize(k.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(P=" "+P),T||(P=P+" "),P}else if(k&&k.type==="text"){let P=k.value;return S||(P=" "+P),T||(P=P+" "),P}else D.error("variable type not supported",k,y);return y}));let b=vf(l,n,r||[],s),f=xf(l);return Sf({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Sf({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Cf(e){let t=e[e.length-1];return t?t.text:""}function fx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return D.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return D.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Wl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=nF(u.content,t),n&&(r=bx(a,n))}catch(o){D.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Gy(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function hx(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&D.debug("update article node",n),e.articleNode=n)}function nF(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=rF(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return zc(i,document.body,t)}function rF(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function bx(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(wl)||wf(e).catch(i=>{D.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Eu="";async function wf(e){let t=document.title;if(!t||t.includes(wl))return;Eu!==t&&(Eu=t);let n=await Ie({text:t,pageLangs:[ct(),"en"]});if(!ko(e,n))try{let r=await na({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=Eu,document.title=r.text+wl+Eu)}catch(r){throw r}}function vx(e){e.rule.isTranslateTitle&&(document.title=Eu)}function $o(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function M0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function vv(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function xx(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Rp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${_}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function R0(e){let t=By(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function ln(e){let t=e.rule;e.isRichTranslate&&(t=kp(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aF={sanitize:e=>e};async function Df(e,t){if(e.interruptEffectDOM)return;let n=ln(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{Ef(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),to&&Et(t,"consumeContainer",e.id)}function Ef(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ga(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Xd}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Yr(t.contentWindow?.document.documentElement,e.translateState),Aa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),Aa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function Aa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=ln(t.ctx),o=0;if(l(t,e,n))return;if(Ri(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ri(d)&&(a&&hf(d,a),i&&yf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Df(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else to&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Ef(t,c.shadowRoot,n),!1;if(d==="iframe")return Ef(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return wu(c,m.selectors);if(m.containerSelectors&&wu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(We()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){hv(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=ln(c.ctx);return!!(L0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Au(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=es(e,t.targetNodes,s);li(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=es(e,t.targetNodes);li(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),Mf(t)}catch(s){D.error(s)}}}function Af(e){return!e||!Ri(e)?!1:e.classList.contains(Pt)}function es(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function li(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iF=Yn(F0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oF(t.rootNodes)||t.stepState>=2)return;t.stepState=2,to&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Pi(i),u=i.config.translationServices[i.translationService],l=P0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:R0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Pf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Kr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sF(e,t.text),Lf(e,t,r)):(to&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oF(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ri(t)&&t.classList.contains(Pt):!1}function sF(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Lf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),to&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,M3,"1",!0),n=="hover"){F0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iF.call(e,e.ctx,a)}async function F0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=uF(e,u.toString());l&&lF.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function uF(e,t){return e.find(n=>n.id===t)}function lF(e,t,n,r,a,i){let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),Mf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Pt),m.setAttribute(ao,"1");let p=gv(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),$o(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aF.sanitize(p);m.innerHTML=pr?.createHTML(g)||g,c.targetNodes=[m],Au(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,I3,m.toString()),p.classList.add("notranslate",Pt,Pt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Af(g)||li(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cF(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${_}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function R0(e){let t=By(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function ln(e){let t=e.rule;e.isRichTranslate&&(t=kp(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var aF={sanitize:e=>e};async function Df(e,t){if(e.interruptEffectDOM)return;let n=ln(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{Ef(e,r,!0)},onIgnoreElement:r=>{ft.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),to&&Et(t,"consumeContainer",e.id)}function Ef(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ga(t))return;D.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Xd}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Yr(t.contentWindow?.document.documentElement,e.translateState),Aa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(D.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),Aa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function Aa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=ln(t.ctx),o=0;if(l(t,e,n))return;if(Ri(e)&&u(e)){ft.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(D.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ri(d)&&(a&&hf(d,a),i&&yf(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ft.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ft.clearMark(c),t.immediateTranslateCapacity>=0){await Df(t,c);let d=Date.now()-r;d>100&&(D.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else to&&Et(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Ef(t,c.shadowRoot,n),!1;if(d==="iframe")return Ef(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return wu(c,m.selectors);if(m.containerSelectors&&wu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(We()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){hx(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ft.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=ln(c.ctx);return!!(L0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||At(d,g.skipBuildContainerSelectors)||At(d,g.stayOriginalSelectors))}}function Au(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ft.isSkipMarkEle(a)&&!ft.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=es(e,t.targetNodes,s);li(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=es(e,t.rootNodes);if(Af(s))return;li(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=es(e,t.targetNodes);li(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),Mf(t)}catch(s){D.error(s)}}}function Af(e){return!e||!Ri(e)?!1:e.classList.contains(Pt)}function es(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function li(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var iF=Qn(F0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||oF(t.rootNodes)||t.stepState>=2)return;t.stepState=2,to&&Et(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Pi(i),u=i.config.translationServices[i.translationService],l=P0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:R0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Pf(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Kr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(D.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),sF(e,t.text),Lf(e,t,r)):(to&&Et(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function oF(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ri(t)&&t.classList.contains(Pt):!1}function sF(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Lf(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),to&&Et(t.commonAncestorContainer,"consumeParagraph",e.id),Et(t.commonAncestorContainer,M3,"1",!0),n=="hover"){F0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";iF.call(e,e.ctx,a)}async function F0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Yt(a,t,(i,o,s)=>{let u=s.id,l=uF(e,u.toString());l&&lF.call(null,i,o,s,l,t,n)})}catch(i){D.error("translateCurrentQueue error",i);return}}function uF(e,t){return e.find(n=>n.id===t)}function lF(e,t,n,r,a,i){let o=!1,s=r;Do(s.commonAncestorContainer,n.id)?.remove(),Mf(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){D.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Pt),m.setAttribute(ao,"1");let p=gx(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),$o(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=aF.sanitize(p);m.innerHTML=Nn?.createHTML(g)||g,c.targetNodes=[m],Au(a,c,i)}o=!0}function l(c){c||(D.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);Et(p,I3,m.toString()),p.classList.add("notranslate",Pt,Pt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Af(g)||li(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=cF(a,c).replaceAll(` `,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,x=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),T=`
<${d.targetWrapperTag} class="${_}-error notranslate"> +`,"").replaceAll('"',"""),f=Pe(a.config.interfaceLanguage,"retryAllButton"),y=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=Pe(a.config.interfaceLanguage,"error.retry"),S=Pe(a.config.interfaceLanguage,"error.reason"),T=`<${d.targetWrapperTag} class="${_}-error notranslate"> <${d.targetWrapperTag} class="${_}-error-wrapper"> - ${x} + ${v}    @@ -5881,8 +5881,8 @@ x-tc-action:`+this.action.toLowerCase()+` ${S} - `;p.innerHTML=pr?.createHTML(T)||T}}}var Sv="";async function Pf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=Sv.slice(0,e.rule?.detectTextBufferLength)+" "+o),Sv=s;let u=await Ie({text:s,minLength:15,pageLangs:[ct(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Lo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Lo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=nc();r.isDetectParagraphLanguage&&(m="auto");let p=ct(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Zl.includes(e.translationService)&&(ne()||lt())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Oa(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Oa(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function ku(){kf=0}var kf=0;function cF(e,t){kf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),kf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(mn,{detail:r}))}return n}function Mf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,dF(t,`[${R3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function dF(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function Tv(e,t,n,r,a){let i=t,o=q3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${_}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=xy(m);s+=`--${_}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; + `;p.innerHTML=Nn?.createHTML(T)||T}}}var Sx="";async function Pf(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=Sx.slice(0,e.rule?.detectTextBufferLength)+" "+o),Sx=s;let u=await Ie({text:s,minLength:15,pageLangs:[ct(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Lo({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Lo({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=nc();r.isDetectParagraphLanguage&&(m="auto");let p=ct(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Zl.includes(e.translationService)&&(ne()||lt())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Oa(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Oa(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function ku(){kf=0}var kf=0;function cF(e,t){kf+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new U("contextInvalidated",n)),t instanceof U){let r=t.uiConfig(e);if(n=JSON.stringify(r),kf!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(mn,{detail:r}))}return n}function Mf(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,dF(t,`[${R3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function dF(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}function Tx(e,t,n,r,a){let i=t,o=q3[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${_}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=vy(m);s+=`--${_}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${_}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5895,11 +5895,11 @@ x-tc-action:`+this.action.toLowerCase()+` [imt-state="dual"] .${_}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?Fn(e,l,_+"-user-custom-style"):a&&Fn(e,"",_+"-user-custom-style")}function ts(e,t){let r=Le().IMMERSIVE_TRANSLATE_INJECTED_CSS;Fn(e,r,_+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Tv(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?Fn(e,l,_+"-user-custom-style"):a&&Fn(e,"",_+"-user-custom-style")}function ts(e,t){let r=Le().IMMERSIVE_TRANSLATE_INJECTED_CSS;Fn(e,r,_+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Tx(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&Fn(e,s,_+"-dynamic-injected-css")}async function Cv(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:Eo(document.body),pageLangs:t})),e}var mF=[];function wv(e){mF.push(e)}var Rf;function Ev(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=ln(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Du(e,i,t,r)}),Rf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&tr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Bf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Du(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Vr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Po(r,u.parentElement);c&&(ft.clearToParentMark(u,c),Du(e,c,t,r));continue}Du(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||Du(e,o,t,r)})}),Rf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Du(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Ff(t),Ea({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Av(){Rf?.disconnect()}var pF=` +`+t.rule.additionalInjectedCss)),s&&Fn(e,s,_+"-dynamic-injected-css")}async function Cx(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:Eo(document.body),pageLangs:t})),e}var mF=[];function wx(e){mF.push(e)}var Rf;function Ex(e){let t=e.ctx.rule.aiRule;if(D.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=ln(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{Du(e,i,t,r)}),Rf=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&nr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||Bf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&Du(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!Vr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Po(r,u.parentElement);c&&(ft.clearToParentMark(u,c),Du(e,c,t,r));continue}Du(e,u,t,r)}catch(u){D.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ft.isMarked(o,e.id)||Du(e,o,t,r)})}),Rf.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function Du(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&Ff(t),Ea({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Ax(){Rf?.disconnect()}var pF=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5982,10 +5982,10 @@ ${s}} max-width: fit-content; } } -`,If="immersive-translate-toastify-shadow-root",_f=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(If)){let t=document.getElementById(If);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=If,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=pF,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function I0(e){e=e||{},new _f({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function kv(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:hl,payload:e},"*")});let n=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(n)}function Of(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&On(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var Noe=1e3*3600*24;async function Dv(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[N3]:t.toISOString()}),await Nf(),ne()||await sb()}catch(t){D.error("run cron task failed",t)}}async function Nf(){try{let e=await dr(),t=await Z({url:Es});Ta(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=ee.runtime.getManifest().version;Io(s,o)?i>r?(await ee.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),zr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function jf(){let e=["bingGlobalConfig","baiduGlobalConfig",b3,Kd];for(let t of e)await ee.storage.local.remove(t);ne()||await H2(),await lm()}var use=Le().REDIRECT_URL;var Wse=$i([]);function Pv(e){let[t,n]=V(null);return re(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),re(()=>{wt().then(r=>{n(r)})},[e]),t}function Mv(){let[e,t]=V(null);return re(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var Lu=class extends hi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),v(xF,{error:this.error,info:this.info})):this.props.children}};function xF({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return v("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),v("div",{style:{marginTop:10},children:[n("error.configError"),v("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var vF=_n(SF,1e3);async function SF(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=za(t.proSyncAPIKey,t);return await Uf(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await Fv(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),Ky(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=za(t.proSyncAPIKey,t);return await Uf(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Yy(n)&&vF(n.token,e,t)},[e,n])}function TF(){let[e,t]=V(null);return re(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function Fv(e){return(location.href?.indexOf("popup.html")>0?va:Z)({responseType:"json",url:it+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Uf(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?va:Z)({responseType:"json",url:it+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function _0(e){let{onClose:t}=e,[n,r]=V("Original"),[a,i,o,s]=Rr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});ns(a,i);let[u,l]=V(null),[c,d]=V(globalThis.location.href),[m,p]=V("auto"),[g,h]=V(null),b=Te(!1);re(()=>{!g||b.current||(b.current=!0,He("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,b]);let f=I=>{r(I.detail)};re(()=>(document.addEventListener(xi,f,!1),dr().then(I=>{l(I);let L=ct();p(L);let N=Ve();r(N),Dv(I.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",f),document.removeEventListener("urlChange",S)}),[]),re(()=>{dr().then(I=>{l(I)})},[a]),re(()=>{c&&u&&O0().then(I=>{h(I)})},[c,u]);let y=ke((I,L)=>{T("change_translate_service",!1,{translation_service:`${I}_${L}`})()},[]);if(!u||!g)return null;return v(Pu,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:I=>{T("switchTranslationMode",!0,{mode:I})()},request:Z,onClose:C,onToggleEnabled:w,onChangeService:y,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{k(Di(g.rule)||c)},openAboutPage:F,openSharePage:T("shareToDraft",!0),onSetPageLanguage:x,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:xa,onSetBuildinConfig:X2,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:I=>T("updateContextState",!0,I)(),onOpenUrl:E,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function x(I){p(I);let L=ll(c,I,u.sourceLanguageUrlPattern);i(N=>({...N,sourceLanguageUrlPattern:L})),Xn(I)}function S(){d(globalThis.location.href)}function T(I,L,N={}){let B={trigger:"page_popup",...N};return()=>{Zt({method:I,data:B}),L&&t()}}function C(){t()}function w(){i(I=>({...I,enabled:!I.enabled})),setTimeout(()=>{C()},50)}function E(I,L){let N=I;L&&(N=`${I}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),dc(N,!0),setTimeout(()=>{C()},50)}function k(I){I&&(bo(!1,I),setTimeout(()=>{C()},50))}function P(I=!0,L=""){Na(I,L),setTimeout(()=>{t()},50)}function F(){cc(),setTimeout(()=>{t()},50)}function M(){ob(),setTimeout(()=>{t()},50)}}function jv(){let[e,t]=V("Original");return re(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(xi,r),()=>{document.removeEventListener(xi,r)}},[]),{pageStatus:e}}function Uv(){let[e,t]=V("Original");return re(()=>{let n=ho();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ts,r),()=>{document.removeEventListener(Ts,r)}},[]),{mangaStatus:e}}var Bv=6,CF={position:"right",top:335};function Hv({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Te(null),o=Te(null),[s,u]=V(!1),l=Te(!1);l.current=s;let c=Te(null),d=Te(!1),m=Te(n.floatBallConfig||CF),p=Te(0),g=Te(0),h=Te(0),b=Te(!1),f=Te(0),y=Te(0),x=Te(0),S=Te(0),T=Te(!1),C=ke(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=We().any||Vn();c.current=setTimeout(()=>{u(w),b.current=!1},E?3e3:0)}},[u,c,b,a]);return re(()=>{a||u(!1)},[a]),re(()=>{if(i.current&&m.current){let w=Hf(m.current.top);m.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),re(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),x.current=L.clientX,S.current=L.clientY,T.current=!1,(We().any||Vn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{Iv({startX:p.current,startY:g.current,endX:x.current,endY:S.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",M),document.addEventListener("touchcancel",M)},E=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(x.current=L.clientX,S.current=L.clientY,T.current))return;let N=L.clientY-g.current+h.current,B=Hf(N);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),b.current||C(!1),T.current)return;Iv({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let B=Hf(L.clientY-30);m.current.top=B;let j=await Mn();xa({...j,floatBallConfig:m.current})},P=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},M=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",P),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",P))}},[t,o,i,c,d,n,C,e]),re(()=>{if(We().any)return;let w=k=>{k.target===i.current&&!b.current||!l.current&&Ov(k)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&Ov(k)&&c.current)){if(d.current){b.current=!1;return}k.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function Iv({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>Bv||i>Bv}function qv(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function zv(){let[e,t]=V(!1);return re(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var _v="hasShownFloatingBallGuide",wF="2024-01-06";function Wv(e,t){let[n,r]=V(!1),a=ke(()=>{rt(_v,new Date().toISOString()),r(!0)},[r]);re(()=>{if(!e.config.enableShowFloatingBallGuide||ct()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ut(_v,""),u=await Ut("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(vl,o),()=>{document.removeEventListener(vl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function Gv(){document.dispatchEvent(new CustomEvent(vl))}function Vv(e,t){let n=Te(0),[r,a]=V(!0),[i,o]=V(!1),s=Rr(),[u,l]=s,{t:c}=se(),d=ke(()=>{e?.config.floatBallTooltipRule&&(We().any||Vn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);re(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,We().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let h=await yn();l(b=>{let f={...h};return We().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>We().any||!r||Vn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(We().any||Vn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Xa(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${_o(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function Hf(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var qf=0;function Ov(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(qf=Date.now(),!0):Date.now()-qf<100}function Kv(e,t){re(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(vi,n),()=>{globalThis.document.addEventListener(vi,n)}},[e,t])}function Yv(e,t){let n=Te(e);n.current=e,re(()=>{!n.current||!t||He("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var Nv="imt-float-ball-active";function Qv(e){re(()=>{let t=!!document.querySelector(`meta[name='${Nv}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(Nv)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(yl,n),()=>{document.removeEventListener(yl,n)}},[])}function Jv(e){document.dispatchEvent(new CustomEvent(yl,{detail:{active:e}}))}function EF({isOpen:e,onClose:t,children:n}){let[r,a]=V(e);return re(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:v(Gt,{children:[e&&v("div",{className:`${_}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),v("div",{className:`${_}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:v("div",{className:`${_}-sheet-content`,children:n})})]})}var N0=EF;var Ui="imt-fb";function Xv(e){if(globalThis.innerWidth<=385)return v(N0,{isOpen:e.visible,onClose:e.onClose,children:v(Zv,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${_}-popup-overlay`&&e.onClose()};return e.visible?v("div",{onClick:r,id:`${_}-popup-overlay`,class:`${_}-popup-overlay`,children:v("div",{class:`${_}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:v(Zv,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function Zv(e){let{t}=se(),[n,r]=V("UntilNext"),a=lc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return v("div",{class:`${Ui}-close-content`,style:e.contentStyle,children:[v("div",{class:"flex justify-between",children:[v("div",{class:`${Ui}-close-title`,children:e.title||t("closeQuickTranslation")}),v("div",{class:"clickable",onClick:e.onClose,children:v(Kt,{type:"modal-close"})})]}),v("div",{class:`${Ui}-close-radio-content mt-3`,children:o.map(s=>v(AF,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Wr(u)}},s.type))}),v("div",{class:"flex mt-3 flex-end",children:[v("div",{class:`${Ui}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),v("div",{class:`${Ui}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function AF(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=kF(r||"");return v("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[v("div",{class:t?`${Ui}-radio-sel`:`${Ui}-radio-nor`,children:v("div",{})}),v("div",{class:"ml-2 text-sm",children:[v("span",{children:n}),r?v("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:v("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function kF(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var DF=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=V(!1),h=Te(null),b=Te(null),f=()=>{u||!l&&(We().any||Vn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(We().any||Vn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x()},2e3))},x=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=ye(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),T=ye(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),C=w=>Ic()?v("div",{style:S,role:"tooltip",children:w}):v("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return v("div",{class:a,onMouseEnter:f,onMouseLeave:x,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[v("div",{children:t}),p&&v("div",{style:T,children:C(e)})]})},fr=DF;function $v(e){return xe.ASSETS_BASE_URL+e}var Hi="imt-fb";function eS(e){let{t}=se(),n=a=>{a?.target?.id===_+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?v("div",{onClick:n,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:v("div",{class:`${Hi}-guide-container`,style:r,children:[v("img",{class:`${Hi}-guide-bg ${e.fixedPosition}`,src:LF}),v("div",{class:`${Hi}-guide-content ${e.fixedPosition}`,children:[v("img",{class:`${Hi}-guide-img`,src:$v("images/float_ball_intro.png")}),v("div",{class:`${Hi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),We().any?` -${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var LF="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYW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iIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var tS="imt-manga";function nS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===_+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(J3);window.open(Y3)}},[a,t]);return e?v("div",{onClick:o,id:_+"-popup-overlay",class:`${_}-popup-overlay`,style:{pointerEvents:"all"},children:v("div",{class:"imt-fb-guide-container",style:s,children:[v("img",{class:`${tS}-guide-bg ${r}`,src:`${h3}static/extension/images/popup-manga-bg.png`}),v("div",{class:`${tS}-guide-content ${r}`,children:[v("div",{class:"imt-fb-guide-message",children:u}),v("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),v(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function j0(e,t){return ne(t)?!1:PF(e.config,e.isPro)}function PF(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function U0(e){let t=Fi();return!(e?.platforms&&!e.platforms.includes(t))}function zf(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function rS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var ka="imt-fb";function Wf(e){let{t}=se(),n=Rr(),[r,a,i,o]=n;ns(r,a);let s=Pv(r),u=e.ctx,{isFullScreen:l}=zv(),[c,d]=V(!1),m=Te(c);m.current=c;let[p,g]=V(!0),{pageStatus:h}=jv(),b=ru(u,r),f=ke(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=ke(()=>{d(!0)},[d]),x=p&&!!s,{containerRef:S,active:T,ballRef:C,floatBallConfigRef:w,setActive:E}=Hv({handleBallClick:f,handleMobileBallLongPress:y,isShow:x,localConfig:e.localConfig,popupVisible:c}),k=b?.fixedPosition||"right",P=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:M}=Wv(e.ctx,b),{closeTransform:I,logoContainerTransform:L,settingTransform:N,mangaTransform:B}=qv(b,T||F);Yv(u,T);let{tooltipDelay:j,disableTooltip:G,tooltipText:z,handleShowTooltip:ue}=Vv(u,h);Kv(d,m),Qv(E);let O=globalThis.innerWidth<=385;return x?v(Gt,{children:v("div",{class:`${ka}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||F||c?"all":"none"},ref:S,children:[v(MF,{ctx:u,setVisible:g,closeTransform:I,setActive:E,getModalStyle:()=>aS(w.current.top,300,k)}),v(fr,{enableMobile:!0,text:z,position:P,delay:j,onShow:ue,disable:G,children:v("div",{class:`${ka}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:T||F?1:.5},children:v("div",{children:[v(Kt,{type:"logo"}),v(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),v(BF,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:F}),v("div",{style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:[v(fr,{text:t("translateFileTooltip"),multiple:!0,position:P,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{dc(n1,!0)},children:v(Kt,{type:"file"})})}),v(fr,{text:t("floatBall.setting"),position:P,containerClass:"btn-animate",children:v("div",{class:`${ka}-more-button`,onClick:()=>{E(!0),d(!0)},children:v(Kt,{type:"setting"})})}),v(_F,{ctx:u,tooltipPosition:P,rule:b,active:T})]}),v("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:v(fr,{text:t("reportTip"),position:P,containerClass:"btn-animate",children:v(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}}))}})})}),v(Gf,{onClose:()=>{E(!1),d(!1)},isSheet:O,visible:c,getModalStyle:()=>aS(w.current.top,500,k)}),v(eS,{visible:F,top:w.current.top,fixedPosition:k,onClose:()=>{M(),E(!1)}})]})}):null}function MF(e){let{t}=se(),[n,r]=V(!1),a=Rr(),[i,o,s,u]=a,l=ru(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>Uc({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return v(Gt,{children:[v("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:v(Kt,{type:"close"})}),v(Xv,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function Gf(e){let t=n=>{n?.target?.id===_+"-popup-overlay"&&e.onClose()};return e.isSheet?v(N0,{isOpen:e.visible,onClose:e.onClose,children:v(_0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?v("div",{onClick:t,style:e.overlayStyle,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:v("div",{class:`${_}-popup-wrapper`,style:e.getModalStyle(),children:v(_0,{onClose:e.onClose})})}):null}function RF(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var aS=(e,t,n)=>{let a=RF().height,i={position:"fixed"},o=0;return V4()&&(e=FF.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},FF={position:"right",right:0,top:335};function BF({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=V(!1),{mangaStatus:u}=Uv(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();re(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!U0(l)||r||!l?.enable?null:v(Gt,{children:[v("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[v(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),v(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),v(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),v(fr,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:v(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"mangaReport"}}))}})})]}),v(nS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var IF="float_ball_upgrade_show_count";function _F(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Qa(n.config),s=Te(!1),[u,l]=V(null),c=ye(()=>No(n.config),[n]),d=p=>No(p)?.upgradeShowCountCacheKey||IF;re(()=>{Ci(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=No(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return re(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wi(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?v(fr,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||am,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:v("div",{class:`${ka}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:v(Kt,{type:"upgrade"})})})}):v(fr,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(am,"_blank")},children:v(Kt,{type:"upgrade"})})})}async function iS(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await rr(t),r=document.createElement("div");r.id=_+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});OF(a,e,n),document.documentElement.appendChild(r)}catch{}}function OF(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Le(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);NF(e,[i]),e.appendChild(r),Hr(v(Za,{lang:t.interfaceLanguage,children:v(jF,{ctx:n})}),r)}function NF(e,t){for(let n of t){if(ne()&&!Gn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function jF(e){let[t,n]=V(!1),r=Te(t);r.current=t;let a=Te(""),i=Te("");re(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(vi,u),()=>{globalThis.document.addEventListener(vi,u)}},[r]);let o=globalThis.innerWidth,s=We().any&&o<=450;return v(Gf,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function H0(e){document.dispatchEvent(new CustomEvent(vi,{detail:e||{}}))}function UF(e,t){for(let n of t){if(ne()&&!Gn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vf(){let e=await dr(),t=await yn(),n={url:globalThis.location.href,config:e},r=await rr(n),a=await Mp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return iS();let s=document.createElement("div");s.id=_+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return HF(u,e,o,r),document.documentElement.appendChild(s),s}function oS(){let e=document.getElementById(_+"-popup");e&&e.remove(),Vf()}function HF(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Le(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);UF(e,[o]),e.appendChild(a),Hr(v(Za,{lang:t.interfaceLanguage,children:v(Wf,{localConfig:n,ctx:r})}),a)}var sS=!1;async function uS(){sS||(sS=!0,Vf().catch(e=>{D.error("init popup error",e)}))}var Mu=null;function Ru(e,t,n){let r=globalThis.location.href,a=document.createElement("div");Mu={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function Kf(){let e=globalThis.location.href;if(!(!Mu||Mu.url!==e||!Mu.subtitleItems.length))return Mu}async function lS(){let e=Kf();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Wr(r1)}async function cS(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function dS(e,t){let n,r;if(t){let a=M0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=za(!1,r)}return{siteUrl:location.href,pluginVersion:pn(),isMobile:We().any,platform:Fi(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function mS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Yf={};function ci(e){let t=q0(e)||{};Yf[e.sourceUrl+"_"+e.to]={...t,...e}}function q0(e){return Yf[e.sourceUrl+"_"+e.to]}async function pS(e,t){let n=location.href,r=Object.values(Yf).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:We().any,platform:Fi(),images:[],version:pn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=M0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=za(!1,o)}return a}async function gS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Fu={width:94,height:80};function fS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?fS(e.parentElement,t+1):e}function rs(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=fS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Fu.width+"px",c.style.height=Fu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Fu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Fu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Fu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,If="immersive-translate-toastify-shadow-root",_f=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(If)){let t=document.getElementById(If);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=If,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=pF,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function I0(e){e=e||{},new _f({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function kx(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function Zt(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{D.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:hl,payload:e},"*")});let n=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(n)}function Of(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&On(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var joe=1e3*3600*24;async function Dx(e){try{let t=new Date;D.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[N3]:t.toISOString()}),await Nf(),ne()||await sb()}catch(t){D.error("run cron task failed",t)}}async function Nf(){try{let e=await mr(),t=await Z({url:Es});Ta(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=ee.runtime.getManifest().version;Io(s,o)?i>r?(await ee.storage.local.set({buildinConfig:t}),D.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),zr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{D.error("send content message request failed from cron task",u)})):D.debug(`no need to sync rules, latest: ${r}`):D.info(`local version is too old, please update to ${o} or later`)}catch(e){D.error("sync rules error: ",e)}}async function jf(){let e=["bingGlobalConfig","baiduGlobalConfig",b3,Kd];for(let t of e)await ee.storage.local.remove(t);ne()||await H2(),await lm()}var lse=Le().REDIRECT_URL;var Gse=$i([]);function Px(e){let[t,n]=V(null);return re(()=>{wt().then(r=>{n(r),D.debug("current config",r)})},[]),re(()=>{wt().then(r=>{n(r)})},[e]),t}function Mx(){let[e,t]=V(null);return re(()=>{Vt().then(r=>{t(r)})},[]),[e,r=>{t(r),Rt(r)}]}var Lu=class extends hi{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(D.error("ErrorBoundary",this.error,this.info),x(vF,{error:this.error,info:this.info})):this.props.children}};function vF({error:e,info:t}){let{t:n}=se(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return x("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),x("div",{style:{marginTop:10},children:[n("error.configError"),x("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var xF=_n(SF,1e3);async function SF(e,t,n){try{if(t===null)return"noupdate";let r=await Vt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=za(t.proSyncAPIKey,t);return await Uf(e,c),await Rt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await Fx(e);r.accountLastSyncedAt=Date.now(),D.debug("settings",t),D.debug("remoteSettings",a),D.debug("local settings.updatedAt",t.updatedAt),D.debug("remote settings.updatedAt",a.updatedAt),D.debug("last synced at",r.accountLastSyncedAt),Ky(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),D.debug("isUpload",o),o){let u=za(t.proSyncAPIKey,t);return await Uf(e,u),await Rt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Yy(n)&&xF(n.token,e,t)},[e,n])}function TF(){let[e,t]=V(null);return re(()=>{mt.get(dt,null).then(n=>{t(n)})},[t]),e}function Fx(e){return(location.href?.indexOf("popup.html")>0?xa:Z)({responseType:"json",url:it+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Uf(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?xa:Z)({responseType:"json",url:it+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function _0(e){let{onClose:t}=e,[n,r]=V("Original"),[a,i,o,s]=Rr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});ns(a,i);let[u,l]=V(null),[c,d]=V(globalThis.location.href),[m,p]=V("auto"),[g,h]=V(null),b=Te(!1);re(()=>{!g||b.current||(b.current=!0,He("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,b]);let f=I=>{r(I.detail)};re(()=>(document.addEventListener(vi,f,!1),mr().then(I=>{l(I);let L=ct();p(L);let N=Ve();r(N),Dx(I.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",f),document.removeEventListener("urlChange",S)}),[]),re(()=>{mr().then(I=>{l(I)})},[a]),re(()=>{c&&u&&O0().then(I=>{h(I)})},[c,u]);let y=ke((I,L)=>{T("change_translate_service",!1,{translation_service:`${I}_${L}`})()},[]);if(!u||!g)return null;return x(Pu,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:I=>{T("switchTranslationMode",!0,{mode:I})()},request:Z,onClose:C,onToggleEnabled:w,onChangeService:y,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:P,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{k(Di(g.rule)||c)},openAboutPage:F,openSharePage:T("shareToDraft",!0),onSetPageLanguage:v,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:va,onSetBuildinConfig:X2,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:I=>T("updateContextState",!0,I)(),onOpenUrl:E,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function v(I){p(I);let L=ll(c,I,u.sourceLanguageUrlPattern);i(N=>({...N,sourceLanguageUrlPattern:L})),$n(I)}function S(){d(globalThis.location.href)}function T(I,L,N={}){let B={trigger:"page_popup",...N};return()=>{Zt({method:I,data:B}),L&&t()}}function C(){t()}function w(){i(I=>({...I,enabled:!I.enabled})),setTimeout(()=>{C()},50)}function E(I,L){let N=I;L&&(N=`${I}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),dc(N,!0),setTimeout(()=>{C()},50)}function k(I){I&&(bo(!1,I),setTimeout(()=>{C()},50))}function P(I=!0,L=""){Na(I,L),setTimeout(()=>{t()},50)}function F(){cc(),setTimeout(()=>{t()},50)}function M(){ob(),setTimeout(()=>{t()},50)}}function jx(){let[e,t]=V("Original");return re(()=>{let n=Ve();t(n);let r=a=>{t(a.detail)};return document.addEventListener(vi,r),()=>{document.removeEventListener(vi,r)}},[]),{pageStatus:e}}function Ux(){let[e,t]=V("Original");return re(()=>{let n=ho();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ts,r),()=>{document.removeEventListener(Ts,r)}},[]),{mangaStatus:e}}var Bx=6,CF={position:"right",top:335};function Hx({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Te(null),o=Te(null),[s,u]=V(!1),l=Te(!1);l.current=s;let c=Te(null),d=Te(!1),m=Te(n.floatBallConfig||CF),p=Te(0),g=Te(0),h=Te(0),b=Te(!1),f=Te(0),y=Te(0),v=Te(0),S=Te(0),T=Te(!1),C=ke(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let E=We().any||Kn();c.current=setTimeout(()=>{u(w),b.current=!1},E?3e3:0)}},[u,c,b,a]);return re(()=>{a||u(!1)},[a]),re(()=>{if(i.current&&m.current){let w=Hf(m.current.top);m.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),re(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),C(!0),v.current=L.clientX,S.current=L.clientY,T.current=!1,(We().any||Kn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{Ix({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",E),document.addEventListener("touchmove",F),document.addEventListener("mouseup",k),document.addEventListener("touchend",M),document.addEventListener("touchcancel",M)},E=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,T.current))return;let N=L.clientY-g.current+h.current,B=Hf(N);i.current.style.top=`${B}px`},k=async L=>{if(L.preventDefault&&L.preventDefault(),I(),d.current=!1,clearTimeout(c.current),b.current||C(!1),T.current)return;Ix({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let B=Hf(L.clientY-30);m.current.top=B;let j=await Mn();va({...j,floatBallConfig:m.current})},P=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},M=L=>{L.preventDefault&&L.preventDefault(),k(L.changedTouches[0])},I=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",F),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",P),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",P))}},[t,o,i,c,d,n,C,e]),re(()=>{if(We().any)return;let w=k=>{k.target===i.current&&!b.current||!l.current&&Ox(k)&&c.current||(b.current=!0,C(!0),clearTimeout(c.current))},E=k=>{if(!(!l.current&&Ox(k)&&c.current)){if(d.current){b.current=!1;return}k.target===i.current&&!b.current||C(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",E),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",E)}},[i,d,C,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:C}}function Ix({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>Bx||i>Bx}function qx(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ye(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ye(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ye(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ye(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function zx(){let[e,t]=V(!1);return re(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var _x="hasShownFloatingBallGuide",wF="2024-01-06";function Wx(e,t){let[n,r]=V(!1),a=ke(()=>{rt(_x,new Date().toISOString()),r(!0)},[r]);re(()=>{if(!e.config.enableShowFloatingBallGuide||ct()==e.targetLanguage)return;let o=Ze(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ut(_x,""),u=await Ut("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(xl,o),()=>{document.removeEventListener(xl,o)}},[]);let i=ke(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function Gx(){document.dispatchEvent(new CustomEvent(xl))}function Vx(e,t){let n=Te(0),[r,a]=V(!0),[i,o]=V(!1),s=Rr(),[u,l]=s,{t:c}=se(),d=ke(()=>{e?.config.floatBallTooltipRule&&(We().any||Kn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);re(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,We().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=ke(async()=>{if(!e)return;n.current=n.current+1,d();let h=await yn();l(b=>{let f={...h};return We().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=ye(()=>We().any||!r||Kn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=ye(()=>{if(We().any||Kn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:Xa(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${_o(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function Hf(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var qf=0;function Ox(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(qf=Date.now(),!0):Date.now()-qf<100}function Kx(e,t){re(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xi,n),()=>{globalThis.document.addEventListener(xi,n)}},[e,t])}function Yx(e,t){let n=Te(e);n.current=e,re(()=>{!n.current||!t||He("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var Nx="imt-float-ball-active";function Qx(e){re(()=>{let t=!!document.querySelector(`meta[name='${Nx}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(Nx)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(yl,n),()=>{document.removeEventListener(yl,n)}},[])}function Jx(e){document.dispatchEvent(new CustomEvent(yl,{detail:{active:e}}))}function EF({isOpen:e,onClose:t,children:n}){let[r,a]=V(e);return re(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Gt,{children:[e&&x("div",{className:`${_}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${_}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${_}-sheet-content`,children:n})})]})}var N0=EF;var Ui="imt-fb";function Xx(e){if(globalThis.innerWidth<=385)return x(N0,{isOpen:e.visible,onClose:e.onClose,children:x(Zx,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${_}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${_}-popup-overlay`,class:`${_}-popup-overlay`,children:x("div",{class:`${_}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(Zx,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function Zx(e){let{t}=se(),[n,r]=V("UntilNext"),a=lc()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Ui}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Ui}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Kt,{type:"modal-close"})})]}),x("div",{class:`${Ui}-close-radio-content mt-3`,children:o.map(s=>x(AF,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Wr(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Ui}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Ui}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function AF(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=kF(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Ui}-radio-sel`:`${Ui}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function kF(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var DF=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=V(!1),h=Te(null),b=Te(null),f=()=>{u||!l&&(We().any||Kn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(We().any||Kn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{v()},2e3))},v=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=ye(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),T=ye(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},E={...c};switch(E.width&&delete E.width,E.maxWidth&&delete E.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...E};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...E};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...E};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...E};default:return{}}},[n,i,o,c]),C=w=>Ic()?x("div",{style:S,role:"tooltip",children:w}):x("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:T,children:C(e)})]})},fr=DF;function $x(e){return ve.ASSETS_BASE_URL+e}var Hi="imt-fb";function eS(e){let{t}=se(),n=a=>{a?.target?.id===_+"-popup-overlay"&&e.onClose()},r=ye(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:x("div",{class:`${Hi}-guide-container`,style:r,children:[x("img",{class:`${Hi}-guide-bg ${e.fixedPosition}`,src:LF}),x("div",{class:`${Hi}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Hi}-guide-img`,src:$x("images/float_ball_intro.png")}),x("div",{class:`${Hi}-guide-message`,children:[t("floatBall.guideClickToTranslate"),We().any?` +${t("floatBall.longPress")}`:""]}),x("div",{class:`${Hi}-primary-btn ${Hi}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var LF="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0PSIzNzIiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhd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jwvZGVmcz4KPC9zdmc+Cg==";var tS="imt-manga";function nS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===_+"-popup-overlay"&&t()},s=ye(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=ke(()=>{if(t(),!a.isPro){if(a.user)return window.open(J3);window.open(Y3)}},[a,t]);return e?x("div",{onClick:o,id:_+"-popup-overlay",class:`${_}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${tS}-guide-bg ${r}`,src:`${h3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${tS}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Kt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}function j0(e,t){return ne(t)?!1:PF(e.config,e.isPro)}function PF(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function U0(e){let t=Fi();return!(e?.platforms&&!e.platforms.includes(t))}function zf(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function rS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var ka="imt-fb";function Wf(e){let{t}=se(),n=Rr(),[r,a,i,o]=n;ns(r,a);let s=Px(r),u=e.ctx,{isFullScreen:l}=zx(),[c,d]=V(!1),m=Te(c);m.current=c;let[p,g]=V(!0),{pageStatus:h}=jx(),b=ru(u,r),f=ke(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=ke(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:T,ballRef:C,floatBallConfigRef:w,setActive:E}=Hx({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),k=b?.fixedPosition||"right",P=k==="right"?"left":"right",{isShowGuide:F,handleCloseGuide:M}=Wx(e.ctx,b),{closeTransform:I,logoContainerTransform:L,settingTransform:N,mangaTransform:B}=qx(b,T||F);Yx(u,T);let{tooltipDelay:j,disableTooltip:G,tooltipText:z,handleShowTooltip:ue}=Vx(u,h);Kx(d,m),Qx(E);let O=globalThis.innerWidth<=385;return v?x(Gt,{children:x("div",{class:`${ka}-container ${k} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||F||c?"all":"none"},ref:S,children:[x(MF,{ctx:u,setVisible:g,closeTransform:I,setActive:E,getModalStyle:()=>aS(w.current.top,300,k)}),x(fr,{enableMobile:!0,text:z,position:P,delay:j,onShow:ue,disable:G,children:x("div",{class:`${ka}-btn ${k} btn-animate `,ref:C,style:{transform:L,opacity:T||F?1:.5},children:x("div",{children:[x(Kt,{type:"logo"}),x(Kt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(BF,{ctx:u,mangaTransform:B,floatBallConfigRef:w,fixedPosition:k,hidden:F}),x("div",{style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:[x(fr,{text:t("translateFileTooltip"),multiple:!0,position:P,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{dc(n1,!0)},children:x(Kt,{type:"file"})})}),x(fr,{text:t("floatBall.setting"),position:P,containerClass:"btn-animate",children:x("div",{class:`${ka}-more-button`,onClick:()=>{E(!0),d(!0)},children:x(Kt,{type:"setting"})})}),x(_F,{ctx:u,tooltipPosition:P,rule:b,active:T})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:x(fr,{text:t("reportTip"),position:P,containerClass:"btn-animate",children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}}))}})})}),x(Gf,{onClose:()=>{E(!1),d(!1)},isSheet:O,visible:c,getModalStyle:()=>aS(w.current.top,500,k)}),x(eS,{visible:F,top:w.current.top,fixedPosition:k,onClose:()=>{M(),E(!1)}})]})}):null}function MF(e){let{t}=se(),[n,r]=V(!1),a=Rr(),[i,o,s,u]=a,l=ru(e.ctx,i),c=ke(m=>{e.ctx&&o(p=>Uc({...p},m))},[e.ctx,o]),d=ke(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Gt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Kt,{type:"close"})}),x(Xx,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function Gf(e){let t=n=>{n?.target?.id===_+"-popup-overlay"&&e.onClose()};return e.isSheet?x(N0,{isOpen:e.visible,onClose:e.onClose,children:x(_0,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:_+"-popup-overlay",class:`${_}-popup-overlay`,children:x("div",{class:`${_}-popup-wrapper`,style:e.getModalStyle(),children:x(_0,{onClose:e.onClose})})}):null}function RF(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var aS=(e,t,n)=>{let a=RF().height,i={position:"fixed"},o=0;return V4()&&(e=FF.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},FF={position:"right",right:0,top:335};function BF({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=V(!1),{mangaStatus:u}=Ux(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();re(()=>{c||Mn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),Rt(p))})},[c,s]);let m=ke(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await mt.get(dt,null);if(ht(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!U0(l)||r||!l?.enable?null:x(Gt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Kt,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Kt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Kt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(fr,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Kt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"mangaReport"}}))}})})]}),x(nS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var IF="float_ball_upgrade_show_count";function _F(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Qa(n.config),s=Te(!1),[u,l]=V(null),c=ye(()=>No(n.config),[n]),d=p=>No(p)?.upgradeShowCountCacheKey||IF;re(()=>{Ci(d(n.config),0).then(p=>{l(p)})},[n]);let m=ye(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=No(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return re(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wi(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(fr,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||am,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${ka}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Kt,{type:"upgrade"})})})}):x(fr,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(am,"_blank")},children:x(Kt,{type:"upgrade"})})})}async function iS(){try{let e=await wt(),t={url:globalThis.location.href,config:e},n=await ar(t),r=document.createElement("div");r.id=_+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});OF(a,e,n),document.documentElement.appendChild(r)}catch{}}function OF(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Le(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);NF(e,[i]),e.appendChild(r),Hr(x(Za,{lang:t.interfaceLanguage,children:x(jF,{ctx:n})}),r)}function NF(e,t){for(let n of t){if(ne()&&!Vn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function jF(e){let[t,n]=V(!1),r=Te(t);r.current=t;let a=Te(""),i=Te("");re(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xi,u),()=>{globalThis.document.addEventListener(xi,u)}},[r]);let o=globalThis.innerWidth,s=We().any&&o<=450;return x(Gf,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function H0(e){document.dispatchEvent(new CustomEvent(xi,{detail:e||{}}))}function UF(e,t){for(let n of t){if(ne()&&!Vn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Vf(){let e=await mr(),t=await yn(),n={url:globalThis.location.href,config:e},r=await ar(n),a=await Mp(r,t),i=Ze(r.url,a?.blockUrls),o=await Vt();if(!a?.enable||i)return iS();let s=document.createElement("div");s.id=_+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return HF(u,e,o,r),document.documentElement.appendChild(s),s}function oS(){let e=document.getElementById(_+"-popup");e&&e.remove(),Vf()}function HF(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Le(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);UF(e,[o]),e.appendChild(a),Hr(x(Za,{lang:t.interfaceLanguage,children:x(Wf,{localConfig:n,ctx:r})}),a)}var sS=!1;async function uS(){sS||(sS=!0,Vf().catch(e=>{D.error("init popup error",e)}))}var Mu=null;function Ru(e,t,n){let r=globalThis.location.href,a=document.createElement("div");Mu={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function Kf(){let e=globalThis.location.href;if(!(!Mu||Mu.url!==e||!Mu.subtitleItems.length))return Mu}async function lS(){let e=Kf();if(!e)return;let t=await Vt();t.downloadSubtitle=e,await Rt(t),Wr(r1)}async function cS(){let e=await Vt();if(e.downloadSubtitle)return e.downloadSubtitle}async function dS(e,t){let n,r;if(t){let a=M0(e);n=new Blob([a],{type:"text/html"}),r=await Mt(),r=za(!1,r)}return{siteUrl:location.href,pluginVersion:pn(),isMobile:We().any,platform:Fi(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function mS(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Yf={};function ci(e){let t=q0(e)||{};Yf[e.sourceUrl+"_"+e.to]={...t,...e}}function q0(e){return Yf[e.sourceUrl+"_"+e.to]}async function pS(e,t){let n=location.href,r=Object.values(Yf).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:We().any,platform:Fi(),images:[],version:pn()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=M0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Mt();a.userConfig=za(!1,o)}return a}async function gS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Lr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${it}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ka(l,"web"),l.json()))}var Fu={width:94,height:80};function fS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?fS(e.parentElement,t+1):e}function rs(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=fS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Fu.width+"px",c.style.height=Fu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Fu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Fu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Fu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6007,7 +6007,7 @@ ${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide flex: 1;`),p.addEventListener("input",function(){C.disabled=c(),E&&(E.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";mt.get(dt,null).then(k=>{k&&(h=k.email,g.value=k.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let x=document.createElement("input");x.type="checkbox",x.checked=!0,x.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=x.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(x),T.append(S),a.append(T);let C=document.createElement("button");C.className=_+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await hS(e,t,x.checked);C.uploading=!0;try{yS(C,!0),await bS(e,t,p.value,g.value!==h?g.value:"",x.checked,k),qF(s,r,a,i,o)}catch{zF(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,yS(C,!1)}},i.appendChild(C);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function yS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(_+"-loading-spinner"),e.appendChild(n))}function qF(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let h="";mt.get(dt,null).then(k=>{k&&(h=k.email,g.value=k.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let k=l(this.value);C.disabled=c(),k?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(v),T.append(S),a.append(T);let C=document.createElement("button");C.className=_+"-btn",C.innerText=s("reportInfo.submit"),C.disabled=!0,C.onclick=async()=>{if(C.uploading||p.value.trim()===""||!l(g.value))return;let k=await hS(e,t,v.checked);C.uploading=!0;try{yS(C,!0),await bS(e,t,p.value,g.value!==h?g.value:"",v.checked,k),qF(s,r,a,i,o)}catch{zF(t,n,s,r,a,i,o,e)}finally{C.uploading=!1,yS(C,!1)}},i.appendChild(C);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let E=document.createElement("p");E.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),E.textContent=s("reportInfo.tip"),i.appendChild(E)}function yS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(_+"-loading-spinner"),e.appendChild(n))}function qF(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` @@ -6017,7 +6017,7 @@ ${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=_+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",z0(s,e,t,r,a,i,o)},i.append(d)}function Jf(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function W0(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var G0=[],xS=[];async function Xf(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if($f()||G0.includes(t))return"";if(G0.length>=s)return new Promise((l,c)=>{xS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});G0.push(t);try{let u=await KF(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await vS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{G0.shift(),(async()=>{let u=xS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Xf(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function WF(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${it}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${SS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Z({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function GF(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function VF(e,t,n){let r=await GF(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Z({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await xb(a)})}async function KF(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=YF(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await W0(u);ci({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await WF(e,r,l,n.type);if(c.objectKey&&ci({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await VF(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(Zf()+"/trigger",{method:"POST",body:pc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ka(m,"manga"),m.json())):d=await Z({url:Zf()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ci({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function vS(e,t,n,r,a){let i=$f();if(i)return;cr("Translating",i);let o=await Z({url:Zf()+`/${t}/task-state?comicHash=${n}&domain=${SS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await zy(t,r.queryIntervalTime||100),vS(e,t,n,r,a))}function Zf(){return it+"comics"}function YF(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=g0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function SS(e){return e.replaceAll(".","_")}var kt,eh,K0,_u,jt=!1;function $f(){return jt}var TS=!1;function ES(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;jt=!1,!TS&&kt.injectedCss&&(Fn(document,`${kt.injectedCss}`,_+"-image-injected-css"),TS=!0);let t=!1,n=_n(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=DS(kt);for(let i of a){if(jt)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await pt(20),await r(i,t))}},100);if(He("translate_manga",[{name:"translate_manga"}],e),n(),eh=new MutationObserver(a=>{n()}),eh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;_u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(qi(e,o.target),_u?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}K0=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(_u?.unobserve(a),_u?.observe(a)):await qi(e,a)))}}async function qi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=ho();if(n&&(jt=!1),jt||rB(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=JF(e,t);u||(s=rs(e,t,"translating")),n&&He("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await ZF(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await QF(e,t,o,a,s)),jt&&!n)return;l?(t.translationStatus="success",u||rs(e,t,"success")):(u||rs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&cr("Error",jt))}catch(l){if(jt&&!n||(t.translationStatus="error",a=="manga"&&(cr("Error",jt),nB(e,l)),u))return;if(l instanceof Bu)return rs(e,t,"error",l.type);rs(e,t,"error")}finally{n&&cr(i,jt),s?.remove()}}function AS(){if(!kt)return;jt=!0,eh?.disconnect(),K0?.disconnect(),_u?.disconnect();let e=DS(kt);for(let t of e)zi(t)}function zi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&zi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function QF(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await XF(l,c,t.cloneNode(!0))}else o=await LS(t);if(jt)return;if(!o||o.size<6*1e4){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Jf(o);return await th(e,t,s)?!0:s?kS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function kS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await eB(n)||n,u=r||a;try{if(jt)return;cr("Translating",jt),Qf(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ci(l);let d=await Xf(e,u,s,a,i,m=>{Qf(e,o,m)});return d?(l.targetUrl=d,ci(l),await PS(kt,t,d),cr("Translated",jt),!0):!1}catch(l){if(ci({sourceUrl:u,to:e.targetLanguage,error:l.message}),jt)return;throw l}}async function th(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl?(await PS(kt,t,a.targetUrl||""),cr("Translated",jt),!0):!1}function JF(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl}return!1}async function ZF(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!tB(a,i)){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await th(e,t,o))return!0;let s=null;if(cr("Translating",jt),jt)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ka(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await $F(i);else{let d=await Z({url:i,responseType:"base64"});s=await gc(d)}if(jt)return;if(await rS(s))throw new Bu("GIFs not supported","gif_not_supported");let l=await Jf(s);if(!o&&(o=l,await th(e,t,o)))return!0;if(!o)return!1;return kS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function DS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function LS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function XF(e,t,n){return new Promise((r,a)=>{Z({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await LS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function PS(e,t,n){try{return await CS(e,t,n)}catch{let a=await aB(n);return CS(e,t,a)}}async function CS(e,t,n){return new Promise((a,i)=>{if(jt)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function $F(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function eB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function tB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Hc(e.inValidSrcRegex,t):!0}var V0=0,Iu=0;function nB(e,t){if(V0!=0){Iu++;return}if(t.message.indexOf("quota exceeded")>0){wS(e,t);return}Iu++,V0=setTimeout(()=>{if(Iu<(kt.errorTimes||3)){V0=0,Iu=0;return}wS(e,t),Iu=0,V0=0},kt.errorInterval||3e3)}function wS(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(mn,{detail:r}))}function nh(e){return e.classList.contains("imt-img")||e.hasTranslate}function rB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function aB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var iB="showImagePricingModal";function Y0(e){document.dispatchEvent(new CustomEvent(iB,{detail:JSON.stringify({trigger:e})}))}var aa=null;async function MS(e,{srcUrl:t}){if(!j0(e))return;if(!await Ps(e)){Y0("image_right_menu");return}if(!aa){D.error("rightMenu image ele not found",t,aa);return}if(aa.translationStatus!=="translating"){if(aa.hasTranslate){zi(aa);return}if(t!==aa.src)try{let r=new URL(t),a=new URL(aa.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,aa.src,r);return}qi(e,aa,!0,"image_right_menu")}}function RS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(aa=e.target)})}var FS=0;function Nu(e){let t=Date.now();if(t-FS<2e3||(FS=t,oB()))return;let n=`${_}-modal-root`,r=`${_}-modal`,a=document.getElementById(n),i=`${_}-modal-title`,o=`${_}-modal-body`,s=`${_}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Ou)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=Le();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=_+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=_+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,Ou)}setTimeout(()=>{sB()},100)}function oB(){let e=document.querySelector(`#${_}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-modal`)?.style.display=="block":!1}function sB(){let e=document.querySelector(`#${_}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-modal`);t&&(t.style.display="block")}}function Ou(e,t=!1){let n=document.querySelector(`#${_}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function BS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await yn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var IS=0;async function _S(e){let t=Date.now();if(t-IS<2e3||(IS=t,uB()))return;let n=`${_}-toast-root`,r=`${_}-toast`,a=document.getElementById(n),i=`${_}-toast-msg`,o=`${_}-toast-content`,s=`${_}-toast-hidden`,u,l,c=()=>{l&&rh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,rh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=Le();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let x=document.createElement("span");x.textContent="\xD7",x.className=_+"-toast-close",m.appendChild(x),x.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,rh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{lB()},100),d=setTimeout(c,2500)}function uB(){let e=document.querySelector(`#${_}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-toast`)?.style.display=="flex":!1}function lB(){let e=document.querySelector(`#${_}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-toast`);t&&(t.style.display="flex")}}function rh(e,t=!1){let n=document.querySelector(`#${_}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ah(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=nt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${_}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",OS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(K3)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Pl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(Z3)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(xe.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(xe.OPTIONS_URL)},ih(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=nt.sanitize(m),p.onclick=()=>{NS(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=nt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),OS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=_+"-btn",p.innerHTML+=nt.sanitize(m),s.appendChild(p)}function OS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}var jS=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},HS=[()=>{On.unbind()}],US=[...HS],cB=Yn(async()=>{await Na()},50),dB=Yn(async()=>{await cc()},50),mB=Yn(async()=>{await ab()},50),pB=Yn(async()=>{await rb()},50),qS=Yn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),oh=!1,gB=_n(()=>{let e=globalThis.getSelection()?.toString().trim();!oh&&e&&e.length>0?Vs({text:e}):Vs({})},50),fB=()=>{oh=!0,setTimeout(()=>{oh=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(jS)return;jS=!0,ne()||Z2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(J+"DocumentMessageUser",YS),document.addEventListener(J+"DocumentMessageUpdateUser",QS),document.addEventListener(J+"ChangeSuccessService",JS.bind(null,t)),document.addEventListener(J+"ChangeService",ZS.bind(null,t)),document.addEventListener(mn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(bl,Ft.showToastByEvent.bind(null,t)),document.addEventListener(yi,Ft.showModal.bind(null,t)),n.addEventListener(J+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(C3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(w3,Ft.eventUpload.bind(null,t)),n.addEventListener(xl,a=>{at()||ch(a,t)}),n.addEventListener(E3,$S),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",gB),document.addEventListener("contextmenu",fB),RS(),at()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(at()||n.addEventListener(br,Ft.handlePopupInit)),at()||ei.rootIframe(Al).handleAsk("throttleRequest",t6)};function zS(e,t){yB(),Ft.SetupDomListenersForOnce(t,e),ne()&&(at()||(Of(e.config),xB(e.config))),Vn()&&eT(e,t),lt()&&Of(e.config)}Ft.handlePopupInit=e=>{uS()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===hl&&zr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Ou(n);return}let r=n.getAttribute(`data-${_}-event`);r&&He(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${_}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),WS({method:"retryFailedParagraphs"}),Ou(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${_}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Nu(ah.bind(null,t,o,i,s));return}}};async function hB(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function bB(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;_S(BS.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Nu(ah.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Nu(z0.bind(null,"manga",e)):r=="webReport"&&Nu(z0.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=uh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")WS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")ib(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")hB();else if(i.type==="toggleEnableInputTranslation")bB();else if(i.type==="syncAppSetting")GS(i.data);else if(i.type==="translatePage")vB(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Xl(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=f0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await SB(i.data,o)}catch(s){ju(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await TB(o,i.data)}catch(s){ju(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await uc(i.data):i.type==="getAsyncDownloadSubtitle"?a=await cS():i.type==="sharePage"?ch({detail:i.data},r):i.type==="switchTranslationMode"?sh(i.data):i.type=="getAsyncAiAssistants"?a=await d9():i.type=="addAiAssistantAsync"?a=await Zc("add",i.data):i.type=="removeAiAssistantAsync"?a=await Zc("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await lh(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await XS(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await jc("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await Kb(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await lb()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await cb()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await Yb(i.data)):i.type==="openPopup"?H0({...i.data,open:!0}):i.type==="closePopup"?H0({...i.data,open:!1}):i.type==="togglePopup"?H0({...i.data}):i.type==="getPageStatusAsync"?a=Ve():i.type==="restorePage"?CB():i.type==="getPageLanguageAsync"?a=ct():i.type==="showFloatBallGuide"?Gv():i.type=="getAsyncDetectAndSetLanguage"?a=await KS(i.data):i.type=="setFloatBallActive"?Jv(i.data):qS(i.type);a!=null&&i.id&&ju(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{VS()},10)};Ft.handleSecurityPolicyViolation=e=>{xe.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&He(n.name,[{name:n.name}],{...e})};function yB(){US.forEach(e=>{e()}),US=HS}function xB(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Gl.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Jd,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Zd,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Yd,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Qd,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Yd?cB():i.id===Qd?dB():i.id===Zd?mB():i.id===Jd?pB():qS(i.id)},i.key)}}function WS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}async function GS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(De(),t)}async function vB(e){let t=await GS(e);qn(t)}function ju(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function SB({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function TB(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function CB(){Ve()!=="Original"&&_r()}var Wi={};async function dh(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ie({text:t,minLength:200,pageLangs:[Ct(),"en"]});return Xn(n),n}async function tT(e){let t=0,n=0;Pn("Translating");let r=ct(),a=nc(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(nu(e,c.id,!0)))}),await s(l),await pt(0)}}catch(u){throw u}finally{t=0,n=0,Pn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=nt.sanitize(`${l.message}`),Wi[m]={ok:!1,sentence:d},rT(u,e,t,n,l)):c&&(g.innerHTML=nt.sanitize(c.text),Wi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function nT(e){let t=0,n=0;Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wi),a=[],i=[];for(let o of r){let s=Wi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wi[o],c.appendChild(nu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=nt.sanitize(`${o.message}`),Wi[l]={ok:!1,sentence:u},rT(i,e,t,n,o)):s&&(d.innerHTML=nt.sanitize(s.text),Wi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Pn("Translated")}}function mh(){Pn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function rT(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(mn,{detail:i}))}var Q0={};async function aT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ie({text:t,pageLangs:["en"]});return Xn(n),n}async function iT(e){Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Q0),n=[];for(let r of t){let a=Q0[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Tl}='${r}']`);o&&o.remove(),n.push(a)}}try{ku(),await B0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Pn("Translated")}}function oT(e){Object.values(Q0).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=es(e,t.targetNodes);li(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),Pn("Original")}async function sT(e){Pn("Translating");let t=zs(),n=Kr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;ts(l,e);let c=l.body;if(!c)continue;Yr(l.documentElement,e.state.translationMode);let d=ln(e);d.isModifyImage=!1;let m=[];await Ea({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await pt(0)}o(a),Pn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=P0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:R0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Pf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Q0[p.id]=p)}B0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function J0(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ga(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var Sn=!1,ph,uT=!1,Z0=null,wB=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=_+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",z0(s,e,t,r,a,i,o)},i.append(d)}function Jf(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function W0(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var G0=[],vS=[];async function Xf(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if($f()||G0.includes(t))return"";if(G0.length>=s)return new Promise((l,c)=>{vS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});G0.push(t);try{let u=await KF(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await xS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw D.error("err",u),u}finally{G0.shift(),(async()=>{let u=vS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await Xf(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function WF(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${it}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${SS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await Z({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function GF(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function VF(e,t,n){let r=await GF(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),ne()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):Z({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await vb(a)})}async function KF(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=YF(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await W0(u);ci({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await WF(e,r,l,n.type);if(c.objectKey&&ci({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await VF(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return ne()?d=await fetch(Zf()+"/trigger",{method:"POST",body:pc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ka(m,"manga"),m.json())):d=await Z({url:Zf()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ci({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function xS(e,t,n,r,a){let i=$f();if(i)return;dr("Translating",i);let o=await Z({url:Zf()+`/${t}/task-state?comicHash=${n}&domain=${SS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){D.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await zy(t,r.queryIntervalTime||100),xS(e,t,n,r,a))}function Zf(){return it+"comics"}function YF(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=g0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function SS(e){return e.replaceAll(".","_")}var kt,eh,K0,_u,jt=!1;function $f(){return jt}var TS=!1;function ES(e){if(kt=e.rule.imageRule,!e.isPro||!kt.type)return;jt=!1,!TS&&kt.injectedCss&&(Fn(document,`${kt.injectedCss}`,_+"-image-injected-css"),TS=!0);let t=!1,n=_n(async function(){kt?.disableMarkSelector&&(t=!!document.querySelector(kt.disableMarkSelector));let a=DS(kt);for(let i of a){if(jt)return;i.isMarked&&!kt?.disableMarkElement||(i.isMarked=!0,await pt(20),await r(i,t))}},100);if(He("translate_manga",[{name:"translate_manga"}],e),n(),eh=new MutationObserver(a=>{n()}),eh.observe(document.body,{childList:!0,subtree:!0}),kt.intersectionRootMargin){let a=kt?.intersectionRootSelector?document.querySelector(kt?.intersectionRootSelector):void 0;_u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(qi(e,o.target),_u?.unobserve(o.target))})},{root:a,rootMargin:kt.intersectionRootMargin,threshold:kt.intersectionThreshold})}K0=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(kt?.intersectionRootMargin?(_u?.unobserve(a),_u?.observe(a)):await qi(e,a)))}}async function qi(e,t,n,r){let a=e.rule.imageRule.type||"common",i=ho();if(n&&(jt=!1),jt||rB(e,t)||t.hasTranslate)return;kt=e.rule.imageRule;let o=!1;kt?.disableMarkSelector&&(o=!!document.querySelector(kt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=JF(e,t);u||(s=rs(e,t,"translating")),n&&He("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await ZF(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await QF(e,t,o,a,s)),jt&&!n)return;l?(t.translationStatus="success",u||rs(e,t,"success")):(u||rs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&dr("Error",jt))}catch(l){if(jt&&!n||(t.translationStatus="error",a=="manga"&&(dr("Error",jt),nB(e,l)),u))return;if(l instanceof Bu)return rs(e,t,"error",l.type);rs(e,t,"error")}finally{n&&dr(i,jt),s?.remove()}}function AS(){if(!kt)return;jt=!0,eh?.disconnect(),K0?.disconnect(),_u?.disconnect();let e=DS(kt);for(let t of e)zi(t)}function zi(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&zi(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function QF(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await XF(l,c,t.cloneNode(!0))}else o=await LS(t);if(jt)return;if(!o||o.size<6*1e4){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Jf(o);return await th(e,t,s)?!0:s?kS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function kS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await eB(n)||n,u=r||a;try{if(jt)return;dr("Translating",jt),Qf(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ci(l);let d=await Xf(e,u,s,a,i,m=>{Qf(e,o,m)});return d?(l.targetUrl=d,ci(l),await PS(kt,t,d),dr("Translated",jt),!0):!1}catch(l){if(ci({sourceUrl:u,to:e.targetLanguage,error:l.message}),jt)return;throw l}}async function th(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl?(await PS(kt,t,a.targetUrl||""),dr("Translated",jt),!0):!1}function JF(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=q0(r);return a&&a?.targetUrl}return!1}async function ZF(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!tB(a,i)){K0?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await th(e,t,o))return!0;let s=null;if(dr("Translating",jt),jt)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ka(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await $F(i);else{let d=await Z({url:i,responseType:"base64"});s=await gc(d)}if(jt)return;if(await rS(s))throw new Bu("GIFs not supported","gif_not_supported");let l=await Jf(s);if(!o&&(o=l,await th(e,t,o)))return!0;if(!o)return!1;return kS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function DS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function LS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function XF(e,t,n){return new Promise((r,a)=>{Z({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await LS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function PS(e,t,n){try{return await CS(e,t,n)}catch{let a=await aB(n);return CS(e,t,a)}}async function CS(e,t,n){return new Promise((a,i)=>{if(jt)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function $F(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function eB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function tB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Hc(e.inValidSrcRegex,t):!0}var V0=0,Iu=0;function nB(e,t){if(V0!=0){Iu++;return}if(t.message.indexOf("quota exceeded")>0){wS(e,t);return}Iu++,V0=setTimeout(()=>{if(Iu<(kt.errorTimes||3)){V0=0,Iu=0;return}wS(e,t),Iu=0,V0=0},kt.errorInterval||3e3)}function wS(e,t){let r=new U("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(mn,{detail:r}))}function nh(e){return e.classList.contains("imt-img")||e.hasTranslate}function rB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function aB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var iB="showImagePricingModal";function Y0(e){document.dispatchEvent(new CustomEvent(iB,{detail:JSON.stringify({trigger:e})}))}var aa=null;async function MS(e,{srcUrl:t}){if(!j0(e))return;if(!await Ps(e)){Y0("image_right_menu");return}if(!aa){D.error("rightMenu image ele not found",t,aa);return}if(aa.translationStatus!=="translating"){if(aa.hasTranslate){zi(aa);return}if(t!==aa.src)try{let r=new URL(t),a=new URL(aa.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){D.error("rightMenu image srcUrl not match",r,a);return}}catch(r){D.error("rightMenu image srcUrl not invalid",t,aa.src,r);return}qi(e,aa,!0,"image_right_menu")}}function RS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(aa=e.target)})}var FS=0;function Nu(e){let t=Date.now();if(t-FS<2e3||(FS=t,oB()))return;let n=`${_}-modal-root`,r=`${_}-modal`,a=document.getElementById(n),i=`${_}-modal-title`,o=`${_}-modal-body`,s=`${_}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,Ou)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=Le();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=_+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=_+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,Ou)}setTimeout(()=>{sB()},100)}function oB(){let e=document.querySelector(`#${_}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-modal`)?.style.display=="block":!1}function sB(){let e=document.querySelector(`#${_}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-modal`);t&&(t.style.display="block")}}function Ou(e,t=!1){let n=document.querySelector(`#${_}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function BS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await yn();Ht({...l,sameLangCheck:!1}),o(i,!0)})}var IS=0;async function _S(e){let t=Date.now();if(t-IS<2e3||(IS=t,uB()))return;let n=`${_}-toast-root`,r=`${_}-toast`,a=document.getElementById(n),i=`${_}-toast-msg`,o=`${_}-toast-content`,s=`${_}-toast-hidden`,u,l,c=()=>{l&&rh(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,rh);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${_}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=Le();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=_+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,rh)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{lB()},100),d=setTimeout(c,2500)}function uB(){let e=document.querySelector(`#${_}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${_}-toast`)?.style.display=="flex":!1}function lB(){let e=document.querySelector(`#${_}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${_}-toast`);t&&(t.style.display="flex")}}function rh(e,t=!1){let n=document.querySelector(`#${_}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${_}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ah(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=nt.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${_}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",OS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(K3)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Pl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(Z3)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(ve.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(ve.OPTIONS_URL)},ih(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=nt.sanitize(m),p.onclick=()=>{NS(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=nt.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Mt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await Ht(g),OS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=_+"-btn",p.innerHTML+=nt.sanitize(m),s.appendChild(p)}function OS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}var jS=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},HS=[()=>{On.unbind()}],US=[...HS],cB=Qn(async()=>{await Na()},50),dB=Qn(async()=>{await cc()},50),mB=Qn(async()=>{await ab()},50),pB=Qn(async()=>{await rb()},50),qS=Qn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),oh=!1,gB=_n(()=>{let e=globalThis.getSelection()?.toString().trim();!oh&&e&&e.length>0?Vs({text:e}):Vs({})},50),fB=()=>{oh=!0,setTimeout(()=>{oh=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(jS)return;jS=!0,ne()||Z2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(J+"DocumentMessageUser",YS),document.addEventListener(J+"DocumentMessageUpdateUser",QS),document.addEventListener(J+"ChangeSuccessService",JS.bind(null,t)),document.addEventListener(J+"ChangeService",ZS.bind(null,t)),document.addEventListener(mn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(bl,Ft.showToastByEvent.bind(null,t)),document.addEventListener(yi,Ft.showModal.bind(null,t)),n.addEventListener(J+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(C3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(w3,Ft.eventUpload.bind(null,t)),n.addEventListener(vl,a=>{at()||ch(a,t)}),n.addEventListener(E3,$S),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",gB),document.addEventListener("contextmenu",fB),RS(),at()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),ne()&&(at()||n.addEventListener(br,Ft.handlePopupInit)),at()||ei.rootIframe(Al).handleAsk("throttleRequest",t6)};function zS(e,t){yB(),Ft.SetupDomListenersForOnce(t,e),ne()&&(at()||(Of(e.config),vB(e.config))),Kn()&&eT(e,t),lt()&&Of(e.config)}Ft.handlePopupInit=e=>{uS()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===hl&&zr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){Ou(n);return}let r=n.getAttribute(`data-${_}-event`);r&&He(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${_}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),WS({method:"retryFailedParagraphs"}),Ou(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${_}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}Nu(ah.bind(null,t,o,i,s));return}}};async function hB(){let e=await Mt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Ht(e)}async function bB(){let e=await Mt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Ht(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;_S(BS.bind(null,e,a,i))}catch(r){D.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;Nu(ah.bind(null,e,a,i,o))}catch(r){D.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?Nu(z0.bind(null,"manga",e)):r=="webReport"&&Nu(z0.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;D.debug("receive third party message",n);let r=uh()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")WS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")ib(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")hB();else if(i.type==="toggleEnableInputTranslation")bB();else if(i.type==="syncAppSetting")GS(i.data);else if(i.type==="translatePage")xB(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Xl(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=f0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await SB(i.data,o)}catch(s){ju(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await TB(o,i.data)}catch(s){ju(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await uc(i.data):i.type==="getAsyncDownloadSubtitle"?a=await cS():i.type==="sharePage"?ch({detail:i.data},r):i.type==="switchTranslationMode"?sh(i.data):i.type=="getAsyncAiAssistants"?a=await d9():i.type=="addAiAssistantAsync"?a=await Zc("add",i.data):i.type=="removeAiAssistantAsync"?a=await Zc("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await lh(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await XS(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await jc("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await Kb(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await lb()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await cb()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await Yb(i.data)):i.type==="openPopup"?H0({...i.data,open:!0}):i.type==="closePopup"?H0({...i.data,open:!1}):i.type==="togglePopup"?H0({...i.data}):i.type==="getPageStatusAsync"?a=Ve():i.type==="restorePage"?CB():i.type==="getPageLanguageAsync"?a=ct():i.type==="showFloatBallGuide"?Gx():i.type=="getAsyncDetectAndSetLanguage"?a=await KS(i.data):i.type=="setFloatBallActive"?Jx(i.data):qS(i.type);a!=null&&i.id&&ju(i.type,a,i.id)}}catch(i){D.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{VS()},10)};Ft.handleSecurityPolicyViolation=e=>{ve.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&He(n.name,[{name:n.name}],{...e})};function yB(){US.forEach(e=>{e()}),US=HS}function vB(e){if(ne()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Gl.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Jd,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Zd,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Yd,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Qd,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Yd?cB():i.id===Qd?dB():i.id===Zd?mB():i.id===Jd?pB():qS(i.id)},i.key)}}function WS(e){zr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{D.error("send content message request failed",e,n)});let t=new CustomEvent(br,{detail:e});globalThis.document.dispatchEvent(t)}async function GS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(De(),t)}async function xB(e){let t=await GS(e);zn(t)}function ju(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function SB({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Yt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function TB(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Yt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof U?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof U?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function CB(){Ve()!=="Original"&&_r()}var Wi={};async function dh(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ie({text:t,minLength:200,pageLangs:[Ct(),"en"]});return $n(n),n}async function tT(e){let t=0,n=0;Pn("Translating");let r=ct(),a=nc(),i=[...document.querySelectorAll(".source-text")];if(ko(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");Et(c.node,"id",c.id+""),d&&(Do(d,c.id)?.remove(),d.appendChild(nu(e,c.id,!0)))}),await s(l),await pt(0)}}catch(u){throw u}finally{t=0,n=0,Pn("Translated")}async function s(u){await Yt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Do(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=nt.sanitize(`${l.message}`),Wi[m]={ok:!1,sentence:d},rT(u,e,t,n,l)):c&&(g.innerHTML=nt.sanitize(c.text),Wi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function nT(e){let t=0,n=0;Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wi),a=[],i=[];for(let o of r){let s=Wi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wi[o],c.appendChild(nu(e,o)),i.push(s.sentence))}}}try{await Yt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Do(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=nt.sanitize(`${o.message}`),Wi[l]={ok:!1,sentence:u},rT(i,e,t,n,o)):s&&(d.innerHTML=nt.sanitize(s.text),Wi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Pn("Translated")}}function mh(){Pn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function rT(e,t,n,r,a){if(!(a instanceof U))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(mn,{detail:i}))}var Q0={};async function aT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ie({text:t,pageLangs:["en"]});return $n(n),n}async function iT(e){Pn("Translating"),document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Q0),n=[];for(let r of t){let a=Q0[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Tl}='${r}']`);o&&o.remove(),n.push(a)}}try{ku(),await B0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Pn("Translated")}}function oT(e){Object.values(Q0).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=es(e,t.targetNodes);li(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),Pn("Original")}async function sT(e){Pn("Translating");let t=zs(),n=Kr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;ts(l,e);let c=l.body;if(!c)continue;Yr(l.documentElement,e.state.translationMode);let d=ln(e);d.isModifyImage=!1;let m=[];await Ea({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await pt(0)}o(a),Pn("Translated");function o(u){document.dispatchEvent(new CustomEvent(It,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Ao(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=P0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:R0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Pf(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Q0[p.id]=p)}B0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function J0(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ga(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var Sn=!1,ph,uT=!1,Z0=null,wB=` .${_}-input { position: absolute; top: 0; @@ -6069,9 +6069,9 @@ ${t("floatBall.longPress")}`:""]}),v("div",{class:`${Hi}-primary-btn ${Hi}-guide box-shadow: 130px 0 var(--loading-color); } } -`;function cT(e){J0().forEach(t=>{EB(e,t)})}function EB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Z0===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Jn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;We().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(Sn||Z0===!1)return;let p=ed(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(PB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&lT(t,o,m.target)&&(s=0,hh(m,e,t,o))}function d(){ph=l,t.removeEventListener("keyup",ph),t.addEventListener("keyup",ph,!0)}MB(e)}function dT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function X0(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var as;function gh(e){let t=e.parentElement;if(!t)return;as=document.createElement("div"),as.className=_+"-input";let n=`
`;as.innerHTML=pr?.createHTML(n)||n,t.appendChild(as);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=wB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function fh(){as&&as.remove()}async function AB(e,t=window){if(Sn)return;let r=globalThis.getSelection()?.toString();if(r){xh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let x=m.split(" ")[0];x&&x[0]&&(x=x[0].toLowerCase()+x.slice(1)),x.trim()&&u.flatAlias.includes(x)?(p=X0(x,u.codeAlias),d=m.slice(x.length+1)):d=m},y=function(){p="";let x=dT(u),S=m.split(x);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),w=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let T=m.slice(c.length+1,m.indexOf(d)).trim();if(p=X0(T,u.codeAlias),!p){D.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Jn.forEach(x=>i[x]=[x,...i[x]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;We().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;Sn=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=mT(d,u),h=await Ie({text:g,pageLangs:["en"]});D.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;gh(l),rt(Cs,Date.now());try{e.specialAiAssistant=Mr(e,e.inputTranslationService,!0);let x=await na(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});yh(e),yT(e,t,l,c+x.text)}catch(x){if(x instanceof U){let S=x.uiConfig(e);vh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(mn,{detail:S}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}async function hh(e,t,n,r){if(!Sn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=X0(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=dT(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=X0(b,r.codeAlias),!u){D.warn("not found alias",b);return}},a=ed(n.document,t.rule.enableInputDeepActive);if(!a)return;Sn=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=mT(o,r),c=await Ie({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!uT){uT=!0;let g=await RB(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Z0=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Z0=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Ht(h)}}gh(a),rt(Cs,Date.now());try{t.specialAiAssistant=Mr(t,t.inputTranslationService,!0);let g=await na(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});yh(t),yT(t,n,a,i+g.text)}catch(g){if(g instanceof U){let h=g.uiConfig(t);vh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(mn,{detail:h}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}function lT(e,t,n){if(!n)return!1;if(bh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`;function cT(e){J0().forEach(t=>{EB(e,t)})}function EB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){D.debug("exclude url for input");return}if(Z0===!1){D.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Zn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;We().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(Sn||Z0===!1)return;let p=ed(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(PB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&lT(t,o,m.target)&&(s=0,hh(m,e,t,o))}function d(){ph=l,t.removeEventListener("keyup",ph),t.addEventListener("keyup",ph,!0)}MB(e)}function dT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function X0(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var as;function gh(e){let t=e.parentElement;if(!t)return;as=document.createElement("div"),as.className=_+"-input";let n=`
`;as.innerHTML=Nn?.createHTML(n)||n,t.appendChild(as);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=wB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function fh(){as&&as.remove()}async function AB(e,t=window){if(Sn)return;let r=globalThis.getSelection()?.toString();if(r){vh(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=X0(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=dT(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let C=m.lastIndexOf(d),w=m.slice(0,C).lastIndexOf(S[S.length-2]);c=m.slice(0,w+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let T=m.slice(c.length+1,m.indexOf(d)).trim();if(p=X0(T,u.codeAlias),!p){D.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Zn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;We().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;Sn=!0;let c="",d="",m=Nr(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=mT(d,u),h=await Ie({text:g,pageLangs:["en"]});D.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;gh(l),rt(Cs,Date.now());try{e.specialAiAssistant=Mr(e,e.inputTranslationService,!0);let v=await na(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});yh(e),yT(e,t,l,c+v.text)}catch(v){if(v instanceof U){let S=v.uiConfig(e);xh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(mn,{detail:S}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}async function hh(e,t,n,r){if(!Sn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=X0(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=dT(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=X0(b,r.codeAlias),!u){D.warn("not found alias",b);return}},a=ed(n.document,t.rule.enableInputDeepActive);if(!a)return;Sn=!0;let i="",o="",s=Nr(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=mT(o,r),c=await Ie({text:l,pageLangs:["en"]});D.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!uT){uT=!0;let g=await RB(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Z0=!1,g==="disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="disable_once"){let h=await Mt();h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Z0=!1,g==="close_disable_forever"){let h=await Mt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await Ht(h)}return}else if(g==="enable"){let h=await Mt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await Ht(h)}else if(g==="close_enable"){let h=await Mt();h.enableInputTranslation=!0,await Ht(h)}}gh(a),rt(Cs,Date.now());try{t.specialAiAssistant=Mr(t,t.inputTranslationService,!0);let g=await na(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});yh(t),yT(t,n,a,i+g.text)}catch(g){if(g instanceof U){let h=g.uiConfig(t);xh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(mn,{detail:h}))}}finally{Sn=!1}}catch(a){throw Sn=!1,a}finally{Sn=!1,fh()}}function lT(e,t,n){if(!n)return!1;if(bh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` `).reverse()[0],o=i.trim(),s=a<=r;D.debug("cursorPosition",r,"textLength",a),D.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return D.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=kB(i,n);D.debug("Current text node:",i.textContent),D.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=lt()?u[0]||u[1]:u[0];D.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else D.debug("Cursor is not within a text node.")}}return!1}function kB(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function mT(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function pT(e,t){let n=t.innerHTML,r=Nr(t);return{html:n.replace(r,e),text:e}}function $0(e,t,n=!1){let r=Nr(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Nr(e){return e.value||e.innerText||e.textContent}async function Or(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function DB(e,t,n){await Or(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Or(10)}async function gT(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Or(10))}async function fT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Or(20),(t.value||t.value==="")&&(t.value=e.text)}async function hT(e,t){bh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Or(20))}var bT=[DB.bind(null,["plain"])];function bh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function LB(e,t){if(bh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function yT(e,t,n,r){await Or(50),await LB(t,n),await Or(50);let a=e.rule.inputConfig,i=pT(r,n);try{await Or(50),a?.execCommandDeleteEnable&&!Gn()&&Nr(n)?.trim()!=""&&(t.document.execCommand("delete"),await Or(50)),D.debug("clearContent",Nr(n))}catch(o){D.error(o)}for(let o of[...bT,fT,hT,gT]){await o(i,n);let s=xT(t);if(!s)return;if(D.debug("setContent",o.name,$0(i,s),Nr(s),i),$0(i,s))break}}function xT(e){return e.document.activeElement}function yh(e,t=""){He("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function PB(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function MB(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ut(t,"")||Number(await Ut(Cs,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{FB()},100),new Promise(d=>{let m=d;if(o){let M=o.shadowRoot;if(!M)return;s=M.querySelector(`.${n}`);let I=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),N=s.querySelector(`.${a}`)}else{let M=document.createElement("div");M.setAttribute("translate","no"),M.className=`no-translate ${_}-error-modal-input-shadow-root`,M.id=t,M.style.all="initial",M.style.zIndex="2147483647",document.body.appendChild(M);let I=M.attachShadow({mode:"open"}),L=document.createElement("style"),N=Le();L.textContent=N.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,I.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let B=document.createElement("div");B.className=_+"-modal-content notranslate "+_+"-modal-content-in-input",s.appendChild(B);let j=document.createElement("span");j.textContent="\xD7",j.className=_+"-close",B.appendChild(j),u=document.createElement("div"),u.className=r+" notranslate",B.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",B.appendChild(c),l=document.createElement("div"),l.className=i,B.appendChild(l),I.appendChild(s),j.onclick=function(){E(),d("close")},I.addEventListener("click",G=>{G.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",F);let p=Pe.bind(null,e.config.interfaceLanguage),g=`
${n0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=pr?.createHTML(g)||g,c.innerHTML=pr?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ie+"docs/input/"});h.innerHTML=pr?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=nt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=pr?.createHTML(y)||y,c.appendChild(f);let x=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let M=0;M0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function xh(e,t,n,r){if(Sn)return;try{let o=ed(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;Sn=!0;let u=e.config.inputTargetLanguage,l=await Ie({text:n,pageLangs:["en"]});D.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;gh(o),rt(Cs,Date.now());try{if(e.specialAiAssistant=Mr(e,e.inputTranslationService,!0),yh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await na(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await na(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof U){let m=d.uiConfig(e);vh(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(mn,{detail:m}))}}finally{Sn=!1}}catch(o){throw Sn=!1,o}finally{Sn=!1,fh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=pT(l,u);try{await Or(50),c?.execCommandDeleteEnable&&!Gn()&&Nr(u)?.trim()!=""&&(s.document.execCommand("delete"),await Or(50)),D.debug("clearContent",Nr(u))}catch(m){D.error(m)}for(let m of[...bT,fT,hT,gT]){await m(d,u);let p=xT(s);if(!p)return;if(D.debug("setContent",m.name,$0(d,p),Nr(p),d),$0(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function vh(e){return e==="retry"||e==="changeService"}function td({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&Fn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}Hr(v(Za,{lang:t.config.interfaceLanguage,children:v(n,{...r})}),d)}function is(e){return os(e).subtitles}function os(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?")||l.includes("< styles>")||Db(l)||wb(l)||kb(l)||Eb(l)||Ab(l)||sD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:To(i?.trim(),n,r)}function Ii(e){return e.nodeType===Node.ELEMENT_NODE}function wy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Dr(){return await Ht("fakeUserId","")}async function oD(){return await Ht("installedAt","")}async function Ro(e,t){let r=be().INSTALL_FROM,a=Wt(),i=await oD(),o=await Dr(),s=await Mt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await vo(),m=await So(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await xo();return g&&(p.abGroup=g),p}function cu(e,t){let[n,r]=W();return ee(()=>{!e||!t||(async()=>{let a=await Ip(e,t);r(a)})()},[e,t,r]),n}async function Ip(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!at()&&X()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ht("installedAt","");new Date(o).getTime()s==n),a=uD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function uD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Ay(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function ky(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Uc[e]=setTimeout(()=>{n("")},t)})}function Ly(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ga(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function qc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Bi(){return op()?"imtAndroid":Ys()?"imtIOS":X()?"userscript":at()?"safari":Sr()?"firefox":j1()?"chrome":"other"}function Gr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function zc(e){return e?.getAttribute("imt-state")||""}function Vr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Wc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(nr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function My(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Ka(e){if(e.beta)return!1;if(at()&&e.spVersion)return Va(Ks(),e.spVersion);if(W2()&&e.gspVersion){let t=G2();if(t)return Va(t,e.gspVersion)}if(Ys()&&e.ispVersion){let t=z2();if(t)return Va(t,e.ispVersion)}return!1}function Va(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function _p(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),Vs())}async function Py(e){let n=(await Mt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),lD(a.toString())}function lD(e){try{at()?Ur(e):globalThis.open(e)}catch{globalThis.open(e)}}function Ry(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function Fy(e){return ft(e)}function Gc(e){return Array.isArray(e)?e:e?[e]:[]}function Vc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Kc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Iy(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function Yc(e,t){let n={...e};return jy(n,t),cD(n,t),n}function Ny(e,t,n){let r={...e};return qr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),qr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function cD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;jy(e,a)}function qr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=By(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=By(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Gc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!_y(u))return;d=Op(c,l)}else if(s=="remove_v"){if(!_y(u))return;d=Oy(c,l)}else s==="add"?d=Op(c,l):s=="remove"&&(d=Oy(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Op(c,l):d=l,r(o,d)})}function jy(e,t){return qr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Op(e,t){let n;if(Array.isArray(e)){let r=Gc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function By(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function _y(e){let t=Wt();return e&&Va(t,e)}function Oy(e,t){if(Array.isArray(e)){let n=Gc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var Uy="userConfig",Qc="userPromptPool",Jc="userObjectPool";async function Zc(){let e=await Vy(Uy)||{},t=await Di(Qc)||{},n=await Di(Jc)||{};return dD(e,t,n)}async function Hy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Np(e);await Gy(Uy,t),await Cr(Qc,n),await Cr(Jc,r)}function Np(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return qy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),zy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function dD(e,t,n){return qy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),zy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function qy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function zy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Ya(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=Wy(r);for(let o of i)delete a[o]}),n}function jp(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=Wy(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function Wy(e){let t=Tr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=lo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Yy(){if(de.PROD==="1")return{};let e={};if(de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(de.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=de.DEEPL_PROXY_ENDPOINT),de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}de.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=de.IMMERSIVE_TRANSLATE_SERVICE);let t={};return de.DEBUG==="1"&&(t.debug=!0,t.cache=!1),de.MOCK==="1"&&(t.translationService="mock"),t}async function Yt(){let e=await ne.storage.local.get(Ms);if(e[Ms]){let t=e[Ms],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ne.storage.local.set({[Ms]:e})}async function P2(e){await ne.storage.local.set({[Bl]:e})}async function Qy(){return de.DEBUG==="1"?void 0:(await ne.storage.local.get(Bl))[Bl]}async function Xc(){let e=await Qy(),n={...await Up(),...Ac,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function Mt(){let e=await Qy(),t={...Ac,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let N=new Date(e.buildinConfigUpdatedAt),I=new Date(t.buildinConfigUpdatedAt);N>I&&(t=e)}let n=await gD(t);t.targetLanguage=n;let r=await dt.get(ct,null),a={};if(!X()&&ne.commands&&ne.commands.getAll){let N=await ne.commands.getAll();for(let I of N)I.name&&I.shortcut&&(a[I.name]=I.shortcut)}let i=await Up(),o=Yy(),s=await ln(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Yt(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let N=await mD();d.interfaceLanguage=N}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let v=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,v=!0);let S=(d?.translationLanguagePattern?.matches?.length||0)>0,T=await Ht("installedAt",""),w=Number(await Ei("translage_page_daily",0)),E=Number(await Ht(lr,0)),A;E>0&&(Date.now()-E0&&(Date.now()-w0){let N=l.tempTranslationUrlMatches.filter(I=>new Date(I.expiredAt)>c);if(N.length>0){let I=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],U=Array.isArray(I)?I:[I],V=Array.from(new Set(U.concat(N.map(ie=>ie.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:V}}}let F=Object.assign(i,t);qr({rule:t,valueIsArray:N=>Array.isArray(i[N]),getMergedValue:N=>i[N],onMergedResult:(N,I)=>{N!="generalRule"&&(F[N]=I)}}),qr({rule:t.generalRule,valueIsArray:N=>Array.isArray(i.generalRule[N]),getMergedValue:N=>i.generalRule[N],onMergedResult:(N,I)=>{F.generalRule[N]=I}}),bD(F,T),fD(r,d,F);let _=Object.keys(F),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let N of _){let I=N;if(I==="generalRule")typeof d[I]=="object"&&(F[I]=Yc(F[I],d[I]));else if(I==="translationServices")hD(d,F);else if(typeof d[I]!="string"&&typeof d[I]!="boolean"&&typeof d[I]!="number"&&L.includes(I))d[I]&&(F[I]=Object.assign(F[I],d[I])),I==="shortcuts"&&(X()||at()?F[I]={...F[I],...a}:F[I]={...a});else if(I==="rules"){if(Array.isArray(d[I])){let U=F.rules||[],V={};for(let Ae of U)Ae.id&&(V[Ae.id]=Ae);let ie=d[I].map(Ae=>Ae.id&&V[Ae.id]?Ny(F.generalRule,V[Ae.id],Ae):Ae);F[I]=[...ie,...F[I]]}if(de.PROD==="0"&&de.DEV_RULES){let U=JSON.parse(de.DEV_RULES);F[I]=[...U,...F[I]]}}else d[I]!==void 0&&(F[I]=d[I])}return F.donateUrl=t.donateUrl,F.minVersion=t.minVersion,F.feedbackUrl=t.feedbackUrl,F.rawUserConfig=s,F}function ln(){return Zc()}function Hr(e){return Hy(e)}async function Gy(e,t){await ne.storage.sync.set({[e]:t})}async function Vy(e){return(await ne.storage.sync.get(e))[e]}async function Cr(e,t){await ne.storage.local.set({[e]:t})}async function Di(e){return(await ne.storage.local.get(e))[e]}var Jy={};function $c(e){return Jy[e]}function Zy(e,t){Jy[e]=t}var mD=async()=>{let e=["zh-CN"];try{e=await ne.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>$(r)).find(r=>B2.find(a=>a===r));return n||"en"},Up=async()=>{let e={...Ac,buildinConfigUpdatedAt:de.BUILD_TIME};return{...e,targetLanguage:Pa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function pD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function gD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Pa;let n=await Ht("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Ky(l,r[s]))}),qr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Ky(l,n[s]))}),qr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function bD(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function Ky(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}var Io="input is invalid type",Hp=typeof window=="object",Qa=Hp?window:{};Qa.JS_SHA256_NO_WINDOW&&(Hp=!1);var yD=!Hp&&typeof self=="object",vD=!Qa.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;vD?Qa=global:yD&&(Qa=self);var VV=!Qa.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,KV=typeof define=="function"&&define.amd,du=!Qa.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),xD=[-2147483648,8388608,32768,128],Lr=[24,16,8,0],e0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],t0=["hex","array","digest","arrayBuffer"],an=[];(Qa.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});du&&(Qa.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Xy=function(e,t){return function(n){return new on(t,!0).update(n)[e]()}},e9=function(e){var t=Xy("hex",e);t.create=function(){return new on(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};on.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=xD[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};on.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,v;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(v=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^v,h=a&i^~a&o,p=s+d+h+e0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+e0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+e0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),v=t&n,m=v^t&r^y,h=i&o^~i&s,p=a+d+h+e0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};on.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(u+=le[s>>28&15]+le[s>>24&15]+le[s>>20&15]+le[s>>16&15]+le[s>>12&15]+le[s>>8&15]+le[s>>4&15]+le[s&15]),u};on.prototype.toString=on.prototype.hex;on.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};on.prototype.array=on.prototype.digest;on.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function n0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Io);if(du&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!du||!ArrayBuffer.isView(e)))throw new Error(Io)}else throw new Error(Io);e.length>64&&(e=new on(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}on.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}n0.prototype=new on;n0.prototype.finalize=function(){if(on.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();on.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),on.prototype.finalize.call(this)}};var Bo=e9();Bo.sha256=Bo;Bo.sha224=e9(!0);Bo.sha256.hmac=t9();Bo.sha224.hmac=t9(!0);var n9=Bo;var r9=n9.sha256;function jn(e){return Promise.resolve(r9(e))}function _o(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rr(e,t){let n=r9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function a9(e,t){let n=await rr(e,t);return _o(n)}async function r0(e,t){let n=SD(t),r=await rr(e,n);return _o(r)}function SD(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var TD={lang:"en"};function qp(e){let t=Object.assign({},TD,e),[n,r]=W(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Me(n,i,o)}}var CD=0;function x(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--CD,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Fe.vnode&&Fe.vnode(u),u}var zp=Ao(null),Oo=e=>{let{t,setLang:n,lang:r}=qp({lang:e.lang});return x(zp.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return _c(zp)}function s9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Mr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=wD(e,a)),i||(i=ED(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function wD(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Gp({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function ED(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Gp(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function u9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function a0(e,t,n){n=n||await In();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&i9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&i9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await fa(n),await Hr(i)}catch{return!1}return a}async function l9(){return(await In()).aiAssistants||[]}async function AD(e,t){(await Promise.allSettled(e.map(r=>K({url:`${C.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&a0("add",a,t)}})}async function kD(e,t,n=!0){e||(e=await Mt()),t||(t=await In());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await MD();i=await LD(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&AD(o,t)}var ba=Ln(kD,1500);function i9(e){return Va(Ks(),e.extensionVersion)}function DD(e,t){return t?!Va(e.version,t):!1}function LD(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{DD(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function MD(){return(await K({url:`${C.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var PD=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function d9(e,t,n,r,a){let i={...t},o=Gp(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,u9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=s9(i,i.langOverrides,n),o||PD.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function Qt(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=No(t,o),f=No(t,g),y=s,v=Object.keys(u);for(let G of v){let ye=u[G];if(No(t,ye)){y=G;break}}let S=l,T=Object.keys(c);for(let G of T){let ye=c[G];if(ye&&No(t,ye)){S=G;break}}let w=No(t,d),E=c9(t,d);E||(E=We(t,s1)),E||(E=We(t,n.blockUrls));let A=c9(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),M=Object.keys(p),B={};for(let G of M){let ye=p[G];if(ye&&ye.matches)for(let rt of ye.matches)B[rt]=G}let F=Object.keys(B),_=Dp(t,F);_&&(i=B[_]??"auto",B[_]&&B[_]!=="auto"&&$n(B[_]));let L=a.hostname,N=await jn(L),I=a.pathname+a.search+a.hash,U=await jn(I),V=`https://${N}.com/${U}`,ie=await Yt(),Ae=await Xc(),xe=n.translationStartMode,O=FD(ie,n);ie.aiAssistants=ID(O,n),xe==="dynamic"&&f&&(xe="immediate");let z=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let Le=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Le=n.subtitleTranslateService);let me=await dt.get(ct,null),He=!1;me&&(He=ft(me));let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:z,mouseHoverTranslationService:Y,subtitleTranslateService:Le,isTranslateUrl:w,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:E,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:xe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S,isTranslateDirectlyOnHover:!1},localConfig:ie};me&&(pe.user=me,He?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(G=>!pe.config.generalRule.bodyTranslateTags.includes(G)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ce=n.translationServices[pe.translationService]||{};ce.immediateTranslationTextCount!==void 0&&RD(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),pe.translationService==="deepl"&&(ce&&ce.authKey&&ce.authKey.startsWith("immersive_")||ce&&ce.provider==="pro"&&pe.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(pe.state.translationDebounce=ce.translationDebounce);let ge=Ae.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,we;globalThis.PDFViewerApplication?we=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?we=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?we=fe.find(G=>G.pageType=="ebookBuilder"):we=fe.find(G=>No(t,G)),we&&we.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(we&&(pe.rule=Yc(Ue,we)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(G=>!pe.rule.bodyTranslateTags.includes(G)&&!pe.rule.forceTranslateTags.includes(G))),pe.rule.mainFrameSelector){let G=document.querySelector(pe.rule.mainFrameSelector);G&&(pe.mainFrame=G)}return pe}function No(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&Dc(i)?!1:!!(a&&a.length>0&&Dc(a))}function c9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&Dc(r))}function RD(e){return typeof e=="number"}function FD(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function ID(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Iy(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}var jo="imt-subtitle-inject",i0=class{from;to;constructor(t,n){this.from=t,this.to=n}sendMessages(t){globalThis.postMessage({type:jo,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:n}){return new Promise(r=>{let a=this.getRandomId();globalThis.postMessage({type:jo,to:this.to,from:this.from,action:t,data:n,id:a,isAsync:!0});let i=({data:o})=>{jo===o.type&&o.id===a&&o.to===this.from&&(r(o.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(n=>{let r=({data:a})=>{jo===a.type&&a.action===t&&a.to===this.from&&(n(a.data),globalThis.removeEventListener("message",r))};globalThis.addEventListener("message",r)})}handleMessage(t,n){let r=({data:a})=>{jo===a.type&&a.action===t&&a.to===this.from&&n(a)};return globalThis.addEventListener("message",r),()=>{globalThis.removeEventListener("message",r)}}handleMessages(t){let n=({data:r})=>{jo===r.type&&r.to===this.from&&t(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}},_i=new i0("content-script","inject"),BD=new i0("inject","content-script"),m9={get(e,t,n){return t in e?(...r)=>{let a=e[t];return typeof a=="function"?a.apply(e,r):Reflect.get(e,t,n)}:r=>e.sendAsyncMessages({action:t,data:r})}},QK=new Proxy(BD,m9),o0=new Proxy(_i,m9);async function _D(){try{let e=await UD(Te(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&ND(e);let n=e.rule.imageRule;n?.enable&&n.type&&OD(e),jD(e)}catch{}}function OD(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_IMAGE_INJECT,r=document.createElement("script");r.id="imt-image-inject",r.textContent=n,document.head.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-image-inject",document.head.appendChild(r)})}function ND(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,r=document.createElement("script");r.id="imt-subtitles-inject",r.textContent=n,document.head.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-subtitles-inject",document.head.appendChild(r)})}function jD(e){_i.handleMessages(({id:t,action:n})=>{if(n==="getConfig"){let r=e.rule.subtitleRule;_i.sendMessages({id:t,data:r})}})}_D();var Uo=null;async function UD(e,t){let n=Object.keys(t);if(Uo){let r={url:e,config:Uo.config,state:{...Uo.state,...t}};Uo=await Qt(r)}else{let r=await HD(),a=t;n.length===0&&(a=void 0),Uo=await Qt({url:e,config:r,state:a})}return Uo}function HD(){return X()?Mt():qD({method:"getConfig"})}async function qD(e){return await bp().sendMessage("background:main",e)}var zD=` +`)){s+=l;return}s+=by(u,a)}else s+=l}}function dy(e,t,n,r,a){return!e||!t?"":t.replace(by(n,a)||"",r)}var Dp=globalThis.document?.createElement("div");function Jk(e){return Dp?(Dp.innerHTML=jn?.createHTML(e)||e,Dp?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function my(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||Jk(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function py(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(d,m,p,g)=>{if(t[g+1]=="/"){let b=o.findIndex(y=>y.tag==m);if(b==-1)return d;let f=o[b];return o=o.slice(b+1),n?``:``}else{let b=e[m];if(!b)return d;if(o.unshift(b),n)return`<${n}${m}>`;if(!b.attributes)return`<${b.tag}>`;let f=a||"";return`<${b.tag} ${r||"id"}=${f}${b.id}${f}>`}});l.replace(i,(d,m,p,g)=>{if(l[g+1]=="/"){let b=s[0],f=s[1],y=u[u.length-1];b?.tag==m?(b.end==g?(b.endTag=d,b.end=g+d.length,u.push(b)):b.end==y?.begin&&y.end==g&&(b.endTag=d,b.end=g+d.length,b.times++,u[u.length-1]=b),s.shift()):f?.tag==m&&f.end==b.begin&&f.end==g&&(f.endTag=d,f.end=g+d.length,u.push(f),s.shift(),s.shift())}else s.unshift({tag:m,startTag:d,begin:g,end:g+d.length,times:0});return d});let c=l.slice();return u.forEach(d=>{if(!d.times)return;let m=Object.keys(e).length,p="";e[m]={tag:n||d.tag,content:"",id:m},n?p=`<${n}${m}>`:p=`<${d.tag} ${r||"id"}=${m}>`,e[m].content=c.slice(d.begin,d.end),l=l.replace(e[m].content,p)}),l}function gy(e,t,n,r){let a="";return n?a=fy(e,t,n):a=hy(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function fy(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),d=e[c];return d?l=="/"?d.content?"":``:d.content?fy(e,d.content,n):d.attributes?`<${d.tag} ${d.attributes}>`:`<${d.tag}>`:i})}function hy(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return hy(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function by(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` +`)<0?r=Je.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=Je.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}return(e?.parentElement?.innerText.indexOf(` +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function Xk(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function ly(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Nc(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function Lp(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),qr({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function Do(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function yy(e,t){let n=t||e.translationService;return Do(e,n,e.config.translationServices)?Lp(e.rule):e.rule}function jc(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var Qk=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function rr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function zr(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(rr(e,i))return!1;if(rr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=d();return c&&(c=!rr(e,o)),c;function d(){return n&&n.display?!!Qk.includes(n.display):rr(e,r)}}var Et=rr;function Ri(e){return!!e.shadowRoot}function Wa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function uu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Wr(e,t=!1){let n=io;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function _i(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Wr(n,t)}function Lo(e,t){return Fa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Mp(e){let{rule:t}=e,n=eD(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function eD(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function lu(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Dt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),wt(a,J3,t.toString());let i=Mp(e);return a.append(n?" ...":Je.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function Mo(e,t){return e.querySelector(`[${Lm}='${t}']`)}function xy(){document.querySelectorAll(`[${Lm}]`).forEach(t=>{t.remove()})}function vy(){document.querySelectorAll(`.${Dt}-error`).forEach(t=>{t.remove()})}function Ty(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Ha(n)&&t.push(n)}),t}function Pp(e,t){return t?tD(e):nD(e)}function tD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},d=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,g)=>p.tl&&!g.tl?1:!p.tl&&g.tl?-1:0),m=new RegExp(a.replace("{word}",d.map(p=>p.k).join("|")),"gi");u=u.replace(m,(p,g,h)=>{if(g=="id"&&u[h+2]=="=")return p;let b=l++;return t[`${b}`]=Sy(g,c),p.replace(g,`${g}`)})}o&&o.length>0&&o.forEach(c=>{let d=new RegExp(c,"gi");u=u.replace(d,(m,p)=>{let g=l++;return t[`${g}`]=bp(p),m.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function nD(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let d={},m=r.filter(g=>g.tl&&g.tl!==u?!1:g.k?(d[g.k]=g.v||"",!0):!1).sort((g,h)=>g.tl&&!h.tl?1:!g.tl&&h.tl?-1:0),p=new RegExp(a.replace("{word}",m.map(g=>g.k).join("|")),"gi");l=l.replace(p,(g,h,b)=>{if(h=="id"&&l[b+2]=="=")return g;let f=c++;return t[`${f}`]=Sy(h,d),o.length>2?g.replace(h,`<${o[2]}${f}>`):g.replace(h,`${o[0]}${f}${o[1]}`)})}s&&s.length>0&&s.forEach(d=>{let m=new RegExp(d,"gi");l=l.replace(m,(p,g)=>{let h=c++;return t[`${h}`]=bp(g),o.length>2?p.replace(g,`<${o[2]}${h}>`):p.replace(g,`${o[0]}${h}${o[1]}`)})})}catch(d){k.debug(`format source text error: ${d.message}`)}return{text:l,variables:t}}function _p(e,t){return t?rD(e):aD(e)}function rD(e){let{text:t,variables:n}=e,r=jc(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function aD(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let d=c.match(s);if(!d)return c;let m=d[1],p=Number(m);if(isNaN(p))return c;let g=r[m];return g||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Sy(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function Po(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||kb(l)||Cb(l)||Ab(l)||wb(l)||Eb(l)||oD(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:So(i?.trim(),n,r)}function Fi(e){return e.nodeType===Node.ELEMENT_NODE}function Cy(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}async function Dr(){return await Ht("fakeUserId","")}async function iD(){return await Ht("installedAt","")}async function _o(e,t){let r=be().INSTALL_FROM,a=Wt(),i=await iD(),o=await Dr(),s=await Mt(),u=!1,l=await dt.get(ct,null),c=!1;l&&ft(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let d=await xo(),m=await To(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:d,campaign:m},g=await vo();return g&&(p.abGroup=g),p}function cu(e,t){let[n,r]=W();return ee(()=>{!e||!t||(async()=>{let a=await Rp(e,t);r(a)})()},[e,t,r]),n}async function Rp(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!at()&&X()||Ve().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ht("installedAt","");new Date(o).getTime()s==n),a=sD(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>We(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>We(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function sD(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Ey(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Ay(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let d=0;d{let m=r.slice(d[0],d[1]);l&&m.match(l)||m.endsWith(".")&&m.indexOf(".")!=m.length-1||(u.push(d[1]),s=d[1])}),s=n||m<=n&&p>n){let g=r.slice(s,u[d]);g&&c.push(g),s=u[d];continue}}if(s{Uc[e]=setTimeout(()=>{n("")},t)})}function Dy(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function Ga(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new j(t,n).initNetWork(e.status)}function qc(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Ii(){return ip()?"imtAndroid":$s()?"imtIOS":X()?"userscript":at()?"safari":Tr()?"firefox":N1()?"chrome":"other"}function Gr(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function zc(e){return e?.getAttribute("imt-state")||""}function Vr(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Wc(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(rr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Ly(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}function Ka(e){if(e.beta)return!1;if(at()&&e.spVersion)return Va(Ks(),e.spVersion);if(z2()&&e.gspVersion){let t=W2();if(t)return Va(t,e.gspVersion)}if($s()&&e.ispVersion){let t=q2();if(t)return Va(t,e.ispVersion)}return!1}function Va(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Ip(e){e.message?.indexOf("token invalid")>=0&&(dt.remove(ct),Vs())}async function My(e){let n=(await Mt())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),uD(a.toString())}function uD(e){try{at()?Ur(e):globalThis.open(e)}catch{globalThis.open(e)}}function Py(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function _y(e){return ft(e)}function Gc(e){return Array.isArray(e)?e:e?[e]:[]}function Vc(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Kc(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ry(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function $c(e,t){let n={...e};return Ny(n,t),lD(n,t),n}function Oy(e,t,n){let r={...e};return qr({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),qr({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function lD(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;Ny(e,a)}function qr({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=Fy(i);if(o=="rich"){if(!a)return r(i,e[i]);let[m,p,g,h]=Fy(i);o=m+"."+p,s=g,u=h}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Gc(e[i]));let c=t(o);if(c==null){r(o,l);return}let d;if(s=="add_v"){if(!Iy(u))return;d=Bp(c,l)}else if(s=="remove_v"){if(!Iy(u))return;d=By(c,l)}else s==="add"?d=Bp(c,l):s=="remove"&&(d=By(c,l));if(d){r(o,d);return}Array.isArray(e[o])&&o.startsWith("additional")?d=Bp(c,l):d=l,r(o,d)})}function Ny(e,t){return qr({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function Bp(e,t){let n;if(Array.isArray(e)){let r=Gc(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function Fy(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function Iy(e){let t=Wt();return e&&Va(t,e)}function By(e,t){if(Array.isArray(e)){let n=Gc(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var jy="userConfig",Yc="userPromptPool",Zc="userObjectPool";async function Jc(){let e=await Gy(jy)||{},t=await Di(Yc)||{},n=await Di(Zc)||{};return cD(e,t,n)}async function Uy(e){let{userConfig:t,promptPool:n,objectPool:r}=await Op(e);await Wy(jy,t),await Cr(Yc,n),await Cr(Zc,r)}function Op(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return Hy(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),qy(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function cD(e,t,n){return Hy(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),qy(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function Hy(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function qy(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function $a(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=zy(r);for(let o of i)delete a[o]}),n}function Np(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=zy(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function zy(e){let t=Sr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=lo.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Ky(){if(de.PROD==="1")return{};let e={};if(de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:de.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:de.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:de.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:de.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:de.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:de.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:de.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(de.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=de.DEEPL_PROXY_ENDPOINT),de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=de.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:de.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}de.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=de.IMMERSIVE_TRANSLATE_SERVICE);let t={};return de.DEBUG==="1"&&(t.debug=!0,t.cache=!1),de.MOCK==="1"&&(t.translationService="mock"),t}async function $t(){let e=await ne.storage.local.get(Ms);if(e[Ms]){let t=e[Ms],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await zt(i),i}else return{}}async function zt(e){await ne.storage.local.set({[Ms]:e})}async function M2(e){await ne.storage.local.set({[Il]:e})}async function $y(){return de.DEBUG==="1"?void 0:(await ne.storage.local.get(Il))[Il]}async function Xc(){let e=await $y(),n={...await jp(),...Ac,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function Mt(){let e=await $y(),t={...Ac,buildinConfigUpdatedAt:de.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let N=new Date(e.buildinConfigUpdatedAt),F=new Date(t.buildinConfigUpdatedAt);N>F&&(t=e)}let n=await pD(t);t.targetLanguage=n;let r=await dt.get(ct,null),a={};if(!X()&&ne.commands&&ne.commands.getAll){let N=await ne.commands.getAll();for(let F of N)F.name&&F.shortcut&&(a[F.name]=F.shortcut)}let i=await jp(),o=Ky(),s=await ln(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await $t(),c=new Date,d=Object.assign({},u,o,s);if(!d.interfaceLanguage){let N=await dD();d.interfaceLanguage=N}let m=d.interfaceLanguage==="en",p=d.targetLanguage==="en",g=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,h=["bing","google","transmart","mock"].includes(d.translationService)||!d.translationService;!m&&!p&&!g&&h?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;d.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let f=d&&d.isChangedAlwaysTranslatedUrls,y=[];d.translationUrlPattern&&d.translationUrlPattern.matches&&(y=d.translationUrlPattern.matches||[]);let x=!1;f===void 0&&(y.length>0?f=!0:f=!1,d.isChangedAlwaysTranslatedUrls=f,s.isChangedAlwaysTranslatedUrls=f,x=!0);let T=(d?.translationLanguagePattern?.matches?.length||0)>0,S=await Ht("installedAt",""),w=Number(await Ei("translage_page_daily",0)),E=Number(await Ht(cr,0)),A;E>0&&(Date.now()-E0&&(Date.now()-w0){let N=l.tempTranslationUrlMatches.filter(F=>new Date(F.expiredAt)>c);if(N.length>0){let F=d.translationUrlPattern?d.translationUrlPattern?.matches||[]:[],U=Array.isArray(F)?F:[F],V=Array.from(new Set(U.concat(N.map(ie=>ie.match))));d.translationUrlPattern={...d.translationUrlPattern,matches:V}}}let R=Object.assign(i,t);qr({rule:t,valueIsArray:N=>Array.isArray(i[N]),getMergedValue:N=>i[N],onMergedResult:(N,F)=>{N!="generalRule"&&(R[N]=F)}}),qr({rule:t.generalRule,valueIsArray:N=>Array.isArray(i.generalRule[N]),getMergedValue:N=>i.generalRule[N],onMergedResult:(N,F)=>{R.generalRule[N]=F}}),hD(R,S),gD(r,d,R);let B=Object.keys(R),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let N of B){let F=N;if(F==="generalRule")typeof d[F]=="object"&&(R[F]=$c(R[F],d[F]));else if(F==="translationServices")fD(d,R);else if(typeof d[F]!="string"&&typeof d[F]!="boolean"&&typeof d[F]!="number"&&L.includes(F))d[F]&&(R[F]=Object.assign(R[F],d[F])),F==="shortcuts"&&(X()||at()?R[F]={...R[F],...a}:R[F]={...a});else if(F==="rules"){if(Array.isArray(d[F])){let U=R.rules||[],V={};for(let Ae of U)Ae.id&&(V[Ae.id]=Ae);let ie=d[F].map(Ae=>Ae.id&&V[Ae.id]?Oy(R.generalRule,V[Ae.id],Ae):Ae);R[F]=[...ie,...R[F]]}if(de.PROD==="0"&&de.DEV_RULES){let U=JSON.parse(de.DEV_RULES);R[F]=[...U,...R[F]]}}else d[F]!==void 0&&(R[F]=d[F])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R.rawUserConfig=s,R}function ln(){return Jc()}function Hr(e){return Uy(e)}async function Wy(e,t){await ne.storage.sync.set({[e]:t})}async function Gy(e){return(await ne.storage.sync.get(e))[e]}async function Cr(e,t){await ne.storage.local.set({[e]:t})}async function Di(e){return(await ne.storage.local.get(e))[e]}var Yy={};function Qc(e){return Yy[e]}function Zy(e,t){Yy[e]=t}var dD=async()=>{let e=["zh-CN"];try{e=await ne.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>Q(r)).find(r=>F2.find(a=>a===r));return n||"en"},jp=async()=>{let e={...Ac,buildinConfigUpdatedAt:de.BUILD_TIME};return{...e,targetLanguage:Pa,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function mD(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function pD(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return Pa;let n=await Ht("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=Vy(l,r[s]))}),qr({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=Vy(l,n[s]))}),qr({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function hD(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function Vy(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}var Fo="input is invalid type",Up=typeof window=="object",Ya=Up?window:{};Ya.JS_SHA256_NO_WINDOW&&(Up=!1);var bD=!Up&&typeof self=="object",yD=!Ya.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;yD?Ya=global:bD&&(Ya=self);var WV=!Ya.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,GV=typeof define=="function"&&define.amd,du=!Ya.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),xD=[-2147483648,8388608,32768,128],Lr=[24,16,8,0],e0=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],t0=["hex","array","digest","arrayBuffer"],an=[];(Ya.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});du&&(Ya.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Jy=function(e,t){return function(n){return new on(t,!0).update(n)[e]()}},Qy=function(e){var t=Jy("hex",e);t.create=function(){return new on(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};on.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=xD[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};on.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,d,m,p,g,h,b,f,y,x;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+d<<0;for(x=t&n,l=0;l<64;l+=4)this.first?(this.is224?(b=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(b=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),d=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=e&t,m=b^e&n^x,h=a&i^~a&o,p=s+d+h+e0[l]+u[l],g=c+m,s=r+p<<0,r=p+g<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),f=r&e,m=f^r&t^b,h=s&a^~s&i,p=o+d+h+e0[l+1]+u[l+1],g=c+m,o=n+p<<0,n=p+g<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=n&r,m=y^n&e^f,h=o&s^~o&a,p=i+d+h+e0[l+2]+u[l+2],g=c+m,i=t+p<<0,t=p+g<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),x=t&n,m=x^t&r^y,h=i&o^~i&s,p=a+d+h+e0[l+3]+u[l+3],g=c+m,a=e+p<<0,e=p+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};on.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(u+=le[s>>28&15]+le[s>>24&15]+le[s>>20&15]+le[s>>16&15]+le[s>>12&15]+le[s>>8&15]+le[s>>4&15]+le[s&15]),u};on.prototype.toString=on.prototype.hex;on.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};on.prototype.array=on.prototype.digest;on.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function n0(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Fo);if(du&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!du||!ArrayBuffer.isView(e)))throw new Error(Fo)}else throw new Error(Fo);e.length>64&&(e=new on(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var d=e[r]||0;l[r]=92^d,c[r]=54^d}on.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}n0.prototype=new on;n0.prototype.finalize=function(){if(on.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();on.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),on.prototype.finalize.call(this)}};var Io=Qy();Io.sha256=Io;Io.sha224=Qy(!0);Io.sha256.hmac=e9();Io.sha224.hmac=e9(!0);var t9=Io;var n9=t9.sha256;function Un(e){return Promise.resolve(n9(e))}function Bo(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function ar(e,t){let n=n9.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function r9(e,t){let n=await ar(e,t);return Bo(n)}async function r0(e,t){let n=vD(t),r=await ar(e,n);return Bo(r)}function vD(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var TD={lang:"en"};function Hp(e){let t=Object.assign({},TD,e),[n,r]=W(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Me(n,i,o)}}var SD=0;function v(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--SD,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Re.vnode&&Re.vnode(u),u}var qp=Ao(null),Oo=e=>{let{t,setLang:n,lang:r}=Hp({lang:e.lang});return v(qp.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function se(){return Bc(qp)}function o9(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function Mr(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=CD(e,a)),i||(i=wD(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function CD(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Wp({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function wD(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Wp(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>We(a,s.matches)&&!We(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,d]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(d))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function s9(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function a0(e,t,n){n=n||await Fn();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&a9(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&a9(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await ln();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await fa(n),await Hr(i)}catch{return!1}return a}async function u9(){return(await Fn()).aiAssistants||[]}async function ED(e,t){(await Promise.allSettled(e.map(r=>K({url:`${C.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&a0("add",a,t)}})}async function AD(e,t,n=!0){e||(e=await Mt()),t||(t=await Fn());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await LD();i=await DD(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&ED(o,t)}var ba=Ln(AD,1500);function a9(e){return Va(Ks(),e.extensionVersion)}function kD(e,t){return t?!Va(e.version,t):!1}function DD(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{kD(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function LD(){return(await K({url:`${C.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}var MD=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function c9(e,t,n,r,a){let i={...t},o=Wp(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,s9({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=o9(i,i.langOverrides,n),o||MD.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function Yt(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:d,targetLanguage:m,sourceLanguageUrlPattern:p,immediateTranslationPattern:g}=n,h=m||"zh-CN",b=No(t,o),f=No(t,g),y=s,x=Object.keys(u);for(let G of x){let ye=u[G];if(No(t,ye)){y=G;break}}let T=l,S=Object.keys(c);for(let G of S){let ye=c[G];if(ye&&No(t,ye)){T=G;break}}let w=No(t,d),E=l9(t,d);E||(E=We(t,o1)),E||(E=We(t,n.blockUrls));let A=l9(t,n.inputTranslationUrlPattern);A||(A=We(t,n.inputTranslationBlockUrls));let D=We(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let G of M){let ye=p[G];if(ye&&ye.matches)for(let rt of ye.matches)I[rt]=G}let R=Object.keys(I),B=kp(t,R);B&&(i=I[B]??"auto",I[B]&&I[B]!=="auto"&&er(I[B]));let L=a.hostname,N=await Un(L),F=a.pathname+a.search+a.hash,U=await Un(F),V=`https://${N}.com/${U}`,ie=await $t(),Ae=await Xc(),ve=n.translationStartMode,O=_D(ie,n);ie.aiAssistants=RD(O,n),ve==="dynamic"&&f&&(ve="immediate");let z=y;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let $=y;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&($=n.mouseHoverTranslationService);let Le=y;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Le=n.subtitleTranslateService);let me=await dt.get(ct,null),He=!1;me&&(He=ft(me));let pe={targetLanguage:h,config:n,translationService:y,inputTranslationService:z,mouseHoverTranslationService:$,subtitleTranslateService:Le,isTranslateUrl:w,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:E,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:V,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:ve,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},localConfig:ie};me&&(pe.user=me,He?pe.isPro=!0:pe.isPro=!1),pe.state.translationArea==="body"&&(pe.config.generalRule.excludeTags=pe.config.generalRule.excludeTags.filter(G=>!pe.config.generalRule.bodyTranslateTags.includes(G)),pe.config.generalRule.additionalExcludeSelectors=pe.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let ce=n.translationServices[pe.translationService]||{};ce.immediateTranslationTextCount!==void 0&&PD(ce.immediateTranslationTextCount)&&ce.immediateTranslationTextCount>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCount),pe.translationService==="deepl"&&(ce&&ce.authKey&&ce.authKey.startsWith("immersive_")||ce&&ce.provider==="pro"&&pe.user?.token)&&ce.immediateTranslationTextCountForImmersiveDeepl!==void 0&&ce.immediateTranslationTextCountForImmersiveDeepl>=0&&(pe.state.immediateTranslationTextCount=ce.immediateTranslationTextCountForImmersiveDeepl),ce&&ce.translationDebounce&&typeof ce.translationDebounce=="number"&&(pe.state.translationDebounce=ce.translationDebounce);let ge=Ae.immediateTranslationTextCount;n.immediateTranslationTextCount!==ge&&(pe.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,we;globalThis.PDFViewerApplication?we=fe.find(G=>G.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?we=fe.find(G=>G.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?we=fe.find(G=>G.pageType=="ebookBuilder"):we=fe.find(G=>No(t,G)),we&&we.pageType==="ebookBuilder"&&(pe.state.translationStartMode="immediate");let Ue=n.generalRule;if(we&&(pe.rule=$c(Ue,we)),pe.rule.selectors.length>0&&(pe.rule.paragraphMinTextCount=2,pe.rule.paragraphMinWordCount=1),pe.state.translationArea==="body"&&pe.rule.excludeTags&&(pe.rule.excludeTags=pe.rule.excludeTags.filter(G=>!pe.rule.bodyTranslateTags.includes(G)&&!pe.rule.forceTranslateTags.includes(G))),pe.rule.mainFrameSelector){let G=document.querySelector(pe.rule.mainFrameSelector);G&&(pe.mainFrame=G)}return pe}function No(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&&We(e,r)?!1:n&&n.length>0&&We(e,n)?!0:i&&i.length>0&&Dc(i)?!1:!!(a&&a.length>0&&Dc(a))}function l9(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&&We(e,n)||r&&r.length>0&&Dc(r))}function PD(e){return typeof e=="number"}function _D(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function RD(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Ry(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}var jo="imt-subtitle-inject",i0=class{from;to;constructor(t,n){this.from=t,this.to=n}sendMessages(t){globalThis.postMessage({type:jo,to:this.to,from:this.from,action:t.action,data:t.data,id:t.id||new Date().getTime(),isAsync:!1})}getRandomId(){return(new Date().getTime()+Math.random())*Math.random()}sendAsyncMessages({action:t,data:n}){return new Promise(r=>{let a=this.getRandomId();globalThis.postMessage({type:jo,to:this.to,from:this.from,action:t,data:n,id:a,isAsync:!0});let i=({data:o})=>{jo===o.type&&o.id===a&&o.to===this.from&&(r(o.data),globalThis.removeEventListener("message",i))};globalThis.addEventListener("message",i)})}handleMessageOnce(t){return new Promise(n=>{let r=({data:a})=>{jo===a.type&&a.action===t&&a.to===this.from&&(n(a.data),globalThis.removeEventListener("message",r))};globalThis.addEventListener("message",r)})}handleMessage(t,n){let r=({data:a})=>{jo===a.type&&a.action===t&&a.to===this.from&&n(a)};return globalThis.addEventListener("message",r),()=>{globalThis.removeEventListener("message",r)}}handleMessages(t){let n=({data:r})=>{jo===r.type&&r.to===this.from&&t(r)};return globalThis.addEventListener("message",n),()=>{globalThis.removeEventListener("message",n)}}},Bi=new i0("content-script","inject"),FD=new i0("inject","content-script"),d9={get(e,t,n){return t in e?(...r)=>{let a=e[t];return typeof a=="function"?a.apply(e,r):Reflect.get(e,t,n)}:r=>e.sendAsyncMessages({action:t,data:r})}},KK=new Proxy(FD,d9),o0=new Proxy(Bi,d9);async function ID(){try{let e=await jD(Se(),{});if(e.isTranslateExcludeUrl)return;let t=e.rule.subtitleRule;t&&t.type&&!t.disabled&&t.isInject&&OD(e);let n=e.rule.imageRule;n?.enable&&n.type&&BD(e),ND(e)}catch{}}function BD(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_IMAGE_INJECT,r=document.createElement("script");r.id="imt-image-inject",r.textContent=n,document.head.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("image/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-image-inject",document.head.appendChild(r)})}function OD(e){if(X()){let n=be().IMMERSIVE_TRANSLATE_VIDEO_SUBTITLE_INJECT,r=document.createElement("script");r.id="imt-subtitles-inject",r.textContent=n,document.head.appendChild(r)}else ne.storage.sync.get("open").then(()=>{let t=ne.runtime.getURL("video-subtitle/inject.js");if(document.querySelector(`script[src='${t}']`))return;let r=document.createElement("script");r.src=t,r.id="imt-subtitles-inject",document.head.appendChild(r)})}function ND(e){Bi.handleMessages(({id:t,action:n})=>{if(n==="getConfig"){let r=e.rule.subtitleRule;Bi.sendMessages({id:t,data:r})}})}ID();var Uo=null;async function jD(e,t){let n=Object.keys(t);if(Uo){let r={url:e,config:Uo.config,state:{...Uo.state,...t}};Uo=await Yt(r)}else{let r=await UD(),a=t;n.length===0&&(a=void 0),Uo=await Yt({url:e,config:r,state:a})}return Uo}function UD(){return X()?Mt():HD({method:"getConfig"})}async function HD(e){return await hp().sendMessage("background:main",e)}var qD=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5991,41 +5991,41 @@ Translate the content to {{to}} Language: max-width: fit-content; } } -`,Vp="immersive-translate-toastify-shadow-root",Kp=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(Vp)){let t=document.getElementById(Vp);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=Vp,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=zD,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function s0(e){e=e||{},new Kp({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}async function p9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Yp(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Yp(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Yp(n)},r,a);return WD(i)}catch{return Promise.reject("Encryption failed")}}function WD(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=_.params||{};if(B.os&&(L.os_name=B.os.name||"unknown",L.os_version=B.os.version||"unknown",L.os_version_name=B.os.versionName||"unknown"),B.browser&&(L.browser_name=B.browser.name||"unknown",L.browser_version=B.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),B.platform&&(L.platform_type=B.platform.type||"unknown"),B.engine&&(L.engine_name=B.engine.name||"unknown",L.engine_version=B.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let I=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),I&&(I.provider&&(L.translation_service_provider=I.provider),n.translationService==="openai"&&I.provider==="custom"&&(I.apiUrl?I.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),I.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),v){L.install_day=Tc(y);let I=wc(y);L.install_week=`${I.year}${I.week}`}if(n.user){let I=W1(n.user);I&&Object.keys(I).forEach(U=>{L[U]=I[U]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),T?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=E?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let I=n.url;try{let U=new URL(I);L.site_host=U.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{..._,params:L}});if(i)return;M.forEach(async _=>{let L=await K({responseType:"text",url:_,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:F})})}),n.config.enableSelfServiceReport&&GD(p,F),n.config.enablePerformanceReport&&YD(n,F)}catch(r){k.debug("report error",r)}}function GD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};g9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:Ns,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var VD=Date.now(),KD=["translate_page","translate_video_subtitle"];function YD(e,t){try{t.forEach(async n=>{if(!KD.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};g9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-VD},s=await p9(JSON.stringify(o),C1,w1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:Ns,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function g9(e){return e?.install_day&&(e.install_day=Cc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Ja(e){return e!=null}function b9(e,t,n){return`${e.type}#${t}#${n}`}function y9(e,t,n,r,a){return{body:a,id:r,type:b9(e,t,n)}}function QD(e,t,n,r){return{id:n,response:r,type:b9(e,"ask",t)}}function v9(e,t,n,r){if(Ja(r)){let a=r.type;if(Ja(a)&&Ja(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function JD(e,t,n){if(Ja(n)){let r=n.type;if(Ja(r)&&Ja(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function ZD(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function XD(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;JD(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function $D(e,t,n,r){let a=i=>{let o=i.data;v9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function f9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(v9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(QD(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function eL(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(y9(t,"tell",n,i,r),a)}async function h9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await XD(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(y9(n,"ask",r,s,a),i),u}var Za=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;f9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ja(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await h9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push($D(this.thisWindow,this.protocol,t,n))}tell(t,n){eL(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(f9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return h9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){ZD(this.listeners)}};var x9;async function S9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Za.iframe(Hl,"*",{targetWindow:t});x9=n,await Za.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function T9(){return x9}function C9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var ke=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=$1(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let v="";if(f.translatedTexts&&f.translatedTexts[0]&&(v=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let w=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(w,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=v;let S=p[b],T=0;for(let w=0;w{let T=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(T=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(E=>E.text),forces:f.tempSentences.map(E=>E.force),xpaths:f.tempSentences.map(E=>E.xpath||""),from:T,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let w=n1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(w=this.serviceConfig.translationTextSeparator);let E=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(E=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Wr(this.serviceConfig);if(f.tempSentences.forEach((I,U)=>{let V=Rp({text:I.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);I.force!==!0&&(V&&V.text&&V.text.trim().lengthU.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:I,from:T,to:f.to})}let M="";E&&E.length>=2?M=A.map((I,U)=>{let{item:V}=I;return U===A.length-1?V.text:V.text+E[0]+(U+1)+E[1]}).join(""):M=A.map(({item:I})=>I.text).join(w);let B=await this.translate({text:M,from:T,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:F}=B,_=[];if(E&&E.length>=2){let I=`${E[0]}\\d+${E[1]}`;E&&E.length>=3&&(I=E[2]);let U=new RegExp(I,"g");_=F.split(U)}else _=F.split(w);let L=[];if(_.length>A.length){for(let I=0;II.text);return D=Wr(this.serviceConfig,!0),L.forEach((I,U)=>{let V=A[U],ie=V.index,Ae=V.variables||{};Object.keys(Ae).length>0&&(I=Fp({text:I,delimiters:D,variables:Ae},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[ie]=I}),{sourceTempSentences:f.tempSentences,text:N,from:B.from,to:B.to}}};m.push(S().then(T=>{let{text:w,sourceTempSentences:E}=T;for(let A=0;A{if(T instanceof j&&T.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let w=0;w{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Wr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Rp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Wr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=Fp({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Be({text:t,minLength:18,pageLangs:[mt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var w9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],mu=class e extends ke{static langMap=new Map(w9);maxTextGroupLength=50;static langMapReverse=new Map(w9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await jn(a)].join(` -`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await jn(c)].join(` -`),p=await a9(d,`TC3${n}`),g=await r0(i,p),h=await r0("tc3_request",g),b=await r0(m,h),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var E9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],tL={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},pu=class e extends ke{static langMap=new Map(E9);static langMapReverse=new Map(E9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:tL,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var A9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],gu=class e extends ke{static langMap=new Map(A9);static langMapReverse=new Map(A9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function nL(e,t){return t?e+(t-e%t):e}function rL(e,t){return e.split(t).length-1}function Qp(e){let t=Date.now(),n=1;for(let r of e)n+=rL(r,"i");return nL(t,n)}function aL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Jp(){return aL(1e6,1e8)}var Zp="https://www2.deepl.com/jsonrpc",Xp="auto",k9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function iL(e=k9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function $p(e){return iL()[e.toLowerCase()]}var oL={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function sL(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function uL(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function lL(e,t,n,r,a,i,o){let s=Jp(),u=uL(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=Qp(t);let c=await K({retry:2,method:"POST",url:e,body:sL(u),headers:oL}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function D9(e,t,n,r=Xp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:lL(e,t,$p(n),$p(r)??"auto",a,i,o):{text:[],from:r,to:n}}var L9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ho=class e extends ke{static langMap=new Map(L9);static langMapReverse=new Map(L9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Zp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(Zp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await D9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var fu=class e extends ke{static langMap=new Map(np);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ga.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=be(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=M9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:uc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=be(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=M9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:uc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ga.detectLanguageRemotelyByTransmart(t)}};function M9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function eg(){return Math.random()>=.001}var qo=class extends ke{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!eg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await T2(),!eg())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var R9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],tg=new Map(R9),P9=new Map(R9.map(([e,t])=>[t,e])),ng=class e extends ke{static langMap=tg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:tg.get(r)||"auto",target_lang:tg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:P9.get(o.source_lang),to:P9.get(o.target_lang)}}else throw new j(i.msg)}},u0=ng;var rg="https://{s}bing.com",O9=rg+"/translator",cL=rg+"/ttranslatev3",dL=rg+"/tspellcheckv3",l0="bingGlobalConfig",N9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],F9=new Map(N9),I9=new Map(N9.map(([e,t])=>[t,e])),B9=1e3,Pr,zo;function ag(e,t){return e.replace("{s}",t?t+".":"")}async function mL(){if(!Pr){let n=await ne.storage.local.get(l0);return n&&(Pr=n[l0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Pr;return Date.now()-e>t}async function _9(){let e,t,n,r,a,i,o,s,u,l;try{let c=ag(O9,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Pr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ne.storage.local.set({[l0]:Pr}),Pr}function pL(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Pr;return ag(e?dL:cL,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Pr.count++:"")}function gL(e,t,n,r){let{token:a,key:i}=Pr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function j9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>B9)throw new Error(`The supported maximum length of text is ${B9}. Please shorten the text.`);zo||(zo=_9()),await zo,await mL()&&(zo=_9(),await zo),t=t||"auto",n=n||"zh-CN",t=F9.get(t)||t,n=F9.get(n)||n;let a=pL(!1),i=gL(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:ag(O9,Pr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Pr=null,zo=null,await ne.storage.local.remove(l0),c.ShowCaptcha)throw new Error(` +`,Gp="immersive-translate-toastify-shadow-root",Vp=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(Gp)){let t=document.getElementById(Gp);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=Gp,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=qD,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function s0(e){e=e||{},new Vp({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}async function m9(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Kp(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Kp(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Kp(n)},r,a);return zD(i)}catch{return Promise.reject("Encryption failed")}}function zD(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=B.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let F=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),F&&(F.provider&&(L.translation_service_provider=F.provider),n.translationService==="openai"&&F.provider==="custom"&&(F.apiUrl?F.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),F.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",d&&(L.version=d),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),x){L.install_day=Sc(y);let F=wc(y);L.install_week=`${F.year}${F.week}`}if(n.user){let F=z1(n.user);F&&Object.keys(F).forEach(U=>{L[U]=F[U]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),S?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=E?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let N="html";if(n.rule.pageType&&(N=n.rule.pageType),L.page_type=N,s?L.main_frame=0:L.main_frame=1,!c){let F=n.url;try{let U=new URL(F);L.site_host=U.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return h&&(L.ab_tag=h),b&&(L.ab_group=b),L.campaign=f||"none",{...B,params:L}});if(i)return;M.forEach(async B=>{let L=await K({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&WD(p,R),n.config.enablePerformanceReport&&KD(n,R)}catch(r){k.debug("report error",r)}}function WD(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};p9(r);let a=Date.now()+(Math.random()*100).toFixed(0);K({url:Ns,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var GD=Date.now(),VD=["translate_page","translate_video_subtitle"];function KD(e,t){try{t.forEach(async n=>{if(!VD.includes(n.name)||e.config.performanceBlockUrls?.some(l=>We(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};p9(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-GD},s=await m9(JSON.stringify(o),S1,C1);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);K({url:Ns,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function p9(e){return e?.install_day&&(e.install_day=Cc(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function Za(e){return e!=null}function h9(e,t,n){return`${e.type}#${t}#${n}`}function b9(e,t,n,r,a){return{body:a,id:r,type:h9(e,t,n)}}function $D(e,t,n,r){return{id:n,response:r,type:h9(e,"ask",t)}}function y9(e,t,n,r){if(Za(r)){let a=r.type;if(Za(a)&&Za(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function YD(e,t,n){if(Za(n)){let r=n.type;if(Za(r)&&Za(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function ZD(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function JD(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;YD(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function XD(e,t,n,r){let a=i=>{let o=i.data;y9(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function g9(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(y9(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage($D(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function QD(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(b9(t,"tell",n,i,r),a)}async function f9(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let d=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),m=await JD(e,n,r,s);clearTimeout(d),l(m)});return t.postMessage(b9(n,"ask",r,s,a),i),u}var Ja=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;g9(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Za(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await f9(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(XD(this.thisWindow,this.protocol,t,n))}tell(t,n){QD(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(g9(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return f9(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){ZD(this.listeners)}};var x9;async function v9(){if(Ke()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Ja.iframe(Hl,"*",{targetWindow:t});x9=n,await Ja.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function T9(){return x9}function S9(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}var ke=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let b of a)b.from&&b.from!=="auto"&&l.add(b.from),b.refresh&&(i=!0),b.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let d=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(d=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(d=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=X1(a,c,d)}catch(b){if(r)for(let f=0;fb));let m=[],p=[],g=(b,f,y)=>{let x="";if(f.translatedTexts&&f.translatedTexts[0]&&(x=f.translatedTexts[0]),p[b]||(p[b]=f,p[b].translatedTexts=Array(f.sentenceTotalParts).fill(null)),p[b].hasError)return;if(y){let w=y instanceof j?new j(y.name,y.message).initNetWork(y.status).initData(y.data):y;p[b].hasError=!0,f.callback&&f.callback(w,null,f.sentence);return}p[b].translatedTexts[f.partIndex]=x;let T=p[b],S=0;for(let w=0;w{let S=f.from;if(f.fromByClient&&f.fromByClient!=="auto"&&(S=f.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:f.tempSentences.map(E=>E.text),forces:f.tempSentences.map(E=>E.force),xpaths:f.tempSentences.map(E=>E.xpath||""),from:S,to:f.to,url:y,options:n,refresh:i,debug:o}),sourceTempSentences:f.tempSentences};{let w=t1;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(w=this.serviceConfig.translationTextSeparator);let E=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(E=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Wr(this.serviceConfig);if(f.tempSentences.forEach((F,U)=>{let V=Pp({text:F.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:f.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);F.force!==!0&&(V&&V.text&&V.text.trim().lengthU.text);return Promise.resolve({sourceTempSentences:f.tempSentences,text:F,from:S,to:f.to})}let M="";E&&E.length>=2?M=A.map((F,U)=>{let{item:V}=F;return U===A.length-1?V.text:V.text+E[0]+(U+1)+E[1]}).join(""):M=A.map(({item:F})=>F.text).join(w);let I=await this.translate({text:M,from:S,to:f.to,url:y,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:R}=I,B=[];if(E&&E.length>=2){let F=`${E[0]}\\d+${E[1]}`;E&&E.length>=3&&(F=E[2]);let U=new RegExp(F,"g");B=R.split(U)}else B=R.split(w);let L=[];if(B.length>A.length){for(let F=0;FF.text);return D=Wr(this.serviceConfig,!0),L.forEach((F,U)=>{let V=A[U],ie=V.index,Ae=V.variables||{};Object.keys(Ae).length>0&&(F=_p({text:F,delimiters:D,variables:Ae},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),N[ie]=F}),{sourceTempSentences:f.tempSentences,text:N,from:I.from,to:I.to}}};m.push(T().then(S=>{let{text:w,sourceTempSentences:E}=S;for(let A=0;A{if(S instanceof j&&S.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let w=0;w{let f=b.sentence.text;return b.translatedTexts&&b.translatedTexts.length>0&&(f=b.translatedTexts.join("")),{...b.sentence,text:f}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Wr(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((d,m)=>{let p=Pp({text:d,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[m]!==!0&&(p&&p.text&&p.text.trim().lengthd.text),n.xpaths=a.map(d=>d.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Wr(this.serviceConfig,!0),s.forEach((l,c)=>{let d=a[c];if(d){let m=d.index,p=d.variables,g=Object.keys(p);u[m]=l,g.length>0&&(u[m]=_p({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return Ie({text:t,minLength:18,pageLangs:[mt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var C9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],mu=class e extends ke{static langMap=new Map(C9);maxTextGroupLength=50;static langMapReverse=new Map(C9.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new j("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await Un(a)].join(` +`),d=e.getUTCDate(u),m=["TC3-HMAC-SHA256",l,`${d}/${i}/tc3_request`,await Un(c)].join(` +`),p=await r9(d,`TC3${n}`),g=await r0(i,p),h=await r0("tc3_request",g),b=await r0(m,h),f=await K({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${d}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${b}`},body:a,timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Response&&f.Response.Error&&f.Response.Error.Message)throw new j(f.Response.Error.Message);return f}};var w9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],eL={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},pu=class e extends ke{static langMap=new Map(w9);static langMapReverse=new Map(w9.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await K({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:eL,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var E9=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],gu=class e extends ke{static langMap=new Map(E9);static langMapReverse=new Map(E9.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new j("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new j("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await K({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function tL(e,t){return t?e+(t-e%t):e}function nL(e,t){return e.split(t).length-1}function $p(e){let t=Date.now(),n=1;for(let r of e)n+=nL(r,"i");return tL(t,n)}function rL(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Yp(){return rL(1e6,1e8)}var Zp="https://www2.deepl.com/jsonrpc",Jp="auto",A9=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function aL(e=A9){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Xp(e){return aL()[e.toLowerCase()]}var iL={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function oL(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function sL(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function uL(e,t,n,r,a,i,o){let s=Yp(),u=sL(r,n),l=[];t.forEach(m=>{l.push({text:m,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=$p(t);let c=await K({retry:2,method:"POST",url:e,body:oL(u),headers:iL}),d={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(m=>{d.text.push(m.text)}),d}async function k9(e,t,n,r=Jp,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:uL(e,t,Xp(n),Xp(r)??"auto",a,i,o):{text:[],from:r,to:n}}var D9=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ho=class e extends ke{static langMap=new Map(D9);static langMapReverse=new Map(D9.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Zp;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=yt(Zp,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await k9(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var fu=class e extends ke{static langMap=new Map(tp);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ga.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=be(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=L9());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),d=await K({url:uc,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(d.header.ret_code!=="succ")throw new j(d.message||d.header.ret_code);return{text:d.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=be(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=L9()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,d=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),m=await K({url:uc,body:d,method:"POST"});if(m.header.ret_code!=="succ")throw new j(m.message||m.header.ret_code);return{text:m.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ga.detectLanguageRemotelyByTransmart(t)}};function L9(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function Qp(){return Math.random()>=.001}var qo=class extends ke{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!Qp())throw new j("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await T2(),!Qp())throw new j("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var P9=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],eg=new Map(P9),M9=new Map(P9.map(([e,t])=>[t,e])),tg=class e extends ke{static langMap=eg;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new j("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await K({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:eg.get(r)||"auto",target_lang:eg.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:M9.get(o.source_lang),to:M9.get(o.target_lang)}}else throw new j(i.msg)}},u0=tg;var ng="https://{s}bing.com",B9=ng+"/translator",lL=ng+"/ttranslatev3",cL=ng+"/tspellcheckv3",l0="bingGlobalConfig",O9=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],_9=new Map(O9),R9=new Map(O9.map(([e,t])=>[t,e])),F9=1e3,Pr,zo;function rg(e,t){return e.replace("{s}",t?t+".":"")}async function dL(){if(!Pr){let n=await ne.storage.local.get(l0);return n&&(Pr=n[l0]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Pr;return Date.now()-e>t}async function I9(){let e,t,n,r,a,i,o,s,u,l;try{let c=rg(B9,e),d=await K({retry:2,url:c,responseType:"raw"}),{body:m,headers:p,url:g}=d;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=m.match(/IG:"([^"]+)"/)[1],n=m.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(m.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return Pr={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await ne.storage.local.set({[l0]:Pr}),Pr}function mL(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=Pr;return rg(e?cL:lL,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Pr.count++:"")}function pL(e,t,n,r){let{token:a,key:i}=Pr,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function N9(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>F9)throw new Error(`The supported maximum length of text is ${F9}. Please shorten the text.`);zo||(zo=I9()),await zo,await dL()&&(zo=I9(),await zo),t=t||"auto",n=n||"zh-CN",t=_9.get(t)||t,n=_9.get(n)||n;let a=mL(!1),i=pL(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:rg(B9,Pr.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await K({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(Pr=null,zo=null,await ne.storage.local.remove(l0),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:I9.get(m.language),to:I9.get(d.to)}}var c0=new Map;async function ig(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Xn(e.body)),c0.has(t))return c0.get(t);let n=K(e);c0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{c0.delete(t)},3e3)}}async function U9(e){return ig(e)}async function Kr(e){if(Ke()){let n=T9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return ig(e)}else return ig(e)}function H9(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function m0(e){await Ym(e)}async function Yr(e,t){let n=await Vm(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return d0(e,t)}return d0(e,t)}async function d0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Km(e,n,i-1e3),n}var fL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],og=new Map(fL),Rr=class extends ke{static langMap=og;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await m0(Tm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await j9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Yr(Tm,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return H9(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=og.get(n)||"auto",o=og.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var hL=["chinese","english","japanese","korean","french","spanish","deutsch"],Qr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},p0=e=>Qr.chinese.test(e),bL=e=>Qr.english.test(e),yL=e=>Qr.japanese.test(e),vL=e=>Qr.korean.test(e),xL=e=>Qr.french.test(e),SL=e=>Qr.deutsch.test(e),TL=e=>Qr.spanish.test(e),lZ={chinese:hr(p0),english:hr(bL),japanese:hr(yL),korean:hr(vL),french:hr(xL),spanish:hr(TL),deutsch:hr(SL)},q9=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,cZ=new RegExp(`^(\\d|\\s|${q9.source})+$`),CL=new RegExp(`${Qr.chinese.source}|${Qr.japanese.source}|${Qr.korean.source}`),dZ=hr(e=>(e.replace(new RegExp(q9,"g")," ").replace(new RegExp(CL,"g")," x ").match(/\S+/g)||"").length),mZ=[...hL,"others","matchAll"];var W9=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],hu=new Map(W9),wL=new Map(W9.map(([e,t])=>[t,e])),sg=class extends ke{static langMap=hu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${rn}/v2/translate`;immersiveTranslateDeeplTokenUrl=ut;immersiveTranslateDeeplProApiUrl=ut+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:hu.get(n)||"",target_lang:hu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:hu.get(n)||"auto",target_lang:hu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>ug(c.text,r));if(s){let c=this.serviceConfig||{},m=await new Rr({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&wL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ma()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Wo=sg;function ug(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&p0(e[0])&&z9(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&p0(e[e.length-1])&&z9(e,"\u300A")==1?e+"\u300B":e}function z9(e,t){return e.split(t).length-1}var EL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],lg=new Map(EL),cg=class extends ke{static langMap=lg;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:lg.get(r)||r,to:lg.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},G9=cg;var AL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],dg=new Map(AL),mg=class extends ke{static langMap=dg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:dg.get(a)||a};r!=="auto"&&(i.from=dg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},V9=mg;var kL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Go=new Map(kL),pg=class extends ke{static langMap=Go;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let d=c[0].translations[0],m=c[0].detectedLanguage;return{text:d.text,from:R9.get(m.language),to:R9.get(d.to)}}var c0=new Map;async function ag(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Qn(e.body)),c0.has(t))return c0.get(t);let n=K(e);c0.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{c0.delete(t)},3e3)}}async function j9(e){return ag(e)}async function Kr(e){if(Ke()){let n=T9();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return ag(e)}else return ag(e)}function U9(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function m0(e){await Km(e)}async function $r(e,t){let n=await Gm(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return d0(e,t)}return d0(e,t)}async function d0(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Vm(e,n,i-1e3),n}var gL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],ig=new Map(gL),_r=class extends ke{static langMap=ig;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await m0(Tm)}async translate(t){let{text:n,from:r,to:a}=t;return n?await N9(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await $r(Tm,async()=>{let t=await Kr({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return U9(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=ig.get(n)||"auto",o=ig.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let m of a)u.push({Text:m});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,d=await K({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(d&&d.length>0&&d[0].translations&&d[0].translations.length>0)return{text:d.map(m=>m.translations[0]?.text||""),from:n,to:r};throw new j("Microsoft translate error "+JSON.stringify(d))}};var fL=["chinese","english","japanese","korean","french","spanish","deutsch"],Yr={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},p0=e=>Yr.chinese.test(e),hL=e=>Yr.english.test(e),bL=e=>Yr.japanese.test(e),yL=e=>Yr.korean.test(e),xL=e=>Yr.french.test(e),vL=e=>Yr.deutsch.test(e),TL=e=>Yr.spanish.test(e),sJ={chinese:hr(p0),english:hr(hL),japanese:hr(bL),korean:hr(yL),french:hr(xL),spanish:hr(TL),deutsch:hr(vL)},H9=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,uJ=new RegExp(`^(\\d|\\s|${H9.source})+$`),SL=new RegExp(`${Yr.chinese.source}|${Yr.japanese.source}|${Yr.korean.source}`),lJ=hr(e=>(e.replace(new RegExp(H9,"g")," ").replace(new RegExp(SL,"g")," x ").match(/\S+/g)||"").length),cJ=[...fL,"others","matchAll"];var z9=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],hu=new Map(z9),CL=new Map(z9.map(([e,t])=>[t,e])),og=class extends ke{static langMap=hu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${rn}/v2/translate`;immersiveTranslateDeeplTokenUrl=ut;immersiveTranslateDeeplProApiUrl=ut+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new j("authKey are required");if(!this.authKey)throw new j("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=yt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=yt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=yt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=yt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=yt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:hu.get(n)||"",target_lang:hu.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let d=new URLSearchParams(c);i.forEach(y=>{d.append("text",y)});let m=d.toString(),p={text:i,source_lang:hu.get(n)||"auto",target_lang:hu.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let g=this.freeApiUrl;a.endsWith(":im")?g=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(g=this.proApiUrl);let h,b={};t.refresh&&(b={"X-Refresh":"True"}),t.debug&&(b={...b,"X-Debug":"True"}),this.provider==="pro"?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?h=await K({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...b,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):h=await K({retry:2,url:g,method:"POST",body:m,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(h,o,!!t.debug).translations}let l=u.map(c=>sg(c.text,r));if(s){let c=this.serviceConfig||{},m=await new _r({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});m&&m.text&&(l=m.text)}return{text:l,from:u[0]&&CL.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ma()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},Wo=og;function sg(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&p0(e[0])&&q9(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&p0(e[e.length-1])&&q9(e,"\u300A")==1?e+"\u300B":e}function q9(e,t){return e.split(t).length-1}var wL=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],ug=new Map(wL),lg=class extends ke{static langMap=ug;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:ug.get(r)||r,to:ug.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await K(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new j(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},W9=lg;var EL=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],cg=new Map(EL),dg=class extends ke{static langMap=cg;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new j("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:cg.get(a)||a};r!=="auto"&&(i.from=cg.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(m=>({text:m}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((m,p)=>{o.append(p,m)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},d=await K(c);if(d.length===0)throw new j("server response invalid");return{from:r,to:a,text:d.map(m=>m.translations.map(g=>g.text).join(" "))}}},G9=dg;var AL=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Go=new Map(AL),mg=class extends ke{static langMap=Go;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Go.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Go.get(r)||r,target:Go.get(a)||a})):u.body=JSON.stringify({text:s,source:Go.get(r),target:Go.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},K9=pg;function Y9(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!Go.get(r)?(i=(await K({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||Go.get(r)||r,target:Go.get(a)||a})):u.body=JSON.stringify({text:s,source:Go.get(r),target:Go.get(a)||a});let l=await K(u);if(l.translatedText==="")throw new j("server response invalid");let c=l.translatedText.split("
").map(d=>d.trim());return{from:r,to:a,text:c}}},V9=mg;function K9(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var gg=class extends ke{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var pg=class extends ke{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let d=i?.sourceProgram,m=["subtitle","videoSubtitle"].includes(d),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),m&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let g="",h="",b=s.includes("{{json}}"),f=s.includes("{{yaml}}");if(Nc(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",b){let A=[],D=c.imt_json_item||"";m&&(D=c.imt_subtitle_json_item||D);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?g:M=="yaml"?h:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let d=i?.sourceProgram,m=["subtitle","videoSubtitle"].includes(d),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),m&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let g="",h="",b=s.includes("{{json}}"),f=s.includes("{{yaml}}");if(Nc(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",b){let A=[],D=c.imt_json_item||"";m&&(D=c.imt_subtitle_json_item||D);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?g:M=="yaml"?h:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await K(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Xn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Xa=gg;function DL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var LL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Q9=new Map(LL),fg=class extends Xa{static langMap=Q9;provider="custom";immersiveApiUrl=`https://openai-api.${rn}/v1/chat/completions`;immersiveProApiUrl=ut+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return Q9}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Xn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Wo.langMap.has(n.to)||!Wo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Wo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},J9=fg;function cn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function ML(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function $a(e,t){return e<>>32-t}function Jr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Vo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function Z9(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Ko(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Zr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var X9={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?cn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Jr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Zr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Jr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Zr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?cn(m):m,Z9(o(Ko(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?cn(m):m,p=r?cn(p):p,g=Ko(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Ko(p)),512+p.length*8),Z9(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,v=1732584193,S=-271733879,T=-1732584194,w=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(ya(c)),512+c.length*8),Vo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,v=Array(80),S=1732584193,T=-271733879,w=-1732584194,E=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=v(A,S.length*8));E<16;E+=1)D[E]=A[E]^909522486,M[E]=A[E]^1549556828;return w=v(D.concat(ya(T)),512+T.length*8),Vo(v(M.concat(w),512+256))}function s(S,T){return S>>>T|S<<32-T}function u(S,T){return S>>>T}function l(S,T,w){return S&T^~S&w}function c(S,T,w){return S&T^S&w^T&w}function d(S){return s(S,2)^s(S,13)^s(S,22)}function m(S){return s(S,6)^s(S,11)^s(S,25)}function p(S){return s(S,7)^s(S,18)^u(S,3)}function g(S){return s(S,17)^s(S,19)^u(S,10)}function h(S){return s(S,28)^s(S,34)^s(S,39)}function b(S){return s(S,14)^s(S,18)^s(S,41)}function f(S){return s(S,1)^s(S,8)^u(S,7)}function y(S){return s(S,19)^s(S,61)^u(S,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function v(S,T){var w=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],E=new Array(64),A,D,M,B,F,_,L,N,I,U,V,ie;for(S[T>>5]|=128<<24-T%32,S[(T+64>>9<<4)+15]=T,I=0;I32&&(S=s(S,b.length*8));v<32;v+=1)T[v]=S[v]^909522486,w[v]=S[v]^1549556828;return y=s(T.concat(ya(f)),1024+f.length*8),Vo(s(w.concat(y),1024+512))}function s(b,f){var y,v,S,T=new Array(80),w=new Array(16),E=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),B=new u(0,0),F=new u(0,0),_=new u(0,0),L=new u(0,0),N=new u(0,0),I=new u(0,0),U=new u(0,0),V=new u(0,0),ie=new u(0,0),Ae=new u(0,0),xe=new u(0,0),O=new u(0,0),z=new u(0,0),Y=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),v=0;v<80;v+=1)T[v]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,S=b.length,v=0;v>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var v=(f.l&65535)+(y.l&65535),S=(f.l>>>16)+(y.l>>>16)+(v>>>16),T=(f.h&65535)+(y.h&65535)+(S>>>16),w=(f.h>>>16)+(y.h>>>16)+(T>>>16);b.l=v&65535|S<<16,b.h=T&65535|w<<16}function g(b,f,y,v,S){var T=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535),w=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(T>>>16),E=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(w>>>16),A=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(E>>>16);b.l=T&65535|w<<16,b.h=E&65535|A<<16}function h(b,f,y,v,S,T){var w=(f.l&65535)+(y.l&65535)+(v.l&65535)+(S.l&65535)+(T.l&65535),E=(f.l>>>16)+(y.l>>>16)+(v.l>>>16)+(S.l>>>16)+(T.l>>>16)+(w>>>16),A=(f.h&65535)+(y.h&65535)+(v.h&65535)+(S.h&65535)+(T.h&65535)+(E>>>16),D=(f.h>>>16)+(y.h>>>16)+(v.h>>>16)+(S.h>>>16)+(T.h>>>16)+(A>>>16);b.l=w&65535|E<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Jr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Zr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Jr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Zr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?cn(h):h,c(d(Ko(h),h.length*8))}function l(h,b){h=r?cn(h):h,b=r?cn(b):b;var f,y,v=Ko(h),S=Array(16),T=Array(16);for(v.length>16&&(v=d(v,h.length*8)),f=0;f<16;f+=1)S[f]=v[f]^909522486,T[f]=v[f]^1549556828;return y=d(S.concat(Ko(b)),512+b.length*8),c(d(T.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,v,S,T=1732584193,w=4023233417,E=2562383102,A=271733878,D=3285377520,M,B,F,_,L,N,I,U,V,ie;for(h[b>>5]|=128<>>9<<4)+14]=b,S=h.length,v=0;v[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new X9.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var PL=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},hg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},bg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=hg(t);if(r)return Array.isArray(n)?`${r}=${n.map(hg).sort().join(`&${r}=`)}`:`${r}=${hg(n)}`}).filter(t=>t).join("&"),Yo=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,bg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await jn(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return _o(await rr(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` -`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=bg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Qn(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Xa=pg;function kL(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var DL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],$9=new Map(DL),gg=class extends Xa{static langMap=$9;provider="custom";immersiveApiUrl=`https://openai-api.${rn}/v1/chat/completions`;immersiveProApiUrl=ut+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=yt(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return $9}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Qn(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!Wo.langMap.has(n.to)||!Wo.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Wo(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},Y9=gg;function cn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function LL(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Ce(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Qa(e,t){return e<>>32-t}function Zr(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function Vo(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function Z9(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function Ko(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Jr(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,d;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(d=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var J9={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?cn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,d,m,p,g,h="",b=[];if(!a)return a;i=g=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),d=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|d<<6|m,o=p>>16&255,s=p>>8&255,u=p&255,g+=1,d===64?b[g]=String.fromCharCode(o):m===64?b[g]=String.fromCharCode(o,s):b[g]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(m){return Zr(a(m,r),t)},this.b64=function(m){return Xr(a(m),n)},this.any=function(m,p){return Jr(a(m,r),p)},this.raw=function(m){return a(m,r)},this.hex_hmac=function(m,p){return Zr(i(m,p),t)},this.b64_hmac=function(m,p){return Xr(i(m,p),n)},this.any_hmac=function(m,p,g){return Jr(i(m,p),g)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(m){return typeof m=="boolean"&&(t=m),this},this.setPad=function(m){return n=m||n,this},this.setUTF8=function(m){return typeof m=="boolean"&&(r=m),this};function a(m){return m=r?cn(m):m,Z9(o(Ko(m),m.length*8))}function i(m,p){var g,h,b,f,y;for(m=r?cn(m):m,p=r?cn(p):p,g=Ko(m),g.length>16&&(g=o(g,m.length*8)),h=Array(16),b=Array(16),y=0;y<16;y+=1)h[y]=g[y]^909522486,b[y]=g[y]^1549556828;return f=o(h.concat(Ko(p)),512+p.length*8),Z9(o(b.concat(f),512+128))}function o(m,p){var g,h,b,f,y,x=1732584193,T=-271733879,S=-1732584194,w=271733878;for(m[p>>5]|=128<>>9<<4)+14]=p,g=0;g16&&(d=o(d,l.length*8)),m=Array(16),p=Array(16),g=0;g<16;g+=1)m[g]=d[g]^909522486,p[g]=d[g]^1549556828;return h=o(m.concat(ya(c)),512+c.length*8),Vo(o(p.concat(h),512+160))}function o(l,c){var d,m,p,g,h,b,f,y,x=Array(80),T=1732584193,S=-271733879,w=-1732584194,E=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,d=0;d16&&(A=x(A,T.length*8));E<16;E+=1)D[E]=A[E]^909522486,M[E]=A[E]^1549556828;return w=x(D.concat(ya(S)),512+S.length*8),Vo(x(M.concat(w),512+256))}function s(T,S){return T>>>S|T<<32-S}function u(T,S){return T>>>S}function l(T,S,w){return T&S^~T&w}function c(T,S,w){return T&S^T&w^S&w}function d(T){return s(T,2)^s(T,13)^s(T,22)}function m(T){return s(T,6)^s(T,11)^s(T,25)}function p(T){return s(T,7)^s(T,18)^u(T,3)}function g(T){return s(T,17)^s(T,19)^u(T,10)}function h(T){return s(T,28)^s(T,34)^s(T,39)}function b(T){return s(T,14)^s(T,18)^s(T,41)}function f(T){return s(T,1)^s(T,8)^u(T,7)}function y(T){return s(T,19)^s(T,61)^u(T,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function x(T,S){var w=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],E=new Array(64),A,D,M,I,R,B,L,N,F,U,V,ie;for(T[S>>5]|=128<<24-S%32,T[(S+64>>9<<4)+15]=S,F=0;F32&&(T=s(T,b.length*8));x<32;x+=1)S[x]=T[x]^909522486,w[x]=T[x]^1549556828;return y=s(S.concat(ya(f)),1024+f.length*8),Vo(s(w.concat(y),1024+512))}function s(b,f){var y,x,T,S=new Array(80),w=new Array(16),E=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),I=new u(0,0),R=new u(0,0),B=new u(0,0),L=new u(0,0),N=new u(0,0),F=new u(0,0),U=new u(0,0),V=new u(0,0),ie=new u(0,0),Ae=new u(0,0),ve=new u(0,0),O=new u(0,0),z=new u(0,0),$=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),x=0;x<80;x+=1)S[x]=new u(0,0);for(b[f>>5]|=128<<24-(f&31),b[(f+128>>10<<5)+31]=f,T=b.length,x=0;x>>y|f.h<<32-y,b.h=f.h>>>y|f.l<<32-y}function d(b,f,y){b.l=f.h>>>y|f.l<<32-y,b.h=f.l>>>y|f.h<<32-y}function m(b,f,y){b.l=f.l>>>y|f.h<<32-y,b.h=f.h>>>y}function p(b,f,y){var x=(f.l&65535)+(y.l&65535),T=(f.l>>>16)+(y.l>>>16)+(x>>>16),S=(f.h&65535)+(y.h&65535)+(T>>>16),w=(f.h>>>16)+(y.h>>>16)+(S>>>16);b.l=x&65535|T<<16,b.h=S&65535|w<<16}function g(b,f,y,x,T){var S=(f.l&65535)+(y.l&65535)+(x.l&65535)+(T.l&65535),w=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(T.l>>>16)+(S>>>16),E=(f.h&65535)+(y.h&65535)+(x.h&65535)+(T.h&65535)+(w>>>16),A=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(T.h>>>16)+(E>>>16);b.l=S&65535|w<<16,b.h=E&65535|A<<16}function h(b,f,y,x,T,S){var w=(f.l&65535)+(y.l&65535)+(x.l&65535)+(T.l&65535)+(S.l&65535),E=(f.l>>>16)+(y.l>>>16)+(x.l>>>16)+(T.l>>>16)+(S.l>>>16)+(w>>>16),A=(f.h&65535)+(y.h&65535)+(x.h&65535)+(T.h&65535)+(S.h&65535)+(E>>>16),D=(f.h>>>16)+(y.h>>>16)+(x.h>>>16)+(T.h>>>16)+(S.h>>>16)+(A>>>16);b.l=w&65535|E<<16,b.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(h){return Zr(u(h,r))},this.b64=function(h){return Xr(u(h,r),n)},this.any=function(h,b){return Jr(u(h,r),b)},this.raw=function(h){return u(h,r)},this.hex_hmac=function(h,b){return Zr(l(h,b))},this.b64_hmac=function(h,b){return Xr(l(h,b),n)},this.any_hmac=function(h,b,f){return Jr(l(h,b),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(h){return typeof h=="boolean"&&(t=h),this},this.setPad=function(h){return typeof h<"u"&&(n=h),this},this.setUTF8=function(h){return typeof h=="boolean"&&(r=h),this};function u(h){return h=r?cn(h):h,c(d(Ko(h),h.length*8))}function l(h,b){h=r?cn(h):h,b=r?cn(b):b;var f,y,x=Ko(h),T=Array(16),S=Array(16);for(x.length>16&&(x=d(x,h.length*8)),f=0;f<16;f+=1)T[f]=x[f]^909522486,S[f]=x[f]^1549556828;return y=d(T.concat(Ko(b)),512+b.length*8),c(d(S.concat(y),512+160))}function c(h){var b,f="",y=h.length*32;for(b=0;b>5]>>>b%32&255);return f}function d(h,b){var f,y,x,T,S=1732584193,w=4023233417,E=2562383102,A=271733878,D=3285377520,M,I,R,B,L,N,F,U,V,ie;for(h[b>>5]|=128<>>9<<4)+14]=b,T=h.length,x=0;x[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new j("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new J9.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,d)=>(l[d]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},d=(h=>{let f=Object.keys(h).sort().map(y=>`${this.encode(y)}=${this.encode(h[y])}`).join("&");return`POST&%2F&${this.encode(f)}`})(Object.assign({},l,a)),m=this.SHA1.b64_hmac(`${n}&`,d),p=new URLSearchParams(Object.assign({},l,{Signature:m})).toString(),g=await K({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(g instanceof Error)throw g;if(g.Code!=="200")throw new j(g.Message);return g}};var ML=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],jt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},fg=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},hg=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=fg(t);if(r)return Array.isArray(n)?`${r}=${n.map(fg).sort().join(`&${r}=`)}`:`${r}=${fg(n)}`}).filter(t=>t).join("&"),$o=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${jt.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[jt.tokenHeader]=t.sessionToken),a[jt.dateHeader]=r,a[jt.notSignBody]="",a[jt.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[jt.algorithmKey]=jt.algorithm,a[jt.signHeadersKey]="",a[jt.signQueriesKey]=void 0,a[jt.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[jt.signQueriesKey]=Object.keys(a).sort().join(";"),a[jt.signatureKey]=s,hg(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[jt.dateHeader]=n,t.sessionToken&&(this.request.headers[jt.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[jt.contentSha256Header]=await Un(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Bo(await ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(jt.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=hg(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new j(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await jn(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(bg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return PL.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await rr(n,`${jt.kDatePrefix}${t.secretKey}`),o=await rr(r,i),s=await rr(a,o);return rr(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var e6=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],yg=new Map(e6),RL=new Map(e6.map(([e,t])=>[t,e])),vg=class extends ke{static langMap=yg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new Yo(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=yg.get(r),o={TargetLanguage:yg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new Yo(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=RL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},t6=vg;var n6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],xg=new Map(n6),FL=new Map(n6.map(([e,t])=>[t,e])),yu=class extends ke{static langMap=xg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=xg.get(r)||"detect",o=xg.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=FL.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var IL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Sg=new Map(IL),vu=class extends ke{static langMap=Sg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:Sg.get(r)||r,target_lang:Sg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:ug(u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var r6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Tg=new Map(r6),BL=new Map(r6.map(([e,t])=>[t,e])),Cg=class extends ke{static langMap=Tg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Xn(a+o+n+i);this.domain&&(l=Xn(a+o+n+this.domain+i));let c=new URLSearchParams({from:Tg.get(s)||"auto",to:Tg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:BL.get(g)||g,to:u,text:h.join(` -`)}}},a6=Cg;var Oi=class extends ke{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await tu(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await tu(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?_L(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ga.detectLanguageRemotelyByTransmart(t)}};function _L(e){let t=Math.floor(Math.random()*e.length);return e[t]}var i6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],wg=class extends Oi{static langMap=new Map(i6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:i6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},o6=wg;var OL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],g0=new Map(OL),Eg=class extends ke{static langMap=g0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!g0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${g0.get(r)||"auto"}2${g0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},s6=Eg;var u6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Ag=new Map(u6),NL=new Map(u6.map(([e,t])=>[t,e]));function jL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var kg=class extends ke{static langMap=Ag;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=UL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+jL(n)+i+o+this.appSecret,u=await jn(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Ag.get(r)||"auto",to:Ag.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` -`),from:NL.get(g),to:a}}};function UL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Lg=class extends ke{static langMap=Dg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:Dg.get(r)||"auto",to:Dg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},d6=Lg;var xu=class extends Oi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Mg=class extends Xa{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},f0=Mg;var m6=P+"-gemini-fake-user-key",HL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],p6=new Map(HL),Pg=class extends f0{static langMap=p6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ut+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return p6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ci(m6,""),this.fakeId||(this.fakeId=qL(10),await wi(m6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function qL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Fg.get(r)+"-"}${Fg.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var GL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],b6=new Map(GL),Tu=class extends Xa{static langMap=b6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Yr(wm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return b6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(d0(wm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var VL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],y6=new Map(VL),Un=class extends Xa{static langMap=y6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return y6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var h0=class extends Un{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await rr(t,"TC3"+this.secret_key),a=await rr(this.service,r),i=await rr("tc3_request",a),o=await rr(n,i);return _o(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await jn(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await Un(t)}async hexEncodedBodyHash(){return this.request.headers[jt.contentSha256Header]?this.request.headers[jt.contentSha256Header]:this.request.body?await this.hexEncodedHash(hg(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return ML.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await ar(n,`${jt.kDatePrefix}${t.secretKey}`),o=await ar(r,i),s=await ar(a,o);return ar(jt.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,jt.v4Identifier].join("/")}};var Q9=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],bg=new Map(Q9),PL=new Map(Q9.map(([e,t])=>[t,e])),yg=class extends ke{static langMap=bg;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new j("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new $o(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await K({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new j(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new j(s.Code,s.Message)}else throw new j("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=bg.get(r),o={TargetLanguage:bg.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new $o(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await K({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let d=c.TranslationList.map(p=>p.Translation),m=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(m=PL.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:d,from:m,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let d=c.ResponseMetadata.Error;throw new j(d.Code,d.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let d=c.ResponseMetaData.Error;throw new j(d.Code,d.Message)}else throw new j("response: "+JSON.stringify(c))}},e6=yg;var t6=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],xg=new Map(t6),_L=new Map(t6.map(([e,t])=>[t,e])),yu=class extends ke{static langMap=xg;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=xg.get(r)||"detect",o=xg.get(a)||a,u=await K({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=_L.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new j(l.status_code.toString(),l.status_message)}}};var RL=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],vg=new Map(RL),xu=class extends ke{static langMap=vg;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new j("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:vg.get(r)||r,target_lang:vg.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await K({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:sg(u.data,a),from:r,to:a};throw new j(u.message||u.message||"API Error")}};var n6=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],Tg=new Map(n6),FL=new Map(n6.map(([e,t])=>[t,e])),Sg=class extends ke{static langMap=Tg;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new j("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Qn(a+o+n+i);this.domain&&(l=Qn(a+o+n+this.domain+i));let c=new URLSearchParams({from:Tg.get(s)||"auto",to:Tg.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let d=new URL(r);d.search=c.toString();let m=await K({url:d.toString(),retry:this.retry,timeout:this.requestTimeout});if(m.error_code)throw new j("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:g}=m,h=p.map(({dst:f})=>f);return{from:FL.get(g)||g,to:u,text:h.join(` +`)}}},r6=Sg;var Oi=class extends ke{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await tu(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new j("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new j(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await tu(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(d,m)=>{let[p,g]=m.split(":"),h=o[p];return g==="random"?IL(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ga.detectLanguageRemotelyByTransmart(t)}};function IL(e){let t=Math.floor(Math.random()*e.length);return e[t]}var a6=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],Cg=class extends Oi{static langMap=new Map(a6);constructor(t,n,r,a){if(!t?.token)throw new j("token are required");super({...t,isSupportList:!0,langs:a6,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},i6=Cg;var BL=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],g0=new Map(BL),wg=class extends ke{static langMap=g0;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!g0.get(a))throw new j(`Unsupported language: ${a}`);if(r==="auto")throw new j("Unsupported language: auto");let o=n;return{text:(await K({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${g0.get(r)||"auto"}2${g0.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},o6=wg;var s6=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],Eg=new Map(s6),OL=new Map(s6.map(([e,t])=>[t,e]));function NL(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var Ag=class extends ke{static langMap=Eg;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new j("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=jL(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+NL(n)+i+o+this.appSecret,u=await Un(s),l={q:n,appKey:this.appId,salt:i.toString(),from:Eg.get(r)||"auto",to:Eg.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),m=await K({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!m.translation)throw new j(JSON.stringify(m));let p=m.l,[g,h]=p.split("2");return{text:m.translation.join(` +`),from:OL.get(g),to:a}}};function jL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var Dg=class extends ke{static langMap=kg;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:kg.get(r)||"auto",to:kg.get(a)||a},o=new URLSearchParams(i),s=await K({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new j("Youdao translation failed: "+JSON.stringify(s))}},c6=Dg;var vu=class extends Oi{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||io,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Lg=class extends Xa{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new j("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new j("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=yt(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},f0=Lg;var d6=P+"-gemini-fake-user-key",UL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],m6=new Map(UL),Mg=class extends f0{static langMap=m6;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ut+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return m6}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await Ci(d6,""),this.fakeId||(this.fakeId=HL(10),await wi(d6,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new j("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function HL(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Kr({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":_g.get(r)+"-"}${_g.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await K({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var WL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],h6=new Map(WL),Su=class extends Xa{static langMap=h6;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await $r(Cm+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Kr({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return h6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(d0(Cm+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new j("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new j(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var GL=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],b6=new Map(GL),Hn=class extends Xa{static langMap=b6;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=yt(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return b6}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var h0=class extends Hn{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new j(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await ar(t,"TC3"+this.secret_key),a=await ar(this.service,r),i=await ar("tc3_request",a),o=await ar(n,i);return Bo(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await Un(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await jn(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await Un(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -6033,8 +6033,8 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var b0=class extends Un{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Dr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(_3,async()=>{let t=await Kr({responseType:"json",url:`${ut}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Ig=["glm-4-flash"],y0=class extends Un{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Ig.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Ig.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Dr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Yr(O3,async()=>{let t=await Kr({responseType:"json",url:`${ut}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!Rr.langMap.has(n.to)||!Rr.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new Rr(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Ig.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var v0={mock:qo,mock2:qo,custom:xu,google:gu,transmart:fu,deepl:Wo,volc:t6,volcAlpha:yu,bing:Rr,tencent:mu,tenAlpha:pu,baidu:a6,caiyun:o6,cai:s6,openl:u0,youdao:l6,you:d6,d:Ho,dpro:Ho,deeplx:vu,niu:G9,azure:V9,openai:J9,gemini:g6,claude:h6,papago:K9,aliyun:bu,yandex:Su,qianfan:Tu,"custom-ai":Un,deepseek:Un,"aliyun-bailian":Un,doubao:Un,hunyuan:h0,siliconcloud:b0,lingyiwanwu:Un,zhipu:y0};globalThis.TranslationServicesClass=v0;var ei={};Object.keys(Tr).forEach(e=>{ei[e]={...Tr[e],class:v0[e]}});function x0(e,t){let n=Zn;if(ei[e]&&ei[e].class&&ei[e].class.langMap&&ei[e].class.langMap.size>0){let r=ei[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Zn}async function $r(e,t,n){if(!e.text)return e;let r=null,a=await Jt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function v6(e,t){for(let n of e)try{return await $r({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Bg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ei[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function KL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Jt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),ba(a,t.localConfig,!1),d=d9(m,d,{sourceLanguage:KL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=YL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,v=-1,S=ft(t.user),T;try{T=new ei[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:S,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await T.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of b){let B=A instanceof j?new j(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(B,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){v++;let D=l;l==="openl"&&(D=l+"-"+d.codename||u0.DEFAULT_CODENAME);let M=T.getCacheKeyPrefix();M&&(D=M+"-"+D);let B=null;try{B=await dl(x2({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(F){k.warn("query cache DB error, but it's ok",F)}if(B){let F={...A,text:B.translatedText};f.sentences[v]=F,n&&n(null,F,A)}else b.push(A)}else b.push(...e.sentences);let w=b.length;if(y-w>0&&k.debug(`use ${y-w} sentences from cache`),!b.length)return f;let E=await T.multipleTranslate({sentences:b},d,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let B=l;l==="openl"&&(B=l+"-"+d.codename||u0.DEFAULT_CODENAME);let F=T.getCacheKeyPrefix();F&&(B=F+"-"+B),o.cache&&dl(S2({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:Xn(M.text),service:B}),3e3).catch(_=>{k.warn("set cache DB error",_)})}});for(let A of E?.sentences||[]){let D=f.sentences.findIndex(M=>!M);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=A}return f}function YL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var QL=1e5;async function va(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=JL(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(E){let{container:A,onFrame:D,onIgnoreElement:M,id:B,isLongHtml:F}=E,_=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let U=N(I);return U==NodeFilter.FILTER_ACCEPT?ht.mark(I,B,p):aM(I,U,r)&&v(),U}),L=A;if(N(L)===NodeFilter.FILTER_REJECT)return;for(ht.mark(L,B,p);L;){if(i?.interruptEffectDOM)return;let I=Date.now()-t;if(I>50&&(k.debug("taskTime",I),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:U,isMatchedSelection:V}=y(_,L,u);if(U)L=U;else break;if(!V)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=L;if(U.nodeName==="IFRAME"){D&&D(U),v(),_g(g,!0),L=_.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(s&&Og(U,s),d&&jg(U,d));let V=zr(U,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(V&&r.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(V=!1),Et(U,o)&&!V){S(U);let xe=null;for(;!(xe=_.nextSibling())&&_.parentNode(););L=xe;continue}let ie=Fi(U);if(!x6(g,U)||V){v(U);let xe=V?U:U.parentElement;xe&&xe.childNodes.length>0&&T(g,xe,xe.immersiveTranslateComputedStyle||null)}ie&&U.shadowRoot?.mode==="open"&&(V?D?.(U.shadowRoot):f({...E,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&Et(U,r.likePreSelectors)&&l&&(F||eM(U))}else if(L.nodeType===Node.TEXT_NODE)S(L);else throw new Error("should not be here");L=_.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function N(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ii(I)){if(d){let Ae=Object.keys(d);if(Ae.length>0&&Et(I,Ae))for(let O of Ae){let z=d[O];if(I.matches(O)){let Y=d[O],Le=Object.keys(Y);for(let me of Le){let He=Y[me];I.getAttribute(me)!==He&&(He===null?I.removeAttribute(me):I.setAttribute(me,He))}break}}}if(!E.force&&ht.isMarked(I,B)||wy(I,B)||S0(I,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||I.nodeName==="IFRAME"&&!Ha(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let Ae=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=Ae,Ng(Ae))return M&&M(I),NodeFilter.FILTER_REJECT;let xe=zr(I,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Ae||null);if(I.isBlock=xe,Et(I,o)&&xe)return NodeFilter.FILTER_REJECT}let U=I.getBoundingClientRect(),{width:V,height:ie}=U;return I.nodeName==="IMG"&&(V>48&&ie>48?I.immersiveTranslateComputedStyle={display:"block"}:V>0&&ie>0&&m!==!1&&(I.setAttribute("width",V),I.setAttribute("height",ie))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(V>0&&V<4||ie>0&&ie<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let U=I.textContent?.trim();if(!U)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let V=I.parentNode;if(V.getBoundingClientRect){let{width:ie,height:Ae}=V.getBoundingClientRect();if(ie>0&&ie<4||Ae>0&&Ae<4)return NodeFilter.FILTER_REJECT}return c>0&&U.length>=c&&tM(I,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(E){k.error(E)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&v();function y(E,A,D){let M=A.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(A))if(h=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(Cu(A,D))h=!0,b=A,v(),T(g,b,M);else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(Cu(A,D))h=!0,b=A,v(),T(g,b,M);else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h};return{currentNode:A,isMatchedSelection:!0}}function v(E){let A=g.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let F=g.flatNodes[M]?.textContent?.trim()||"";if(!F||new RegExp(r.skipTrailTextRegex).test(F)){g.flatNodes.splice(M,1);continue}break}if(E&&E.nodeName==="BR"){if(E.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=iM(E,r);let M=[...g.flatNodes],B=g.flatNodes.filter(F=>E.parentNode?.contains(F));B.length>0&&M.length!=B.length&&(g.flatNodes=B,g.flatNodes.original=M)}let D=$L(g,a,r);D&&n&&n(D),_g(g)}function S(E){if(!x6(g,E)){v(),_g(g);let A=E.parentNode;A&&T(g,A,A.computedStyle)}g.flatNodes.push(E)}function T(E,A,D){E.commonAncestorContainer=A;let M=w(D);E.isPreWhitespace=M}function w(E){return E&&E.whiteSpace&&E.whiteSpace.startsWith("pre")||E&&E.whiteSpace==="break-spaces"||!1}}function x6(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Fi(t));let r=XL(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function JL(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function ZL(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Og(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function XL(e){return e&&e._currentStacks?e._currentStacks.some(t=>Fi(t)):!1}function $L(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Wc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=ZL(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>QL){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Ly(o)}}else return null}function _g(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function Ng(e){return e.display==="none"}var ht={_marked_key:Y3,isMarked(e,t){return Sp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Fi(e)))return Lb(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Fi(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Fi(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function eM(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function tM(e,t,n){let r=e.textContent||"",a=ky(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=xb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function T6(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),d=e.querySelector(u);if(d)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let h=d.innerText||d.textContent||"";if(!h.trim()||rM(d,a,i,o)||!Tb(h,n,r))continue}d.getAttribute(m)!==p&&(p===null?d.removeAttribute(m):d.setAttribute(m,p))}}}function jg(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function S0(e,t){return nM(e,t.excludeSelectorsRegexes)?!0:Et(e,t.excludeSelectors||[])?Et(e,t.selectors||[])?!1:!Et(e,t.stayOriginalSelectors||[]):!1}function nM(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!Et(e,[r]))continue;if(qc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function Cu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return Et(e,t.concat(n))}function rM(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&S0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(To(o,t,n))return!0}}return!1}function aM(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&zr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function iM(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&zr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function C6(e,t,n,r,a){let i=t,o=i1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${P}-theme-${i}-${d}: ${m}; -`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=Pb(m);s+=`--${P}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var b0=class extends Hn{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await Dr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await $r(I3,async()=>{let t=await Kr({responseType:"json",url:`${ut}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Rg=["glm-4-flash"],y0=class extends Hn{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Rg.includes(this.model)&&!this.apiKeys.length)throw new j("apiKey are required");if(!Rg.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await Dr()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await $r(B3,async()=>{let t=await Kr({responseType:"json",url:`${ut}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!_r.langMap.has(n.to)||!_r.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new _r(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Rg.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var x0={mock:qo,mock2:qo,custom:vu,google:gu,transmart:fu,deepl:Wo,volc:e6,volcAlpha:yu,bing:_r,tencent:mu,tenAlpha:pu,baidu:r6,caiyun:i6,cai:o6,openl:u0,youdao:u6,you:c6,d:Ho,dpro:Ho,deeplx:xu,niu:W9,azure:G9,openai:Y9,gemini:p6,claude:f6,papago:V9,aliyun:bu,yandex:Tu,qianfan:Su,"custom-ai":Hn,deepseek:Hn,"aliyun-bailian":Hn,doubao:Hn,hunyuan:h0,siliconcloud:b0,lingyiwanwu:Hn,zhipu:y0};globalThis.TranslationServicesClass=x0;var ei={};Object.keys(Sr).forEach(e=>{ei[e]={...Sr[e],class:x0[e]}});function v0(e,t){let n=Xn;if(ei[e]&&ei[e].class&&ei[e].class.langMap&&ei[e].class.langMap.size>0){let r=ei[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return Xn}async function Qr(e,t,n){if(!e.text)return e;let r=null,a=await Zt({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new j("translateFailed","translate failed")}async function y6(e,t){for(let n of e)try{return await Qr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Fg(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=ft(e.user);await new ei[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function VL(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function Zt(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let d=u[l]||{},m=a.rawUserConfig?.translationServices?.[l]||{};d.type==="custom-ai"&&(l=d.type),ba(a,t.localConfig,!1),d=c9(m,d,{sourceLanguage:VL(e.sentences),targetLanguage:c,model:d.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(d={...d,...r});let p=a.beta,g=o.cache===!1&&p,h=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(g&&(A.refresh=!0),h&&(A.debug=!0),A.text&&(A.text=KL(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let b=[],f={sentences:Array(e.sentences.length)},y=e.sentences.length,x=-1,T=ft(t.user),S;try{S=new ei[l].class(d,s,{translationService:l,userToken:t.user?.token,isPro:T,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await S.init()}catch(A){if(n){b.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of b){let I=A instanceof j?new j(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(I,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){x++;let D=l;l==="openl"&&(D=l+"-"+d.codename||u0.DEFAULT_CODENAME);let M=S.getCacheKeyPrefix();M&&(D=M+"-"+D);let I=null;try{I=await dl(x2({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(R){k.warn("query cache DB error, but it's ok",R)}if(I){let R={...A,text:I.translatedText};f.sentences[x]=R,n&&n(null,R,A)}else b.push(A)}else b.push(...e.sentences);let w=b.length;if(y-w>0&&k.debug(`use ${y-w} sentences from cache`),!b.length)return f;let E=await S.multipleTranslate({sentences:b},d,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+d.codename||u0.DEFAULT_CODENAME);let R=S.getCacheKeyPrefix();R&&(I=R+"-"+I),o.cache&&dl(v2({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:Qn(M.text),service:I}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of E?.sentences||[]){let D=f.sentences.findIndex(M=>!M);if(D===-1)throw new j("translateFailed","can not match the result");f.sentences[D]=A}return f}function KL(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}var $L=1e5;async function xa(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=YL(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:d,isModifyImage:m,skipEditableCheck:p}=r,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},h=!1,b=null;async function f(E){let{container:A,onFrame:D,onIgnoreElement:M,id:I,isLongHtml:R}=E,B=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,F=>{let U=N(F);return U==NodeFilter.FILTER_ACCEPT?ht.mark(F,I,p):rM(F,U,r)&&x(),U}),L=A;if(N(L)===NodeFilter.FILTER_REJECT)return;for(ht.mark(L,I,p);L;){if(i?.interruptEffectDOM)return;let F=Date.now()-t;if(F>50&&(k.debug("taskTime",F),t=Date.now(),await pt(0)),u&&u.length>0){let{currentNode:U,isMatchedSelection:V}=y(B,L,u);if(U)L=U;else break;if(!V)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let U=L;if(U.nodeName==="IFRAME"){D&&D(U),x(),Ig(g,!0),L=B.nextNode();continue}U.nodeType===Node.ELEMENT_NODE&&(s&&Bg(U,s),d&&Ng(U,d));let V=zr(U,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},U.immersiveTranslateComputedStyle||null);if(V&&r.paragraphFirstLetterFontSize>0&&U.childNodes.length==1&&U.childNodes[0].nodeType===Node.TEXT_NODE&&U.innerText?.length==1&&U?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(V=!1),Et(U,o)&&!V){T(U);let ve=null;for(;!(ve=B.nextSibling())&&B.parentNode(););L=ve;continue}let ie=Ri(U);if(!x6(g,U)||V){x(U);let ve=V?U:U.parentElement;ve&&ve.childNodes.length>0&&S(g,ve,ve.immersiveTranslateComputedStyle||null)}ie&&U.shadowRoot?.mode==="open"&&(V?D?.(U.shadowRoot):f({...E,container:U.shadowRoot})),U.nodeType===Node.ELEMENT_NODE&&Et(U,r.likePreSelectors)&&l&&(R||QL(U))}else if(L.nodeType===Node.TEXT_NODE)T(L);else throw new Error("should not be here");L=B.nextNode(),g.commonAncestorContainer&&L&&L.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(L)}function N(F){if(F.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Fi(F)){if(d){let Ae=Object.keys(d);if(Ae.length>0&&Et(F,Ae))for(let O of Ae){let z=d[O];if(F.matches(O)){let $=d[O],Le=Object.keys($);for(let me of Le){let He=$[me];F.getAttribute(me)!==He&&(He===null?F.removeAttribute(me):F.setAttribute(me,He))}break}}}if(!E.force&&ht.isMarked(F,I)||Cy(F,I)||T0(F,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||F.nodeName==="IFRAME"&&!Ha(F))return NodeFilter.FILTER_REJECT;if(F.nodeType===Node.ELEMENT_NODE){let Ae=window.getComputedStyle(F);if(F.immersiveTranslateComputedStyle=Ae,Og(Ae))return M&&M(F),NodeFilter.FILTER_REJECT;let ve=zr(F,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Ae||null);if(F.isBlock=ve,Et(F,o)&&ve)return NodeFilter.FILTER_REJECT}let U=F.getBoundingClientRect(),{width:V,height:ie}=U;return F.nodeName==="IMG"&&(V>48&&ie>48?F.immersiveTranslateComputedStyle={display:"block"}:V>0&&ie>0&&m!==!1&&(F.setAttribute("width",V),F.setAttribute("height",ie))),!F.childNodes||F.childNodes&&F.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(V>0&&V<4||ie>0&&ie<4)&&(F.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(F.nodeType===Node.TEXT_NODE){let U=F.textContent?.trim();if(!U)return/^( )+$/.test(F.parentElement?.innerHTML?.trim()||"")||g.isPreWhitespace||/^\u00A0+$/.test(F.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let V=F.parentNode;if(V.getBoundingClientRect){let{width:ie,height:Ae}=V.getBoundingClientRect();if(ie>0&&ie<4||Ae>0&&Ae<4)return NodeFilter.FILTER_REJECT}return c>0&&U.length>=c&&eM(F,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await f(e)}catch(E){k.error(E)}g&&g.commonAncestorContainer&&g.flatNodes.length>0&&x();function y(E,A,D){let M=A.immersiveTranslateComputedStyle||null;if(b){if(!b.contains(A))if(h=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(Cu(A,D))h=!0,b=A,x(),S(g,b,M);else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(Cu(A,D))h=!0,b=A,x(),S(g,b,M);else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h};else return h=!1,A=E.nextNode(),{currentNode:A,isMatchedSelection:h};return{currentNode:A,isMatchedSelection:!0}}function x(E){let A=g.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let R=g.flatNodes[M]?.textContent?.trim()||"";if(!R||new RegExp(r.skipTrailTextRegex).test(R)){g.flatNodes.splice(M,1);continue}break}if(E&&E.nodeName==="BR"){if(E.hasAttribute("data-imt")&&i?.translateState=="translation")return;g.commonAncestorContainer=aM(E,r);let M=[...g.flatNodes],I=g.flatNodes.filter(R=>E.parentNode?.contains(R));I.length>0&&M.length!=I.length&&(g.flatNodes=I,g.flatNodes.original=M)}let D=XL(g,a,r);D&&n&&n(D),Ig(g)}function T(E){if(!x6(g,E)){x(),Ig(g);let A=E.parentNode;A&&S(g,A,A.computedStyle)}g.flatNodes.push(E)}function S(E,A,D){E.commonAncestorContainer=A;let M=w(D);E.isPreWhitespace=M}function w(E){return E&&E.whiteSpace&&E.whiteSpace.startsWith("pre")||E&&E.whiteSpace==="break-spaces"||!1}}function x6(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Ri(t));let r=JL(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function YL(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function ZL(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Bg(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function JL(e){return e&&e._currentStacks?e._currentStacks.some(t=>Ri(t)):!1}function XL(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(g=>g.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Wc(r,a,n);o||(o=a);let s=[];for(let p of r){let g=ZL(e,o,p);g&&(s.includes(g)||s.push(g))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],d=u,m=0;for(;d&&(c.push(d),d!==l);){if(m++,m>$L){k.warn("loop too many times for convert root nodes, break");break}d=d.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Dy(o)}}else return null}function Ig(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function Og(e){return e.display==="none"}var ht={_marked_key:K3,isMarked(e,t){return vp(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ri(e)))return Db(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)ht.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Ri(e)))return wt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Ri(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function QL(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=jn?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function eM(e,t,n){let r=e.textContent||"",a=Ay(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=xb(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function T6(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],d=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let g of d){let h=c[g];if(g==="translate"&&h==="no"){let f=p.innerText||p.textContent||"";if(!f.trim()||nM(p,a,i,o)||!Tb(f,n,r))continue}p.getAttribute(g)!==h&&(h===null?p.removeAttribute(g):p.setAttribute(g,h))}})}}function Ng(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Et(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function T0(e,t){return tM(e,t.excludeSelectorsRegexes)?!0:Et(e,t.excludeSelectors||[])?Et(e,t.selectors||[])?!1:!Et(e,t.stayOriginalSelectors||[]):!1}function tM(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!Et(e,[r]))continue;if(qc(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function Cu(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return Et(e,t.concat(n))}function nM(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&T0(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(So(o,t,n))return!0}}return!1}function rM(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&zr(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function aM(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&zr(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function S6(e,t,n,r,a){let i=t,o=a1[i]||[],s="";e&&o&&o.length>0&&o.forEach(c=>{let{name:d}=c;if(e&&n&&n[d]){let m=n[d];if(["borderRadius"].includes(d)&&(m+="px"),s+=`--${P}-theme-${i}-${d}: ${m}; +`,t==="marker"&&d==="backgroundColor"&&typeof m=="string"){let{r:p,g,b:h}=Mb(m);s+=`--${P}-theme-${i}-${d}-rgb: ${p}, ${g}, ${h}; `}}}),r||(r="inherit"),e&&(s+=` .${P}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -6047,44 +6047,44 @@ x-tc-action:`+this.action.toLowerCase()+` [imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?Sn(e,l,P+"-user-custom-style"):a&&Sn(e,"",P+"-user-custom-style")}function Qo(e,t){let r=be().IMMERSIVE_TRANSLATE_INJECTED_CSS;Sn(e,r,P+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};C6(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?Tn(e,l,P+"-user-custom-style"):a&&Tn(e,"",P+"-user-custom-style")}function Yo(e,t){let r=be().IMMERSIVE_TRANSLATE_INJECTED_CSS;Tn(e,r,P+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};S6(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&Sn(e,s,P+"-dynamic-injected-css")}async function w6(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Be({text:Co(document.body),pageLangs:t})),e}function Ug(e,t,n=[],r){let a=["notranslate"];return r&&a.push(a1),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${Rm}-theme-${e}`):a.push(`${Pm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Rm):a.push(Pm),a}function Hg(e){let t=["notranslate",Ul];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function E6(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=Ri(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,S=>{let T=f.indexOf(S),w=f[T-1]===" ",E=f[T+S.length]===" ",D=S.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),M=Number(D);if(isNaN(M))return S;let B=o[M];if(B&&B.type==="element"){let F=Ze.sanitize(B.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return w||(F=" "+F),E||(F=F+" "),F}else k.error("variable type not supported",B,S);return S}));let y=Ug(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(r1);let v=Hg(i);return qg({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:v,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function T0(e,t,n,r,a){let i=t.original||t,o=dy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(S=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function A6(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function k6(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=Ze.sanitize(jc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=fy(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Ri(t);if(c.length>2){let d=c[2];return oM({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=E6(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function zg(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function oM(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let v=p.indexOf(y),S=p[v-1]===" ",T=p[v+y.length]===" ",w=y.match(h);if(!w)return y;let E=w[1],A=Number(E);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let M=Ze.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return S||(M=" "+M),T||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return S||(M=" "+M),T||(M=M+" "),M}else k.error("variable type not supported",D,y);return y}));let b=Ug(l,n,r||[],s),f=Hg(l);return qg({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function qg({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function Wg(e){let t=e[e.length-1];return t?t.text:""}function D6(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Cl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=sM(u.content,t),n&&(r=M6(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:My(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function L6(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function sM(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=uM(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return Wc(i,document.body,t)}function uM(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function M6(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(jl)||Gg(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var wu="";async function Gg(e){let t=document.title;if(!t||t.includes(jl))return;wu!==t&&(wu=t);let n=await Be({text:t,pageLangs:[mt(),"en"]});if(!Lo(e,n))try{let r=await $r({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=wu,document.title=r.text+jl+wu)}catch(r){throw r}}function R6(e){e.rule.isTranslateTitle&&(document.title=wu)}function Jo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function C0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Bp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` +`+t.rule.additionalInjectedCss)),s&&Tn(e,s,P+"-dynamic-injected-css")}async function C6(){let e="auto",t=[Ct(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ie({text:Co(document.body),pageLangs:t})),e}function jg(e,t,n=[],r){let a=["notranslate"];return r&&a.push(r1),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${Pm}-theme-${e}`):a.push(`${Mm}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Pm):a.push(Mm),a}function Ug(e){let t=["notranslate",Ul];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function w6(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,d=_i(n,!0),m="afterend",p=d[0],g=d[1],h=`${p}(\\d+)${g}`,b=new RegExp(h,"g"),f=u;o.length>0&&(f=f.replace(b,T=>{let S=f.indexOf(T),w=f[S-1]===" ",E=f[S+T.length]===" ",D=T.replace(new RegExp(d[0],"g"),"").replace(new RegExp(d[1],"g"),""),M=Number(D);if(isNaN(M))return T;let I=o[M];if(I&&I.type==="element"){let R=Je.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return w||(R=" "+R),E||(R=R+" "),R}else k.error("variable type not supported",I,T);return T}));let y=jg(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&y.push(n1);let x=Ug(i);return Hg({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:x,classList:y,html:f,targetElementEffectAttributeName:ao,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:m,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function S0(e,t,n,r,a){let i=t.original||t,o=cy(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,d=[],m={};for(let g=0;g0){let g="";for(let f=0;f0&&i[f].textContent.length0&&(T=d[f-1].text),fg.type==="text").map(g=>g.text).join(" "),n.richMoreWordPercent&&d.length>4&&d.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function E6(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function A6(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=Je.sanitize(jc(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let d=Object.keys(e.variables);for(let m=0;m/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=gy(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=_i(t);if(c.length>2){let d=c[2];return iM({delimiterTag:d,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let d=w6(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return d.html}}function qg(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function iM(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:d}=e;o=o||[];let p=e.targetText,g=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),h=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(g,y=>{let x=p.indexOf(y),T=p[x-1]===" ",S=p[x+y.length]===" ",w=y.match(h);if(!w)return y;let E=w[1],A=Number(E);if(isNaN(A))return y;let D=o[Number(A)];if(D&&D.type==="element"){let M=Je.sanitize(D.value.outerHTML,{ADD_TAGS:d.rule.domPurifyAddTags});return T||(M=" "+M),S||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return T||(M=" "+M),S||(M=M+" "),M}else k.error("variable type not supported",D,y);return y}));let b=jg(l,n,r||[],s),f=Ug(l);return Hg({targetWrapperTag:a,innerClassList:f,classList:b,html:p,targetElementEffectAttributeName:ao,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:d.config.translationPosition||""})}function Hg({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let d="";l&&(d=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let m=[r];return i?o!=="smart"?m=[o,r]:m=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?m=["
",r]:m=[o,r],r=c=="before"?m.reverse().join(""):m.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(g){return`<${e} ${d} class="${n.join(" ")}" ${a}="1">${g}`}}function zg(e){let t=e[e.length-1];return t?t.text:""}function k6(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new Cl(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=oM(u.content,t),n&&(r=L6(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Ly(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function D6(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function oM(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=sM(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,d=u?.textContent?.trim().length||0;c>d&&(u=l)}),u&&i.push(u)}),!!i.length)return Wc(i,document.body,t)}function sM(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function L6(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(jl)||Wg(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var wu="";async function Wg(e){let t=document.title;if(!t||t.includes(jl))return;wu!==t&&(wu=t);let n=await Ie({text:t,pageLangs:[mt(),"en"]});if(!Lo(e,n))try{let r=await Qr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=wu,document.title=r.text+jl+wu)}catch(r){throw r}}function P6(e){e.rule.isTranslateTitle&&(document.title=wu)}function Zo(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function C0(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Fp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function F6(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Bp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function _6(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?Fp():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function w0(e){let t=vy(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function dn(e){let t=e.rule;e.isRichTranslate&&(t=Mp(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var lM={sanitize:e=>e};async function Qg(e,t){if(e.interruptEffectDOM)return;let n=dn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{Vg(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),no&&wt(t,"consumeContainer",e.id)}function Vg(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ha(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${_l}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Gr(t.contentWindow?.document.documentElement,e.translateState),xa(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),xa(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function xa(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=dn(t.ctx),o=0;if(l(t,e,n))return;if(Ii(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ii(d)&&(a&&Og(d,a),i&&jg(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await Qg(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else no&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Vg(t,c.shadowRoot,n),!1;if(d==="iframe")return Vg(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Cu(c,m.selectors);if(m.containerSelectors&&Cu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){L6(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=dn(c.ctx);return!!(S0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||Et(d,g.skipBuildContainerSelectors)||Et(d,g.stayOriginalSelectors))}}function Eu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=Zo(e,t.rootNodes);if(Kg(s))return;ti(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Zo(e,t.targetNodes,s);ti(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Zo(e,t.rootNodes);if(Kg(s))return;ti(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Zo(e,t.targetNodes);ti(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),Xg(t)}catch(s){k.error(s)}}}function Kg(e){return!e||!Ii(e)?!1:e.classList.contains(Dt)}function Zo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ti(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var cM=Kn(E0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||dM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,no&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Ri(i),u=i.config.translationServices[i.translationService],l=T0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:w0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Zg(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Wr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),mM(e,t.text),Jg(e,t,r)):(no&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function dM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ii(t)&&t.classList.contains(Dt):!1}function mM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Jg(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),no&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,Q3,"1",!0),n=="hover"){E0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";cM.call(e,e.ctx,a)}async function E0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Jt(a,t,(i,o,s)=>{let u=s.id,l=pM(e,u.toString());l&&gM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function pM(e,t){return e.find(n=>n.id===t)}function gM(e,t,n,r,a,i){let o=!1,s=r;Mo(s.commonAncestorContainer,n.id)?.remove(),Xg(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Dt),m.setAttribute(ao,"1");let p=k6(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Jo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=lM.sanitize(p);m.innerHTML=mr?.createHTML(g)||g,c.targetNodes=[m],Eu(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,$3,m.toString()),p.classList.add("notranslate",Dt,Dt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Kg(g)||ti(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=fM(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function w0(e){let t=yy(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function dn(e){let t=e.rule;e.isRichTranslate&&(t=Lp(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var uM={sanitize:e=>e};async function $g(e,t){if(e.interruptEffectDOM)return;let n=dn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:ji.bind(null,e),onFrame:r=>{Gg(e,r,!0)},onIgnoreElement:r=>{ht.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),no&&wt(t,"consumeContainer",e.id)}function Gg(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Ha(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Bl}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,Gr(t.contentWindow?.document.documentElement,e.translateState),va(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),va(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function va(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=dn(t.ctx),o=0;if(l(t,e,n))return;if(Fi(e)&&u(e)){ht.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Fi(d)&&(a&&Bg(d,a),i&&Ng(d,i)),l(t,d,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let d=c.currentNode;if(u(d))for(await s(d);!t.interruptEffectDOM;){if(c.nextSibling()){let m=c.currentNode;if(ht.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(m)){await s(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,ht.clearMark(c),t.immediateTranslateCapacity>=0){await $g(t,c);let d=Date.now()-r;d>100&&(k.debug("batchTaskTime",d,c),r=Date.now(),await pt(0))}else no&&wt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let d=c.nodeName.toLowerCase();if(c.shadowRoot)return Gg(t,c.shadowRoot,n),!1;if(d==="iframe")return Gg(t,c,n),!1;if(["script","#document-fragment","img"].includes(d))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Cu(c,m.selectors);if(m.containerSelectors&&Cu(c,m.containerSelectors))return!0;if(m.pageHeight){let p=c.scrollHeight;if(p>0&&pm.pageHeight*g)if(Ve()){if(p>m.pageHeight*2*g)return!1}else return!1;for(let h of c.childNodes)if(h.nodeType==Node.TEXT_NODE&&h.textContent&&h.textContent.trim().length>0)return!0}}return!1}function l(c,d,m){D6(c.ctx,d);let p=d.nodeName.toLowerCase();if(p=="script")return d.childNodes.length==0||d.childNodes.length==1&&d.childNodes[0].nodeType==Node.TEXT_NODE;if(d.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(d.nodeType!==Node.ELEMENT_NODE||m&&ht.isMarked(d,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let g=dn(c.ctx);return!!(T0(d,{excludeSelectors:g.excludeSelectors,selectors:g.selectors,excludeSelectorsRegexes:g.excludeSelectorsRegexes,stayOriginalSelectors:g.stayOriginalSelectors})||Et(d,g.skipBuildContainerSelectors)||Et(d,g.stayOriginalSelectors))}}function Eu(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!ht.isSkipMarkEle(a)&&!ht.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Ni(t.rootNodes),r=="original"&&n=="translation"){let s=Jo(e,t.rootNodes);if(Vg(s))return;ti(e,s,a,t.targetNodes||[]),Ni(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=Jo(e,t.targetNodes,s);ti(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=Jo(e,t.rootNodes);if(Vg(s))return;ti(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=Jo(e,t.targetNodes);ti(e,s,a,t.rootNodes||[]),Ni(t.targetNodes)}r=="dual"&&n=="original"&&Ni(t.targetNodes),Jg(t)}catch(s){k.error(s)}}}function Vg(e){return!e||!Fi(e)?!1:e.classList.contains(Dt)}function Jo(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Ni(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ti(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var lM=$n(E0,300);async function ji(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||cM(t.rootNodes)||t.stepState>=2)return;t.stepState=2,no&&wt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=_i(i),u=i.config.translationServices[i.translationService],l=S0(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:w0(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],d=await Zg(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Wr(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(d){if(k.debug("on paragraph",d.text,d),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(d))return;a.paragraphs.push(d),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),dM(e,t.text),Yg(e,t,r)):(no&&wt(a,"observeParagraph",e.id),e.observeParagraphs.push(d),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return d}function cM(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Fi(t)&&t.classList.contains(Dt):!1}function dM(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Yg(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),no&&wt(t.commonAncestorContainer,"consumeParagraph",e.id),wt(t.commonAncestorContainer,$3,"1",!0),n=="hover"){E0.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";lM.call(e,e.ctx,a)}async function E0(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await Zt(a,t,(i,o,s)=>{let u=s.id,l=mM(e,u.toString());l&&pM.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function mM(e,t){return e.find(n=>n.id===t)}function pM(e,t,n,r,a,i){let o=!1,s=r;Mo(s.commonAncestorContainer,n.id)?.remove(),Jg(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let m=c.commonAncestorContainer?.paragraphs||[],p=m?.indexOf(c);p>=0&&m.splice(p,1)}else{let m=document.createElement(a.rule.targetWrapperTag);m.classList.add("notranslate",Dt),m.setAttribute(ao,"1");let p=A6(c,a);a.config.enableEditTranslation&&m.setAttribute("contenteditable","true"),Zo(a)&&m.setAttribute("dir","rtl"),m.setAttribute("lang",a.targetLanguage);let g=uM.sanitize(p);m.innerHTML=jn?.createHTML(g)||g,c.targetNodes=[m],Eu(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:d}=a,m=n.id,p=document.createElement(d.targetWrapperTag);wt(p,X3,m.toString()),p.classList.add("notranslate",Dt,Dt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let g=r.rootNodes[r.rootNodes.length-1].nextSibling;if(Vg(g)||ti(a,g,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let h=gM(a,c).replaceAll(` `,"").replaceAll('"',"""),b=c.message.replaceAll(` -`,"").replaceAll('"',"""),f=Me(a.config.interfaceLanguage,"retryAllButton"),y=Me(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,v=Me(a.config.interfaceLanguage,"error.retry"),S=Me(a.config.interfaceLanguage,"error.reason"),T=`
<${d.targetWrapperTag} class="${P}-error notranslate"> +`,"").replaceAll('"',"""),f=Me(a.config.interfaceLanguage,"retryAllButton"),y=Me(a.config.interfaceLanguage,"errorTooltipTitle")+": "+b,x=Me(a.config.interfaceLanguage,"error.retry"),T=Me(a.config.interfaceLanguage,"error.reason"),S=`<${d.targetWrapperTag} class="${P}-error notranslate"> <${d.targetWrapperTag} class="${P}-error-wrapper"> - ${v} + ${x}    - ${S} + ${T} - `;p.innerHTML=mr?.createHTML(T)||T}}}var I6="";async function Zg(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=I6.slice(0,e.rule?.detectTextBufferLength)+" "+o),I6=s;let u=await Be({text:s,minLength:15,pageLangs:[mt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!Po({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!Po({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let d=r.excludeLanguages||[],m=rc();r.isDetectParagraphLanguage&&(m="auto");let p=mt(),g=u;if(g==="auto"&&!r.isDetectParagraphLanguage&&(g=p,!Xl.includes(e.translationService)&&(X()||at())&&(g="auto")),t.languageByLocal=g,t.languageByClient=m,e.specialAiAssistant?.disableSameLang)return t;let h=m!=="auto"?m:g;return Ia(h,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||d.length>0&&d.some(y=>Ia(h,y,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function Au(){Yg=0}var Yg=0;function fM(e,t){Yg+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new j("contextInvalidated",n)),t instanceof j){let r=t.uiConfig(e);if(n=JSON.stringify(r),Yg!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(fn,{detail:r}))}return n}function Xg(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,hM(t,`[${J3}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function hM(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}var bM=[];function B6(e){bM.push(e)}var $g;function _6(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=dn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ku(e,i,t,r)}),$g=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&nr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||tf(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ku(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!zr(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Fo(r,u.parentElement);c&&(ht.clearToParentMark(u,c),ku(e,c,t,r));continue}ku(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{ht.isMarked(o,e.id)||ku(e,o,t,r)})}),$g.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ku(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&ef(t),va({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{ji(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function O6(){$g?.disconnect()}function Xo({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&Sn(c,a),e.appendChild(l);let d=c;if(s){let m=document.createElement("div");m.id="mount",m.style.display="block",c.appendChild(m),d=m}za(x(Oo,{lang:t.config.interfaceLanguage,children:x(n,{...r})}),d)}function $o(e){return es(e).subtitles}function es(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${Ef.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},uP=e=>/]*>[\s\S]*]*>/.test(e),Av=un({name:Ev,build:sP,detect:uP,helper:Ef,parse:oP});var lP="srt",Fu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},cP=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Fu.toMilliseconds(s[2]),u.end=Fu.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},dP=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Fu.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},mP=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),kv=un({name:lP,build:dP,detect:mP,helper:Fu,parse:cP});var pP="sub",Af=25,gP=(e,t)=>{t.fps||=Af;let n=t.fps>0?t.fps:Af,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Af,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},hP=e=>/^\{\d+\}\{\d+\}.*/.test(e),Dv=un({name:pP,build:fP,detect:hP,parse:gP});var bP="vtt",Iu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},yP=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Iu.toMilliseconds(s[2]),l.end=Iu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},vP=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Iu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},xP=e=>/^\s*WEBVTT\r?\n/.test(e),Lv=un({name:bP,build:vP,detect:xP,helper:Iu,parse:yP});var SP={vtt:Lv,lrc:Cv,smi:Av,ssa:xv,ass:Sv,sub:Dv,srt:kv,sbv:wv,json:Tv},Mv=SP;var TP=e=>JSON.parse(JSON.stringify(e)),kf=class{format=Mv;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),_i.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];Jo(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,J+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&Sn(document,`${t.join(` -`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Ge(Te(),{});if(this.initConfig(n),await pt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(z6(r),W6(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!We(Te(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle||this.tempEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Me(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:this.i18nFormat(`translationServices.${this.ctx.subtitleTranslateService}`)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function UM(){return v("span",{class:"logo",dangerouslySetInnerHTML:{__html:M0}})}function HM(){return v("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:v("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function qM(){return v("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:v("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function zM(){return v("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:v("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var xf=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},un=e=>new xf(e);var WM="ssa",Ui={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},vf=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sS.split(w,E).join(w).length)(b,",",r.length-1)+1;y.content=b.substring(T),y.data.Text=y.content,y.text=y.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(y)}}}}}t.verbose}return a},Tf=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,xx=un({name:WM,build:Tf,detect:Sf,helper:Ui,parse:vf});var VM="ass",vx=un({name:VM,build:Tf,detect:Sf,helper:Ui,parse:vf});var KM="json",$M=(e,t)=>JSON.parse(e),YM=(e,t)=>JSON.stringify(e,void 0,2),ZM=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},Tx=un({name:KM,build:YM,detect:ZM,parse:$M});var JM="lrc",Cf={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},XM=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),Sx=un({name:JM,build:QM,detect:eP,helper:Cf,parse:XM});var tP="sbv",_u={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},nP=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},rP=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),Cx=un({name:tP,build:rP,detect:aP,helper:_u,parse:nP});var wx="smi",wf={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},iP=(e,t)=>{if(t.format&&t.format!==wx)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(d){let m={};m.type="caption",m.start=parseInt(d[1]),m.end=m.start+2e3,m.duration=m.end-m.start,m.content=d[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,g=/^([\s\S]*)/i.exec(m.content)||/^]*)>([\s\S]*)/i.exec(m.content);if(g){let h=g[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),h=h.replace(/^\s+/g,"").replace(/\s+$/g,""),p=h.replace(/ /gi," ").replace(/\s+/g,"").length===0,m.text=wf.htmlDecode(h,r)}!t.preserveSpaces&&p?t.verbose:n.push(m),s&&(s.end=m.start,s.duration=s.end-s.start),s=m;continue}t.verbose}return n},oP=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${wf.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},sP=e=>/]*>[\s\S]*]*>/.test(e),Ex=un({name:wx,build:oP,detect:sP,helper:wf,parse:iP});var uP="srt",Ru={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},lP=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Ru.toMilliseconds(s[2]),u.end=Ru.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},cP=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Ru.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},dP=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),Ax=un({name:uP,build:cP,detect:dP,helper:Ru,parse:lP});var mP="sub",Ef=25,pP=(e,t)=>{t.fps||=Ef;let n=t.fps>0?t.fps:Ef,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:Ef,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},fP=e=>/^\{\d+\}\{\d+\}.*/.test(e),kx=un({name:mP,build:gP,detect:fP,parse:pP});var hP="vtt",Fu={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},bP=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Fu.toMilliseconds(s[2]),l.end=Fu.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},yP=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Fu.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},xP=e=>/^\s*WEBVTT\r?\n/.test(e),Dx=un({name:hP,build:yP,detect:xP,helper:Fu,parse:bP});var vP={vtt:Dx,lrc:Sx,smi:Ex,ssa:xx,ass:vx,sub:kx,srt:Ax,sbv:Cx,json:Tx},Lx=vP;var TP=e=>JSON.parse(JSON.stringify(e)),Af=class{format=Lx;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),Bi.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];Zo(this.ctx)&&this.isEnableSubtitle()&&(wt(document.documentElement,Z+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&Tn(document,`${t.join(` +`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await Ge(Se(),{});if(this.initConfig(n),await pt(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(q6(r),z6(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!We(Se(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle||this.tempEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Me(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:this.i18nFormat(`translationServices.${this.ctx.subtitleTranslateService}`)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} - `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=Ze.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Jt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=L0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Mu(this.ctx,n,r)}getTranslationMode(t){return Sa(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector)||!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n,r){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let a=t.filter(i=>i.text);Ta(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:a,ctx:this.ctx,lang:n},r),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Pu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Ln(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&Xo({id:P+"quick-button",parent:n,ctx:this.ctx,Component:yv,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle},style:vv+this.config.quickButtonRule?.injectCSS||""})}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Hi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return lc(t.slice(0,50).map(n=>n.text).join(" "))}};function Df(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function P0(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}function Rv(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var R0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){let t=super.isEnableSubtitle();return this.config.translationOnlyPattern&&!We(Te(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe($(r),this.ctx.targetLanguage);if(a||Sa(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(av(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=rv(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ut}subtitles/yt-asr-subs`;try{let a=await P0(t),o=(await K({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe($(o),r)&&!Sa($(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe($(d.languageCode),r)&&!Sa($(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>$(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=$(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=Rv(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>$(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>$(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return $(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe($(a[u]),this.ctx.targetLanguage)&&!Sa($(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:q6(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Ge(Te(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Pu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Ge(Te(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let i=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(i?.width&&i.width<500)return!1}let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=k0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Te()&&(this.lastReportUrl=Te(),ze(this.ctx,$(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),D0(a.arrayBuffer,a.document))}catch{}}};var F0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang,!0)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;ze(this.ctx,$(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:$(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,$(i),!0);return}this.downloadSubtitle(o,$(i),[]);let u=await this.requestHumanSubtitle(o,$(i),r);if(u)return this.handleIOSFullScreen(u,$(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,$(i));return l?(this.handleIOSFullScreen(l,$(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[$(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ts(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Du(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Te()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ri=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),$(i.language)),i.isTranslated=!0;return}ze(this.ctx,$(i.language)),this.translateSubtitle([...i.cues||[]],$(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>CP(i.text));return(await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].text=i.displayText}),t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}};function CP(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var ea=class extends ri{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,$(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe($(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,$(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var rs=class extends ea{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=es(r),i=await Be({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(i),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}this.showSubtitleLoading(!0),ze(this.ctx,$(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ni(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var I0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe($(a),this.ctx.targetLanguage))return null;ze(this.ctx,$(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,$(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:cf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Jt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=Fr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${cf(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var B0=class extends ri{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe($(i),this.ctx.targetLanguage))return null;ze(this.ctx,$(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,$(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,$(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=$o(t),s=$o(i),u=ts(o,s);return{text:ni(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=$o(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Jt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=Fr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),ni(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[$(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Te()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var _0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=Fv(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=Fv(o,r.itemsPath):s=EP(o,r),!s?.length)continue;let u=await Be({text:s.map(l=>Bu(l,r.textKey)).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Bu(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,$(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Bu(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=wP(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function Fv(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Fo(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Dt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Dt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return nr(t,["."+Dt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Dt);if(!a){let o=document.createElement("font");o.classList.add(Dt),o.classList.add("notranslate");let s=Pp(t);o.append(Ze.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Be({text:n,pageLangs:[mt(),"en"]});return Lo(t,r)?void 0:(await $r({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=Ye(),n=await Ge(Te(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Ge(Te(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var O0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=AP(r),o=await Be({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Iv(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=await this.translateSubtitle(a,i,$(o));if(this.config.enableHookDownload)try{let u=Iv(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),$(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Fr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(_u,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},_u="http://www.w3.org/ns/ttml";function AP(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(_u,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(_u,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(_u,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Iv(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(_u,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:Bv(i),end:Bv(o),text:s})}),r}function Bv(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var N0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=es(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,$(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ts(n.subtitles,$o(u));return n.subtitles=l,ni(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Jt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=Fr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),ni(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>$(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=LP(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return Be({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Te()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=DP(r),i=kP(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function kP(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function DP(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function LP(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var j0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=k0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Be({text:o.join(` -`),pageLangs:[Ct(),"en"]});return Xe($(s),this.ctx.targetLanguage)?null:(ze(this.ctx,$(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),D0(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var U0=class extends tt{async requestSubtitle(t){let n=await Ge(Te(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new rs(this.ctx).loadSubtitle(i.url);if(!s)return;let u=nf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}j6(a),uf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var H0=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(_v).forEach(n=>{_v[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe($(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),Ta(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=G6(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},_v={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var q0=class extends ea{constructor(t){super(t),new as(t)}};var z0=class extends ea{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Hi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Be({text:i.map(c=>c.text).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Hi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var W0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Be({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ct(),"en"]});if(Xe($(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,$(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),$(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=af(g,l),f=af(h,l),y=sn(b),v=sn(f);u==="duration"&&(v=y+v);let S=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:v,text:(S||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var G0=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=MP(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,Ta(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await K({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Hi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function MP(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var V0=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),Ta(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var PP={youtube:R0,netflix:F0,webvtt:rs,khanacademy:I0,udemy:B0,hulu:U0,mubi:V0,text_track:ri,text_track_dynamic:ea,general:_0,live:as,ebutt:O0,disneyplus:N0,"fmp4.xml":j0,multi_attach_vtt:H0,twitter:q0,subsrt:z0,xml:W0,av:G0},K0;async function Ov(e){try{X()&&await pt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=PP[t.type];if(!n)return;K0=new n(e)}catch(t){k.error(t)}}async function Lf(){K0?.onPageStatusChange()}async function RP(e,t){if(K0?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Ke())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),_e("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function FP(){K0?.onTranslationModeChanged()}h2({autoEnableSubtitleChanged:RP,reloadSubtitleWithTranslationModeChanged:FP});var ue=null;function Ou(){return ue||null}function Q0(e){let t=dn(e);Qo(document,e),IP(e),HP(e,t),NP(e),UP(e),OP(ue,t),Fn("Translated"),jP(ue),B6(is),BP(ue),Lf(),QP()}function IP(e){let t=e.rule.initialSelectorGlobalAttributes;if(e.state.translationArea==="main"&&t){let n=dn(e);e.rule.navHeadEnableTranslate&&Object.entries(t).forEach(([r,a])=>{a.sideHead&&delete t[r]}),T6(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}Jo(e)&&wt(document.documentElement,J+"_rtl",e.targetLanguage)}function BP(e){let t=e.ctx;Gv(t,!0),_6(e),Ay(window.location.href)}function _P(e){let t=e.ctx;Gv(t,!1),O6()}async function OP(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=D6(e.ctx,t);if(k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await xa(s,e);await xa(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await xa(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await xa(s,e)}async function NP(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Yt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function jP(e){e.ctx.rule.isTranslateTitle&&(Gg(e.ctx),e.titleDynamicObserver=P6(e.ctx))}function UP(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Mf(e,t){ue&&(e.isRichTranslate=Do(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=dn(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Gr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function HP(e,t){let n=zs();ue&&(n=ue.id),ue=ue||{},ue.ctx=e,ue.id=n,ue.paragraphQueue=ue.paragraphQueue||[],Mf(e,t),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||KP(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||YP(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||WP(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||GP(ue),ue.injectCssToDocument=Y0,ue.walkContainer=va,e.specialAiAssistant=Mr(e,e.translationService,!0),window.onerror=zP(ue,e),window.immersiveTranslateSwitchTranslateState=Rf.bind(ue)}function Hv(e,t){t.getRootNode()instanceof ShadowRoot?Y0(t.getRootNode(),e):Y0(t.ownerDocument,e),qP(e)}function qP(e){ue||(ue={},ue.ctx=e,ue.id=zs(),Pf(ue,e))}function Pf(e,t){e.paragraphQueue=[],e.injectCssToDocument=Y0,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=Rf.bind(e);let n=Mr(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=Do(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function is(e=!0){ue&&(Fn("Original"),Lf(),_P(ue),Au(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),R6(ue.ctx),xy(),Sy(),e&&Rf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function zP(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),is(),n=setTimeout(()=>{Q0(t)},e.urlChangeDelay||2e3)),!0}}function WP(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await Qg(e,r.target),n.unobserve(r.target))})}function GP(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{Jg(e,o)}),n.unobserve(a)}})})}var Nv;function VP(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(Nv),e.translateState=="original"?!1:(is(e.urlChangeDelay>20),Nv=setTimeout(()=>{let a=e.ctx;Q0(a)},e.urlChangeDelay),!0)):!1}function KP(e){let t=e.ctx.rule,n=dn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&VP(e)||e.interruptEffectDOM)return;let a=zc(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!nr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&nr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Ul)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;jv(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&tf(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&jv(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!Et(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||zr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Fo(n,o.parentElement);l&&(ht.clearToParentMark(o,l),Uv(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||Et(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Dt])?!1:o.contains(l)).length&&Uv(e,i.target)}catch(o){k.error(o)}})}function jv(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(Et(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{ef(n),va({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{ji(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function Uv(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{xa(t,e,n),i.timer=null},a)}function ef(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Dt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function tf(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||Et(n,["."+Dt]))).length==0}function YP(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);Ng(i)||(n.unobserve(r.target),ht.clearMark(a),xa(a,e))}})}async function Rf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Ir(),await pt(50),Zt({method:"translatePage"});return}this.translateState=e,Gr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Gr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Eu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Dt}`).forEach(t=>t.remove())}function Y0(e,t){if(e instanceof HTMLIFrameElement){Qo(e.contentDocument,t);return}Qo(e,t)}async function qv(e){let t=Ke(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Tp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})):(r=Co(e.mainFrame).slice(0,1e3),n=await Be({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Be({text:Co(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Tp(e.mainFrame),n=await Be({text:r,pageLangs:["en"]})}else n=await v2();return n==="auto"&&(n=await w6()),m2(n),n}async function zv(){if(!ue)return;Au(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Ol}='${n}']`);i&&i.remove()}}E0.call(ue,ue.ctx)}async function Ff(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),_e("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:mt()});let r=ue?.ctx||t,a=await Yt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:F6(r)},await zt(a);let o=be().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ur(o)}catch(i){k.error(i)}}async function Wv(){let e=await Yt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(W3,{detail:JSON.stringify(e.draft)}))}async function QP(){try{if(await Di("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Dr();await K({url:ut+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Cr("reportActive","1")}catch(e){k.error(e)}}function Gv(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(ro,{detail:{tempEnableSubtitle:t}}))}function If(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Nn(o,s=>{s.preventDefault();let u=r[i];Zt({method:u,data:{trigger:"shortcut"}})})}}var JP="imt-fb";function Ft({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?x("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${JP}-logo-img`,children:[x("path",{fill:"none",d:"M0 0h24v24H0z"}),x("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_2589_9951)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),x("defs",{children:x("clipPath",{id:"clip0_2589_9951",children:x("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),x("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?x("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("g",{id:"manhua",children:[x("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),x("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?x("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),x("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),x("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),x("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),x("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),x("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),x("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),x("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),x("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),x("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),x("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),x("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?x("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[x("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),x("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),x("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#272727"}),x("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function Vv(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var J0="DROP_DOWN_DEFAULT_VALUE";function Bf(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ee(null);return x("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:J0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==J0){s.current.value=J0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:J0,label:e.label}].concat(a).map((u,l)=>x("option",{value:u.value,children:u.label},"option-"+l))})}function os(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var ZP=({date:e})=>{let{t}=se(),[n,r]=W(!1);return ee(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:x("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},XP=({minVersion:e})=>{let{t}=se();return x("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},$P=()=>{let{t:e}=se();return x("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},eR=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return x("p",{class:"text-sm",children:[r("failToSyncRules")," ",x("a",{onClick:t,children:r("retry")}),x("br",{}),r("failedReason"),"\uFF1A",e,x("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function _f(e){let{isShowError:t,request:n}=e,[r,a]=W(null),{t:i}=se(),[o,s]=W(null),[u,l]=W(null),[c,d]=W(""),[m,p]=W(!1),[g,h]=W(!1),[b,f]=W(!1),[y,v]=W(null),[S,T]=W(null),w=Wt(),E=async()=>{d("");let A=o;if(o===null)try{let D=await n({url:Fs});D?(s(D),A=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return ee(()=>{Mt().then(A=>{let D=A.buildinConfigUpdatedAt;v(A);let M=new Date(D);if(a(D),w==="0.0.0"){f(!0);return}n({url:Fs}).then(B=>{let F=B,_=F.minVersion,L=w;s(F);let N=F.latestVersion;if(N&&(os(L,N)?T(!0):T(!1)),os(L,_)){let I=F.buildinConfigUpdatedAt;new Date(I)>M?(l(!0),E()):l(!1)}else h(!0),l(null)}).catch(B=>{l(null),d(B.message)})})},[]),ee(()=>{Mt().then(A=>{v(A),ba(A)})},[r]),y?x("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?x($P,{}):c?t===!1?null:x(eR,{handleSyncing:E,message:c,date:r||""}):g?t===!1?null:x(XP,{minVersion:o.minVersion}):u===null||u===!0?null:m?x(ZP,{date:r}):null}):null}function tR(){return navigator.userAgent.indexOf("Mac")!==-1}var Kv={Alt:"\u2325"};function ss(e=""){return tR()?Object.keys(Kv).reduce((t,n)=>t.replace(n,Kv[n]),e):e}var Yv=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),x("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),x("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var Qv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Jv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),x("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),x("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Zv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),x("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Xv=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var $v=x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),x("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),ex=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[x("g",{"clip-path":"url(#clip0_13006_12686)",children:[x("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),x("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),x("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),x("defs",{children:[x("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#FFEAB5"}),x("stop",{offset:"1","stop-color":"#F9C235"})]}),x("clipPath",{id:"clip0_13006_12686",children:x("rect",{width:"12",height:"12",fill:"white"})})]})]}),tx=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[x("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),x("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),x("defs",{children:x("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[x("stop",{"stop-color":"#222222"}),x("stop",{offset:"1","stop-color":"#696969"})]})})]}),nx=x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:x("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function us(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function rx(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Ka(t)&&!r?x("div",{}):x("div",{class:"flex items-center",children:[x("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(_s,`${e.type}_user_info`);return}e.onOpenUrl(zl,`${e.type}_user_info`)},children:[x("img",{src:n?ov:iv}),x("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),x(nR,{...e})]})}function nR(e){let{t}=se(),n=he(()=>us(e.config),[e.config]);return e.isProUser?x("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(_s,`${e.type}_pro_logo`)},children:x("img",{src:ns})}):n?x("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||Rn)},children:[x(Ft,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),x("span",{children:n.title})]}):x("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(Rn,`${e.type}_user_upgrade`)},children:[ex,x("span",{children:t("popup.upgrade")})]})}var ai=(e,t,n,r)=>{let a=z1[e]||e,i=zm[e]||e,o=Wm[e],s=Gm[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Of(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Wm,a="zh-CN"):n==="zh-TW"?(r=Gm,a="zh-TW"):(r=zm,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function ax({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=x0(t.config.translationService,t.config.targetLanguage),s=Zn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return x("div",{class:"flex mt-4 items-center",children:[x(rR,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),x("img",{src:sv,style:{maxWidth:"unset"},class:"mx-2"}),x(aR,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function rR(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),x("div",{class:"language-select-container",children:[x("label",{children:a}),x("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Of(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=ai(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=ai(r,e.interfaceLanguage)+` (${t("languages.auto")})`),x("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function aR(e){return x("div",{class:"language-select-container",children:[x("label",{children:e.label}),x("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Of(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=ai(t,e.interfaceLanguage);return x("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ii(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),x("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>x("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Nf;function Yf(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function px(e,t=","){return e.map(Yf).join(t)}var gx=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function X0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function $0(e,t="@media "){return t+ar(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ar(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function iR(){}var mn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function fx(e){return e.match(/[-=:;]/g)?.length||0}function Wf(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(fx(e),15)<<18}var oR=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Qf({n:e,i:t,v:n=[]},r,a,i){e&&(e=Yf({n:e,i:t,v:n})),i=[...ar(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ar(u&&$0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|Wf(l):s=="dark"?1073741824:l[0]=="@"?Wf(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~oR.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Jf=new Map;function ix(e){if(e.d){let t=[],n=jf(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?jf(r,i=>jf(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):Uf(i,o)}return Uf(o,i)})):r,"&"),r=>Uf(r,e.n?"."+gx(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function jf(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function Uf(e,t){return e.replace(/&/g,t)}var ox=new Intl.Collator("en",{numeric:!0});function sR(e,t){for(var n=0,r=e.length;n>1;0>=hx(e[a],t)?n=a+1:r=a}return r}function hx(e,t){let n=e.p&mn.o;return n==(t.p&mn.o)&&(n==mn.b||n==mn.o)?0:e.p-t.p||e.o-t.o||ox.compare(sx(e.n),sx(t.n))||ox.compare(ux(e.n),ux(t.n))}function sx(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function ux(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Hf(e,t){return Math.round(parseInt(e,16)*t)}function oi(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[Hf(e.substr(1,i),o),Hf(e.substr(1+i,i),o),Hf(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function bx(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let v=o[y];if(y[0]=="@"){if(!v)continue;if(y[1]=="a"){m.push(...vx(s,u,Xf(""+v),d,u,l,c,!0));continue}if(y[1]=="l"){for(let S of ar(v))m.push(...i(S,{n:s,p:(b=mn[y[7]],u&~mn.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ar(v).map(S=>({p:-1,o:0,r:[],d:y+" "+S})));continue}if(y[1]=="k"){m.push({p:mn.d,o:0,r:[y],d:i(v,{p:mn.d},d).map(ix).join("")});continue}if(y[1]=="f"){m.push(...ar(v).map(S=>({p:mn.d,o:0,r:[y],d:i(S,{p:mn.d},d).map(ix).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))y=="label"&&v?s=v+X0(JSON.stringify([u,c,o])):(v||v===0)&&(y=y.replace(/[A-Z]/g,S=>"-"+S.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:fx(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ar(v).map(S=>d.s(y,yx(""+S,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let S=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(T,w)=>{let E=d.theme("screens",w);return E?(S|=67108864,$0(E,"")):T}),S|=Wf(y)),m.push(...i(v,{n:s,p:S,r:[...l,y],i:c},d))}else m.push(...i(v,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(hx)}(e,Qf(t,n,r,a),n)}function yx(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?oi(s):""+ar(s).filter(u=>Object(u)!==u)})}function Zf(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Gf(e,t,n=mn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=Jf.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=Qf(u,l,c,d),Zf(Gf(Xf(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ar(d),...ar(g.r)],p:(h=c,b=g.p??c,h&~mn.o|b)}}):bx(p,u,l,c,d):[{c:Yf(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(sR(i,s),0,s);return i}function vx(e,t,n,r,a,i,o,s){return Zf((s?n.flatMap(u=>Gf([u],r,a,i,o)):Gf(n,r,a,i,o)).map(u=>u.p&mn.o&&(u.n||t==mn.b)?{...u,p:u.p&~mn.o|t,o:0}:u),e)}function uR(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=Qf(i,o,t);return n&&vx(s,t,n,o,u,l,c,r)},Jf.set(e,a),e}function qf(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(lR),i:a}))}}function lR(e,t,n){return n.indexOf(e)==t}var lx=new Map;function Xf(e){let t=lx.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&qf(n,r)),a=s+1};for(;s1?d.slice(0,-1)+X0(JSON.stringify([d,m])):d+"("+px(m)+")",mn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),lx.set(e,t=r[0])}return t}function xx(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function Sx(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?xx(e,t,n=>zf(n).trim()):t.filter(Boolean).reduce((n,r)=>n+zf(r),e?zf(e):"")}function zf(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Sx(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var z0e=Tx("@"),W0e=Tx("~");function Tx(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return px(Xf(n+e+"("+Sx(r,a)+")"))}}function Vf(e,t){return Array.isArray(e)?cx(xx(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?cx(e):[e]}var cR=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function cx(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=cR.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Cx(e,...t){var n;let r=Vf(e,t),a=(r.find(i=>i.label)?.label||"css")+X0(JSON.stringify(r));return n=(i,o)=>Zf(r.flatMap(s=>bx(s,i,o,mn.o)),a),Jf.set(a,n),a}var G0e=new Proxy(function(e,t){return dx("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return dx(t,n,r)}}});function dx(e,t,n){return{toString(){return Cx({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function Z(e,t,n){return[e,dR(t,n)]}function dR(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Kf(n,1)}):n=>e||{[n[1]]:Kf(n,2)}}function Kf(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,r){return[e,mR(t,n,r)]}function mR(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=wx(e||a[1]),s=i.theme(o,a.$$)??ls(a.$$,o,i);if(s!=null)return a._=Kf(a,0,s),r(a,i,o)}}function Xt(e,t={},n){return[e,pR(t,n)]}function pR(e={},t){return(n,r)=>{let{section:a=wx(n[0]).replace("-","")+"Color"}=e,[i,o]=gR(n.$$);if(!i)return;let s=r.theme(a,i)||ls(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&ls(o,l,r),p=t||(({_:h})=>{let b=Nu(c,h);return d?{[d]:b}:b});n._={value:oi(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>oi(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:oi(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>oi(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function gR(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Nu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ls(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Z0(yx(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function wx(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Z0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>Z0(n)+r+Z0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var V0e=Symbol();var Ex=new Proxy(iR,{apply(e,t,n){return Nf(n[0])},get(e,t){let n=Nf[t];return typeof n=="function"?function(){return n.apply(Nf,arguments)}:n}});var K0e=function e(t){return new Proxy(function(n,...r){return mx(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return mx(t,r,a,i)}}})}();function mx(e,t,n,r){return{toString(){let a=Vf(n,r),i=gx(t+X0(JSON.stringify([t,a])));return(typeof e=="function"?e:Ex)(Cx({[`@keyframes ${i}`]:Vf(n,r)})),i}}}var Ax={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...ir(4,"rem",4,.5,.5),...ir(12,"rem",4,5),14:"3.5rem",...ir(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Qe("blur"),backdropBrightness:Qe("brightness"),backdropContrast:Qe("contrast"),backdropGrayscale:Qe("grayscale"),backdropHueRotate:Qe("hueRotate"),backdropInvert:Qe("invert"),backdropOpacity:Qe("opacity"),backdropSaturate:Qe("saturate"),backdropSepia:Qe("sepia"),backgroundColor:Qe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Qe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...ir(200,"",100,0,50),...ir(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Qe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Qe("spacing"),borderWidth:{DEFAULT:"1px",...pr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Qe("colors"),caretColor:Qe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...ir(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Qe("borderColor"),divideOpacity:Qe("borderOpacity"),divideWidth:Qe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...ju(2,6),...ju(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Qe("spacing"),gradientColorStops:Qe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...ju(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...ju(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...ir(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...ir(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Qe("spacing"),placeholderColor:Qe("colors"),placeholderOpacity:Qe("opacity"),outlineColor:Qe("colors"),outlineOffset:pr(8,"px"),outlineWidth:pr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Qe("colors"),ringOffsetWidth:pr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...pr(8,"px")},rotate:{...pr(2,"deg"),...pr(12,"deg",3),...pr(180,"deg",45)},saturate:ir(200,"",100,0,50),scale:{...ir(150,"",100,0,50),...ir(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Qe("spacing"),scrollPadding:Qe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...pr(2,"deg"),...pr(12,"deg",3)},space:Qe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:ir(2),textColor:Qe("colors"),textDecorationColor:Qe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...pr(8,"px")},textUnderlineOffset:{auto:"auto",...pr(8,"px")},textIndent:Qe("spacing"),textOpacity:Qe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Qe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...ju(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...ir(50,"",1,0,10),auto:"auto"}};function ju(e,t){let n={};do for(var r=1;rt(e)}var dde={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Ax.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Ax.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},pde=[Z("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ls(`[${t}]`,"",n)}}})),Z("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),Z("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[$0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),Z("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),Z("box-(border|content)","boxSizing",({1:e})=>e+"-box"),Z("hidden",{display:"none"}),Z("table-(auto|fixed)","tableLayout"),Z(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",Z("isolate","isolation"),Z("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),Z("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ed),Z("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),Z("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),Z("(visible|collapse)","visibility"),Z("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),Z("flex-((row|col)(-reverse)?)","flexDirection",kx),Z("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),Z("grid-cols-(\\d+)","gridTemplateColumns",Px),te("col-","gridColumn"),Z("col-(span)-(\\d+)","gridColumn",Mx),te("col-start-","gridColumnStart"),Z("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),Z("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),Z("grid-rows-(\\d+)","gridTemplateRows",Px),te("row-","gridRow"),Z("row-(span)-(\\d+)","gridRow",Mx),te("row-start-","gridRowStart"),Z("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),Z("row-end-(auto|\\d+)","gridRowEnd"),Z("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ed(kx(e))),Z("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",Z("justify-","justifyContent",Dx),Z("(content|items|self)-",e=>({["align-"+e[1]]:Dx(e)})),Z("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",cs("padding")),te("-?m([xytrbl])?(?:$|-)","margin",cs("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),Z("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=ar(e))[1]=="string"?{fontFamily:Br(e)}:{fontFamily:Br(e[0]),...e[1]}),Z("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),Z("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),Z("italic","fontStyle"),Z("not-italic",{fontStyle:"normal"}),Z("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...si({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),Z("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),Z("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Xt("placeholder-",{property:"color",selector:"&::placeholder"}),Z("text-(left|center|right|justify|start|end)","textAlign"),Z("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),Xt("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),Z("(overline|underline|line-through)","textDecorationLine"),Z("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),Xt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),Z("decoration-","textDecorationStyle"),Z("(uppercase|lowercase|capitalize)","textTransform"),Z("normal-case",{textTransform:"none"}),Z("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Z("align-","verticalAlign"),Z("whitespace-","whiteSpace"),Z("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),Z("break-words",{overflowWrap:"break-word"}),Z("break-all",{wordBreak:"break-all"}),Z("break-keep",{wordBreak:"keep-all"}),Xt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Xt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),Z("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qi(e," ")},var(--tw-gradient-stops))`),Xt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Xt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Xt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),Z("bg-(fixed|local|scroll)","backgroundAttachment"),Z("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),Z(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),Z("bg-blend-","backgroundBlendMode"),Z("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Xt("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),Z("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ed),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qi(n[0])}-radius`]:t,[`border-${qi(n[1])}-radius`]:t}}),Z("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),Z("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...si({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Xt("border-([xytrbl])-",{section:"borderColor"},cs("border","Color")),Xt("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",cs("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),Z("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),Z("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Xt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Xt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),Z("ring-inset",{"--tw-ring-inset":"inset"}),Xt("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":oi(t("ringOffsetColor","","#fff")),"--tw-ring-color":oi(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Xt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Br(e),"--tw-shadow-colored":Br(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),Z("mix-blend-","mixBlendMode"),...Lx(),...Lx("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Br(e),transitionTimingFunction:e._=="none"?void 0:Br(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Br(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Br),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Br),te("delay(?:$|-)","transitionDelay","transitionDelay",Br),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Br(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",Z("transform",eh),Z("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Rx(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...eh()})),te("-?(rotate)-","rotate",$f),te("-?(translate-[xy])-","translate",$f),te("-?(skew-[xy])-","skew",$f),Z("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ed),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",Z("snap-(none)","scroll-snap-type"),Z("snap-(x|y|both)",({1:e})=>({...si({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),Z("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),Z("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),Z("snap-(normal|always)","scroll-snap-stop"),Z("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",cs("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",cs("scroll-margin")),Z("touch-(auto|none|manipulation)","touch-action"),Z("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...si({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),Z("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),Z("outline",{outlineStyle:"solid"}),Z("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),Xt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],Z("select-(none|text|all|auto)","userSelect"),Xt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Xt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),Z("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),Z("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ed(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function kx(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Br(e){return e&&""+(e._||e)}function Dx({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function cs(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Nu(e+"-"+qi(a[0])+t,r),...Nu(e+"-"+qi(a[1])+t,r)}:Nu(e+t,r)}}function Lx(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...si(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,Z(`${e}filter`,n),...t.map(r=>te(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ar(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function $f({1:e,_:t}){return{["--tw-"+e]:t,...eh()}}function eh(){return{...si({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Rx()}),transform:"var(--tw-transform)"}}function Rx(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Mx({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Px({1:e}){return`repeat(${e},minmax(0,1fr))`}function si(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var td=globalThis||(typeof window<"u"?window:self),bR=Object.create,nh=Object.defineProperty,yR=Object.getOwnPropertyDescriptor,vR=Object.getOwnPropertyNames,xR=Object.getPrototypeOf,SR=Object.prototype.hasOwnProperty,TR=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),CR=(e,t)=>{for(var n in t)nh(e,n,{get:t[n],enumerable:!0})},th=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vR(t))!SR.call(e,a)&&a!==n&&nh(e,a,{get:()=>t[a],enumerable:!(r=yR(t,a))||r.enumerable});return e},wR=(e,t,n)=>(th(e,t,"default"),n&&th(n,t,"default")),Ix=(e,t,n)=>(n=e!=null?bR(xR(e)):{},th(t||!e||!e.__esModule?nh(n,"default",{value:e,enumerable:!0}):n,e)),Bx=TR((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof td=="object"&&td.global===td?td:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var v=b.result;v=h?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),_x={};CR(_x,{default:()=>nd});var ER=Ix(Bx());wR(_x,Ix(Bx()));var{default:Fx,...AR}=ER,nd=Fx!==void 0?Fx:AR;function Xx(e){return typeof e>"u"||e===null}function kR(e){return typeof e=="object"&&e!==null}function DR(e){return Array.isArray(e)?e:Xx(e)?[]:[e]}function LR(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function ah(e,t){return $t.repeat(" ",t-e.length)+e}function NR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=rh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=$t.repeat(" ",t.indent)+ah((e.line-u+1).toString(),c)+" | "+l.str+` -`+s;for(l=rh(e.buffer,r[o],a[o],e.position,d),s+=$t.repeat(" ",t.indent)+ah((e.line+1).toString(),c)+" | "+l.str+` -`,s+=$t.repeat("-",t.indent+c+3+l.pos)+`^ -`,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=rh(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=$t.repeat(" ",t.indent)+ah((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var jR=NR,UR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],HR=["scalar","sequence","mapping"];function qR(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function zR(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(UR.indexOf(n)===-1)throw new Hn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=qR(t.styleAliases||null),HR.indexOf(this.kind)===-1)throw new Hn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Tn=zR;function Ox(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function WR(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),dF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mF(e){return!(e===null||!dF.test(e)||e[e.length-1]==="_")}function pF(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var gF=/^[-+]?[0-9]+e/;function fF(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if($t.isNegativeZero(e))return"-0.0";return n=e.toString(10),gF.test(n)?n.replace("e",".e"):n}function hF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||$t.isNegativeZero(e))}var bF=new Tn("tag:yaml.org,2002:float",{kind:"scalar",resolve:mF,construct:pF,predicate:hF,represent:fF,defaultStyle:"lowercase"}),yF=QR.extend({implicit:[$R,rF,cF,bF]}),vF=yF,eS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function xF(e){return e===null?!1:eS.exec(e)!==null||tS.exec(e)!==null}function SF(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=eS.exec(e),t===null&&(t=tS.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function TF(e){return e.toISOString()}var CF=new Tn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xF,construct:SF,instanceOf:Date,represent:TF});function wF(e){return e==="<<"||e===null}var EF=new Tn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wF}),dh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function AF(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=dh;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function kF(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=dh,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function DF(e){var t="",n=0,r,a,i=e.length,o=dh;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function LF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var MF=new Tn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:AF,construct:kF,predicate:LF,represent:DF}),PF=Object.prototype.hasOwnProperty,RF=Object.prototype.toString;function FF(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var sS=new Array(256),uS=new Array(256);for(zi=0;zi<256;zi++)sS[zi]=Ux(zi)?1:0,uS[zi]=Ux(zi);var zi;function XF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nS,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function lS(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=jR(n),new Hn(t,n)}function ve(e,t){throw lS(e,t)}function id(e,t){e.onWarning&&e.onWarning.call(null,lS(e,t))}var Hx={YAML:function(e,t,n){var r,a,i;e.version!==null&&ve(e,"duplication of %YAML directive"),n.length!==1&&ve(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ve(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ve(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&id(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ve(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],iS.test(r)||ve(e,"ill-formed tag handle (first argument) of the TAG directive"),li.call(e.tagMap,r)&&ve(e,'there is a previously declared suffix for "'+r+'" tag handle'),oS.test(a)||ve(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ve(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ui(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=$t.repeat(` -`,t-1))}function $F(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),qn(p)||ms(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),qn(a)||n&&ms(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),qn(a)||n&&ms(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),qn(r))break}else{if(e.position===e.lineStart&&ud(e)||n&&ms(p))break;if(ta(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ui(e,i,o,!1),ph(e,e.line-u),i=o=e.position,s=!1),Wi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ui(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function eI(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ui(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ta(n)?(ui(e,r,a,!0),ph(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&ud(e)?ve(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ve(e,"unexpected end of the stream within a single quoted scalar")}function tI(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ui(e,n,e.position,!0),e.position++,!0;if(s===92){if(ui(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ta(s))Gt(e,!1,t);else if(s<256&&sS[s])e.result+=uS[s],e.position++;else if((o=QF(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=YF(s))>=0?i=(i<<4)+o:ve(e,"expected hexadecimal character");e.result+=ZF(i),e.position++}else ve(e,"unknown escape sequence");n=r=e.position}else ta(s)?(ui(e,n,r,!0),ph(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ud(e)?ve(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ve(e,"unexpected end of the stream within a double quoted scalar")}function nI(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&ve(e,"expected the node content, but found ','"):ve(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),qn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,gs(e,t,rd,!1,!0),b=e.tag,h=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),gs(e,t,rd,!1,!0),f=e.result),p?ps(e,s,g,b,h,f,r,a,i):d?s.push(ps(e,null,g,b,h,f,r,a,i)):s.push(h),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}ve(e,"unexpected end of the stream within a flow collection")}function rI(e,t){var n,r,a=ih,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)ih===a?a=d===43?Nx:WF:ve(e,"repeat of a chomping mode identifier");else if((c=JF(d))>=0)c===0?ve(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ve(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Wi(d)){do d=e.input.charCodeAt(++e.position);while(Wi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ta(d)&&d!==0)}for(;d!==0;){for(mh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ta(d)){u++;continue}if(e.lineIndentt)&&u!==0)ve(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),gs(e,t,ad,!0,a)&&(b?g=e.result:h=e.result),b||(ps(e,d,m,p,g,h,o,s,u),p=g=h=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)ve(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&ve(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ve(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function uI(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!qn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ve(e,"directive name must not be less than one character in length");o!==0;){for(;Wi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ta(o));break}if(ta(o))break;for(n=e.position;o!==0&&!qn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&mh(e),li.call(Hx,r)?Hx[r](e,r,a):id(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&ve(e,"directives end mark is expected"),gs(e,e.lineIndent-1,ad,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&VF.test(e.input.slice(t,e.position))&&id(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ud(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=cS(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await Zt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=L0(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),Mu(this.ctx,n,r)}getTranslationMode(t){return Ta(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector)||!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n,r){if(!this.config.attachRule?.appendSelector)return;ze(this.ctx,n);let a=t.filter(i=>i.text);Sa(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:a,ctx:this.ctx,lang:n},r),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(Pu(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Ln(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&Xo({id:P+"quick-button",parent:n,ctx:this.ctx,Component:bx,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle},style:yx+this.config.quickButtonRule?.injectCSS||""})}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Hi.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return lc(t.slice(0,50).map(n=>n.text).join(" "))}};function kf(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function P0(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}function Px(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var _0=class extends tt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){let t=super.isEnableSubtitle();return this.config.translationOnlyPattern&&!We(Se(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=Xe(Q(r),this.ctx.targetLanguage);if(a||Ta(r,this.ctx.targetLanguage)){let d=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(d)return this.loadSubtitle(d)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(d=>d===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(rx(t)&&(o||u)){let d=await this.requestOriginalEvents(t);u&&this.requestServerMerge(d,r);let m=nx(d,r,this.ctx.rule.ytAsrConfig);if(m){this.attachSubtitle(m,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let d=this.formatToSubtitleItem(l);return this.attachSubtitle(d,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ut}subtitles/yt-asr-subs`;try{let a=await P0(t),o=(await K({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!Xe(Q(o),r)&&!Ta(Q(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(d=>!Xe(Q(d.languageCode),r)&&!Ta(Q(d.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(d=>d.kind);if(!u&&s.length&&(u=s.sort((m,p)=>Q(m.languageCode)==="en"?-1:0)[0]),!u)return;let l=Q(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=Px(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>Q(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>Q(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return Q(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!Xe(Q(a[u]),this.ctx.targetLanguage)&&!Ta(Q(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:H6(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,d,m)=>{if(m==0)return c=c.concat(d),c;let p=c[c.length-1];return d.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await Ge(Se(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&Pu(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await Ge(Se(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let i=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(i?.width&&i.width<500)return!1}let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=k0(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await Ie({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe(Q(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Se()&&(this.lastReportUrl=Se(),ze(this.ctx,Q(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,d)=>{i[d]&&(i[d].innerHTML=c.displayText)}),D0(a.arrayBuffer,a.document))}catch{}}};var R0=class extends tt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang,!0)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe(Q(i),this.ctx.targetLanguage))return null;ze(this.ctx,Q(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:Q(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,Q(i),!0);return}this.downloadSubtitle(o,Q(i),[]);let u=await this.requestHumanSubtitle(o,Q(i),r);if(u)return this.handleIOSFullScreen(u,Q(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,Q(i));return l?(this.handleIOSFullScreen(l,Q(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[Q(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=ts(s,u,"
");return l.forEach((c,d)=>{i.length<=d||(i[d].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!X()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));Du(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let d=a[l],m=a[c];if(!(!d||!m)){if(d.y>m.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Se()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ri=class extends tt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(Xe(Q(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),Q(i.language)),i.isTranslated=!0;return}ze(this.ctx,Q(i.language)),this.translateSubtitle([...i.cues||[]],Q(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>SP(i.text));return(await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].text=i.displayText}),t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}};function SP(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var ea=class extends ri{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&ze(this.ctx,Q(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(Xe(Q(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,Q(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var rs=class extends ea{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=es(r),i=await Ie({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(i),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ni(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var F0=class extends tt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(Xe(Q(a),this.ctx.targetLanguage))return null;ze(this.ctx,Q(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,Q(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:lf(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=Rr(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${lf(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var I0=class extends ri{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(Xe(Q(i),this.ctx.targetLanguage))return null;ze(this.ctx,Q(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,Q(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,Q(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=Qo(t),s=Qo(i),u=ts(o,s);return{text:ni(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=Qo(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=Rr(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),ni(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[Q(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Se()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var B0=class extends tt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=_x(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=_x(o,r.itemsPath):s=wP(o,r),!s?.length)continue;let u=await Ie({text:s.map(l=>Iu(l,r.textKey)).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Iu(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Iu(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=CP(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function _x(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Ro(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,ze(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Dt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Dt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return rr(t,["."+Dt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Dt);if(!a){let o=document.createElement("font");o.classList.add(Dt),o.classList.add("notranslate");let s=Mp(t);o.append(Je.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await Ie({text:n,pageLangs:[mt(),"en"]});return Lo(t,r)?void 0:(await Qr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=$e(),n=await Ge(Se(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await Ge(Se(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var O0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=EP(r),o=await Ie({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Rx(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(o));let s=await this.translateSubtitle(a,i,Q(o));if(this.config.enableHookDownload)try{let u=Rx(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),Q(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=Rr(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],d="br";c.length>1&&(d=c[0]+":"+d);let m=t.createElementNS(Bu,d),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(m),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Bu="http://www.w3.org/ns/ttml";function EP(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Bu,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Bu,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Bu,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Rx(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Bu,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:Fx(i),end:Fx(o),text:s})}),r}function Fx(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var N0=class extends tt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=es(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(Xe(o,this.ctx.targetLanguage))return null;if(ze(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,Q(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=ts(n.subtitles,Qo(u));return n.subtitles=l,ni(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await Zt({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=Rr(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),ni(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>Q(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=DP(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return Ie({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Se()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=kP(r),i=AP(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function AP(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function kP(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function DP(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var j0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=k0(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await Ie({text:o.join(` +`),pageLangs:[Ct(),"en"]});return Xe(Q(s),this.ctx.targetLanguage)?null:(ze(this.ctx,Q(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},d)=>{i[d]&&(i[d].innerHTML=c)}),D0(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var U0=class extends tt{async requestSubtitle(t){let n=await Ge(Se(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new rs(this.ctx).loadSubtitle(i.url);if(!s)return;let u=tf(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}N6(a),sf(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var H0=class extends tt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(Ix).forEach(n=>{Ix[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),Xe(Q(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(ze(this.ctx,t),Sa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=W6(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},Ix={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var q0=class extends ea{constructor(t){super(t),new as(t)}};var z0=class extends ea{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Hi.parse(r),i=a.filter(c=>c.type==="caption"),o=await Ie({text:i.map(c=>c.text).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,d)=>{c.text=u[d].displayText}),Hi.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var W0=class extends tt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await Ie({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ct(),"en"]});if(Xe(Q(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),ze(this.ctx,Q(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),Q(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),d=[];return c.querySelectorAll(o).forEach(p=>{let g=this.getTimeStr(n,a,p)||"",h=this.getTimeStr(r,i,p)||"",b=rf(g,l),f=rf(h,l),y=sn(b),x=sn(f);u==="duration"&&(x=y+x);let T=s?p.querySelector(s)?.textContent:p.textContent;d.push({start:y,end:x,text:(T||"").trim()})}),d}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var G0=class extends tt{hasSubtitle=!1;async mutationVideoChange(){let t=LP(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(ze(this.ctx,"ja","av"),this.hasSubtitle=!0,Sa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await K({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Hi.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function LP(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var V0=class extends tt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(ze(this.ctx,n.language_code),Sa(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var MP={youtube:_0,netflix:R0,webvtt:rs,khanacademy:F0,udemy:I0,hulu:U0,mubi:V0,text_track:ri,text_track_dynamic:ea,general:B0,live:as,ebutt:O0,disneyplus:N0,"fmp4.xml":j0,multi_attach_vtt:H0,twitter:q0,subsrt:z0,xml:W0,av:G0},K0;async function Bx(e){try{X()&&await pt(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=MP[t.type];if(!n)return;K0=new n(e)}catch(t){k.error(t)}}async function Df(){K0?.onPageStatusChange()}async function PP(e,t){if(K0?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&Ke())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Be("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function _P(){K0?.onTranslationModeChanged()}f2({autoEnableSubtitleChanged:PP,reloadSubtitleWithTranslationModeChanged:_P});var ue=null;function Ou(){return ue||null}function Y0(e){let t=dn(e);Yo(document,e),RP(e),UP(e,t),OP(e),jP(e),BP(ue,t),Rn("Translated"),NP(ue),F6(is),FP(ue),Df(),$P()}function RP(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=dn(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}T6(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}Zo(e)&&wt(document.documentElement,Z+"_rtl",e.targetLanguage)}function FP(e){let t=e.ctx;Wx(t,!0),I6(e),Ey(window.location.href)}function IP(e){let t=e.ctx;Wx(t,!1),B6()}async function BP(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=k6(e.ctx,t);if(k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await va(s,e);await va(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await va(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await va(s,e)}async function OP(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await $t(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await zt({...t,tempTranslationUrlMatches:[...i]})}}function NP(e){e.ctx.rule.isTranslateTitle&&(Wg(e.ctx),e.titleDynamicObserver=M6(e.ctx))}function jP(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Lf(e,t){ue&&(e.isRichTranslate=Do(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=dn(e)),ue.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},ue.translationService=e.translationService,ue.urlChangeDelay=e.rule.urlChangeDelay,ue.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ue.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",Gr(document.documentElement,ue.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function UP(e,t){let n=zs();ue&&(n=ue.id),ue=ue||{},ue.ctx=e,ue.id=n,ue.paragraphQueue=ue.paragraphQueue||[],Lf(e,t),ue.currentUrl=window.location.href,ue.paragraphEntities=ue.paragraphEntities||{},ue.autoIncreaseParagraphId=ue.autoIncreaseParagraphId||1,ue.interruptEffectDOM=!1,ue.observeContainers=ue.observeContainers||[],ue.observeParagraphs=ue.observeParagraphs||[],ue.dynamicContainerObserver=ue.dynamicContainerObserver||VP(ue),ue.ignoreResizeObserver=ue.ignoreResizeObserver||KP(ue),ue.containerVisibleObserver=ue.containerVisibleObserver||zP(ue),ue.paragraphVisibleObserver=ue.paragraphVisibleObserver||WP(ue),ue.injectCssToDocument=$0,ue.walkContainer=xa,e.specialAiAssistant=Mr(e,e.translationService,!0),window.onerror=qP(ue,e),window.immersiveTranslateSwitchTranslateState=Pf.bind(ue)}function Ux(e,t){t.getRootNode()instanceof ShadowRoot?$0(t.getRootNode(),e):$0(t.ownerDocument,e),HP(e)}function HP(e){ue||(ue={},ue.ctx=e,ue.id=zs(),Mf(ue,e))}function Mf(e,t){e.paragraphQueue=[],e.injectCssToDocument=$0,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=Pf.bind(e);let n=Mr(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=Do(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function is(e=!0){ue&&(Rn("Original"),Df(),IP(ue),Au(),ue.interruptEffectDOM=!0,ue.ignoreResizeObserver?.disconnect(),ue.dynamicContainerObserver?.disconnect(),ue.containerVisibleObserver?.disconnect(),ue.paragraphVisibleObserver?.disconnect(),ue.titleDynamicObserver?.disconnect(),P6(ue.ctx),xy(),vy(),e&&Pf.call(ue,"original"),Object.values(ue.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ue=null)}function qP(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),is(),n=setTimeout(()=>{Y0(t)},e.urlChangeDelay||2e3)),!0}}function zP(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await $g(e,r.target),n.unobserve(r.target))})}function WP(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{Yg(e,o)}),n.unobserve(a)}})})}var Ox;function GP(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(Ox),e.translateState=="original"?!1:(is(e.urlChangeDelay>20),Ox=setTimeout(()=>{let a=e.ctx;Y0(a)},e.urlChangeDelay),!0)):!1}function VP(e){let t=e.ctx.rule,n=dn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&GP(e)||e.interruptEffectDOM)return;let a=zc(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!rr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&rr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Ul)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;Nx(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&ef(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&Nx(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!ht.isSkipMarkEle(i.target)&&!ht.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!Et(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||zr(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Ro(n,o.parentElement);l&&(ht.clearToParentMark(o,l),jx(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||Et(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Dt])?!1:o.contains(l)).length&&jx(e,i.target)}catch(o){k.error(o)}})}function Nx(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(Et(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{Qg(n),xa({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{ji(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function jx(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;ht.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{va(t,e,n),i.timer=null},a)}function Qg(e){e.paragraphs=[],ht.clearMark(e),e.querySelectorAll("."+Dt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,ht.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function ef(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||Et(n,["."+Dt]))).length==0}function KP(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);Og(i)||(n.unobserve(r.target),ht.clearMark(a),va(a,e))}})}async function Pf(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await Fr(),await pt(50),Jt({method:"translatePage"});return}this.translateState=e,Gr(document.documentElement,e),this.inlineIFrames?.forEach(t=>{Gr(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{Eu(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Dt}`).forEach(t=>t.remove())}function $0(e,t){if(e instanceof HTMLIFrameElement){Yo(e.contentDocument,t);return}Yo(e,t)}async function Hx(e){let t=Ke(),n="auto";if(X()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=Tp(e.mainFrame),n=await Ie({text:r,pageLangs:["en"]})):(r=Co(e.mainFrame).slice(0,1e3),n=await Ie({text:r,pageLangs:[Ct(),"en"]}))}else if(t)n=await Ie({text:Co(e.mainFrame).slice(0,1e3),pageLangs:[Ct(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=Tp(e.mainFrame),n=await Ie({text:r,pageLangs:["en"]})}else n=await y2();return n==="auto"&&(n=await C6()),d2(n),n}async function qx(){if(!ue)return;Au(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ue.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){ue.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Ol}='${n}']`);i&&i.remove()}}E0.call(ue,ue.ctx)}async function _f(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Be("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:mt()});let r=ue?.ctx||t,a=await $t();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:_6(r)},await zt(a);let o=be().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ur(o)}catch(i){k.error(i)}}async function zx(){let e=await $t();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(z3,{detail:JSON.stringify(e.draft)}))}async function $P(){try{if(await Di("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await Dr();await K({url:ut+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Cr("reportActive","1")}catch(e){k.error(e)}}function Wx(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(ro,{detail:{tempEnableSubtitle:t}}))}function Rf(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Nn(o,s=>{s.preventDefault();let u=r[i];Jt({method:u,data:{trigger:"shortcut"}})})}}var YP="imt-fb";function Rt({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?v("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${YP}-logo-img`,children:[v("path",{fill:"none",d:"M0 0h24v24H0z"}),v("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("g",{"clip-path":"url(#clip0_2589_9951)",children:v("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),v("defs",{children:v("clipPath",{id:"clip0_2589_9951",children:v("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),v("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?v("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?v("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("g",{id:"manhua",children:[v("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),v("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?v("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),v("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),v("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),v("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),v("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),v("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),v("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),v("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),v("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),v("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),v("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),v("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?v("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[v("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),v("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),v("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),v("defs",{children:v("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#272727"}),v("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function Gx(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let d=n[l].matches;for(let m of d)a[m]||(a[m]=[]),a[m].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(d=>d!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Z0="DROP_DOWN_DEFAULT_VALUE";function Ff(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Ee(null);return v("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Z0,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Z0){s.current.value=Z0,s.current?.dispatchEvent(new Event("change"));let c=a.find(d=>d.value===l);c&&n(c)}},children:[{value:Z0,label:e.label}].concat(a).map((u,l)=>v("option",{value:u.value,children:u.label},"option-"+l))})}function os(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var ZP=({date:e})=>{let{t}=se(),[n,r]=W(!1);return ee(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:v("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},JP=({minVersion:e})=>{let{t}=se();return v("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},XP=()=>{let{t:e}=se();return v("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:ae+"docs/installation/"})}})},QP=({message:e,handleSyncing:t,date:n})=>{let{t:r}=se();return v("p",{class:"text-sm",children:[r("failToSyncRules")," ",v("a",{onClick:t,children:r("retry")}),v("br",{}),r("failedReason"),"\uFF1A",e,v("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function If(e){let{isShowError:t,request:n}=e,[r,a]=W(null),{t:i}=se(),[o,s]=W(null),[u,l]=W(null),[c,d]=W(""),[m,p]=W(!1),[g,h]=W(!1),[b,f]=W(!1),[y,x]=W(null),[T,S]=W(null),w=Wt(),E=async()=>{d("");let A=o;if(o===null)try{let D=await n({url:Rs});D?(s(D),A=D,p(!0)):(d(i("unknownError")),l(null))}catch(D){l(null),d(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(d(i("canNotFetchRemoteRule")),l(null))};return ee(()=>{Mt().then(A=>{let D=A.buildinConfigUpdatedAt;x(A);let M=new Date(D);if(a(D),w==="0.0.0"){f(!0);return}n({url:Rs}).then(I=>{let R=I,B=R.minVersion,L=w;s(R);let N=R.latestVersion;if(N&&(os(L,N)?S(!0):S(!1)),os(L,B)){let F=R.buildinConfigUpdatedAt;new Date(F)>M?(l(!0),E()):l(!1)}else h(!0),l(null)}).catch(I=>{l(null),d(I.message)})})},[]),ee(()=>{Mt().then(A=>{x(A),ba(A)})},[r]),y?v("div",{class:"text-sm mt-2",style:{maxWidth:218},children:b?v(XP,{}):c?t===!1?null:v(QP,{handleSyncing:E,message:c,date:r||""}):g?t===!1?null:v(JP,{minVersion:o.minVersion}):u===null||u===!0?null:m?v(ZP,{date:r}):null}):null}function e_(){return navigator.userAgent.indexOf("Mac")!==-1}var Vx={Alt:"\u2325"};function ss(e=""){return e_()?Object.keys(Vx).reduce((t,n)=>t.replace(n,Vx[n]),e):e}var Kx=v("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),v("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),v("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),v("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var $x=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Yx=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[v("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),v("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),v("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Zx=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),v("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Jx=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var Xx=v("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[v("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),v("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),Qx=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[v("g",{"clip-path":"url(#clip0_13006_12686)",children:[v("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),v("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),v("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),v("defs",{children:[v("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#FFEAB5"}),v("stop",{offset:"1","stop-color":"#F9C235"})]}),v("clipPath",{id:"clip0_13006_12686",children:v("rect",{width:"12",height:"12",fill:"white"})})]})]}),ev=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[v("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),v("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),v("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),v("defs",{children:v("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[v("stop",{"stop-color":"#222222"}),v("stop",{offset:"1","stop-color":"#696969"})]})})]}),tv=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:v("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function us(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function nv(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=se();return Ka(t)&&!r?v("div",{}):v("div",{class:"flex items-center",children:[v("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(Bs,`${e.type}_user_info`);return}e.onOpenUrl(zl,`${e.type}_user_info`)},children:[v("img",{src:n?ix:ax}),v("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),v(t_,{...e})]})}function t_(e){let{t}=se(),n=he(()=>us(e.config),[e.config]);return e.isProUser?v("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(Bs,`${e.type}_pro_logo`)},children:v("img",{src:ns})}):n?v("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||_n)},children:[v(Rt,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),v("span",{children:n.title})]}):v("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(_n,`${e.type}_user_upgrade`)},children:[Qx,v("span",{children:t("popup.upgrade")})]})}var ai=(e,t,n,r)=>{let a=q1[e]||e,i=qm[e]||e,o=zm[e],s=Wm[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Bf(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=zm,a="zh-CN"):n==="zh-TW"?(r=Wm,a="zh-TW"):(r=qm,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function rv({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=se();if(!t)return null;let o=v0(t.config.translationService,t.config.targetLanguage),s=Xn;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return v("div",{class:"flex mt-4 items-center",children:[v(n_,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),v("img",{src:ox,style:{maxWidth:"unset"},class:"mx-2"}),v(r_,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(d=>({...d,targetLanguage:c})),a({targetLanguage:c})}})]})}function n_(e){let{t}=se(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),v("div",{class:"language-select-container",children:[v("label",{children:a}),v("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Bf(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=ai(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=ai(r,e.interfaceLanguage)+` (${t("languages.auto")})`),v("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function r_(e){return v("div",{class:"language-select-container",children:[v("label",{children:e.label}),v("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Bf(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=ai(t,e.interfaceLanguage);return v("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}function ii(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=se();return n=n||(o==="en"?144:160),v("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>v("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}var Of;function Kf(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function mv(e,t=","){return e.map(Kf).join(t)}var pv=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function X0(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Q0(e,t="@media "){return t+ir(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function ir(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function a_(){}var mn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function gv(e){return e.match(/[-=:;]/g)?.length||0}function zf(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(gv(e),15)<<18}var i_=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function $f({n:e,i:t,v:n=[]},r,a,i){e&&(e=Kf({n:e,i:t,v:n})),i=[...ir(i)];for(let s of n){let u=r.theme("screens",s);for(let l of ir(u&&Q0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|zf(l):s=="dark"?1073741824:l[0]=="@"?zf(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~i_.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var Yf=new Map;function av(e){if(e.d){let t=[],n=Nf(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Nf(r,i=>Nf(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):jf(i,o)}return jf(o,i)})):r,"&"),r=>jf(r,e.n?"."+pv(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Nf(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function jf(e,t){return e.replace(/&/g,t)}var iv=new Intl.Collator("en",{numeric:!0});function o_(e,t){for(var n=0,r=e.length;n>1;0>=fv(e[a],t)?n=a+1:r=a}return r}function fv(e,t){let n=e.p&mn.o;return n==(t.p&mn.o)&&(n==mn.b||n==mn.o)?0:e.p-t.p||e.o-t.o||iv.compare(ov(e.n),ov(t.n))||iv.compare(sv(e.n),sv(t.n))}function ov(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function sv(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Uf(e,t){return Math.round(parseInt(e,16)*t)}function oi(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[Uf(e.substr(1,i),o),Uf(e.substr(1+i,i),o),Uf(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function hv(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},d){let m=[],p="",g=0,h=0;for(let y in o||{}){var b,f;let x=o[y];if(y[0]=="@"){if(!x)continue;if(y[1]=="a"){m.push(...yv(s,u,Jf(""+x),d,u,l,c,!0));continue}if(y[1]=="l"){for(let T of ir(x))m.push(...i(T,{n:s,p:(b=mn[y[7]],u&~mn.o|b),r:y[7]=="d"?[]:l,i:c},d));continue}if(y[1]=="i"){m.push(...ir(x).map(T=>({p:-1,o:0,r:[],d:y+" "+T})));continue}if(y[1]=="k"){m.push({p:mn.d,o:0,r:[y],d:i(x,{p:mn.d},d).map(av).join("")});continue}if(y[1]=="f"){m.push(...ir(x).map(T=>({p:mn.d,o:0,r:[y],d:i(T,{p:mn.d},d).map(av).join("")})));continue}}if(typeof x!="object"||Array.isArray(x))y=="label"&&x?s=x+X0(JSON.stringify([u,c,o])):(x||x===0)&&(y=y.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),h+=1,g=Math.max(g,(f=y)[0]=="-"?0:gv(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+ir(x).map(T=>d.s(y,bv(""+T,d.theme)+(c?" !important":""))).join(";"));else if(y[0]=="@"||y.includes("&")){let T=u;y[0]=="@"&&(y=y.replace(/\bscreen\(([^)]+)\)/g,(S,w)=>{let E=d.theme("screens",w);return E?(T|=67108864,Q0(E,"")):S}),T|=zf(y)),m.push(...i(x,{n:s,p:T,r:[...l,y],i:c},d))}else m.push(...i(x,{p:u,r:[...l,y]},d))}return m.unshift({n:s,p:u,o:Math.max(0,15-h)+1.5*Math.min(g||15,15),r:l,d:p}),m.sort(fv)}(e,$f(t,n,r,a),n)}function bv(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?oi(s):""+ir(s).filter(u=>Object(u)!==u)})}function Zf(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function Wf(e,t,n=mn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,d,m){u={...u,i:u.i||m};let p=function(g,h){let b=Yf.get(g.n);return b?b(g,h):h.r(g.n,g.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:d,p:c}=$f(u,l,c,d),Zf(Wf(Jf(p),l,c,d,u.i),u.n)):Array.isArray(p)?p.map(g=>{var h,b;return{o:0,...g,r:[...ir(d),...ir(g.r)],p:(h=c,b=g.p??c,h&~mn.o|b)}}):hv(p,u,l,c,d):[{c:Kf(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(o_(i,s),0,s);return i}function yv(e,t,n,r,a,i,o,s){return Zf((s?n.flatMap(u=>Wf([u],r,a,i,o)):Wf(n,r,a,i,o)).map(u=>u.p&mn.o&&(u.n||t==mn.b)?{...u,p:u.p&~mn.o|t,o:0}:u),e)}function s_(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=$f(i,o,t);return n&&yv(s,t,n,o,u,l,c,r)},Yf.set(e,a),e}function Hf(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(u_),i:a}))}}function u_(e,t,n){return n.indexOf(e)==t}var uv=new Map;function Jf(e){let t=uv.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&Hf(n,r)),a=s+1};for(;s1?d.slice(0,-1)+X0(JSON.stringify([d,m])):d+"("+mv(m)+")",mn.a,m,/@$/.test(d))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),uv.set(e,t=r[0])}return t}function xv(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function vv(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?xv(e,t,n=>qf(n).trim()):t.filter(Boolean).reduce((n,r)=>n+qf(r),e?qf(e):"")}function qf(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=vv(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var q0e=Tv("@"),z0e=Tv("~");function Tv(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return mv(Jf(n+e+"("+vv(r,a)+")"))}}function Gf(e,t){return Array.isArray(e)?lv(xv(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?lv(e):[e]}var l_=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function lv(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=l_.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Sv(e,...t){var n;let r=Gf(e,t),a=(r.find(i=>i.label)?.label||"css")+X0(JSON.stringify(r));return n=(i,o)=>Zf(r.flatMap(s=>hv(s,i,o,mn.o)),a),Yf.set(a,n),a}var W0e=new Proxy(function(e,t){return cv("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return cv(t,n,r)}}});function cv(e,t,n){return{toString(){return Sv({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function J(e,t,n){return[e,c_(t,n)]}function c_(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Vf(n,1)}):n=>e||{[n[1]]:Vf(n,2)}}function Vf(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,r){return[e,d_(t,n,r)]}function d_(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=Cv(e||a[1]),s=i.theme(o,a.$$)??ls(a.$$,o,i);if(s!=null)return a._=Vf(a,0,s),r(a,i,o)}}function Xt(e,t={},n){return[e,m_(t,n)]}function m_(e={},t){return(n,r)=>{let{section:a=Cv(n[0]).replace("-","")+"Color"}=e,[i,o]=p_(n.$$);if(!i)return;let s=r.theme(a,i)||ls(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:d}=e,m=r.theme(l,o||"DEFAULT")||o&&ls(o,l,r),p=t||(({_:h})=>{let b=Nu(c,h);return d?{[d]:b}:b});n._={value:oi(s,{opacityVariable:u||void 0,opacityValue:m||void 0}),color:h=>oi(s,h),opacityVariable:u||void 0,opacityValue:m||void 0};let g=p(n,r);if(!n.dark){let h=r.d(a,i,s);h&&h!==s&&(n._={value:oi(h,{opacityVariable:u||void 0,opacityValue:m||"1"}),color:b=>oi(h,b),opacityVariable:u||void 0,opacityValue:m||void 0},g={"&":g,[r.v("dark")]:p(n,r)})}return g}}function p_(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Nu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ls(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=J0(bv(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Cv(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function J0(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>J0(n)+r+J0(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var G0e=Symbol();var wv=new Proxy(a_,{apply(e,t,n){return Of(n[0])},get(e,t){let n=Of[t];return typeof n=="function"?function(){return n.apply(Of,arguments)}:n}});var V0e=function e(t){return new Proxy(function(n,...r){return dv(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return dv(t,r,a,i)}}})}();function dv(e,t,n,r){return{toString(){let a=Gf(n,r),i=pv(t+X0(JSON.stringify([t,a])));return(typeof e=="function"?e:wv)(Sv({[`@keyframes ${i}`]:Gf(n,r)})),i}}}var Ev={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...or(4,"rem",4,.5,.5),...or(12,"rem",4,5),14:"3.5rem",...or(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Ye("blur"),backdropBrightness:Ye("brightness"),backdropContrast:Ye("contrast"),backdropGrayscale:Ye("grayscale"),backdropHueRotate:Ye("hueRotate"),backdropInvert:Ye("invert"),backdropOpacity:Ye("opacity"),backdropSaturate:Ye("saturate"),backdropSepia:Ye("sepia"),backgroundColor:Ye("colors"),backgroundImage:{none:"none"},backgroundOpacity:Ye("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...or(200,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Ye("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Ye("spacing"),borderWidth:{DEFAULT:"1px",...pr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Ye("colors"),caretColor:Ye("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...or(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Ye("borderColor"),divideOpacity:Ye("borderOpacity"),divideWidth:Ye("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...ju(2,6),...ju(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Ye("spacing"),gradientColorStops:Ye("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...ju(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...ju(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...or(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...or(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Ye("spacing"),placeholderColor:Ye("colors"),placeholderOpacity:Ye("opacity"),outlineColor:Ye("colors"),outlineOffset:pr(8,"px"),outlineWidth:pr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Ye("colors"),ringOffsetWidth:pr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...pr(8,"px")},rotate:{...pr(2,"deg"),...pr(12,"deg",3),...pr(180,"deg",45)},saturate:or(200,"",100,0,50),scale:{...or(150,"",100,0,50),...or(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Ye("spacing"),scrollPadding:Ye("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...pr(2,"deg"),...pr(12,"deg",3)},space:Ye("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:or(2),textColor:Ye("colors"),textDecorationColor:Ye("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...pr(8,"px")},textUnderlineOffset:{auto:"auto",...pr(8,"px")},textIndent:Ye("spacing"),textOpacity:Ye("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Ye("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...ju(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...or(50,"",1,0,10),auto:"auto"}};function ju(e,t){let n={};do for(var r=1;rt(e)}var cde={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Ev.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Ev.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},mde=[J("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ls(`[${t}]`,"",n)}}})),J("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),J("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[Q0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),J("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),J("box-(border|content)","boxSizing",({1:e})=>e+"-box"),J("hidden",{display:"none"}),J("table-(auto|fixed)","tableLayout"),J(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",J("isolate","isolation"),J("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),J("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ed),J("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),J("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),J("(visible|collapse)","visibility"),J("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),J("flex-((row|col)(-reverse)?)","flexDirection",Av),J("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),J("grid-cols-(\\d+)","gridTemplateColumns",Mv),te("col-","gridColumn"),J("col-(span)-(\\d+)","gridColumn",Lv),te("col-start-","gridColumnStart"),J("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),J("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),J("grid-rows-(\\d+)","gridTemplateRows",Mv),te("row-","gridRow"),J("row-(span)-(\\d+)","gridRow",Lv),te("row-start-","gridRowStart"),J("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),J("row-end-(auto|\\d+)","gridRowEnd"),J("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ed(Av(e))),J("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",J("justify-","justifyContent",kv),J("(content|items|self)-",e=>({["align-"+e[1]]:kv(e)})),J("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",cs("padding")),te("-?m([xytrbl])?(?:$|-)","margin",cs("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),J("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=ir(e))[1]=="string"?{fontFamily:Ir(e)}:{fontFamily:Ir(e[0]),...e[1]}),J("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),J("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),J("italic","fontStyle"),J("not-italic",{fontStyle:"normal"}),J("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...si({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),J("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),J("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Xt("placeholder-",{property:"color",selector:"&::placeholder"}),J("text-(left|center|right|justify|start|end)","textAlign"),J("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),Xt("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),J("(overline|underline|line-through)","textDecorationLine"),J("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),Xt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),J("decoration-","textDecorationStyle"),J("(uppercase|lowercase|capitalize)","textTransform"),J("normal-case",{textTransform:"none"}),J("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),J("align-","verticalAlign"),J("whitespace-","whiteSpace"),J("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),J("break-words",{overflowWrap:"break-word"}),J("break-all",{wordBreak:"break-all"}),J("break-keep",{wordBreak:"keep-all"}),Xt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Xt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),J("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qi(e," ")},var(--tw-gradient-stops))`),Xt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Xt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Xt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),J("bg-(fixed|local|scroll)","backgroundAttachment"),J("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),J(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),J("bg-blend-","backgroundBlendMode"),J("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Xt("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),J("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ed),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qi(n[0])}-radius`]:t,[`border-${qi(n[1])}-radius`]:t}}),J("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),J("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...si({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Xt("border-([xytrbl])-",{section:"borderColor"},cs("border","Color")),Xt("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",cs("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),J("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),J("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qi(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qi(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Xt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Xt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),J("ring-inset",{"--tw-ring-inset":"inset"}),Xt("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":oi(t("ringOffsetColor","","#fff")),"--tw-ring-color":oi(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Xt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Ir(e),"--tw-shadow-colored":Ir(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),J("mix-blend-","mixBlendMode"),...Dv(),...Dv("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Ir(e),transitionTimingFunction:e._=="none"?void 0:Ir(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Ir(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Ir),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Ir),te("delay(?:$|-)","transitionDelay","transitionDelay",Ir),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Ir(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",J("transform",Qf),J("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Pv(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Qf()})),te("-?(rotate)-","rotate",Xf),te("-?(translate-[xy])-","translate",Xf),te("-?(skew-[xy])-","skew",Xf),J("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ed),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",J("snap-(none)","scroll-snap-type"),J("snap-(x|y|both)",({1:e})=>({...si({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),J("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),J("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),J("snap-(normal|always)","scroll-snap-stop"),J("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",cs("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",cs("scroll-margin")),J("touch-(auto|none|manipulation)","touch-action"),J("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...si({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),J("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),J("outline",{outlineStyle:"solid"}),J("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),Xt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],J("select-(none|text|all|auto)","userSelect"),Xt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Xt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),J("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),J("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ed(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Av(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qi(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Ir(e){return e&&""+(e._||e)}function kv({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function cs(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Nu(e+"-"+qi(a[0])+t,r),...Nu(e+"-"+qi(a[1])+t,r)}:Nu(e+t,r)}}function Dv(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...si(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,J(`${e}filter`,n),...t.map(r=>te(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:ir(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Xf({1:e,_:t}){return{["--tw-"+e]:t,...Qf()}}function Qf(){return{...si({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Pv()}),transform:"var(--tw-transform)"}}function Pv(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Lv({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Mv({1:e}){return`repeat(${e},minmax(0,1fr))`}function si(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var td=globalThis||(typeof window<"u"?window:self),h_=Object.create,th=Object.defineProperty,b_=Object.getOwnPropertyDescriptor,y_=Object.getOwnPropertyNames,x_=Object.getPrototypeOf,v_=Object.prototype.hasOwnProperty,T_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S_=(e,t)=>{for(var n in t)th(e,n,{get:t[n],enumerable:!0})},eh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y_(t))!v_.call(e,a)&&a!==n&&th(e,a,{get:()=>t[a],enumerable:!(r=b_(t,a))||r.enumerable});return e},C_=(e,t,n)=>(eh(e,t,"default"),n&&eh(n,t,"default")),Rv=(e,t,n)=>(n=e!=null?h_(x_(e)):{},eh(t||!e||!e.__esModule?th(n,"default",{value:e,enumerable:!0}):n,e)),Fv=T_((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,d){var m=new XMLHttpRequest;m.open("GET",l),m.responseType="blob",m.onload=function(){u(m.response,c,d)},m.onerror=function(){},m.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof td=="object"&&td.global===td?td:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,d){var m=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,d):i(p,p.target="_blank")):(p.href=m.createObjectURL(l),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,d){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,d),c);else if(a(l))r(l,c,d);else{var m=document.createElement("a");m.href=l,m.target="_blank",setTimeout(function(){i(m)})}}:function(l,c,d,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,d);var p=l.type==="application/octet-stream",g=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||p&&g||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var x=b.result;x=h?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=x:location=x,m=null},b.readAsDataURL(l)}else{var f=o.URL||o.webkitURL,y=f.createObjectURL(l);m?m.location=y:location.href=y,m=null,setTimeout(function(){f.revokeObjectURL(y)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),Iv={};S_(Iv,{default:()=>nd});var w_=Rv(Fv());C_(Iv,Rv(Fv()));var{default:_v,...E_}=w_,nd=_v!==void 0?_v:E_;function Jv(e){return typeof e>"u"||e===null}function A_(e){return typeof e=="object"&&e!==null}function k_(e){return Array.isArray(e)?e:Jv(e)?[]:[e]}function D_(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function rh(e,t){return Qt.repeat(" ",t-e.length)+e}function O_(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=nh(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),d),s=Qt.repeat(" ",t.indent)+rh((e.line-u+1).toString(),c)+" | "+l.str+` +`+s;for(l=nh(e.buffer,r[o],a[o],e.position,d),s+=Qt.repeat(" ",t.indent)+rh((e.line+1).toString(),c)+" | "+l.str+` +`,s+=Qt.repeat("-",t.indent+c+3+l.pos)+`^ +`,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=nh(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),d),s+=Qt.repeat(" ",t.indent)+rh((e.line+u+1).toString(),c)+" | "+l.str+` +`;return s.replace(/\n$/,"")}var N_=O_,j_=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],U_=["scalar","sequence","mapping"];function H_(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function q_(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(j_.indexOf(n)===-1)throw new qn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=H_(t.styleAliases||null),U_.indexOf(this.kind)===-1)throw new qn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Sn=q_;function Bv(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function z_(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cR=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dR(e){return!(e===null||!cR.test(e)||e[e.length-1]==="_")}function mR(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var pR=/^[-+]?[0-9]+e/;function gR(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Qt.isNegativeZero(e))return"-0.0";return n=e.toString(10),pR.test(n)?n.replace("e",".e"):n}function fR(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Qt.isNegativeZero(e))}var hR=new Sn("tag:yaml.org,2002:float",{kind:"scalar",resolve:dR,construct:mR,predicate:fR,represent:gR,defaultStyle:"lowercase"}),bR=$_.extend({implicit:[X_,nR,lR,hR]}),yR=bR,Qv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),eT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function xR(e){return e===null?!1:Qv.exec(e)!==null||eT.exec(e)!==null}function vR(e){var t,n,r,a,i,o,s,u=0,l=null,c,d,m;if(t=Qv.exec(e),t===null&&(t=eT.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],d=+(t[11]||0),l=(c*60+d)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&m.setTime(m.getTime()-l),m}function TR(e){return e.toISOString()}var SR=new Sn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xR,construct:vR,instanceOf:Date,represent:TR});function CR(e){return e==="<<"||e===null}var wR=new Sn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:CR}),ch=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function ER(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=ch;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function AR(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=ch,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function kR(e){var t="",n=0,r,a,i=e.length,o=ch;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function DR(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var LR=new Sn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ER,construct:AR,predicate:DR,represent:kR}),MR=Object.prototype.hasOwnProperty,PR=Object.prototype.toString;function _R(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var oT=new Array(256),sT=new Array(256);for(zi=0;zi<256;zi++)oT[zi]=jv(zi)?1:0,sT[zi]=jv(zi);var zi;function JR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tT,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function uT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=N_(n),new qn(t,n)}function xe(e,t){throw uT(e,t)}function id(e,t){e.onWarning&&e.onWarning.call(null,uT(e,t))}var Uv={YAML:function(e,t,n){var r,a,i;e.version!==null&&xe(e,"duplication of %YAML directive"),n.length!==1&&xe(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&xe(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&xe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&id(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&xe(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],aT.test(r)||xe(e,"ill-formed tag handle (first argument) of the TAG directive"),li.call(e.tagMap,r)&&xe(e,'there is a previously declared suffix for "'+r+'" tag handle'),iT.test(a)||xe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{xe(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function ui(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=Qt.repeat(` +`,t-1))}function XR(e,t,n){var r,a,i,o,s,u,l,c,d=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),zn(p)||ms(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),zn(a)||n&&ms(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),zn(a)||n&&ms(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),zn(r))break}else{if(e.position===e.lineStart&&ud(e)||n&&ms(p))break;if(ta(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,Gt(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(ui(e,i,o,!1),mh(e,e.line-u),i=o=e.position,s=!1),Wi(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ui(e,i,o,!1),e.result?!0:(e.kind=d,e.result=m,!1)}function QR(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ui(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else ta(n)?(ui(e,r,a,!0),mh(e,Gt(e,!1,t)),r=a=e.position):e.position===e.lineStart&&ud(e)?xe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);xe(e,"unexpected end of the stream within a single quoted scalar")}function eF(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ui(e,n,e.position,!0),e.position++,!0;if(s===92){if(ui(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ta(s))Gt(e,!1,t);else if(s<256&&oT[s])e.result+=sT[s],e.position++;else if((o=$R(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=KR(s))>=0?i=(i<<4)+o:xe(e,"expected hexadecimal character");e.result+=ZR(i),e.position++}else xe(e,"unknown escape sequence");n=r=e.position}else ta(s)?(ui(e,n,r,!0),mh(e,Gt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ud(e)?xe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}xe(e,"unexpected end of the stream within a double quoted scalar")}function tF(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,d,m,p,g=Object.create(null),h,b,f,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,p=!1,s=[];else if(y===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),y=e.input.charCodeAt(++e.position);y!==0;){if(Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?y===44&&xe(e,"expected the node content, but found ','"):xe(e,"missed comma between flow collection entries"),b=h=f=null,d=m=!1,y===63&&(l=e.input.charCodeAt(e.position+1),zn(l)&&(d=m=!0,e.position++,Gt(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,gs(e,t,rd,!1,!0),b=e.tag,h=e.result,Gt(e,!0,t),y=e.input.charCodeAt(e.position),(m||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),Gt(e,!0,t),gs(e,t,rd,!1,!0),f=e.result),p?ps(e,s,g,b,h,f,r,a,i):d?s.push(ps(e,null,g,b,h,f,r,a,i)):s.push(h),Gt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}xe(e,"unexpected end of the stream within a flow collection")}function nF(e,t){var n,r,a=ah,i=!1,o=!1,s=t,u=0,l=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)ah===a?a=d===43?Ov:zR:xe(e,"repeat of a chomping mode identifier");else if((c=YR(d))>=0)c===0?xe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?xe(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(Wi(d)){do d=e.input.charCodeAt(++e.position);while(Wi(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ta(d)&&d!==0)}for(;d!==0;){for(dh(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),ta(d)){u++;continue}if(e.lineIndentt)&&u!==0)xe(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,s=e.lineStart,u=e.position),gs(e,t,ad,!0,a)&&(b?g=e.result:h=e.result),b||(ps(e,d,m,p,g,h,o,s,u),p=g=h=null),Gt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&y!==0)xe(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,m=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&xe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):xe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function sF(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Gt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!zn(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&xe(e,"directive name must not be less than one character in length");o!==0;){for(;Wi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ta(o));break}if(ta(o))break;for(n=e.position;o!==0&&!zn(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&dh(e),li.call(Uv,r)?Uv[r](e,r,a):id(e,'unknown document directive "'+r+'"')}if(Gt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Gt(e,!0,-1)):i&&xe(e,"directives end mark is expected"),gs(e,e.lineIndent-1,ad,!1,!0),Gt(e,!0,-1),e.checkLineBreaks&&GR.test(e.input.slice(t,e.position))&&id(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ud(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Gt(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=lT(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function vS(e){var t=/^\n* /;return t.test(e)}var xS=1,lh=2,SS=3,TS=4,ds=5;function NI(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=_I(Uu(e,0))&&OI(Uu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Uu(e,u),!Wu(l))return ds;h=h&&Vx(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Uu(e,u),l===qu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Wu(l))return ds;h=h&&Vx(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?xS:i===zu?ds:lh:n>9&&vS(e)?ds:o?i===zu?ds:lh:m?TS:SS}function jI(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===zu?'""':"''";if(!e.noCompatMode&&(LI.indexOf(t)!==-1||MI.test(t)))return e.quotingType===zu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return BI(e,l)}switch(NI(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case xS:return t;case lh:return"'"+t.replace(/'/g,"''")+"'";case SS:return"|"+Kx(t,e.indent)+Yx(Wx(t,i));case TS:return">"+Kx(t,e.indent)+Yx(Wx(UI(t,o),i));case ds:return'"'+HI(t)+'"';default:throw new Hn("impossible error: invalid scalar style")}}()}function Kx(e,t){var n=vS(e)?String(t):"",r=e[e.length-1]===` +`&&(i+=n),i+=o;return i}function sh(e,t){return` +`+Qt.repeat(" ",e.indent*t)}function FF(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function yT(e){var t=/^\n* /;return t.test(e)}var xT=1,uh=2,vT=3,TT=4,ds=5;function OF(e,t,n,r,a,i,o,s){var u,l=0,c=null,d=!1,m=!1,p=r!==-1,g=-1,h=IF(Uu(e,0))&&BF(Uu(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=Uu(e,u),!Wu(l))return ds;h=h&&Gv(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=Uu(e,u),l===qu)d=!0,p&&(m=m||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Wu(l))return ds;h=h&&Gv(l,c,s),c=l}m=m||p&&u-g-1>r&&e[g+1]!==" "}return!d&&!m?h&&!o&&!a(e)?xT:i===zu?ds:uh:n>9&&yT(e)?ds:o?i===zu?ds:uh:m?TT:vT}function NF(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===zu?'""':"''";if(!e.noCompatMode&&(DF.indexOf(t)!==-1||LF.test(t)))return e.quotingType===zu?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return FF(e,l)}switch(OF(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case xT:return t;case uh:return"'"+t.replace(/'/g,"''")+"'";case vT:return"|"+Vv(t,e.indent)+Kv(zv(t,i));case TT:return">"+Vv(t,e.indent)+Kv(zv(jF(t,o),i));case ds:return'"'+UF(t)+'"';default:throw new qn("impossible error: invalid scalar style")}}()}function Vv(e,t){var n=yT(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function Yx(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function UI(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,Qx(e.slice(0,l),t)}(),a=e[0]===` +`}function Kv(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function jF(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,$v(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+Qx(u,t),a=i}return r}function Qx(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+$v(u,t),a=i}return r}function $v(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function HI(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Uu(e,a),r=Cn[n],!r&&Wu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||RI(n);return t}function qI(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ca(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function Jx(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ca(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=uh(e,t)),e.dump&&qu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function zI(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ca(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function WI(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Hn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&qu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=uh(e,t)),Ca(e,t+1,c,!0,d)&&(e.dump&&qu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function Zx(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ca(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Zx(e,n,!1)||Zx(e,n,!0);var s=mS.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(WI(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(zI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Jx(e,t-1,e.dump,a):Jx(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(qI(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&jI(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Hn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function GI(e,t){var n=[],r=[],a,i;for(ch(e,n,r),a=0,i=r.length;ac.selected),[r,a]=W(!1),i=Ee(null),[o,s]=W(CS),[u,l]=W(0);return su(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,v=t.length*b+f*3,S=g+d.height;if(v>m.clientHeight-S){let T=Math.min(y,v);l(m.clientHeight-g-T-h)}else l(0);s(Math.max(CS,y))}},[i.current,r,t]),ee(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),x("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[x("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[x(ES,{item:n,isDefault:!0}),nx]}),x(JI,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function JI(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ee(null);return ee(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ux(ES,{item:o,onClick:e.onClick},o.value))})}function ES(e){let t=e.item,{t:n}=se();return t?x("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&x("img",{class:"custom-select-item-img",src:t.img}),x("span",{children:[t.label,t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:["(",x("img",{src:ns}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&x("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var ZI={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQag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ih64GD0/D3yzdSur14cT/rAh9sjecpeghbJAGe43Z3caLysjd7uVvYvcPHVcBoqgMDa+hvXANO+WRD75zZQljc1sKbuwekUhOTislyd3e6JU68X1lJcebsJoAEhTWSN9yYcDE7Qtj04IbO2WOQUQQRYyVmCW4yldk3OThxbweEUbqKImNb6ZW0wHwBxchdMmyFCMx6csSkYrw2DmbfB7QCgG08t4RVu216GE6yyGY5WntGCUcJFymJc2P4a/l3Gs/47bvJMerYaaFatENoKHhGeQza1MesJIkNtkMDOy5lg2AuhG2PzSA2S2urB0V5z74QY/dsyrnVyq3+ibVprO/mmryURhodpmzmplvD2SxmItkZgwjRKl8fbL7WGQdup1lflmqbB4b2NP8H4qsM/3WWpj6R9p0JXnp65c7LX89pyDHieryARgT4KL6+bh7uPiebCmfs6uDMqAY/zVSTC0cdUY3cx1pk8505gTXutatcFOTeYIjVYCBi4m9vLOhgPLU3TaSd9W8WNZbqcsS2xyMM6CFIRzd1xsb9W09HOGPZFe13Ts5UNfggaEofVc7c3VHqeGuvSs+U8BOEeSeSoUYeu5eHy2ZaWsBbKlsMj+8RudCZrnFE5tEef83m/yVju1YtILh3wiP1MkHnbhD/4wNazMDZWYjDadOyzmmX75YlOAQHM5qf91DTNweSw6o6MCCc4mZDnwYqBvz1cID92FIVd0RPXwIHgAmslraH6jrkFivexblKqP3Fk+9OHzzhhSR+jE8gjWxI0JE+++ismebXB0y9p5KQvaX7+uin5izOmipzQFSBbRY9VyYqONP6Ha1lHJc4Fc5GtgVcllCMFo8gQ5nOpcAjpSMG0fJf+7JRl7g9G0vHPF0LywN8no9QhDiN8MFkYXkaqQ+xGBJkQu3JDhzhT0WRqcoOpYAWRzhdS0eEeeFtHJQpJqgwRxcdcKialLPunV/lSKhEKDxXyj8iyApdKklxJyGcy15/DFSt54Sl0kv4BCnmYT2kofh0AAAAASUVORK5CYII=",zhipu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC9FBMVEUAAAD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65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT64tr88df87ND87sX208T66rz426vzyKPwtp/30Zj744nwqID1vm7rkW30vGf88GX74VToe0nuoD/mcTzvozHqiyjlXCjtkSTyqhvvmRPriQ3zrwztkgn/7QD+6gD+2wD56ef/+tn87Nj53tX53cL54Lf2zrX527H74a767qX42pj1xoryt4Pun4H61n3wrnf1wHXzxmbztl70vVzyrlfysE/61kn4zz/xpj7xpiLzsSH81hf4xA3rhAv5yQj0tAD24c332Mn/9bn22rHvrpTrnoX873b953Hurm/73WTnflzrmkb64EHwrzbumDbrljP54DHndyrkYijztSblbiLlZSDqgR/6yh795hfpeRDocxD72AftlQTshwBZNd3SAAAAE3RSTlMAIN/vcL+fMBCQz2BAj69QgG9/MhRbZAAACNJJREFUaN7NmmWQE0EQhYlySfCZkAQLFixAyOEeNPghh8MBh7u7u7u7u7u7u7u7u2vRM7ukCKTjyPtxhVTdV69fd+9mJlG8VUhMefQYaqmMgmRShSK6PFpIlGBKIldKqQtJY2iiBocQLToHmMzJs4Vl0FoIyKLNEJYtudnEQcpogRJC4qgZQNdJS1woQyedlXE0kgAQUaPLgJA8A0EFIM5R+ouRKCilZiB4UpjOX0xIdGZCS7yS1j9MbChUcp6y1xjIxudKmVEXOEYh8cmGNYz4rE5WKpP7kMY0pFKezUT3rlRqaspG/FQ2E5VKvGBIqVVL/JbW6gUlqoyaoVQBUMxUFtUjYxoJUDqgeGAkJwEruVuKhDOCQpHgmUOtgiIdnr6UmkmQZKZq18/N6Kx3gySL1fVUxqYmYARLWhOVuww9GwmisrkKX0F1JKjSUcWvDA0SSECxyH/r3k4kyAqjMucOU3pTrAZzRoy+0I/pVJ9eHb3p4+hORij1VKzIQ+ev59C3slVOUchYMjRekfjPFrXw1GGUSnwxMmPxlXLF8+YooQdIvYpGBgmvNvDMbk/rReG9kXaHv7QtWq54BYBUKpCi4A1j6ibx4kdUMyRIvNytG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OtZ+KX6s3DPI7b5s8eWpziN8Ps4Y9Gs8q4eMo0rQY8osLV0nqtygK+cs7CrQXIpJYn9OMUcKVqJ1+wBUeKZkNcH2LpDWOAmTgBA65U0AbwFZDNrWtHOORWF9BJCWQZtB2WF2R5gWwRvKXiYNobcVKb5Bt+qBEyYLDAPu6SPrvBoBRT+qJTG0GS7dyyG5qg6S3ehztC888z4fC4s+Sf7erYPeE8G/BERC/K7H+aZTa6qtThlbh/D8igukz3y7i3+B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function ld(e){let t=ZI[e];return t}function AS(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=tB(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?x("div",{class:"translation-service-container mt-3",children:[x(kS,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),x(XI,{...e,currentTranslationService:a})]}):null}function kS(e){let t=he(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=Mr(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return x("div",{class:`min-select-container ${e.class||""}`,children:[x("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?x(wS,{className:"translate-service",items:t}):x(ii,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function XI({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=eB(e,o),l=$I(e,o),c=De((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:x(Pt,{children:d.map(({label:m,items:p},g)=>x(kS,{label:m,items:p,ctx:e},"field-"+g))})}function $I(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function eB(e,t){let{lang:n}=se();return he(()=>{let a=t2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Tr,$m,e,n,t])}function tB({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=he(()=>t?e2(t,"translationService",c):[],[t,c]),m=De(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Ka(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=r2(f,e,g,l,!0),v=ld(f.id);f.id.startsWith("custom-ai")&&(v=ld("custom-ai")),f.id.startsWith("mock")&&(v="");let S=Si.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:v,onSelected:m,isShowProOrCustom:S,isShowGoSetting:!f.ok&&!S}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:ld("more"),onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function DS(e){let t;try{t=new URL(e)}catch{return!1}let n=C2(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(nB(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function nB(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function LS(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function MS(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=rB(e),[o,s]=W(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=De(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return x("div",{class:"flex justify-between mt-5",children:[x(ii,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),x("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function rB({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&DS(e)){c=LS(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(v=>We(e,v)),m=!!y.find(v=>We(e,v))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=De(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],v=y.filter(T=>T.match!==f),S=!1;v.length!==y.length&&(S=!0),S&&r({...t.localConfig,tempTranslationUrlMatches:[...v]})},[r]),b=De((f,y)=>{if(f==="default"){s(T=>{let w={...T.translationUrlPattern};return{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,matches:hh(e,w.matches),excludeMatches:hh(e,w.excludeMatches)}}}),h();return}let v=f,S=v==="matches"?"excludeMatches":"matches";l&&s(T=>{let w={...T.translationUrlPattern};return w[S]=hh(e,w[S]),w[v]=Vc(y,w[v]),{...T,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...T.translationUrlPattern,...w}}}),v==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):v==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function hh(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!We(e,n)):t):[]}var bh={};function ci(e){let t=cd(e)||{};bh[e.sourceUrl+"_"+e.to]={...t,...e}}function cd(e){return bh[e.sourceUrl+"_"+e.to]}async function PS(e,t){let n=location.href,r=Object.values(bh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:Bi(),images:[],version:Wt()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=C0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Lt();a.userConfig=Ya(!1,o)}return a}async function RS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Dr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ut}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ga(l,"web"),l.json()))}var Gu={width:94,height:80};function FS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?FS(e.parentElement,t+1):e}function fs(e,t,n,r){let a=Me.bind(null,e.config.interfaceLanguage),i=FS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Gu.width+"px",c.style.height=Gu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Gu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Gu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Gu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function UF(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=Uu(e,a),r=Cn[n],!r&&Wu(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||PF(n);return t}function HF(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ca(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function Yv(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ca(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=sh(e,t)),e.dump&&qu===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function qF(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ca(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function zF(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,d,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new qn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,d&&(e.dump&&qu===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=sh(e,t)),Ca(e,t+1,c,!0,d)&&(e.dump&&qu===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,a+=m));e.tag=i,e.dump=a||"{}"}function Zv(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ca(e,t,n,r,a,i,o){e.tag=null,e.dump=n,Zv(e,n,!1)||Zv(e,n,!0);var s=dT.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",d,m;if(c&&(d=e.duplicates.indexOf(n),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(a=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(zF(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(qF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Yv(e,t-1,e.dump,a):Yv(e,t,e.dump,a),m&&(e.dump="&ref_"+d+e.dump)):(HF(e,t,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&NF(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new qn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function WF(e,t){var n=[],r=[],a,i;for(lh(e,n,r),a=0,i=r.length;ac.selected),[r,a]=W(!1),i=Ee(null),[o,s]=W(ST),[u,l]=W(0);return su(()=>{if(!i.current)return;let c=i.current,d=c.getBoundingClientRect(),m=c.closest(".popup-container");if(m){let p=m.getBoundingClientRect(),g=d.top-p.top,h=20,b=30,f=5,y=m.clientHeight-h*2,x=t.length*b+f*3,T=g+d.height;if(x>m.clientHeight-T){let S=Math.min(y,x);l(m.clientHeight-g-S-h)}else l(0);s(Math.max(ST,y))}},[i.current,r,t]),ee(()=>{if(!i.current||!r)return;let c=d=>{i.current?.contains(d.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),v("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[v("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[v(wT,{item:n,isDefault:!0}),tv]}),v(YF,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function YF(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Ee(null);return ee(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;uv(wT,{item:o,onClick:e.onClick},o.value))})}function wT(e){let t=e.item,{t:n}=se();return t?v("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&v("img",{class:"custom-select-item-img",src:t.img}),v("span",{children:[t.label,t.isShowProOrCustom&&v("span",{class:"custom-select-item-pro",children:["(",v("img",{src:ns}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&v("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}function ET(e){let{t}=se(),{translationServiceItems:n,translationServiceOptions:r}=QF(e),a=he(()=>n.find(i=>i.selected)?.id,[n]);return n.length?v("div",{class:"translation-service-container mt-3",children:[v(AT,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),v(ZF,{...e,currentTranslationService:a})]}):null}function AT(e){let t=he(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=Mr(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return v("div",{class:`min-select-container ${e.class||""}`,children:[v("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?v(CT,{className:"translate-service",items:t}):v(ii,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function ZF({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=se(),u=XF(e,o),l=JF(e,o),c=De((m,p)=>{t(g=>{let h=g.translationServices||{},b=h[u.id]||{};return{...g,translationServices:{...h,[u.id]:{...b,[m]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),d=he(()=>u?.props.filter(m=>m.type==="select").map(m=>{let p=m.name;m.label&&(p=m.label),m.labelKey&&(p=s(m.labelKey));let g=m.options.map(h=>({label:`${h.label?s(h.label):h.value}`,value:h.value,selected:h.value==l[m.name],onSelected:b=>{if(h.action=="jumpOptions"){let f=h.args||[];r(...f);return}c(m.name,h.value)}}));return{label:p,items:g}}),[l,r]);return!l||!u?.props?.length||!d||!d?.length?null:v(Pt,{children:d.map(({label:m,items:p},g)=>v(AT,{label:m,items:p,ctx:e},"field-"+g))})}function JF(e,t){return he(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function XF(e,t){let{lang:n}=se();return he(()=>{let a=e2(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Sr,Xm,e,n,t])}function QF({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=se(),d=he(()=>t?Q1(t,"translationService",c):[],[t,c]),m=De(g=>{let h=d.find(b=>b.id===g.value);if(h.ok){if(u({translationService:h.id}),n(b=>(a(b.translationService||"",h.id),{...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;h.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(b=>({...b,translationService:h.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+g.value)},100)},[s,o,i,a,n]),p=he(()=>{let g=Ka(t.config),b=d.filter(f=>t.config.showUnconfiguredTranslationServiceInPopup===!1?f.ok:!0).map(f=>{let y=n2(f,e,g,l,!0),x=(f.id,void 0);f.id.startsWith("custom-ai")&&(x=void 0),f.id.startsWith("mock")&&(x="");let T=Ti.includes(f.id)&&!f.ok&&!g;return{label:y,value:f.id,selected:f.selected,img:x,onSelected:m,isShowProOrCustom:T,isShowGoSetting:!f.ok&&!T}});return b.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:void 0,onSelected:()=>{s(!1,"#services")}}),b},[d,t,m,l]);return{translationServiceItems:d,translationServiceOptions:p}}function kT(e){let t;try{t=new URL(e)}catch{return!1}let n=S2(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(eI(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function eI(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function DT(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function LT(e){let{t}=se(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=tI(e),[o,s]=W(()=>a?"excludeMatches":"matches"),u=he(()=>r||a||!1,[r,a]),l=De(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return v("div",{class:"flex justify-between mt-5",children:[v(ii,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),v("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let d=c.target.checked;i(d?o:"default",n.hostname)}})]})}function tI({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,d=null,m=null,p=null,{translationUrlPattern:g}=t.config;if(l=he(()=>new URL(e||""),[e]),t.config&&e&&kT(e)){c=DT(e);let{matches:f,excludeMatches:y}=g;d=!!f.find(x=>We(e,x)),m=!!y.find(x=>We(e,x))}if(n&&n!=="auto"){let{translationLanguagePattern:f}=t.config,{matches:y}=f;y.includes(n)?p=!0:p=!1}let h=De(()=>{let f=l.hostname,y=t.localConfig.tempTranslationUrlMatches||[],x=y.filter(S=>S.match!==f),T=!1;x.length!==y.length&&(T=!0),T&&r({...t.localConfig,tempTranslationUrlMatches:[...x]})},[r]),b=De((f,y)=>{if(f==="default"){s(S=>{let w={...S.translationUrlPattern};return{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,matches:fh(e,w.matches),excludeMatches:fh(e,w.excludeMatches)}}}),h();return}let x=f,T=x==="matches"?"excludeMatches":"matches";l&&s(S=>{let w={...S.translationUrlPattern};return w[T]=fh(e,w[T]),w[x]=Vc(y,w[x]),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,...w}}}),x==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):x==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,h]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:d,isNeverTranslateDomain:m,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:b}}function fh(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!We(e,n)):t):[]}var hh={};function ci(e){let t=ld(e)||{};hh[e.sourceUrl+"_"+e.to]={...t,...e}}function ld(e){return hh[e.sourceUrl+"_"+e.to]}async function MT(e,t){let n=location.href,r=Object.values(hh).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:Ve().any,platform:Ii(),images:[],version:Wt()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=C0(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Lt();a.userConfig=$a(!1,o)}return a}async function PT(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Dr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ut}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ga(l,"web"),l.json()))}var Gu={width:94,height:80};function _T(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?_T(e.parentElement,t+1):e}function fs(e,t,n,r){let a=Me.bind(null,e.config.interfaceLanguage),i=_T(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=Gu.width+"px",c.style.height=Gu.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-Gu.width)/2+"px",c.style.top=l.top-u.top+(l.height-Gu.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-Gu.height)/2+"px"),e.rule.imageRule.loadingStyle){let d=e.rule.imageRule.loadingStyle,m=c.getAttribute("style")||"";c.setAttribute("style",m+d)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let d=a("translateFail");r==="gif_not_supported"&&(d=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6327,7 +6327,7 @@ ${s}`)}),ni(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function yh(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Me.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Vu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var dd=[],IS=[];async function xh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(Sh()||dd.includes(t))return"";if(dd.length>=s)return new Promise((l,c)=>{IS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});dd.push(t);try{let u=await sB(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await BS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{dd.shift(),(async()=>{let u=IS.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await xh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function aB(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ut}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${_S(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await K({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function iB(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function oB(e,t,n){let r=await iB(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):K({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await H2(a)})}async function sB(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=uB(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await P0(u);ci({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await aB(e,r,l,n.type);if(c.objectKey&&ci({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await oB(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return X()?d=await fetch(vh()+"/trigger",{method:"POST",body:pc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ga(m,"manga"),m.json())):d=await K({url:vh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ci({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function BS(e,t,n,r,a){let i=Sh();if(i)return;cr("Translating",i);let o=await K({url:vh()+`/${t}/task-state?comicHash=${n}&domain=${_S(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Dy(t,r.queryIntervalTime||100),BS(e,t,n,r,a))}function vh(){return ut+"comics"}function uB(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=v0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function _S(e){return e.replaceAll(".","_")}function hs(e,t){return X(t)?!1:lB(e.config,e.isPro)}function lB(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function md(e){let t=Bi();return!(e?.platforms&&!e.platforms.includes(t))}function pd(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function OS(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var At,Th,fd,Yu,Ut=!1;function Sh(){return Ut}var NS=!1;function HS(e){if(At=e.rule.imageRule,!e.isPro||!At.type)return;Ut=!1,!NS&&At.injectedCss&&(Sn(document,`${At.injectedCss}`,P+"-image-injected-css"),NS=!0);let t=!1,n=Ln(async function(){At?.disableMarkSelector&&(t=!!document.querySelector(At.disableMarkSelector));let a=WS(At);for(let i of a){if(Ut)return;i.isMarked&&!At?.disableMarkElement||(i.isMarked=!0,await pt(20),await r(i,t))}},100);if(_e("translate_manga",[{name:"translate_manga"}],e),n(),Th=new MutationObserver(a=>{n()}),Th.observe(document.body,{childList:!0,subtree:!0}),At.intersectionRootMargin){let a=At?.intersectionRootSelector?document.querySelector(At?.intersectionRootSelector):void 0;Yu=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(wa(e,o.target),Yu?.unobserve(o.target))})},{root:a,rootMargin:At.intersectionRootMargin,threshold:At.intersectionThreshold})}fd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(At?.intersectionRootMargin?(Yu?.unobserve(a),Yu?.observe(a)):await wa(e,a)))}}async function wa(e,t,n,r){let a=e.rule.imageRule.type||"common",i=mo();if(n&&(Ut=!1),Ut||yB(e,t)||t.hasTranslate)return;At=e.rule.imageRule;let o=!1;At?.disableMarkSelector&&(o=!!document.querySelector(At.disableMarkSelector)),t.translationStatus="translating";let s=null,u=dB(e,t);u||(s=fs(e,t,"translating")),n&&_e("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await mB(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await cB(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||fs(e,t,"success")):(u||fs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&cr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&(cr("Error",Ut),bB(e,l)),u))return;if(l instanceof Vu)return fs(e,t,"error",l.type);fs(e,t,"error")}finally{n&&cr(i,Ut),s?.remove()}}function qS(){if(!At)return;Ut=!0,Th?.disconnect(),fd?.disconnect(),Yu?.disconnect();let e=WS(At);for(let t of e)di(t)}function di(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&di(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function cB(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await pB(l,c,t.cloneNode(!0))}else o=await GS(t);if(Ut)return;if(!o||o.size<6*1e4){fd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await Df(o);return await Ch(e,t,s)?!0:s?zS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function zS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await fB(n)||n,u=r||a;try{if(Ut)return;cr("Translating",Ut),yh(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ci(l);let d=await xh(e,u,s,a,i,m=>{yh(e,o,m)});return d?(l.targetUrl=d,ci(l),await VS(At,t,d),cr("Translated",Ut),!0):!1}catch(l){if(ci({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function Ch(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=cd(r);return a&&a?.targetUrl?(await VS(At,t,a.targetUrl||""),cr("Translated",Ut),!0):!1}function dB(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=cd(r);return a&&a?.targetUrl}return!1}async function mB(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!hB(a,i)){fd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Ch(e,t,o))return!0;let s=null;if(cr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ga(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await gB(i);else{let d=await K({url:i,responseType:"base64"});s=await gc(d)}if(Ut)return;if(await OS(s))throw new Vu("GIFs not supported","gif_not_supported");let l=await Df(s);if(!o&&(o=l,await Ch(e,t,o)))return!0;if(!o)return!1;return zS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function WS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function GS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function pB(e,t,n){return new Promise((r,a)=>{K({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await GS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function VS(e,t,n){try{return await jS(e,t,n)}catch{let a=await vB(n);return jS(e,t,a)}}async function jS(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function gB(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function fB(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function hB(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!qc(e.inValidSrcRegex,t):!0}var gd=0,Ku=0;function bB(e,t){if(gd!=0){Ku++;return}if(t.message.indexOf("quota exceeded")>0){US(e,t);return}Ku++,gd=setTimeout(()=>{if(Ku<(At.errorTimes||3)){gd=0,Ku=0;return}US(e,t),Ku=0,gd=0},At.errorInterval||3e3)}function US(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(fn,{detail:r}))}function hd(e){return e.classList.contains("imt-img")||e.hasTranslate}function yB(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function vB(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var Qu=null,wh="showImagePricingModal";function KS(e){let t=Ee(null),n=Ee(!1),[r,a]=W(!1),[i,o]=W(null),[s,u]=W({}),[l,c]=W(0),[d,m]=W("");ee(()=>{let h=e.rule.imageRule,b=h?.toolsMinHeight||100,f=h?.toolsMinWidth||100,y=null,v=T=>{T.isHoverMarked||(T.isHoverMarked=!0,!pd(T.src)&&(T.addEventListener("mouseover",()=>{y&&clearTimeout(y),!T.closest('[contenteditable="true"]')&&(T.width{o(T)},h.toolsDelayTime):o(T)))}),T.addEventListener("mouseout",()=>{y&&clearTimeout(y),setTimeout(()=>{n.current||o(null)},10)})))};Qu&&Qu.disconnect();let S=Ln(()=>{document.querySelectorAll("img").forEach(T=>{v(T)})},200);return Qu=new MutationObserver(()=>{S()}),Qu.observe(document,{subtree:!0,childList:!0}),()=>{Qu?.disconnect()}},[n,e]),ee(()=>{let h=document.querySelector("#monica-content-root");if(!i){u({});return}let b=()=>{let f=i.getBoundingClientRect(),y=h?56:16,v=f.top+f.height-50,S=f.left+f.width-30-y;u({top:v+"px",left:S+"px"})};return b(),globalThis.addEventListener("wheel",b),()=>{globalThis.removeEventListener("wheel",b)}},[i]),ee(()=>{if(!i)return;let h=new IntersectionObserver((b,f)=>{b.forEach(y=>{y.isIntersecting||o(null)})});return h.observe(i),()=>{h.disconnect()}},[i]),ee(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]),ee(()=>{if(!e)return;let h=b=>{let y=JSON.parse(b.detail);_e("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:y.trigger}}],e),y.trigger&&m(y.trigger),a(!0)};return document.addEventListener(wh,h),()=>{document.removeEventListener(wh,h)}},[a,e]);let p=De(async h=>{if(h.translationStatus==="translating")return;if(hd(h)){di(h),c(f=>f+1);return}if(setTimeout(()=>{c(f=>f+1)},100),!e.isPro){let f=await dt.get(ct,null);if(ft(f)){e.user=f,e.isPro=!0,await wa(e,h,!0,"image_tools"),c(y=>y+1);return}m("image_tools"),_e("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:"image_tools"}}],e),a(!0);return}await wa(e,h,!0,"image_tools"),c(f=>f+1)},[e]),g=he(()=>{if(!i)return null;if(i.translationStatus=="translating")return"translating";if(i.translationStatus=="success"||i.classList.contains("imt-img"))return"success"},[i,l]);return{hoveImage:i,hoveImageStyles:s,containerRef:t,activeRef:n,showPricingModal:r,imageStatus:g,trigger:d,setShowPricingModal:a,handleTranslate:p}}function YS(){let[e,t]=W(!0),n=De(async r=>{if(r==="UntilNext"){t(!1);return}let a=await ln(),i=a.generalRule?.["imageRule.add"]||{};if(r=="AlwaysClose")await Hr({...a,generalRule:{...a.generalRule,"imageRule.add":{...a.generalRule?.["imageRule.add"],enableTools:!1}}});else if(r=="CurrentWebsite"){let o=i.blockToolsUrls||[];await Hr({...a,generalRule:{...a.generalRule,"imageRule.add":{...i,blockToolsUrls:[...o,globalThis.location.hostname]}}})}t(!1)},[]);return{enable:e,handleCloseConfirm:n}}function bd(e){document.dispatchEvent(new CustomEvent(wh,{detail:JSON.stringify({trigger:e})}))}function yd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ha(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var xB=new AbortController,{signal:SB}=xB,Zu=0,Xu=0,Gi=!1,mi,QS=0,Ea=[];function Dh(e){TB(),yd().forEach(t=>{vd(e,t)})}function vd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&kB(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,vd(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,vd(n,t))}t.document.addEventListener(Ls,s),Ea.push(()=>{t.document.removeEventListener(Ls,s)});let u=Kn(m=>{if(!(Math.abs(m.clientX-Zu)+Math.abs(m.clientY-Xu)<=3)&&(Zu=m.clientX,Xu=m.clientY,Gi&&!mi&&kh(n,!1,t),o||Gi&&!mi)){let p=$S(n.rule,t);if(p){if(Ah(p))return;xd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;Ah(p)||(xd(n,!0,t),kh(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Nn.getPressedKeyCodes();if(g.length>1&&Nn[p]&&(QS=Date.now(),Gi=!1),g.length===1&&Nn[p]){let h=Date.now();Gi=!0,mi&&clearTimeout(mi),mi=setTimeout(()=>{let b=QS-h;b>0&&b<=i?Gi=!1:l(m),mi=void 0},i)}};if(Ea.push(()=>{mi&&clearTimeout(mi)}),a)return;Ju("mousemove",u,t),Ea.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Gi=!1}if(Ju("blur",d,t),Ea.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=u1;Ju("keyup",JS,t),Ea.push(()=>{t.removeEventListener("keyup",JS)}),p.includes(m)?Nn("*",{scope:"mouseHover",element:t.document},c):Nn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Nn.setScope("mouseHover"),Ea.push(()=>{Nn.deleteScope("mouseHover")})}}function TB(){Ea.forEach(e=>e()),Ea=[],Nn.setScope("all")}function JS(e){Gi=!1}function Ju(e,t,n=window){return n.addEventListener(e,t,{signal:SB})}function xd(e,t,n,r){if(r=r||$S(e.rule,n),!r){k.debug("can not find selection part!");return}if(wB(e,r,t))return;if(Ah(r)){k.debug("exclude dom");return}Hv(e,r);let i=Ou();i&&(i.setupMouseHoverListener=vd);let o=dn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=Pf(i,e);va({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{zc(n.document.documentElement)!==e.state.translationMode&&Gr(n.document.documentElement,e.state.translationMode),ji(u,l,!0,"hover").then(d=>{if(d&&!s){s=!0;let m=Date.now();it(K3,m);let p={translation_service:u?.translationService||""};_e("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function $S(e,t){return CB(Zu,Xu,e,t)}function CB(e,t,n,r){let a=Rb(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=Fb(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:XS(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{AB(e,a)}),!0}function EB(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function AB(e,t){let n=Ou();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Eu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function Eh(e){return!!(e.host&&e.mode)}function ZS(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||Eh(n))return e;for(;n&&n.nodeName!=="BODY"&&!Eh(n)&&xp(n,t);){let r=n.parentNode;if(r&&Eh(r))break;n=r}return n}function XS(e,t){return e.nodeType===Node.TEXT_NODE||xp(e,t)?ZS(e,t):e}function e5(e,t,n){Zu=t.clientX,Xu=t.clientY,xd(e,!0,n),kh(e,!0,n)}async function kh(e,t,n,r){if(!hs(e))return;let a=Ib(Zu,Xu,e.rule,n);if(!a||pd(a.src)||a.translationStatus==="translating")return;let i=hd(a);if(i&&!t||i&&!r)return;if(i){di(a);return}if(!await qs(e)){bd("image_mouse_hover");return}wa(e,a,!0,"image_mouse_hover")}function kB(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&xd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Ju("mousedown",i,t),Ju("mouseup",o,t),Ea.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var wn=!1,Lh,t5=!1,Sd=null,DB=` + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function bh(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Me.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var Vu=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};var cd=[],RT=[];async function xh(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(vh()||cd.includes(t))return"";if(cd.length>=s)return new Promise((l,c)=>{RT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});cd.push(t);try{let u=await iI(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await FT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{cd.shift(),(async()=>{let u=RT.shift();if(u){let{args:l,resolve:c,reject:d}=u;try{let m=await xh(e,l.sourceUrl,l.blob,l.imgHash,a);c(m)}catch(m){d(m)}}})()}}async function nI(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ut}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${IT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await K({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function rI(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,d=i.height;r&&a&&(c>d?(i.width>r&&(d=i.height*r/i.width,c=r),i.height>a&&(c*=a/d,d=a)):(i.height>a&&(c*=a/d,d=a),i.width>r&&(d=i.height*r/i.width,c=r))),u.width=c,u.height=d,l.drawImage(i,0,0,c,d),u.toBlob(function(m){o(m)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function aI(e,t,n){let r=await rI(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),X()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):K({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await U2(a)})}async function iI(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=oI(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await P0(u);ci({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await nI(e,r,l,n.type);if(c.objectKey&&ci({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await aI(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let d;return X()?d=await fetch(yh()+"/trigger",{method:"POST",body:pc(u),headers:{token:e.user?.token||""}}).then(async m=>(await Ga(m,"manga"),m.json())):d=await K({url:yh()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),ci({sourceUrl:t,to:e.targetLanguage,taskId:d.task_id}),{task_id:d.task_id,comicHash:l}}async function FT(e,t,n,r,a){let i=vh();if(i)return;dr("Translating",i);let o=await K({url:yh()+`/${t}/task-state?comicHash=${n}&domain=${IT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await ky(t,r.queryIntervalTime||100),FT(e,t,n,r,a))}function yh(){return ut+"comics"}function oI(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=x0[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function IT(e){return e.replaceAll(".","_")}function hs(e,t){return X(t)?!1:sI(e.config,e.isPro)}function sI(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}function dd(e){let t=Ii();return!(e?.platforms&&!e.platforms.includes(t))}function md(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function BT(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}var At,Th,gd,$u,Ut=!1;function vh(){return Ut}var OT=!1;function UT(e){if(At=e.rule.imageRule,!e.isPro||!At.type)return;Ut=!1,!OT&&At.injectedCss&&(Tn(document,`${At.injectedCss}`,P+"-image-injected-css"),OT=!0);let t=!1,n=Ln(async function(){At?.disableMarkSelector&&(t=!!document.querySelector(At.disableMarkSelector));let a=zT(At);for(let i of a){if(Ut)return;i.isMarked&&!At?.disableMarkElement||(i.isMarked=!0,await pt(20),await r(i,t))}},100);if(Be("translate_manga",[{name:"translate_manga"}],e),n(),Th=new MutationObserver(a=>{n()}),Th.observe(document.body,{childList:!0,subtree:!0}),At.intersectionRootMargin){let a=At?.intersectionRootSelector?document.querySelector(At?.intersectionRootSelector):void 0;$u=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(wa(e,o.target),$u?.unobserve(o.target))})},{root:a,rootMargin:At.intersectionRootMargin,threshold:At.intersectionThreshold})}gd=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(At?.intersectionRootMargin?($u?.unobserve(a),$u?.observe(a)):await wa(e,a)))}}async function wa(e,t,n,r){let a=e.rule.imageRule.type||"common",i=mo();if(n&&(Ut=!1),Ut||hI(e,t)||t.hasTranslate)return;At=e.rule.imageRule;let o=!1;At?.disableMarkSelector&&(o=!!document.querySelector(At.disableMarkSelector)),t.translationStatus="translating";let s=null,u=lI(e,t);u||(s=fs(e,t,"translating")),n&&Be("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await cI(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await uI(e,t,o,a,s)),Ut&&!n)return;l?(t.translationStatus="success",u||fs(e,t,"success")):(u||fs(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&dr("Error",Ut))}catch(l){if(Ut&&!n||(t.translationStatus="error",a=="manga"&&(dr("Error",Ut),fI(e,l)),u))return;if(l instanceof Vu)return fs(e,t,"error",l.type);fs(e,t,"error")}finally{n&&dr(i,Ut),s?.remove()}}function HT(){if(!At)return;Ut=!0,Th?.disconnect(),gd?.disconnect(),$u?.disconnect();let e=zT(At);for(let t of e)di(t)}function di(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&di(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function uI(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await dI(l,c,t.cloneNode(!0))}else o=await WT(t);if(Ut)return;if(!o||o.size<6*1e4){gd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await kf(o);return await Sh(e,t,s)?!0:s?qT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function qT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await pI(n)||n,u=r||a;try{if(Ut)return;dr("Translating",Ut),bh(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};ci(l);let d=await xh(e,u,s,a,i,m=>{bh(e,o,m)});return d?(l.targetUrl=d,ci(l),await GT(At,t,d),dr("Translated",Ut),!0):!1}catch(l){if(ci({sourceUrl:u,to:e.targetLanguage,error:l.message}),Ut)return;throw l}}async function Sh(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=ld(r);return a&&a?.targetUrl?(await GT(At,t,a.targetUrl||""),dr("Translated",Ut),!0):!1}function lI(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=ld(r);return a&&a?.targetUrl}return!1}async function cI(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!gI(a,i)){gd?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await Sh(e,t,o))return!0;let s=null;if(dr("Translating",Ut),Ut)return;if(i.startsWith("blob:")){let d=await fetch(i);await Ga(d),s=await d.blob()}else if(a.urlFetchType=="img")s=await mI(i);else{let d=await K({url:i,responseType:"base64"});s=await gc(d)}if(Ut)return;if(await BT(s))throw new Vu("GIFs not supported","gif_not_supported");let l=await kf(s);if(!o&&(o=l,await Sh(e,t,o)))return!0;if(!o)return!1;return qT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(d){if(!d?.startsWith("blob:")&&!a.enableBlobCache)return d}}function zT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function WT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function dI(e,t,n){return new Promise((r,a)=>{K({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await WT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function GT(e,t,n){try{return await NT(e,t,n)}catch{let a=await bI(n);return NT(e,t,a)}}async function NT(e,t,n){return new Promise((a,i)=>{if(Ut)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function mI(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function pI(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function gI(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!qc(e.inValidSrcRegex,t):!0}var pd=0,Ku=0;function fI(e,t){if(pd!=0){Ku++;return}if(t.message.indexOf("quota exceeded")>0){jT(e,t);return}Ku++,pd=setTimeout(()=>{if(Ku<(At.errorTimes||3)){pd=0,Ku=0;return}jT(e,t),Ku=0,pd=0},At.errorInterval||3e3)}function jT(e,t){let r=new j("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(fn,{detail:r}))}function fd(e){return e.classList.contains("imt-img")||e.hasTranslate}function hI(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function bI(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var Yu=null,Ch="showImagePricingModal";function VT(e){let t=Ee(null),n=Ee(!1),[r,a]=W(!1),[i,o]=W(null),[s,u]=W({}),[l,c]=W(0),[d,m]=W("");ee(()=>{let h=e.rule.imageRule,b=h?.toolsMinHeight||100,f=h?.toolsMinWidth||100,y=null,x=S=>{S.isHoverMarked||(S.isHoverMarked=!0,!md(S.src)&&(S.addEventListener("mouseover",()=>{y&&clearTimeout(y),!S.closest('[contenteditable="true"]')&&(S.width{o(S)},h.toolsDelayTime):o(S)))}),S.addEventListener("mouseout",()=>{y&&clearTimeout(y),setTimeout(()=>{n.current||o(null)},10)})))};Yu&&Yu.disconnect();let T=Ln(()=>{document.querySelectorAll("img").forEach(S=>{x(S)})},200);return Yu=new MutationObserver(()=>{T()}),Yu.observe(document,{subtree:!0,childList:!0}),()=>{Yu?.disconnect()}},[n,e]),ee(()=>{let h=document.querySelector("#monica-content-root");if(!i){u({});return}let b=()=>{let f=i.getBoundingClientRect(),y=h?56:16,x=f.top+f.height-50,T=f.left+f.width-30-y;u({top:x+"px",left:T+"px"})};return b(),globalThis.addEventListener("wheel",b),()=>{globalThis.removeEventListener("wheel",b)}},[i]),ee(()=>{if(!i)return;let h=new IntersectionObserver((b,f)=>{b.forEach(y=>{y.isIntersecting||o(null)})});return h.observe(i),()=>{h.disconnect()}},[i]),ee(()=>{t.current&&(t.current.addEventListener("mouseover",()=>{n.current=!0}),t.current.addEventListener("mouseout",()=>{n.current=!1}))},[t]),ee(()=>{if(!e)return;let h=b=>{let y=JSON.parse(b.detail);Be("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:y.trigger}}],e),y.trigger&&m(y.trigger),a(!0)};return document.addEventListener(Ch,h),()=>{document.removeEventListener(Ch,h)}},[a,e]);let p=De(async h=>{if(h.translationStatus==="translating")return;if(fd(h)){di(h),c(f=>f+1);return}if(setTimeout(()=>{c(f=>f+1)},100),!e.isPro){let f=await dt.get(ct,null);if(ft(f)){e.user=f,e.isPro=!0,await wa(e,h,!0,"image_tools"),c(y=>y+1);return}m("image_tools"),Be("show_image_pricing_modal",[{name:"show_image_pricing_modal",params:{trigger:"image_tools"}}],e),a(!0);return}await wa(e,h,!0,"image_tools"),c(f=>f+1)},[e]),g=he(()=>{if(!i)return null;if(i.translationStatus=="translating")return"translating";if(i.translationStatus=="success"||i.classList.contains("imt-img"))return"success"},[i,l]);return{hoveImage:i,hoveImageStyles:s,containerRef:t,activeRef:n,showPricingModal:r,imageStatus:g,trigger:d,setShowPricingModal:a,handleTranslate:p}}function KT(){let[e,t]=W(!0),n=De(async r=>{if(r==="UntilNext"){t(!1);return}let a=await ln(),i=a.generalRule?.["imageRule.add"]||{};if(r=="AlwaysClose")await Hr({...a,generalRule:{...a.generalRule,"imageRule.add":{...a.generalRule?.["imageRule.add"],enableTools:!1}}});else if(r=="CurrentWebsite"){let o=i.blockToolsUrls||[];await Hr({...a,generalRule:{...a.generalRule,"imageRule.add":{...i,blockToolsUrls:[...o,globalThis.location.hostname]}}})}t(!1)},[]);return{enable:e,handleCloseConfirm:n}}function hd(e){document.dispatchEvent(new CustomEvent(Ch,{detail:JSON.stringify({trigger:e})}))}function bd(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Ha(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var yI=new AbortController,{signal:xI}=yI,Ju=0,Xu=0,Gi=!1,mi,$T=0,Ea=[];function kh(e){vI(),bd().forEach(t=>{yd(e,t)})}function yd(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&EI(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,yd(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,yd(n,t))}t.document.addEventListener(Ls,s),Ea.push(()=>{t.document.removeEventListener(Ls,s)});let u=$n(m=>{if(!(Math.abs(m.clientX-Ju)+Math.abs(m.clientY-Xu)<=3)&&(Ju=m.clientX,Xu=m.clientY,Gi&&!mi&&Ah(n,!1,t),o||Gi&&!mi)){let p=XT(n.rule,t);if(p){if(Eh(p))return;xd(n,!1,t,p)}}},o?700:300),l=m=>{let p=m.target;Eh(p)||(xd(n,!0,t),Ah(n,!0,t,!0))},c=m=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Nn.getPressedKeyCodes();if(g.length>1&&Nn[p]&&($T=Date.now(),Gi=!1),g.length===1&&Nn[p]){let h=Date.now();Gi=!0,mi&&clearTimeout(mi),mi=setTimeout(()=>{let b=$T-h;b>0&&b<=i?Gi=!1:l(m),mi=void 0},i)}};if(Ea.push(()=>{mi&&clearTimeout(mi)}),a)return;Zu("mousemove",u,t),Ea.push(()=>{t.removeEventListener("mousemove",u)});function d(){o?u.cancel():Gi=!1}if(Zu("blur",d,t),Ea.push(()=>{t.removeEventListener("blur",d)}),!o){let m=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=s1;Zu("keyup",YT,t),Ea.push(()=>{t.removeEventListener("keyup",YT)}),p.includes(m)?Nn("*",{scope:"mouseHover",element:t.document},c):Nn(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Nn.setScope("mouseHover"),Ea.push(()=>{Nn.deleteScope("mouseHover")})}}function vI(){try{Ea.forEach(e=>e())}catch{}Ea=[],Nn.setScope("all")}function YT(e){Gi=!1}function Zu(e,t,n=window){return n.addEventListener(e,t,{signal:xI})}function xd(e,t,n,r){if(r=r||XT(e.rule,n),!r){k.debug("can not find selection part!");return}if(SI(e,r,t))return;if(Eh(r)){k.debug("exclude dom");return}Ux(e,r);let i=Ou();i&&(i.setupMouseHoverListener=yd);let o=dn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=Mf(i,e);xa({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{zc(n.document.documentElement)!==e.state.translationMode&&Gr(n.document.documentElement,e.state.translationMode),ji(u,l,!0,"hover").then(d=>{if(d&&!s){s=!0;let m=Date.now();it(V3,m);let p={translation_service:u?.translationService||""};Be("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function XT(e,t){return TI(Ju,Xu,e,t)}function TI(e,t,n,r){let a=Pb(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=_b(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:JT(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{wI(e,a)}),!0}function CI(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function wI(e,t){let n=Ou();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{Eu(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function wh(e){return!!(e.host&&e.mode)}function ZT(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||wh(n))return e;for(;n&&n.nodeName!=="BODY"&&!wh(n)&&xp(n,t);){let r=n.parentNode;if(r&&wh(r))break;n=r}return n}function JT(e,t){return e.nodeType===Node.TEXT_NODE||xp(e,t)?ZT(e,t):e}function QT(e,t,n){Ju=t.clientX,Xu=t.clientY,xd(e,!0,n),Ah(e,!0,n)}async function Ah(e,t,n,r){if(!hs(e))return;let a=Rb(Ju,Xu,e.rule,n);if(!a||md(a.src)||a.translationStatus==="translating")return;let i=fd(a);if(i&&!t||i&&!r)return;if(i){di(a);return}if(!await qs(e)){hd("image_mouse_hover");return}wa(e,a,!0,"image_mouse_hover")}function EI(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&xd(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};Zu("mousedown",i,t),Zu("mouseup",o,t),Ea.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var wn=!1,Dh,eS=!1,vd=null,AI=` .${P}-input { position: absolute; top: 0; @@ -6350,10 +6350,10 @@ ${s}`)}),ni(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= color: white; left: -100px; box-sizing: border-box; - animation: ${J}ShadowRolling 1.5s linear infinite; + animation: ${Z}ShadowRolling 1.5s linear infinite; } -@keyframes ${J}ShadowRolling { +@keyframes ${Z}ShadowRolling { 0%, 100% { box-shadow: 0px 0 rgba(255, 255, 255, 0); } @@ -6379,12 +6379,12 @@ ${s}`)}),ni(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s= box-shadow: 130px 0 var(--loading-color); } } -`;function Mh(e){yd().forEach(t=>{LB(e,t)})}function LB(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(Sd===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Zn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(wn||Sd===!1)return;let p=wd(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(IB(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&n5(t,o,m.target)&&(s=0,Fh(m,e,t,o))}function d(){Lh=l,t.removeEventListener("keyup",Lh),t.addEventListener("keyup",Lh,!0)}BB(e)}function r5({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Td(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var bs;function Ph(e){let t=e.parentElement;if(!t)return;bs=document.createElement("div"),bs.className=P+"-input";let n=`
`;bs.innerHTML=mr?.createHTML(n)||n,t.appendChild(bs);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=DB,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Rh(){bs&&bs.remove()}async function MB(e,t=window){if(wn)return;let r=globalThis.getSelection()?.toString();if(r){_h(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let v=m.split(" ")[0];v&&v[0]&&(v=v[0].toLowerCase()+v.slice(1)),v.trim()&&u.flatAlias.includes(v)?(p=Td(v,u.codeAlias),d=m.slice(v.length+1)):d=m},y=function(){p="";let v=r5(u),S=m.split(v);if(S.length<2)return;if(d=S[S.length-1],c=S[0],S.length>2){let w=m.lastIndexOf(d),E=m.slice(0,w).lastIndexOf(S[S.length-2]);c=m.slice(0,E+S[S.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let T=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Td(T,u.codeAlias),!p){k.warn("not found alias",T);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Zn.forEach(v=>i[v]=[v,...i[v]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;wn=!0;let c="",d="",m=Or(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=a5(d,u),h=await Be({text:g,pageLangs:["en"]});k.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Ph(l),it(Rs,Date.now());try{e.specialAiAssistant=Mr(e,e.inputTranslationService,!0);let v=await $r(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});Bh(e),c5(e,t,l,c+v.text)}catch(v){if(v instanceof j){let S=v.uiConfig(e);Oh(S.action)&&(S.action="none"),t.document.dispatchEvent(new CustomEvent(fn,{detail:S}))}}finally{wn=!1}}catch(a){throw wn=!1,a}finally{wn=!1,Rh()}}async function Fh(e,t,n,r){if(!wn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=Td(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=r5(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Td(b,r.codeAlias),!u){k.warn("not found alias",b);return}},a=wd(n.document,t.rule.enableInputDeepActive);if(!a)return;wn=!0;let i="",o="",s=Or(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=a5(o,r),c=await Be({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!t5){t5=!0;let g=await _B(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(Sd=!1,g==="disable_forever"){let h=await Lt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await qt(h)}else if(g==="disable_once"){let h=await Lt();h.isShowInputTranslationConsent=!1,await qt(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(Sd=!1,g==="close_disable_forever"){let h=await Lt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await qt(h)}return}else if(g==="enable"){let h=await Lt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await qt(h)}else if(g==="close_enable"){let h=await Lt();h.enableInputTranslation=!0,await qt(h)}}Ph(a),it(Rs,Date.now());try{t.specialAiAssistant=Mr(t,t.inputTranslationService,!0);let g=await $r(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});Bh(t),c5(t,n,a,i+g.text)}catch(g){if(g instanceof j){let h=g.uiConfig(t);Oh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(fn,{detail:h}))}}finally{wn=!1}}catch(a){throw wn=!1,a}finally{wn=!1,Rh()}}function n5(e,t,n){if(!n)return!1;if(Ih(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=PB(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=at()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function PB(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function a5(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function i5(e,t){let n=t.innerHTML,r=Or(t);return{html:n.replace(r,e),text:e}}function Cd(e,t,n=!1){let r=Or(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Or(e){return e.value||e.innerText||e.textContent}async function _r(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function RB(e,t,n){await _r(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await _r(10)}async function o5(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await _r(10))}async function s5(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await _r(20),(t.value||t.value==="")&&(t.value=e.text)}async function u5(e,t){Ih(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await _r(20))}var l5=[RB.bind(null,["plain"])];function Ih(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function FB(e,t){if(Ih(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function c5(e,t,n,r){await _r(50),await FB(t,n),await _r(50);let a=e.rule.inputConfig,i=i5(r,n);try{await _r(50),a?.execCommandDeleteEnable&&!Sr()&&Or(n)?.trim()!=""&&(t.document.execCommand("delete"),await _r(50)),k.debug("clearContent",Or(n))}catch(o){k.error(o)}for(let o of[...l5,s5,u5,o5]){await o(i,n);let s=d5(t);if(!s)return;if(k.debug("setContent",o.name,Cd(i,s),Or(s),i),Cd(i,s))break}}function d5(e){return e.document.activeElement}function Bh(e,t=""){_e("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function IB(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function BB(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(Rs,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{OB()},100),new Promise(d=>{let m=d;if(o){let F=o.shadowRoot;if(!F)return;s=F.querySelector(`.${n}`);let _=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),N=s.querySelector(`.${a}`)}else{let F=document.createElement("div");F.setAttribute("translate","no"),F.className=`no-translate ${P}-error-modal-input-shadow-root`,F.id=t,F.style.all="initial",F.style.zIndex="2147483647",document.body.appendChild(F);let _=F.attachShadow({mode:"open"}),L=document.createElement("style"),N=be();L.textContent=N.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,_.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let I=document.createElement("div");I.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(I);let U=document.createElement("span");U.textContent="\xD7",U.className=P+"-close",I.appendChild(U),u=document.createElement("div"),u.className=r+" notranslate",I.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",I.appendChild(c),l=document.createElement("div"),l.className=i,I.appendChild(l),_.appendChild(s),U.onclick=function(){A(),d("close")},_.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",B);let p=Me.bind(null,e.config.interfaceLanguage),g=`
${M0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=mr?.createHTML(g)||g,c.innerHTML=mr?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});h.innerHTML=mr?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Ze.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=mr?.createHTML(y)||y,c.appendChild(f);let v=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let F=0;F0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function _h(e,t,n,r){if(wn)return;try{let o=wd(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;wn=!0;let u=e.config.inputTargetLanguage,l=await Be({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Ph(o),it(Rs,Date.now());try{if(e.specialAiAssistant=Mr(e,e.inputTranslationService,!0),Bh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await $r(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await $r(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof j){let m=d.uiConfig(e);Oh(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(fn,{detail:m}))}}finally{wn=!1}}catch(o){throw wn=!1,o}finally{wn=!1,Rh()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=i5(l,u);try{await _r(50),c?.execCommandDeleteEnable&&!Sr()&&Or(u)?.trim()!=""&&(s.document.execCommand("delete"),await _r(50)),k.debug("clearContent",Or(u))}catch(m){k.error(m)}for(let m of[...l5,s5,u5,o5]){await m(d,u);let p=d5(s);if(!p)return;if(k.debug("setContent",m.name,Cd(d,p),Or(p),d),Cd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function Oh(e){return e==="retry"||e==="changeService"}var $u=[];function Nh(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),$u.push(()=>{document.removeEventListener("click",i)})}function m5(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),$u.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Ed(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),$u.push(()=>{document.removeEventListener("touchstart",r)})}var jh={touchShortcutsOff:()=>{},"multipleClick.2":Nh,"multipleClick.3":Nh,"multipleClick.4":Nh,"slide.left":m5,"slide.right":m5,"fingers.2":Ed,"fingers.3":Ed,"fingers.4":Ed,"fingers.5":Ed};async function g5(e,t=window){try{WB();let n=await ln(),r=o1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=jB(e,n,a.command),o=jh[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{zB(a.command,e,t,l)})})}catch(n){k.error(n)}}function jB(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var UB=()=>{Uh();let e=new CustomEvent(xr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},HB=()=>{qh();let e=new CustomEvent(xr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},qB=()=>{Hh();let e=new CustomEvent(xr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},p5=0,zB=(e,t,n,r)=>{if(!(new Date().getTime()-p5<200)){if(p5=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")UB();else if(e==="touchShortcutsToggleTranslationMask")qB();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")HB();else if(e==="touchShortcutsToggleTranslateTouchElement")e5(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Fh(r,t,n,s)}}};function WB(){$u.forEach(e=>{e()}),$u=[]}function f5(e){let{t}=se(),{ctx:n,setSettings:r}=e,a=GB(e);return Hs(n.localConfig)?a.length?x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),x(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Bs[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:x(VB,{...e})}function GB({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=se(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>Bs.filter(s=>!(s==="Off"||Bs.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ss(s)}),l=Bs.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function VB(e){let{ctx:t,setSettings:n}=e,{t:r}=se(),a=t.config.generalRule,i=Object.keys(jh).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),x("div",{class:"flex mt-3 items-center justify-between",children:[x("div",{class:"flex items-center",children:[x("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),x(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function h5(e){let{isAlwaysTranslateLang:t}=KB({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=se();if(e.currentLang!=="auto")return x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:ai(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),x("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return x("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Kc(e.currentLang,u.matches),excludeMatches:Kc(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=Vc(e.currentLang,u[i]),u[o]=Kc(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function KB({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}var YB=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=W(!1),h=Ee(null),b=Ee(null),f=()=>{u||!l&&(Ve().any||Jn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(Ve().any||Jn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{v()},2e3))},v=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},S=he(()=>{let E={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(E.maxWidth="200px",o&&(E.width=o+"px"),E.whiteSpace="normal"),c?.width&&(E.width=c.width),c?.maxWidth&&(E.maxWidth=c.maxWidth),c?.whiteSpace&&(E.whiteSpace=c.whiteSpace),E},[i,o,c]),T=he(()=>{let E={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...E,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...E,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...E,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...E,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),w=E=>Oc()?x("div",{style:S,role:"tooltip",children:E}):x("div",{style:S,role:"tooltip",dangerouslySetInnerHTML:{__html:E}});return x("div",{class:a,onMouseEnter:f,onMouseLeave:v,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[x("div",{children:t}),p&&x("div",{style:T,children:w(e)})]})},zn=YB;function y5({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=se(),i=be(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:Yv,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:$v,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(T1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:tx,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(S1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return x("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?x(zn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:x(b5,{...s})}):x(b5,{...s}))})}function b5(e){return x("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,x("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function zh(){let e=["bingGlobalConfig","baiduGlobalConfig",B3,Em];for(let t of e)await ne.storage.local.remove(t);X()||await s2(),await Qm()}var QB=["bing","transmart","google","yandex"];function x5(e){let{t}=se();return e.showTrialPro?x("div",{class:"trial-pro-container",children:[x("label",{class:"mb-0",children:t("popup.trial_pro_service")}),x("img",{src:ns,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(Rn,`${e.type}_trial_pro_service_logo`)}}),x("div",{class:"flex-1"}),x("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(Rn,`${e.type}_trial_pro_service`)}})]}):null}var v5="popup_trial_pro_show_count";function S5(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=W(null),s=Ee(!1);ee(()=>{Ci(v5,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!QB.includes(d)},[t,n,r,i]);return ee(()=>{!u||i==null||s.current||(s.current=!0,wi(v5,i+1))},[u,i,s,a]),{showTrialPro:u}}function Wh(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=W(""),[l,c]=W(null),[d,m]=W(null);ee(()=>{dt.get(ct,null).then(f=>{f?(c(f),m(ft(f))):m(!1)}).catch(f=>{m(!1)})},[]);let p=!0,g=at();n&&g&&(p=n.generalRule.showSponsorOnSafari);let h=Ka(n),{showTrialPro:b}=S5({ctx:a,isHidden:h,isProUser:!!d,setLocalConfig:e.onSetLocalConfig});return x("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[x("div",{class:"popup-content text-sm",children:[h&&!d?x("div",{style:{marginTop:-12}}):x("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[x(rx,{isLogin:!!l,isProUser:!!d,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),x(n_,{openSharePage:r})]}),x(ax,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),x(AS,{isProUser:!!d,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:b}),x(x5,{showTrialPro:b,onOpenUrl:e.onOpenUrl,type:e.type}),x("div",{class:"flex flex-row mt-3 items-center",children:[x(XB,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),x(e_,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),x("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),x(_f,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),x("div",{class:"text-sm px-1 text-gray-2",children:[x(MS,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),x(f5,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),x(h5,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),x(ZB,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),x(JB,{ctx:a})]}),x(y5,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),x($B,{...e,isProUser:!!d,isShowPricing:p,setMessage:u})]})}function JB({ctx:e}){if(e.rule.imageRule?.type!="manga"||!md(e.rule.imageRule))return null;let{t}=se();return x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function ZB(e){let{t}=se(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&Fm.includes(i.type||""),[n,Fm,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Oc()?x("div",{class:"flex justify-between mt-3 items-center",children:x("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):x("div",{class:"flex justify-between mt-3 items-center",children:[x("label",{class:"mb-0",children:t("autoEnableSubtitle")}),x("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function XB(e){let{t}=se(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return x(zn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:x("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Jv:Zv})})}function $B(e){let{t,lang:n}=se(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=De(f=>{i&&(o(y=>Hc({...y},f)),e.onUpdateFloatBallEnable(f.enable))},[i,o,e.onUpdateFloatBallEnable]),c=cu(i,s.rawUserConfig),d=be(),m=`${e.type}_more`;if(!c)return null;return x("footer",{children:x("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[x("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[Qv,x("span",{class:"ml-1 text-gray-6",children:t("options")})]}),x(t_,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),x(Bf,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:f=>{f.value==="openPremium"?(globalThis.open(Rn),e.onClose()):f.value==="changeToOnlyTranslationMode"?g("translation"):f.value==="changeToDualTranslationMode"?g("dual"):f.value==="translateTheWholePage"?e.onTranslateTheWholePage():f.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():f.value==="translateTheMainPage"?e.onTranslateTheMainPage():f.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):f.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):f.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):f.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):f.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):f.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):f.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):f.value==="options"?(e.openOptionsPage(),e.onClose()):f.value==="changeToTranslateTheWholePage"?h():f.value==="changeToTranslateTheMainPage"?b():f.value==="about"?e.openAboutPage():f.value==="toggleEnabled"?e.onToggleEnabled():f.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):f.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):f.value==="goPro"?e.onOpenUrl(Rn,m):f.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):f.value==="openInstruction"?e.onOpenUrl(y1,m):f.value==="cleanCache"?zh().then(()=>e.onClose()):f.value==="disableFloatBall"?l({...c,enable:!1}):f.value==="enableFloatBall"?l({...c,enable:!0}):f.value=="webReport"&&e.onWebReport()},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(f){f.preventDefault(),e.openOptionsPage()}function g(f){e.onSwitchTranslationMode(f)}function h(){e.setSettings(f=>({...f,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(f=>({...f,translationArea:"main"})),e.onTranslateTheMainPage()}}function e_({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=se(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Ai(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Sr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):X()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Jn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ss(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),x("button",{class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function t_({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=se(),o=Wt();return x("div",{class:"flex",children:x("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),Py(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:x("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function n_(e){let{t}=se();return x("div",{class:"share-button-container",onClick:e.openSharePage,children:[x("span",{class:"text-gray-9",children:t("buildSnapshots")}),Xv]})}var Gh={get:(e,t,n)=>ne.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ne.storage[n].set({[e]:t})};function Ad(e,t,n){let[r]=W(()=>typeof t=="function"?t():t),[a]=W(n),[i,o]=W(r),[s,u]=W(!1),[l,c]=W("");ee(()=>{Gh.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=De(m=>{let p=typeof m=="function"?m(i):m;k.debug("new settings",p),Gh.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function Vh(e,t,n){let r=[];return function(){let[i,o,s,u]=Ad(e,t,n),l=De(c=>{for(let d of r)d(c)},[]);return ee(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function T5(e,t){return Vh(e,t,"sync")}var r_="userConfig",a_=null,i_=T5(r_,a_);function Aa(e){let[t,n,r,a]=i_(),[i,o]=W();ee(()=>{(async function(){let u=await Zc();o(u)})()},[t]);let s=De(async u=>{let l=typeof u=="function"?u(i):u;l&&Kh(l);let{userConfig:c,promptPool:d,objectPool:m}=await Np(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(d).length,d),k.debug("objectPool size",JSON.stringify(m).length,m),await Cr(Qc,d),await Cr(Jc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function Kh(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var p4e=1e3*3600*24;async function kd(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ne.storage.local.set({[Is]:t.toISOString()}),await Yh(),X()||await k2()}catch(t){k.error("run cron task failed",t)}}async function C5(){let t=(await xn()).interval;if(t){let n=await ne.storage.local.get(Is);if(n&&n[Is]){let r=n[Is];if(Date.now()-new Date(r).getTime()r?(await ne.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),jr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}var D4e=be().REDIRECT_URL;var c3e=Ao([]);function E5(e){let[t,n]=W(null);return ee(()=>{Mt().then(r=>{n(r),k.debug("current config",r)})},[]),ee(()=>{Mt().then(r=>{n(r)})},[e]),t}function A5(){let[e,t]=W(null);return ee(()=>{Yt().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var d_=Ln(m_,1e3);async function m_(e,t,n){try{if(t===null)return"noupdate";let r=await Yt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Ya(t.proSyncAPIKey,t);return await Qh(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await D5(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Ry(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Ya(t.proSyncAPIKey,t);return await Qh(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||Fy(n)&&d_(n.token,e,t)},[e,n])}function p_(){let[e,t]=W(null);return ee(()=>{dt.get(ct,null).then(n=>{t(n)})},[t]),e}function D5(e){return(location.href?.indexOf("popup.html")>0?Mi:K)({responseType:"json",url:ut+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Qh(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Mi:K)({responseType:"json",url:ut+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Ld(e){let{onClose:t}=e,[n,r]=W("Original"),[a,i,o,s]=Aa(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});Dd(a,i);let[u,l]=W(null),[c,d]=W(globalThis.location.href),[m,p]=W("auto"),[g,h]=W(null),b=Ee(!1);ee(()=>{!g||b.current||(b.current=!0,_e("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,b]);let f=_=>{r(_.detail)};ee(()=>(document.addEventListener(vi,f,!1),xn().then(_=>{l(_);let L=mt();p(L);let N=Ye();r(N),kd(_.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",f),document.removeEventListener("urlChange",S)}),[]),ee(()=>{xn().then(_=>{l(_)})},[a]),ee(()=>{c&&u&&Md().then(_=>{h(_)})},[c,u]);let y=De((_,L)=>{T("change_translate_service",!1,{translation_service:`${_}_${L}`})()},[]);if(!u||!g)return null;return x(Wh,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:_=>{T("switchTranslationMode",!0,{mode:_})()},request:K,onClose:w,onToggleEnabled:E,onChangeService:y,onTranslateTheWholePage:T("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:T("toggleTranslatePage",!0),onTranslateTheMainPage:T("translateTheMainPage",!0),onTranslateToThePageEndImmediately:T("translateToThePageEndImmediately",!0),onTranslatePage:T("translatePage",!0),onRestorePage:T("restorePage",!1),onWebReport:T("webReport",!0),onTranslatePdf:()=>{D(ki(g.rule)||c)},openAboutPage:B,openSharePage:T("shareToDraft",!0),onSetPageLanguage:v,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:fa,onSetBuildinConfig:y2,onAutoEnableSubtitleChanged:T("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:T("toggleEnableEditTranslation",!0),updateContextState:_=>T("updateContextState",!0,_)(),onOpenUrl:A,onUpdateFloatBallEnable:T("updateFloatBallEnable",!0)});function v(_){p(_);let L=Vv(c,_,u.sourceLanguageUrlPattern);i(N=>({...N,sourceLanguageUrlPattern:L})),$n(_)}function S(){d(globalThis.location.href)}function T(_,L,N={}){let I={trigger:"page_popup",...N};return()=>{Zt({method:_,data:I}),L&&t()}}function w(){t()}function E(){i(_=>({..._,enabled:!_.enabled})),setTimeout(()=>{w()},50)}function A(_,L){let N=_;L&&(N=`${_}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),mc(N,!0),setTimeout(()=>{w()},50)}function D(_){_&&(po(!1,_),setTimeout(()=>{w()},50))}function M(_=!0,L=""){_a(_,L),setTimeout(()=>{t()},50)}function B(){cc(),setTimeout(()=>{t()},50)}function F(){A2(),setTimeout(()=>{t()},50)}}function I5(){let[e,t]=W("Original");return ee(()=>{let n=Ye();t(n);let r=a=>{t(a.detail)};return document.addEventListener(vi,r),()=>{document.removeEventListener(vi,r)}},[]),{pageStatus:e}}function B5(){let[e,t]=W("Original");return ee(()=>{let n=mo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ps,r),()=>{document.removeEventListener(Ps,r)}},[]),{mangaStatus:e}}var L5=6,g_={position:"right",top:335};function _5({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ee(null),o=Ee(null),[s,u]=W(!1),l=Ee(!1);l.current=s;let c=Ee(null),d=Ee(!1),m=Ee(n.floatBallConfig||g_),p=Ee(0),g=Ee(0),h=Ee(0),b=Ee(!1),f=Ee(0),y=Ee(0),v=Ee(0),S=Ee(0),T=Ee(!1),w=De(E=>{if(!a)if(clearTimeout(c.current),E)u(E);else{let A=Ve().any||Jn();c.current=setTimeout(()=>{u(E),b.current=!1},A?3e3:0)}},[u,c,b,a]);return ee(()=>{a||u(!1)},[a]),ee(()=>{if(i.current&&m.current){let E=Jh(m.current.top);m.current.top=E,i.current.style.top=`${E}px`,i.current.style.display="flex"}},[t,i]),ee(()=>{if(!o.current||!i.current)return;let E=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),w(!0),v.current=L.clientX,S.current=L.clientY,T.current=!1,(Ve().any||Jn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{M5({startX:p.current,startY:g.current,endX:v.current,endY:S.current})||(T.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",B),document.addEventListener("mouseup",D),document.addEventListener("touchend",F),document.addEventListener("touchcancel",F)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(v.current=L.clientX,S.current=L.clientY,T.current))return;let N=L.clientY-g.current+h.current,I=Jh(N);i.current.style.top=`${I}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),_(),d.current=!1,clearTimeout(c.current),b.current||w(!1),T.current)return;M5({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let I=Jh(L.clientY-30);m.current.top=I;let U=await In();fa({...U,floatBallConfig:m.current})},M=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},B=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},F=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},_=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",B),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",F),document.removeEventListener("touchcancel",F)};return o.current.addEventListener("mousedown",E),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",E),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,d,n,w,e]),ee(()=>{if(Ve().any)return;let E=D=>{D.target===i.current&&!b.current||!l.current&&R5(D)&&c.current||(b.current=!0,w(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&R5(D)&&c.current)){if(d.current){b.current=!1;return}D.target===i.current&&!b.current||w(!1)}};return i.current?.addEventListener("mouseover",E),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",E),i.current?.removeEventListener("mouseout",A)}},[i,d,w,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:w}}function M5({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>L5||i>L5}function O5(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function N5(){let[e,t]=W(!1);return ee(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var P5="hasShownFloatingBallGuide",f_="2024-01-06";function j5(e,t){let[n,r]=W(!1),a=De(()=>{it(P5,new Date().toISOString()),r(!0)},[r]);ee(()=>{if(!e.config.enableShowFloatingBallGuide||mt()==e.targetLanguage)return;let o=We(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ht(P5,""),u=await Ht("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Il,o),()=>{document.removeEventListener(Il,o)}},[]);let i=De(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function U5(){document.dispatchEvent(new CustomEvent(Il))}function H5(e,t){let n=Ee(0),[r,a]=W(!0),[i,o]=W(!1),s=Aa(),[u,l]=s,{t:c}=se(),d=De(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Jn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);ee(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=De(async()=>{if(!e)return;n.current=n.current+1,d();let h=await ln();l(b=>{let f={...h};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Jn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Jn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:ai(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${ss(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function Jh(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var Zh=0;function R5(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(Zh=Date.now(),!0):Date.now()-Zh<100}function q5(e,t){ee(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(xi,n),()=>{globalThis.document.addEventListener(xi,n)}},[e,t])}function z5(e,t){let n=Ee(e);n.current=e,ee(()=>{!n.current||!t||_e("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var F5="imt-float-ball-active";function W5(e){ee(()=>{let t=!!document.querySelector(`meta[name='${F5}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(F5)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(Rl,n),()=>{document.removeEventListener(Rl,n)}},[])}function G5(e){document.dispatchEvent(new CustomEvent(Rl,{detail:{active:e}}))}function h_({isOpen:e,onClose:t,children:n}){let[r,a]=W(e);return ee(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:x(Pt,{children:[e&&x("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),x("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:x("div",{className:`${P}-sheet-content`,children:n})})]})}var Pd=h_;var Vi="imt-fb";function Rd(e){if(globalThis.innerWidth<=385)return x(Pd,{isOpen:e.visible,onClose:e.onClose,children:x(V5,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?x("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:x("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:x(V5,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function V5(e){let{t}=se(),[n,r]=W("UntilNext"),a=Oa()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return x("div",{class:`${Vi}-close-content`,style:e.contentStyle,children:[x("div",{class:"flex justify-between",children:[x("div",{class:`${Vi}-close-title`,children:e.title||t("closeQuickTranslation")}),x("div",{class:"clickable",onClick:e.onClose,children:x(Ft,{type:"modal-close"})})]}),x("div",{class:`${Vi}-close-radio-content mt-3`,children:o.map(s=>x(b_,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ur(u)}},s.type))}),x("div",{class:"flex mt-3 flex-end",children:[x("div",{class:`${Vi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),x("div",{class:`${Vi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function b_(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=y_(r||"");return x("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[x("div",{class:t?`${Vi}-radio-sel`:`${Vi}-radio-nor`,children:x("div",{})}),x("div",{class:"ml-2 text-sm",children:[x("span",{children:n}),r?x("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:x("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function y_(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function K5(e){return de.ASSETS_BASE_URL+e}var Ki="imt-fb";function Y5(e){let{t}=se(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?x("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:x("div",{class:`${Ki}-guide-container`,style:r,children:[x("img",{class:`${Ki}-guide-bg ${e.fixedPosition}`,src:v_}),x("div",{class:`${Ki}-guide-content ${e.fixedPosition}`,children:[x("img",{class:`${Ki}-guide-img`,src:K5("images/float_ball_intro.png")}),x("div",{class:`${Ki}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` -${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var v_="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQ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8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var Q5="imt-manga";function J5({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===P+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=De(()=>{if(t(),!a.isPro){if(a.user)return window.open(p1);window.open(d1)}},[a,t]);return e?x("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:x("div",{class:"imt-fb-guide-container",style:s,children:[x("img",{class:`${Q5}-guide-bg ${r}`,src:`${I3}static/extension/images/popup-manga-bg.png`}),x("div",{class:`${Q5}-guide-content ${r}`,children:[x("div",{class:"imt-fb-guide-message",children:u}),x("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),x(Ft,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var ka="imt-fb";function Xh(e){let{t}=se(),n=Aa(),[r,a,i,o]=n;Dd(r,a);let s=E5(r),u=e.ctx,{isFullScreen:l}=N5(),[c,d]=W(!1),m=Ee(c);m.current=c;let[p,g]=W(!0),{pageStatus:h}=I5(),b=cu(u,r),f=De(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Zt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Zt,d]),y=De(()=>{d(!0)},[d]),v=p&&!!s,{containerRef:S,active:T,ballRef:w,floatBallConfigRef:E,setActive:A}=_5({handleBallClick:f,handleMobileBallLongPress:y,isShow:v,localConfig:e.localConfig,popupVisible:c}),D=b?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:B,handleCloseGuide:F}=j5(e.ctx,b),{closeTransform:_,logoContainerTransform:L,settingTransform:N,mangaTransform:I}=O5(b,T||B);z5(u,T);let{tooltipDelay:U,disableTooltip:V,tooltipText:ie,handleShowTooltip:Ae}=H5(u,h);q5(d,m),W5(A);let O=globalThis.innerWidth<=385;return v?x(Pt,{children:x("div",{class:`${ka}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:T||B||c?"all":"none"},ref:S,children:[x(x_,{ctx:u,setVisible:g,closeTransform:_,setActive:A,getModalStyle:()=>Z5(E.current.top,300,D)}),x(zn,{enableMobile:!0,text:ie,position:M,delay:U,onShow:Ae,disable:V,children:x("div",{class:`${ka}-btn ${D} btn-animate `,ref:w,style:{transform:L,opacity:T||B?1:.5},children:x("div",{children:[x(Ft,{type:"logo"}),x(Ft,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),x(C_,{ctx:u,mangaTransform:I,floatBallConfigRef:E,fixedPosition:D,hidden:B}),x("div",{style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:[x(zn,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{mc(v1,!0)},children:x(Ft,{type:"file"})})}),x(zn,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:x("div",{class:`${ka}-more-button`,onClick:()=>{A(!0),d(!0)},children:x(Ft,{type:"setting"})})}),x(E_,{ctx:u,tooltipPosition:M,rule:b,active:T})]}),x("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:x(zn,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:x(Ft,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}}))}})})}),x($h,{onClose:()=>{A(!1),d(!1)},isSheet:O,visible:c,getModalStyle:()=>Z5(E.current.top,500,D)}),x(Y5,{visible:B,top:E.current.top,fixedPosition:D,onClose:()=>{F(),A(!1)}})]})}):null}function x_(e){let{t}=se(),[n,r]=W(!1),a=Aa(),[i,o,s,u]=a,l=cu(e.ctx,i),c=De(m=>{e.ctx&&o(p=>Hc({...p},m))},[e.ctx,o]),d=De(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return x(Pt,{children:[x("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:x(Ft,{type:"close"})}),x(Rd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function $h(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?x(Pd,{isOpen:e.visible,onClose:e.onClose,children:x(Ld,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?x("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:x("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:x(Ld,{onClose:e.onClose})})}):null}function S_(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var Z5=(e,t,n)=>{let a=S_().height,i={position:"fixed"},o=0;return D3()&&(e=T_.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},T_={position:"right",right:0,top:335};function C_({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=W(!1),{mangaStatus:u}=B5(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();ee(()=>{c||In().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=De(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await dt.get(ct,null);if(ft(g)){e.user=g,e.isPro=!0,Zt({method:"toggleTranslateManga"});return}s(!0);return}Zt({method:"toggleTranslateManga"})},[]);return!md(l)||r||!l?.enable?null:x(Pt,{children:[x("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[x(Ft,{type:"manga",onClick:m,hidden:u=="Translating"}),x(Ft,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),x(Ft,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),x(zn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:x(Ft,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"mangaReport"}}))}})})]}),x(J5,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var w_="float_ball_upgrade_show_count";function E_(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Ka(n.config),s=Ee(!1),[u,l]=W(null),c=he(()=>us(n.config),[n]),d=p=>us(p)?.upgradeShowCountCacheKey||w_;ee(()=>{Ci(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=us(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return ee(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wi(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?x(zn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Bm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x("div",{class:`${ka}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:x(Ft,{type:"upgrade"})})})}):x(zn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:x("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(Bm,"_blank")},children:x(Ft,{type:"upgrade"})})})}async function X5(){try{let e=await Mt(),t={url:globalThis.location.href,config:e},n=await Qt(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});A_(a,e,n),document.documentElement.appendChild(r)}catch{}}function A_(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=be(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);k_(e,[i]),e.appendChild(r),za(x(Oo,{lang:t.interfaceLanguage,children:x(D_,{ctx:n})}),r)}function k_(e,t){for(let n of t){if(X()&&!Sr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function D_(e){let[t,n]=W(!1),r=Ee(t);r.current=t;let a=Ee(""),i=Ee("");ee(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(xi,u),()=>{globalThis.document.addEventListener(xi,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return x($h,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Fd(e){document.dispatchEvent(new CustomEvent(xi,{detail:e||{}}))}function L_(e,t){for(let n of t){if(X()&&!Sr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Id(){let e=await xn(),t=await ln(),n={url:globalThis.location.href,config:e},r=await Qt(n),a=await Ip(r,t),i=We(r.url,a?.blockUrls),o=await Yt();if(!a?.enable||i)return X5();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return M_(u,e,o,r),document.documentElement.appendChild(s),s}function $5(){let e=document.getElementById(P+"-popup");e&&e.remove(),Id()}function M_(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=be(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);L_(e,[o]),e.appendChild(a),za(x(Oo,{lang:t.interfaceLanguage,children:x(Xh,{localConfig:n,ctx:r})}),a)}var e4=!1;async function eT(e){if(!e){let t=await xn(),n={url:globalThis.location.href,config:t};e=await Qt(n)}e.config.debug&&k.setLevel("debug"),e.isTranslateExcludeUrl?k.debug("detect exclude url, do not inject anything."):(e4=!0,Id().catch(t=>{k.debug("init popup error",t)}))}async function tT(){e4||(e4=!0,Id().catch(e=>{k.error("init popup error",e)}))}async function nT(e,t){let n,r;if(t){let a=C0(e);n=new Blob([a],{type:"text/html"}),r=await Lt(),r=Ya(!1,r)}return{siteUrl:location.href,pluginVersion:Wt(),isMobile:Ve().any,platform:Bi(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function rT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Dr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ut}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ga(l,"web"),l.json()))}function aT(e,t,n){if(e=="manga")return PS(t,n);if(e=="web")return nT(t,n)}function iT(e,t,n,r,a,i){if(e=="manga")return RS(t,n,a,i,r);if(e=="web")return rT(t,n,a,i,r)}function Bd(e,t,n,r,a,i,o){let s=Me.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; +`;function Lh(e){bd().forEach(t=>{kI(e,t)})}function kI(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(vd===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};Xn.forEach(m=>r[m]=[m,...r[m]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;Ve().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();d();function l(m){if(wn||vd===!1)return;let p=Cd(t.document,e.rule.enableInputDeepActive),g=p?.tagName;(p?.isContentEditable||g=="INPUT"||g=="SELECT"||g=="TEXTAREA")&&(_I(m,o.triggerKey,o.codePrefixAlias)?c({...m,target:p}):s=0)}async function c(m){Date.now()-u=o.triggerTimes&&tS(t,o,m.target)&&(s=0,_h(m,e,t,o))}function d(){Dh=l,t.removeEventListener("keyup",Dh),t.addEventListener("keyup",Dh,!0)}RI(e)}function nS({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Td(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var bs;function Mh(e){let t=e.parentElement;if(!t)return;bs=document.createElement("div"),bs.className=P+"-input";let n=`
`;bs.innerHTML=jn?.createHTML(n)||n,t.appendChild(bs);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=AI,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function Ph(){bs&&bs.remove()}async function DI(e,t=window){if(wn)return;let r=globalThis.getSelection()?.toString();if(r){Ih(e,t,r,"shortcutKey");return}try{let f=function(){p=e.config.inputTargetLanguage;let x=m.split(" ")[0];x&&x[0]&&(x=x[0].toLowerCase()+x.slice(1)),x.trim()&&u.flatAlias.includes(x)?(p=Td(x,u.codeAlias),d=m.slice(x.length+1)):d=m},y=function(){p="";let x=nS(u),T=m.split(x);if(T.length<2)return;if(d=T[T.length-1],c=T[0],T.length>2){let w=m.lastIndexOf(d),E=m.slice(0,w).lastIndexOf(T[T.length-2]);c=m.slice(0,E+T[T.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",d="";return}let S=m.slice(c.length+1,m.indexOf(d)).trim();if(p=Td(S,u.codeAlias),!p){k.warn("not found alias",S);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};Xn.forEach(x=>i[x]=[x,...i[x]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;Ve().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;wn=!0;let c="",d="",m=Or(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?f():(y(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&f());let g=rS(d,u),h=await Ie({text:g,pageLangs:["en"]});k.debug("translateContent",g,h);let b={text:g||"",id:0,from:h,to:p,url:"https://google.com",fromByClient:h,force:!0};if(!b.text||b.text.length>5e3)return;Mh(l),it(_s,Date.now());try{e.specialAiAssistant=Mr(e,e.inputTranslationService,!0);let x=await Qr(b,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});Fh(e),lS(e,t,l,c+x.text)}catch(x){if(x instanceof j){let T=x.uiConfig(e);Bh(T.action)&&(T.action="none"),t.document.dispatchEvent(new CustomEvent(fn,{detail:T}))}}finally{wn=!1}}catch(a){throw wn=!1,a}finally{wn=!1,Ph()}}async function _h(e,t,n,r){if(!wn)try{let m=function(){u=t.config.inputTargetLanguage;let g=s.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&r.flatAlias.includes(g)?(u=Td(g,r.codeAlias),o=s.slice(g.length+1)):o=s},p=function(){u="";let g=nS(r),h=s.split(g);if(h.length<2)return;if(o=h[h.length-1],i=h[0],h.length>2){let f=s.lastIndexOf(o),y=s.slice(0,f).lastIndexOf(h[h.length-2]);i=s.slice(0,y+h[h.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let b=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Td(b,r.codeAlias),!u){k.warn("not found alias",b);return}},a=Cd(n.document,t.rule.enableInputDeepActive);if(!a)return;wn=!0;let i="",o="",s=Or(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?m():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&m());let l=rS(o,r),c=await Ie({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let d={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!d.text)return;if(t.config.isShowInputTranslationConsent&&!eS){eS=!0;let g=await FI(t);if(e.target&&e.target.focus(),g==="disable_once"||g==="disable_forever"){if(vd=!1,g==="disable_forever"){let h=await Lt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await qt(h)}else if(g==="disable_once"){let h=await Lt();h.isShowInputTranslationConsent=!1,await qt(h)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(vd=!1,g==="close_disable_forever"){let h=await Lt();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await qt(h)}return}else if(g==="enable"){let h=await Lt();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await qt(h)}else if(g==="close_enable"){let h=await Lt();h.enableInputTranslation=!0,await qt(h)}}Mh(a),it(_s,Date.now());try{t.specialAiAssistant=Mr(t,t.inputTranslationService,!0);let g=await Qr(d,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});Fh(t),lS(t,n,a,i+g.text)}catch(g){if(g instanceof j){let h=g.uiConfig(t);Bh(h.action)&&(h.action="none"),n.document.dispatchEvent(new CustomEvent(fn,{detail:h}))}}finally{wn=!1}}catch(a){throw wn=!1,a}finally{wn=!1,Ph()}}function tS(e,t,n){if(!n)return!1;if(Rh(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` +`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=LI(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` +`).reverse(),l=at()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function LI(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function rS(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function aS(e,t){let n=t.innerHTML,r=Or(t);return{html:n.replace(r,e),text:e}}function Sd(e,t,n=!1){let r=Or(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function Or(e){return e.value||e.innerText||e.textContent}async function Br(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function MI(e,t,n){await Br(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await Br(10)}async function iS(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Br(10))}async function oS(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Br(20),(t.value||t.value==="")&&(t.value=e.text)}async function sS(e,t){Rh(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Br(20))}var uS=[MI.bind(null,["plain"])];function Rh(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function PI(e,t){if(Rh(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function lS(e,t,n,r){await Br(50),await PI(t,n),await Br(50);let a=e.rule.inputConfig,i=aS(r,n);try{await Br(50),a?.execCommandDeleteEnable&&!Tr()&&Or(n)?.trim()!=""&&(t.document.execCommand("delete"),await Br(50)),k.debug("clearContent",Or(n))}catch(o){k.error(o)}for(let o of[...uS,oS,sS,iS]){await o(i,n);let s=cS(t);if(!s)return;if(k.debug("setContent",o.name,Sd(i,s),Or(s),i),Sd(i,s))break}}function cS(e){return e.document.activeElement}function Fh(e,t=""){Be("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function _I(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function RI(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(_s,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{II()},100),new Promise(d=>{let m=d;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),N=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${P}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let B=R.attachShadow({mode:"open"}),L=document.createElement("style"),N=be();L.textContent=N.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let F=document.createElement("div");F.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(F);let U=document.createElement("span");U.textContent="\xD7",U.className=P+"-close",F.appendChild(U),u=document.createElement("div"),u.className=r+" notranslate",F.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",F.appendChild(c),l=document.createElement("div"),l.className=i,F.appendChild(l),B.appendChild(s),U.onclick=function(){A(),d("close")},B.addEventListener("click",V=>{V.target==s&&(s.style.display="none",d("close"))})}document.addEventListener("keydown",I);let p=Me.bind(null,e.config.interfaceLanguage),g=`
${M0} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=jn?.createHTML(g)||g,c.innerHTML=jn?.createHTML("")||"";let h=document.createElement("p"),b=p("modalEnableInputTranslationDesc",{1:ae+"docs/input/"});h.innerHTML=jn?.createHTML(b)||b,h.style.cssText="margin-bottom:12px",c.appendChild(h);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;";let y=Je.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));f.innerHTML=jn?.createHTML(y)||y,c.appendChild(f);let x=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function Ih(e,t,n,r){if(wn)return;try{let o=Cd(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;wn=!0;let u=e.config.inputTargetLanguage,l=await Ie({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;Mh(o),it(_s,Date.now());try{if(e.specialAiAssistant=Mr(e,e.inputTranslationService,!0),Fh(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let d=await Qr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,d.text)}else{let d=await Qr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,d.text)}}catch(d){if(d instanceof j){let m=d.uiConfig(e);Bh(m.action)&&(m.action="none"),document.dispatchEvent(new CustomEvent(fn,{detail:m}))}}finally{wn=!1}}catch(o){throw wn=!1,o}finally{wn=!1,Ph()}async function a(o,s,u,l){let c=o.rule.inputConfig,d=aS(l,u);try{await Br(50),c?.execCommandDeleteEnable&&!Tr()&&Or(u)?.trim()!=""&&(s.document.execCommand("delete"),await Br(50)),k.debug("clearContent",Or(u))}catch(m){k.error(m)}for(let m of[...uS,oS,sS,iS]){await m(d,u);let p=cS(s);if(!p)return;if(k.debug("setContent",m.name,Sd(d,p),Or(p),d),Sd(d,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let d=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(d),!d.defaultPrevented){o.document.execCommand("delete",!1);let m=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function Bh(e){return e==="retry"||e==="changeService"}var Qu=[];function Oh(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),Qu.push(()=>{document.removeEventListener("click",i)})}function dS(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),Qu.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function wd(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),Qu.push(()=>{document.removeEventListener("touchstart",r)})}var Nh={touchShortcutsOff:()=>{},"multipleClick.2":Oh,"multipleClick.3":Oh,"multipleClick.4":Oh,"slide.left":dS,"slide.right":dS,"fingers.2":wd,"fingers.3":wd,"fingers.4":wd,"fingers.5":wd};async function pS(e,t=window){try{qI();let n=await ln(),r=i1.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=OI(e,n,a.command),o=Nh[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{HI(a.command,e,t,l)})})}catch(n){k.error(n)}}function OI(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var NI=()=>{jh();let e=new CustomEvent(vr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},jI=()=>{Hh();let e=new CustomEvent(vr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},UI=()=>{Uh();let e=new CustomEvent(vr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},mS=0,HI=(e,t,n,r)=>{if(!(new Date().getTime()-mS<200)){if(mS=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")NI();else if(e==="touchShortcutsToggleTranslationMask")UI();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")jI();else if(e==="touchShortcutsToggleTranslateTouchElement")QT(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};_h(r,t,n,s)}}};function qI(){Qu.forEach(e=>{e()}),Qu=[]}function gS(e){let{t}=se(),{ctx:n,setSettings:r}=e,a=zI(e);return Hs(n.localConfig)?a.length?v("div",{class:"flex mt-3 items-center justify-between",children:[v("div",{class:"flex items-center",children:[v("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),v(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),v("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Is[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:v(WI,{...e})}function zI({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=se(),a=he(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=he(()=>Is.filter(s=>!(s==="Off"||Is.includes(a)&&s==="OtherCustom")),[e,a]);return he(()=>i.map(s=>{let u=r("mouseHoldKey",{key:ss(s)}),l=Is.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:d=>{d.value==="Other"?t(void 0,"#shortcuts"):n(m=>{let p={...m.generalRule,mouseHoverPreferenceKey:d.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=d.value),{...m,generalRule:p}})}}}),[i,a])}function WI(e){let{ctx:t,setSettings:n}=e,{t:r}=se(),a=t.config.generalRule,i=Object.keys(Nh).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),v("div",{class:"flex mt-3 items-center justify-between",children:[v("div",{class:"flex items-center",children:[v("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),v(ii,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(d){n(m=>{let p={...m.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:d.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=d.value),{...m,generalRule:p}})}}))})]}),v("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(d=>{let m=d.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...d,generalRule:{...d.generalRule,touchShortcutsToggleTranslateTouchElement:c?m:"touchShortcutsOff"}}})}})]})}function fS(e){let{isAlwaysTranslateLang:t}=GI({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=se();if(e.currentLang!=="auto")return v("div",{class:"flex justify-between mt-3 items-center",children:[v("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:ai(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),v("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return v("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Kc(e.currentLang,u.matches),excludeMatches:Kc(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=Vc(e.currentLang,u[i]),u[o]=Kc(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function GI({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}var VI=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:d,onShow:m})=>{let[p,g]=W(!1),h=Ee(null),b=Ee(null),f=()=>{u||!l&&(Ve().any||Jn())||(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{g(!0),m?.()},s))},y=()=>{(Ve().any||Jn())&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{x()},2e3))},x=()=>{h.current&&(clearTimeout(h.current),d?.()),g(!1)},T=he(()=>{let E={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(E.maxWidth="200px",o&&(E.width=o+"px"),E.whiteSpace="normal"),c?.width&&(E.width=c.width),c?.maxWidth&&(E.maxWidth=c.maxWidth),c?.whiteSpace&&(E.whiteSpace=c.whiteSpace),E},[i,o,c]),S=he(()=>{let E={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...E,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...E,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...E,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...E,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),w=E=>Oc()?v("div",{style:T,role:"tooltip",children:E}):v("div",{style:T,role:"tooltip",dangerouslySetInnerHTML:{__html:E}});return v("div",{class:a,onMouseEnter:f,onMouseLeave:x,onTouchStart:()=>{l&&f()},onTouchEnd:()=>{l&&y()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[v("div",{children:t}),p&&v("div",{style:S,children:w(e)})]})},Wn=VI;function bS({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=se(),i=be(),o=he(()=>{let s=[{title:a("widget.translateFile"),icon:Kx,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:Xx,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(T1,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:ev,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(v1,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return v("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?v(Wn,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:v(hS,{...s})}):v(hS,{...s}))})}function hS(e){return v("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,v("span",{class:"ml-1 text-gray-6",children:e.title})]})}async function qh(){let e=["bingGlobalConfig","baiduGlobalConfig",F3,wm];for(let t of e)await ne.storage.local.remove(t);X()||await o2(),await $m()}var KI=["bing","transmart","google","yandex"];function xS(e){let{t}=se();return e.showTrialPro?v("div",{class:"trial-pro-container",children:[v("label",{class:"mb-0",children:t("popup.trial_pro_service")}),v("img",{src:ns,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(_n,`${e.type}_trial_pro_service_logo`)}}),v("div",{class:"flex-1"}),v("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(_n,`${e.type}_trial_pro_service`)}})]}):null}var yS="popup_trial_pro_show_count";function vS(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=W(null),s=Ee(!1);ee(()=>{Ci(yS,0).then(l=>{o(l)})},[]);let u=he(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let d=t.translationService;return!!KI.includes(d)},[t,n,r,i]);return ee(()=>{!u||i==null||s.current||(s.current=!0,wi(yS,i+1))},[u,i,s,a]),{showTrialPro:u}}function zh(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=W(""),[l,c]=W(null),[d,m]=W(null);ee(()=>{dt.get(ct,null).then(f=>{f?(c(f),m(ft(f))):m(!1)}).catch(f=>{m(!1)})},[]);let p=!0,g=at();n&&g&&(p=n.generalRule.showSponsorOnSafari);let h=Ka(n),{showTrialPro:b}=vS({ctx:a,isHidden:h,isProUser:!!d,setLocalConfig:e.onSetLocalConfig});return v("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[v("div",{class:"popup-content text-sm",children:[h&&!d?v("div",{style:{marginTop:-12}}):v("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[v(nv,{isLogin:!!l,isProUser:!!d,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),v(eB,{openSharePage:r})]}),v(rv,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),v(ET,{isProUser:!!d,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:b}),v(xS,{showTrialPro:b,onOpenUrl:e.onOpenUrl,type:e.type}),v("div",{class:"flex flex-row mt-3 items-center",children:[v(ZI,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),v(XI,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),v("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),v("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),v(If,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),v("div",{class:"text-sm px-1 text-gray-2",children:[v(LT,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),v(gS,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),v(fS,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),v(YI,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),v($I,{ctx:a})]}),v(bS,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:h})]}),v(JI,{...e,isProUser:!!d,isShowPricing:p,setMessage:u})]})}function $I({ctx:e}){if(e.rule.imageRule?.type!="manga"||!dd(e.rule.imageRule))return null;let{t}=se();return v("div",{class:"flex justify-between mt-3 items-center",children:v("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function YI(e){let{t}=se(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!he(()=>!i.disabled&&_m.includes(i.type||""),[n,_m,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Oc()?v("div",{class:"flex justify-between mt-3 items-center",children:v("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):v("div",{class:"flex justify-between mt-3 items-center",children:[v("label",{class:"mb-0",children:t("autoEnableSubtitle")}),v("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let d={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(d.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":d}}}),a()}})]})}function ZI(e){let{t}=se(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return v(Wn,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:v("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Yx:Zx})})}function JI(e){let{t,lang:n}=se(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=De(y=>{i&&(o(x=>Hc({...x},y)),e.onUpdateFloatBallEnable(y.enable))},[i,o,e.onUpdateFloatBallEnable]),c=cu(i,s.rawUserConfig),d=be(),m=`${e.type}_more`;if(!c)return null;return v("footer",{children:v("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[v("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[$x,v("span",{class:"ml-1 text-gray-6",children:t("options")})]}),v(QI,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),v(Ff,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:y=>{y.value==="openPremium"?(globalThis.open(_n),e.onClose()):y.value==="changeToOnlyTranslationMode"?g("translation"):y.value==="changeToDualTranslationMode"?g("dual"):y.value==="translateTheWholePage"?e.onTranslateTheWholePage():y.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():y.value==="translateTheMainPage"?e.onTranslateTheMainPage():y.value==="translateLocalPdfFile"?e.onOpenUrl(d.PDF_VIEWER_URL,`${e.type}_more_pdf`):y.value==="pdfProFile"?e.onOpenUrl(d.PDF_PRO_URL,`${e.type}_more_pdfpro`):y.value==="translateText"?e.onOpenUrl(d.TEXT_TRANSLATE_URL,m):y.value==="translateLocalHtmlFile"?e.onOpenUrl(d.HTML_VIEWER_URL,m):y.value==="translateLocalSubtitleFile"?e.onOpenUrl(d.SUBTITLE_BUILDER_URL,m):y.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):y.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):y.value==="options"?(e.openOptionsPage(),e.onClose()):y.value==="changeToTranslateTheWholePage"?h():y.value==="changeToTranslateTheMainPage"?b():y.value==="about"?e.openAboutPage():y.value==="toggleEnabled"?e.onToggleEnabled():y.value==="openEbookViewer"?e.onOpenUrl(d.EBOOK_VIEWER_URL,m):y.value==="openEbookBuilder"?e.onOpenUrl(d.EBOOK_BUILDER_URL,m):y.value==="goPro"?e.onOpenUrl(_n,m):y.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):y.value==="openInstruction"?e.onOpenUrl(b1,m):y.value==="cleanCache"?qh().then(()=>e.onClose()):y.value==="disableFloatBall"?l({...c,enable:!1}):y.value==="enableFloatBall"?l({...c,enable:!0}):y.value=="webReport"?e.onWebReport():y.value=="switchNavEnableTranslate"&&f(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(y){y.preventDefault(),e.openOptionsPage()}function g(y){e.onSwitchTranslationMode(y)}function h(){e.setSettings(y=>({...y,translationArea:"body"})),e.onTranslateTheWholePage()}function b(){e.setSettings(y=>({...y,translationArea:"main"})),e.onTranslateTheMainPage()}function f(y){e.setSettings(x=>(setTimeout(()=>e.onTranslatePage(),100),{...x,generalRule:{...x.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!y}}}))}}function XI({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=se(),l=r.config,c=he(()=>new URL(e||""),[e]),d=c?.pathname.toLowerCase().endsWith(".pdf");Ai(r?.rule)&&!d&&(d=!0);let m=s("translate");t==="Translated"||t==="Error"?m=s("show-original"):t==="Original"?d?Tr()&&c.protocol==="file:"||o?m=s("translate-firefox-local-pdf"):X()?m=s("noSupportTranslate-pdf"):m=s("translate-pdf"):m=s("translate"):m=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Jn()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(m+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):m+=` (${ss(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),v("button",{class:"mb-0 main-button",onClick:()=>{d?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:m})}function QI({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=se(),o=Wt();return v("div",{class:"flex",children:v("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),My(`${ae}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:v("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function eB(e){let{t}=se();return v("div",{class:"share-button-container",onClick:e.openSharePage,children:[v("span",{class:"text-gray-9",children:t("buildSnapshots")}),Jx]})}var Wh={get:(e,t,n)=>ne.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>ne.storage[n].set({[e]:t})};function Ed(e,t,n){let[r]=W(()=>typeof t=="function"?t():t),[a]=W(n),[i,o]=W(r),[s,u]=W(!1),[l,c]=W("");ee(()=>{Wh.get(e,r,a).then(m=>{m[e]&&o(m[e]),u(!0),c("")}).catch(m=>{u(!1),c(m)})},[e,r,a]);let d=De(m=>{let p=typeof m=="function"?m(i):m;k.debug("new settings",p),Wh.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(g=>{o(p),u(!1),c(g)})},[a,e,i]);return[i,d,s,l]}function Gh(e,t,n){let r=[];return function(){let[i,o,s,u]=Ed(e,t,n),l=De(c=>{for(let d of r)d(c)},[]);return ee(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function TS(e,t){return Gh(e,t,"sync")}var tB="userConfig",nB=null,rB=TS(tB,nB);function Aa(e){let[t,n,r,a]=rB(),[i,o]=W();ee(()=>{(async function(){let u=await Jc();o(u)})()},[t]);let s=De(async u=>{let l=typeof u=="function"?u(i):u;l&&Vh(l);let{userConfig:c,promptPool:d,objectPool:m}=await Op(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(d).length,d),k.debug("objectPool size",JSON.stringify(m).length,m),await Cr(Yc,d),await Cr(Zc,m),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function Vh(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var p4e=1e3*3600*24;async function Ad(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ne.storage.local.set({[Fs]:t.toISOString()}),await Kh(),X()||await A2()}catch(t){k.error("run cron task failed",t)}}async function SS(){let t=(await vn()).interval;if(t){let n=await ne.storage.local.get(Fs);if(n&&n[Fs]){let r=n[Fs];if(Date.now()-new Date(r).getTime()r?(await ne.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),jr({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}var D4e=be().REDIRECT_URL;var c3e=Ao([]);function wS(e){let[t,n]=W(null);return ee(()=>{Mt().then(r=>{n(r),k.debug("current config",r)})},[]),ee(()=>{Mt().then(r=>{n(r)})},[e]),t}function ES(){let[e,t]=W(null);return ee(()=>{$t().then(r=>{t(r)})},[]),[e,r=>{t(r),zt(r)}]}var lB=Ln(cB,1e3);async function cB(e,t,n){try{if(t===null)return"noupdate";let r=await $t();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=$a(t.proSyncAPIKey,t);return await $h(e,c),await zt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await kS(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),Py(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=$a(t.proSyncAPIKey,t);return await $h(e,u),await zt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||_y(n)&&lB(n.token,e,t)},[e,n])}function dB(){let[e,t]=W(null);return ee(()=>{dt.get(ct,null).then(n=>{t(n)})},[t]),e}function kS(e){return(location.href?.indexOf("popup.html")>0?Mi:K)({responseType:"json",url:ut+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function $h(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Mi:K)({responseType:"json",url:ut+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}function Dd(e){let{onClose:t}=e,[n,r]=W("Original"),[a,i,o,s]=Aa(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});kd(a,i);let[u,l]=W(null),[c,d]=W(globalThis.location.href),[m,p]=W("auto"),[g,h]=W(null),b=Ee(!1);ee(()=>{!g||b.current||(b.current=!0,Be("show_page_popup",[{name:"show_page_popup",params:{}}],g))},[g,b]);let f=B=>{r(B.detail)};ee(()=>(document.addEventListener(xi,f,!1),vn().then(B=>{l(B);let L=mt();p(L);let N=$e();r(N),Ad(B.interval)}),document.addEventListener("urlChange",T),()=>{document.removeEventListener("pageTranslatedStatus",f),document.removeEventListener("urlChange",T)}),[]),ee(()=>{vn().then(B=>{l(B)})},[a]),ee(()=>{c&&u&&Ld().then(B=>{h(B)})},[c,u]);let y=De((B,L)=>{S("change_translate_service",!1,{translation_service:`${B}_${L}`})()},[]);if(!u||!g)return null;return v(zh,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:B=>{S("switchTranslationMode",!0,{mode:B})()},request:K,onClose:w,onToggleEnabled:E,onChangeService:y,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{D(ki(g.rule)||c)},openAboutPage:I,openSharePage:S("shareToDraft",!0),onSetPageLanguage:x,setSettings:i,config:u,pageStatus:n,ctx:g,currentUrl:c,currentLang:m,onSetLocalConfig:fa,onSetBuildinConfig:b2,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:B=>S("updateContextState",!0,B)(),onOpenUrl:A,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function x(B){p(B);let L=Gx(c,B,u.sourceLanguageUrlPattern);i(N=>({...N,sourceLanguageUrlPattern:L})),er(B)}function T(){d(globalThis.location.href)}function S(B,L,N={}){let F={trigger:"page_popup",...N};return()=>{Jt({method:B,data:F}),L&&t()}}function w(){t()}function E(){i(B=>({...B,enabled:!B.enabled})),setTimeout(()=>{w()},50)}function A(B,L){let N=B;L&&(N=`${B}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),mc(N,!0),setTimeout(()=>{w()},50)}function D(B){B&&(po(!1,B),setTimeout(()=>{w()},50))}function M(B=!0,L=""){Ba(B,L),setTimeout(()=>{t()},50)}function I(){cc(),setTimeout(()=>{t()},50)}function R(){E2(),setTimeout(()=>{t()},50)}}function RS(){let[e,t]=W("Original");return ee(()=>{let n=$e();t(n);let r=a=>{t(a.detail)};return document.addEventListener(xi,r),()=>{document.removeEventListener(xi,r)}},[]),{pageStatus:e}}function FS(){let[e,t]=W("Original");return ee(()=>{let n=mo();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Ps,r),()=>{document.removeEventListener(Ps,r)}},[]),{mangaStatus:e}}var DS=6,mB={position:"right",top:335};function IS({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Ee(null),o=Ee(null),[s,u]=W(!1),l=Ee(!1);l.current=s;let c=Ee(null),d=Ee(!1),m=Ee(n.floatBallConfig||mB),p=Ee(0),g=Ee(0),h=Ee(0),b=Ee(!1),f=Ee(0),y=Ee(0),x=Ee(0),T=Ee(0),S=Ee(!1),w=De(E=>{if(!a)if(clearTimeout(c.current),E)u(E);else{let A=Ve().any||Jn();c.current=setTimeout(()=>{u(E),b.current=!1},A?3e3:0)}},[u,c,b,a]);return ee(()=>{a||u(!1)},[a]),ee(()=>{if(i.current&&m.current){let E=Yh(m.current.top);m.current.top=E,i.current.style.top=`${E}px`,i.current.style.display="flex"}},[t,i]),ee(()=>{if(!o.current||!i.current)return;let E=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,g.current=L.clientY,f.current=Date.now(),h.current=i.current.offsetTop,d.current=!0,clearTimeout(c.current),w(!0),x.current=L.clientX,T.current=L.clientY,S.current=!1,(Ve().any||Jn())&&(clearTimeout(y.current),y.current=setTimeout(()=>{LS({startX:p.current,startY:g.current,endX:x.current,endY:T.current})||(S.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",I),document.addEventListener("mouseup",D),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},A=L=>{if(L.preventDefault&&L.preventDefault(),!d.current||!i.current||(x.current=L.clientX,T.current=L.clientY,S.current))return;let N=L.clientY-g.current+h.current,F=Yh(N);i.current.style.top=`${F}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),B(),d.current=!1,clearTimeout(c.current),b.current||w(!1),S.current)return;LS({startX:p.current,startY:g.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(y.current),e());let F=Yh(L.clientY-30);m.current.top=F;let U=await Fn();fa({...U,floatBallConfig:m.current})},M=L=>{L.preventDefault&&L.preventDefault(),E(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",E),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",E),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,d,n,w,e]),ee(()=>{if(Ve().any)return;let E=D=>{D.target===i.current&&!b.current||!l.current&&PS(D)&&c.current||(b.current=!0,w(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&PS(D)&&c.current)){if(d.current){b.current=!1;return}D.target===i.current&&!b.current||w(!1)}};return i.current?.addEventListener("mouseover",E),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",E),i.current?.removeEventListener("mouseout",A)}},[i,d,w,t,b,l]),{ballRef:o,floatBallConfigRef:m,containerRef:i,active:s,setActive:w}}function LS({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>DS||i>DS}function BS(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=he(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=he(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=he(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=he(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function OS(){let[e,t]=W(!1);return ee(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var MS="hasShownFloatingBallGuide",pB="2024-01-06";function NS(e,t){let[n,r]=W(!1),a=De(()=>{it(MS,new Date().toISOString()),r(!0)},[r]);ee(()=>{if(!e.config.enableShowFloatingBallGuide||mt()==e.targetLanguage)return;let o=We(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ht(MS,""),u=await Ht("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Fl,o),()=>{document.removeEventListener(Fl,o)}},[]);let i=De(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function jS(){document.dispatchEvent(new CustomEvent(Fl))}function US(e,t){let n=Ee(0),[r,a]=W(!0),[i,o]=W(!1),s=Aa(),[u,l]=s,{t:c}=se(),d=De(()=>{e?.config.floatBallTooltipRule&&(Ve().any||Jn()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);ee(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,Ve().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),d())},[e]);let m=De(async()=>{if(!e)return;n.current=n.current+1,d();let h=await ln();l(b=>{let f={...h};return Ve().any?f.h5FloatBallMainBtnTooltipShownCount=n.current:f.pcFloatBallMainBtnTooltipShownCount=n.current,f})},[l,d,n,e]),p=he(()=>Ve().any||!r||Jn()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),g=he(()=>{if(Ve().any||Jn())return c("floatBall.longPress");let h="";return t!=="Original"?h=c("floatBall.showOriginal"):e?.targetLanguage?h=c("floatBall.translateToLanguage",{language:ai(e.targetLanguage,e.targetLanguage,!0)}):h=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(h+=`(${ss(e.config.shortcuts.toggleTranslatePage)})`),h},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:g,handleShowTooltip:m}}function Yh(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var Zh=0;function PS(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(Zh=Date.now(),!0):Date.now()-Zh<100}function HS(e,t){ee(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(vi,n),()=>{globalThis.document.addEventListener(vi,n)}},[e,t])}function qS(e,t){let n=Ee(e);n.current=e,ee(()=>{!n.current||!t||Be("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var _S="imt-float-ball-active";function zS(e){ee(()=>{let t=!!document.querySelector(`meta[name='${_S}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(_S)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(_l,n),()=>{document.removeEventListener(_l,n)}},[])}function WS(e){document.dispatchEvent(new CustomEvent(_l,{detail:{active:e}}))}function gB({isOpen:e,onClose:t,children:n}){let[r,a]=W(e);return ee(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:v(Pt,{children:[e&&v("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),v("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:v("div",{className:`${P}-sheet-content`,children:n})})]})}var Md=gB;var Vi="imt-fb";function Pd(e){if(globalThis.innerWidth<=385)return v(Md,{isOpen:e.visible,onClose:e.onClose,children:v(GS,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?v("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:v("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:v(GS,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function GS(e){let{t}=se(),[n,r]=W("UntilNext"),a=Oa()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return v("div",{class:`${Vi}-close-content`,style:e.contentStyle,children:[v("div",{class:"flex justify-between",children:[v("div",{class:`${Vi}-close-title`,children:e.title||t("closeQuickTranslation")}),v("div",{class:"clickable",onClick:e.onClose,children:v(Rt,{type:"modal-close"})})]}),v("div",{class:`${Vi}-close-radio-content mt-3`,children:o.map(s=>v(fB,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ur(u)}},s.type))}),v("div",{class:"flex mt-3 flex-end",children:[v("div",{class:`${Vi}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),v("div",{class:`${Vi}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function fB(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=hB(r||"");return v("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[v("div",{class:t?`${Vi}-radio-sel`:`${Vi}-radio-nor`,children:v("div",{})}),v("div",{class:"ml-2 text-sm",children:[v("span",{children:n}),r?v("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:v("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function hB(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}function VS(e){return de.ASSETS_BASE_URL+e}var Ki="imt-fb";function KS(e){let{t}=se(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=he(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?v("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:v("div",{class:`${Ki}-guide-container`,style:r,children:[v("img",{class:`${Ki}-guide-bg ${e.fixedPosition}`,src:bB}),v("div",{class:`${Ki}-guide-content ${e.fixedPosition}`,children:[v("img",{class:`${Ki}-guide-img`,src:VS("images/float_ball_intro.png")}),v("div",{class:`${Ki}-guide-message`,children:[t("floatBall.guideClickToTranslate"),Ve().any?` +${t("floatBall.longPress")}`:""]}),v("div",{class:`${Ki}-primary-btn ${Ki}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var bB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzM2NDhfMTI4MDIpIi8+CjwvZz4KPGRlZnM+CjxmaWx0ZXIgaWQ9ImZpbHRlcjBfZF8zNjQ4XzEyODAyIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzExLjE4OCIgaGVpZ2h0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cCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var $S="imt-manga";function YS({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=se(),o=d=>{d?.target?.id===P+"-popup-overlay"&&t()},s=he(()=>{let d={position:"fixed",top:n+60+42};return r=="left"&&(d.left=48-22),r=="right"&&(d.right=48-22),d},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=De(()=>{if(t(),!a.isPro){if(a.user)return window.open(m1);window.open(c1)}},[a,t]);return e?v("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:v("div",{class:"imt-fb-guide-container",style:s,children:[v("img",{class:`${$S}-guide-bg ${r}`,src:`${R3}static/extension/images/popup-manga-bg.png`}),v("div",{class:`${$S}-guide-content ${r}`,children:[v("div",{class:"imt-fb-guide-message",children:u}),v("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),v(Rt,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var ka="imt-fb";function Jh(e){let{t}=se(),n=Aa(),[r,a,i,o]=n;kd(r,a);let s=wS(r),u=e.ctx,{isFullScreen:l}=OS(),[c,d]=W(!1),m=Ee(c);m.current=c;let[p,g]=W(!0),{pageStatus:h}=RS(),b=cu(u,r),f=De(()=>{if(b?.clickType==="popup")return d(!0);b?.clickType==="translate"&&Jt({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[b,Jt,d]),y=De(()=>{d(!0)},[d]),x=p&&!!s,{containerRef:T,active:S,ballRef:w,floatBallConfigRef:E,setActive:A}=IS({handleBallClick:f,handleMobileBallLongPress:y,isShow:x,localConfig:e.localConfig,popupVisible:c}),D=b?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:R}=NS(e.ctx,b),{closeTransform:B,logoContainerTransform:L,settingTransform:N,mangaTransform:F}=BS(b,S||I);qS(u,S);let{tooltipDelay:U,disableTooltip:V,tooltipText:ie,handleShowTooltip:Ae}=US(u,h);HS(d,m),zS(A);let O=globalThis.innerWidth<=385;return x?v(Pt,{children:v("div",{class:`${ka}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:S||I||c?"all":"none"},ref:T,children:[v(yB,{ctx:u,setVisible:g,closeTransform:B,setActive:A,getModalStyle:()=>ZS(E.current.top,300,D)}),v(Wn,{enableMobile:!0,text:ie,position:M,delay:U,onShow:Ae,disable:V,children:v("div",{class:`${ka}-btn ${D} btn-animate `,ref:w,style:{transform:L,opacity:S||I?1:.5},children:v("div",{children:[v(Rt,{type:"logo"}),v(Rt,{type:"translated",className:"imt-float-ball-translated",hidden:h==="Original"})]})})}),v(TB,{ctx:u,mangaTransform:F,floatBallConfigRef:E,fixedPosition:D,hidden:I}),v("div",{style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:[v(Wn,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{mc(y1,!0)},children:v(Rt,{type:"file"})})}),v(Wn,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:v("div",{class:`${ka}-more-button`,onClick:()=>{A(!0),d(!0)},children:v(Rt,{type:"setting"})})}),v(CB,{ctx:u,tooltipPosition:M,rule:b,active:S})]}),v("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||h!="Translated",style:{marginTop:"12px",transform:N},class:`${ka}-more-buttons btn-animate`,children:v(Wn,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:v(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"webReport"}}))}})})}),v(Xh,{onClose:()=>{A(!1),d(!1)},isSheet:O,visible:c,getModalStyle:()=>ZS(E.current.top,500,D)}),v(KS,{visible:I,top:E.current.top,fixedPosition:D,onClose:()=>{R(),A(!1)}})]})}):null}function yB(e){let{t}=se(),[n,r]=W(!1),a=Aa(),[i,o,s,u]=a,l=cu(e.ctx,i),c=De(m=>{e.ctx&&o(p=>Hc({...p},m))},[e.ctx,o]),d=De(m=>{l&&(e.setVisible(!1),m==="AlwaysClose"?c({...l,enable:!1}):m==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return v(Pt,{children:[v("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:v(Rt,{type:"close"})}),v(Pd,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:d})]})}function Xh(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?v(Md,{isOpen:e.visible,onClose:e.onClose,children:v(Dd,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?v("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:v("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:v(Dd,{onClose:e.onClose})})}):null}function xB(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var ZS=(e,t,n)=>{let a=xB().height,i={position:"fixed"},o=0;return k3()&&(e=vB.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},vB={position:"right",right:0,top:335};function TB({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=W(!1),{mangaStatus:u}=FS(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:d}=se();ee(()=>{c||Fn().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),zt(p))})},[c,s]);let m=De(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let g=await dt.get(ct,null);if(ft(g)){e.user=g,e.isPro=!0,Jt({method:"toggleTranslateManga"});return}s(!0);return}Jt({method:"toggleTranslateManga"})},[]);return!dd(l)||r||!l?.enable?null:v(Pt,{children:[v("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[v(Rt,{type:"manga",onClick:m,hidden:u=="Translating"}),v(Rt,{type:"translated",onClick:m,hidden:u!="Translated",className:"imt-manga-translated"}),v(Rt,{type:"loading",onClick:m,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),v(Wn,{enableMobile:!0,text:d("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:v(Rt,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(yi,{detail:{type:"mangaReport"}}))}})})]}),v(YS,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var SB="float_ball_upgrade_show_count";function CB(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=se(),o=Ka(n.config),s=Ee(!1),[u,l]=W(null),c=he(()=>us(n.config),[n]),d=p=>us(p)?.upgradeShowCountCacheKey||SB;ee(()=>{Ci(d(n.config),0).then(p=>{l(p)})},[n]);let m=he(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let g=us(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=g},[r,n,o,u]);return ee(()=>{m||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wi(d(n.config),u+1))},[m,n,s,a,u]),m?null:c?v(Wn,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Fm,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:v("div",{class:`${ka}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:v(Rt,{type:"upgrade"})})})}):v(Wn,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:v("div",{class:`${ka}-more-button`,onClick:()=>{globalThis.open(Fm,"_blank")},children:v(Rt,{type:"upgrade"})})})}async function JS(){try{let e=await Mt(),t={url:globalThis.location.href,config:e},n=await Yt(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});wB(a,e,n),document.documentElement.appendChild(r)}catch{}}function wB(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=be(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);EB(e,[i]),e.appendChild(r),za(v(Oo,{lang:t.interfaceLanguage,children:v(AB,{ctx:n})}),r)}function EB(e,t){for(let n of t){if(X()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function AB(e){let[t,n]=W(!1),r=Ee(t);r.current=t;let a=Ee(""),i=Ee("");ee(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(vi,u),()=>{globalThis.document.addEventListener(vi,u)}},[r]);let o=globalThis.innerWidth,s=Ve().any&&o<=450;return v(Xh,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function _d(e){document.dispatchEvent(new CustomEvent(vi,{detail:e||{}}))}function kB(e,t){for(let n of t){if(X()&&!Tr()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function Rd(){let e=await vn(),t=await ln(),n={url:globalThis.location.href,config:e},r=await Yt(n),a=await Rp(r,t),i=We(r.url,a?.blockUrls),o=await $t();if(!a?.enable||i)return JS();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return DB(u,e,o,r),document.documentElement.appendChild(s),s}function XS(){let e=document.getElementById(P+"-popup");e&&e.remove(),Rd()}function DB(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=be(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);kB(e,[o]),e.appendChild(a),za(v(Oo,{lang:t.interfaceLanguage,children:v(Jh,{localConfig:n,ctx:r})}),a)}var Qh=!1;async function QS(e){if(!e){let t=await vn(),n={url:globalThis.location.href,config:t};e=await Yt(n)}e.config.debug&&k.setLevel("debug"),e.isTranslateExcludeUrl?k.debug("detect exclude url, do not inject anything."):(Qh=!0,Rd().catch(t=>{k.debug("init popup error",t)}))}async function eC(){Qh||(Qh=!0,Rd().catch(e=>{k.error("init popup error",e)}))}async function tC(e,t){let n,r;if(t){let a=C0(e);n=new Blob([a],{type:"text/html"}),r=await Lt(),r=$a(!1,r)}return{siteUrl:location.href,pluginVersion:Wt(),isMobile:Ve().any,platform:Ii(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function nC(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await Dr();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ut}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await Ga(l,"web"),l.json()))}function rC(e,t,n){if(e=="manga")return MT(t,n);if(e=="web")return tC(t,n)}function aC(e,t,n,r,a,i){if(e=="manga")return PT(t,n,a,i,r);if(e=="web")return nC(t,n,a,i,r)}function Fd(e,t,n,r,a,i,o){let s=Me.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(g.value)||g.value.trim()==="",d=document.createElement("div");d.innerText=s("reportInfo.title"),d.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(d);let m=document.createElement("div");m.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; @@ -6392,20 +6392,20 @@ ${t("floatBall.longPress")}`:""]}),x("div",{class:`${Ki}-primary-btn ${Ki}-guide flex: 1;`),p.addEventListener("input",function(){w.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),m.append(p),a.append(m);let g=document.createElement("input");g.type="email",g.id="emailReport",g.size=30,g.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let h="";dt.get(ct,null).then(D=>{D&&(h=D.email,g.value=D.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);w.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let v=document.createElement("input");v.type="checkbox",v.checked=!0,v.id="cbMangaReport";let S=document.createElement("label");S.htmlFor=v.id,S.innerText=s("reportInfo.attachLog"),S.setAttribute("style","margin-left:8px");let T=document.createElement("div");T.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),T.append(v),T.append(S),a.append(T);let w=document.createElement("button");w.className=P+"-btn",w.innerText=s("reportInfo.submit"),w.disabled=!0,w.onclick=async()=>{if(w.uploading||p.value.trim()===""||!l(g.value))return;let D=await aT(e,t,v.checked);w.uploading=!0;try{oT(w,!0),await iT(e,t,p.value,g.value!==h?g.value:"",v.checked,D),P_(s,r,a,i,o)}catch{R_(t,n,s,r,a,i,o,e)}finally{w.uploading=!1,oT(w,!1)}},i.appendChild(w);let E=document.createElement("div");E.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(E);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function oT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function P_(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let h="";dt.get(ct,null).then(D=>{D&&(h=D.email,g.value=D.email)});let b=document.createElement("label");b.htmlFor=g.id,b.innerText=s("reportInfo.email"),b.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let f=document.createElement("div");f.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),f.append(b),f.append(g),a.append(f);let y=document.createElement("div");y.textContent=s("reportInfo.emailError"),y.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(y),g.addEventListener("input",function(){let D=l(this.value);w.disabled=c(),D?y.style.visibility="hidden":y.style.visibility="visible"});let x=document.createElement("input");x.type="checkbox",x.checked=!0,x.id="cbMangaReport";let T=document.createElement("label");T.htmlFor=x.id,T.innerText=s("reportInfo.attachLog"),T.setAttribute("style","margin-left:8px");let S=document.createElement("div");S.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),S.append(x),S.append(T),a.append(S);let w=document.createElement("button");w.className=P+"-btn",w.innerText=s("reportInfo.submit"),w.disabled=!0,w.onclick=async()=>{if(w.uploading||p.value.trim()===""||!l(g.value))return;let D=await rC(e,t,x.checked);w.uploading=!0;try{iC(w,!0),await aC(e,t,p.value,g.value!==h?g.value:"",x.checked,D),LB(s,r,a,i,o)}catch{MB(t,n,s,r,a,i,o,e)}finally{w.uploading=!1,iC(w,!1)}},i.appendChild(w);let E=document.createElement("div");E.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(E);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function iC(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function LB(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function R_(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function MB(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=P+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Bd(s,e,t,r,a,i,o)},i.append(d)}var na=null;async function sT(e,{srcUrl:t}){if(!hs(e))return;if(!await qs(e)){bd("image_right_menu");return}if(!na){k.error("rightMenu image ele not found",t,na);return}if(na.translationStatus!=="translating"){if(na.hasTranslate){di(na);return}if(t!==na.src)try{let r=new URL(t),a=new URL(na.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,na.src,r);return}wa(e,na,!0,"image_right_menu")}}function uT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(na=e.target)})}var lT=0;function tl(e){let t=Date.now();if(t-lT<2e3||(lT=t,F_()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,el)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=be();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=P+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,el)}setTimeout(()=>{I_()},100)}function F_(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function I_(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function el(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function cT(e,t,n="sameLang",r,a,i,o){let s=Me.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();qt({...l,sameLangCheck:!1}),o(i,!0)})}var dT=0;async function mT(e){let t=Date.now();if(t-dT<2e3||(dT=t,B_()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&t4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,t4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=be();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let v=document.createElement("span");v.textContent="\xD7",v.className=P+"-toast-close",m.appendChild(v),v.onclick=function(){m.style.display="none"},h.addEventListener("click",S=>{S.target==m&&(m.style.display="none")}),e(m,u,l,t4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{__()},100),d=setTimeout(c,2500)}function B_(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function __(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function t4(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function n4(e,t,n,r="retry",a,i,o,s,u){let l=Me.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Ze.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",pT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(c1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Gl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(g1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(de.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(de.OPTIONS_URL)},r4(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=Ze.sanitize(m),p.onclick=()=>{gT(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Ze.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Lt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await qt(g),pT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=Ze.sanitize(m),s.appendChild(p)}function pT(e){jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(xr,{detail:e});globalThis.document.dispatchEvent(t)}var fT=!1,It={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},bT=[()=>{Nn.unbind()}],hT=[...bT],O_=Kn(async()=>{await _a()},50),N_=Kn(async()=>{await cc()},50),j_=Kn(async()=>{await E2()},50),U_=Kn(async()=>{await w2()},50),yT=Kn(e=>{Zt({method:e,data:{trigger:"userscript_menu"}})},50),a4=!1,H_=Ln(()=>{let e=globalThis.getSelection()?.toString().trim();!a4&&e&&e.length>0?Li({text:e}):Li({})},50),q_=()=>{a4=!0,setTimeout(()=>{a4=!1},100)};It.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(fT)return;fT=!0,X()||b2(),n.addEventListener("securitypolicyviolation",It.handleSecurityPolicyViolation),document.addEventListener(J+"DocumentMessageUser",TT),document.addEventListener(J+"DocumentMessageUpdateUser",CT),document.addEventListener(J+"ChangeSuccessService",wT.bind(null,t)),document.addEventListener(J+"ChangeService",ET.bind(null,t)),document.addEventListener(fn,It.showErrorByEvent.bind(null,t)),document.addEventListener(Ml,It.showToastByEvent.bind(null,t)),document.addEventListener(yi,It.showModal.bind(null,t)),n.addEventListener(J+"EbookLoaded",It.handleEbookLoaded),n.addEventListener(U3,It.handleThirdPartyTell.bind(null,t)),n.addEventListener(H3,It.eventUpload.bind(null,t)),n.addEventListener(Fl,a=>{Ke()||Ff(a,t)}),n.addEventListener(z3,Wv),n.addEventListener("click",a=>{It.handleClick(a,t)}),document.addEventListener("selectionchange",H_),document.addEventListener("contextmenu",q_),uT(),Ke()&&e.addEventListener("message",It.handleGlobalMessage,!1),X()&&(Ke()||n.addEventListener(xr,It.handlePopupInit)),Ke()||Za.rootIframe(Hl).handleAsk("throttleRequest",U9)};function rl(e,t){G_(),It.SetupDomListenersForOnce(t,e),X()&&(Ke()||(If(e.config),V_(e.config))),Jn()&&g5(e,t),at()&&If(e.config)}It.handlePopupInit=e=>{tT()};It.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Dl&&jr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};It.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){el(n);return}let r=n.getAttribute(`data-${P}-event`);r&&_e(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),vT({method:"retryFailedParagraphs"}),el(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}tl(n4.bind(null,t,o,i,s));return}}};async function z_(){let e=await Lt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await qt(e)}async function W_(){let e=await Lt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await qt(e)}It.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;mT(cT.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};It.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;tl(n4.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};It.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?tl(Bd.bind(null,"manga",e)):r=="webReport"&&tl(Bd.bind(null,"web",e))};It.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=o4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")vT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")dc(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")z_();else if(i.type==="toggleEnableInputTranslation")W_();else if(i.type==="syncAppSetting")xT(i.data);else if(i.type==="translatePage")K_(i.data);else if(i.type==="getAsyncTranslationServiceList")a=$l(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=x0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await Y_(i.data,o)}catch(s){nl(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await Q_(o,i.data)}catch(s){nl(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await lc(i.data):i.type==="getAsyncDownloadSubtitle"?a=await H6():i.type==="sharePage"?Ff({detail:i.data},r):i.type==="switchTranslationMode"?i4(i.data):i.type=="getAsyncAiAssistants"?a=await l9():i.type=="addAiAssistantAsync"?a=await a0("add",i.data):i.type=="removeAiAssistantAsync"?a=await a0("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await s4(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await AT(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Ro("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await yb(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await L2()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await M2()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await vb(i.data)):i.type==="openPopup"?Fd({...i.data,open:!0}):i.type==="closePopup"?Fd({...i.data,open:!1}):i.type==="togglePopup"?Fd({...i.data}):i.type==="getPageStatusAsync"?a=Ye():i.type==="restorePage"?J_():i.type==="getPageLanguageAsync"?a=mt():i.type==="showFloatBallGuide"?U5():i.type=="getAsyncDetectAndSetLanguage"?a=await ST(i.data):i.type=="setFloatBallActive"?G5(i.data):yT(i.type);a!=null&&i.id&&nl(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};It.handleEbookLoaded=e=>{setTimeout(()=>{_d()},10)};It.handleSecurityPolicyViolation=e=>{de.HAS_CSP_ERROR="1"};It.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&_e(n.name,[{name:n.name}],{...e})};function G_(){hT.forEach(e=>{e()}),hT=bT}function V_(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Me(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Dm,title:Me(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Lm,title:Me(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Am,title:Me(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:km,title:Me(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Am?O_():i.id===km?N_():i.id===Lm?j_():i.id===Dm?U_():yT(i.id)},i.key)}}function vT(e){jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(xr,{detail:e});globalThis.document.dispatchEvent(t)}async function xT(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(Te(),t)}async function K_(e){let t=await xT(e);Wn(t)}function nl(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function Y_({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Jt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function Q_(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Jt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function J_(){Ye()!=="Original"&&Ir()}var Yi={};async function u4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Be({text:t,minLength:200,pageLangs:[Ct(),"en"]});return $n(n),n}async function kT(e){let t=0,n=0;Fn("Translating");let r=mt(),a=rc(),i=[...document.querySelectorAll(".source-text")];if(Lo(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Mo(d,c.id)?.remove(),d.appendChild(lu(e,c.id,!0)))}),await s(l),await pt(0)}}catch(u){throw u}finally{t=0,n=0,Fn("Translated")}async function s(u){await Jt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Mo(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Ze.sanitize(`${l.message}`),Yi[m]={ok:!1,sentence:d},LT(u,e,t,n,l)):c&&(g.innerHTML=Ze.sanitize(c.text),Yi[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function DT(e){let t=0,n=0;Fn("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Yi),a=[],i=[];for(let o of r){let s=Yi[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Yi[o],c.appendChild(lu(e,o)),i.push(s.sentence))}}}try{await Jt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Mo(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Ze.sanitize(`${o.message}`),Yi[l]={ok:!1,sentence:u},LT(i,e,t,n,o)):s&&(d.innerHTML=Ze.sanitize(s.text),Yi[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Fn("Translated")}}function l4(){Fn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function LT(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(fn,{detail:i}))}var Od={};async function MT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Be({text:t,pageLangs:["en"]});return $n(n),n}async function PT(e){Fn("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Od),n=[];for(let r of t){let a=Od[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Ol}='${r}']`);o&&o.remove(),n.push(a)}}try{Au(),await A0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Fn("Translated")}}function RT(e){Object.values(Od).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=Zo(e,t.targetNodes);ti(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),Fn("Original")}async function FT(e){Fn("Translating");let t=zs(),n=Wr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Qo(l,e);let c=l.body;if(!c)continue;Gr(l.documentElement,e.state.translationMode);let d=dn(e);d.isModifyImage=!1;let m=[];await va({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await pt(0)}o(a),Fn("Translated");function o(u){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Do(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=T0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:w0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Zg(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Od[p.id]=p)}A0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var re=null,Nd={},ys,IT=!1;async function _d(){go.clearStrictTicks();let e=await Ge(Te(),{}),t=await In();if(k.debug("init page ctx",e),Ov(e),e.rule.pageType=="subtitleBuilder"){u4();return}if(e.rule.pageType=="ebookBuilder"){MT();return}if(ys||(ys=e.state.translationTheme),e.rule.urlChangeDelay&&await pt(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await lO(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Oa(),u=document.createElement("meta");u.name=P+"-options-url",u.content=s;try{document.head&&document.head.appendChild&&document.head.appendChild(u)}catch(l){k.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head.appendChild(l)}),e.rule.initialGlobalAttributes&&S6(document.body,e.rule.initialGlobalAttributes),pO(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}IT||(IT=!0,Ke()&&e.rule.useIframePostMessage&&await S9());let n=e.sourceLanguage;n==="auto"?n=await BT():$n(n);let r=Ey(e,n);if(r&&(e=await Ge(Te(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await Ro(n,e.targetLanguage),u=document.createElement("meta");u.name=P+"-meta",u.content=Ss(JSON.stringify(s)),document.head&&document.head.appendChild&&document.head.appendChild(u)}catch(s){k.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await Yh();let o=mO(e);if(!o&&!e.isTranslateExcludeUrl&&(k.debug(`detect page language: ${e.url} ${n}`),Ia(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||C9(n,e.config.translationLanguagePattern)&&(o=!0,k.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&Hs(t)&&Dh(e),o)re.state.isAutoTranslate=!0,Wn(re);else if(k.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Ia(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Nd[e.translationService]||(Nd[e.translationService]=!0,Ke()||Bg(e).catch(s=>{k.warn("init translation engine error",s)})))}}async function Uh(e){if(Ye()==="Original"){let t={};ys&&(t.translationTheme=ys),re&&(t={...re.state,...t});let n=await Ge(Te(),t);if(e?.trigger=="right_menu"&&Ai(n?.rule)){let r=ki(n.rule);if(r){po(!0,r||Te());return}}await Wn({...re,sourceProgram:"html"},e)}else(Ye()==="Translated"||Ye()==="Error")&&Ir()}async function Z_(){let e=mo();re||(re=await Ge(Te(),{})),e=="Original"?HS(re):(qS(),cr("Original"))}function X_(){Zy("enableEditTranslation",!re?.config.enableEditTranslation);let e=$c("enableEditTranslation");re&&(re.config.enableEditTranslation=e);let t=Ou();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Dt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function $_(){if(re=await Ge(Te(),{}),re.rule.pageType=="ebookBuilder")return PT(re);if(re.rule.pageType=="subtitleBuilder")return DT(re);zv()}async function Hh(e){if(Ye()==="Original"){re=await Ge(Te(),{}),ys||(ys=re.state.translationTheme);let t="mask";re.state.translationTheme==="opacity"&&(t="opacity"),re=await Ge(Te(),{translationTheme:t}),await Wn(re,e)}else if(Ye()==="Translated"){let t="mask";re?.state?.translationTheme==="opacity"&&(t="opacity");let n=Ty().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[re.mainFrame,...n],a=re?.state.translationTheme;for(let i of r){let o=Mb(i,oo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,oo,"none",!0):wt(i,oo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,oo,t,!0):wt(i,oo,"none",!0)}}}async function BT(){let e=await Ge(Te(),{});return e.rule.pageType=="subtitleBuilder"?u4():qv(e)}function eO(e){Ye()==="Original"?kT(e):l4()}function tO(e){Ye()==="Original"?Q0(e):is()}async function Ir(){Gs(""),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await Ge(Te(),{});if(e.rule.pageType=="subtitleBuilder"){l4();return}else e.rule.pageType=="ebookBuilder"&&RT(e);is()}function nO(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&mt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(Ml,{detail:{type:"sameLang"}}))}async function Wn(e,t){if(nO(e),Ye()!=="Original"&&await Ir(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Nd[e.translationService]||(Nd[e.translationService]=!0,Ke()||Bg(e).catch(r=>{k.warn("init translation engine error",r)})),e.specialAiAssistant=Mr(e,e.translationService,!0),dO(e,t),e.rule.pageType=="subtitleBuilder"){eO(e),Gs("yes");return}if(e.rule.pageType=="ebookBuilder"){FT(e),Gs("yes");return}tO(e),Gs("yes")}async function rO(e,t){let n=re?.translationService;if(Ye()==="Original"||n!=e){re=await Ge(Te(),{translationService:e});let r=Me(re.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=re.config.translationServices[e].name);let a=Me(re.config.interfaceLanguage,"tempChangeTransToService",{service:r});s0({text:a}),await Wn(re,t)}else{Ir();let r=await xn(),a={url:Te(),config:r,state:{}},i=await Qt(a);re=await Ge(Te(),{translationService:i.translationService})}}async function aO(e){Ye()==="Original"?await c4(e):(Ye()==="Translated"||Ye()==="Error")&&(re=await Ge(Te(),{}),re.state.translationArea!=="main"?await c4(e):Ir())}async function c4(e){re=await Ge(Te(),{translationArea:"main"}),await Wn(re,e)}async function _T(e){re=await Ge(Te(),{translationArea:"body"}),await Wn(re,e)}async function ST(e){let t=[Ct(),"en"],n=await Be({text:e,pageLangs:t});return $n(n),n}async function qh(e){let t=await Ge(Te(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await Ge(Te(),{translationMode:n}),Ye()==="Original"){Wn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function i4(e){if(re=await Ge(Te(),{translationMode:e}),_e("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...re,sourceLanguage:"unknown"}),Ye()==="Original"){Wn(re);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function iO(e){if(Ye()==="Original")await _T(e);else if(Ye()==="Translated"||Ye()==="Error"){let t={};re&&re.state&&(t=re.state),re=await Ge(Te(),t),re.state.translationArea!=="body"?(re.state.translationArea="body",re=await Ge(Te(),re.state),await Wn(re,e)):Ir()}}async function OT(e){re=await Ge(Te(),{translationStartMode:"immediate"}),await Wn(re,e)}async function oO(e){Ye()==="Original"?await OT(e):(Ye()==="Translated"||Ye()==="Error")&&Ir()}async function NT(){let e=await Ge(Te(),{});if(!We(e.url,e.config.inputStyleBlockUrls)){let n=be().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;Sn(document,n,_l)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&Mh(e)}function o4(){return re}async function Ge(e,t){let n=Object.keys(t);if(re){let r={url:e,config:re.config,state:{...re.state,...t}};re=await Qt(r)}else{let r=await xn(),a=t;n.length===0&&(a=void 0),re=await Qt({url:e,config:r,state:a})}return re.state&&re.state.translationService&&(re.translationService=re.state.translationService),re.state&&re.state.targetLanguage&&(re.targetLanguage=re.state.targetLanguage),re}async function sO(){let e=await Lt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await qt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?s0({text:Me(re.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):s0({text:Me(re.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function Md(){let e=await xn();$c("enableEditTranslation")!=null&&(e.enableEditTranslation=$c("enableEditTranslation"));let t;re&&re.state&&(t=re.state);let n={url:Te(),config:e,state:t},r=await Qt(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),re=r,Mf(re),await uO(re),r}async function uO(e){let t=await In();rl(e,window),Hs(t)&&Dh(e),e.config.enableInputTranslation&&Mh(e)}function lO(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function TT(e){let t=e.detail,n=Lt();ft(t)&&await k5(t.token,n,qt),dt.set(ct,t);let r=await dt.get(Im,!1);dt.set(Im,!1),document.dispatchEvent(new CustomEvent(J+"DocumentMessageUserResult",{detail:r?"close":"success"})),Vs()}function CT(e){k.debug("update user info",e);let t=e.detail;dt.set(ct,t),Vs()}async function wT(e){let t=await Lt();if(t.translationService)return;let n=e.config.translationService,r=await r4(e,n);if(e.translationService!==r){if(!r){eu([{name:"no_avaliable_translation_service"}],e.config.enableSelfServiceReport);return}t.translationService=r,qt(t),e.translationService=r,eu([{name:"change_default_translation_service",params:{translation_service:r}}],e.config.enableSelfServiceReport)}}async function ET(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Lt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),qt(i)}async function r4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await v6(a,e)}async function gT(e){let t=await Lt();t.translationService=e,await qt(t);let n=await Ge(Te(),{});n.translationService=e,await Wn(n)}var jT={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function AT(e,t){let n=await Lt(),r=!1;return Object.keys(jT).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=$(i)),n[a]=i,r=!0)}),r&&(Kh(n),await qt(n),e=await Md()),s4(e)}function s4(e){let t=e.config,n={};return Object.keys(jT).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function cO(e){Ge(Te(),e),nl("syncContextState",e),e?.targetLanguage&&Li({targetLanguage:e.targetLanguage})}function dO(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),_e("translage_page_daily",[{name:"translage_page_daily",params:n}],e),_e("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:mt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&_e("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:mt()})}function mO(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(re.state.targetLanguage=$(i),re.targetLanguage=$(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function pO(e){let t=e.config.arxivRule;if(!t?.matches||!We(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await K({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${Me(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function gO(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||_h(e,window,t,n))}function fO(e,{translation_service:t}){_e("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function hO(e,{key:t,events:n}){_e(t,n,e)}g2({detectCurrentPageLanguage:BT,ensureSwitchTranslationMode:qh,restorePage:Ir,retryFailedParagraphs:$_,switchTranslationMode:i4,toggleTranslateManga:Z_,toggleTranslatePage:Uh,toggleTranslateTheMainPage:aO,toggleTranslateTheWholePage:iO,toggleTranslationMask:Hh,toggleEnableEditTranslation:X_,toggleVideoSubtitlePreTranslation:sO,translatePage:Wn,translatePageWithTranslationService:rO,translateTheMainPage:c4,translateTheWholePage:_T,translateToThePageEndImmediately:OT,toggleTranslateToThePageEndImmediately:oO,updateGlobalContext:Md,getPureGlobalContext:o4,getIsDulSubtitle:tv,updateContextState:cO,inputSelectedTextTranslate:gO,reportTranslateService:fO,popupEventReport:hO,updateFloatBallEnable:$5,translateSelectImage:sT});var bO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return x("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:x("div",{style:i,children:t})})},UT=bO;function HT(e){let t=Ee(null),[n,r]=W(468),[a,i]=W(!1);if(ee(()=>{let s=new URL(Om(e.trigger,e.interfaceLang));globalThis.addEventListener("message",function(u){if(u.origin===s.origin)try{let l=u.data;if(!l)return;let c=JSON.parse(l);c.type==="imtClosePricing"?e.onClose():c.type==="imtPricingResize"&&c.height&&r(c.height)}catch{}})},[t]),ee(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n}),x(UT,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[x("iframe",{ref:t,src:Om(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),x(yO,{hidden:a})]})}function yO(e){return e.hidden?null:x("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:x("div",{className:`${P}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function vO(e){let{trigger:t,hoveImage:n,hoveImageStyles:r,containerRef:a,activeRef:i,imageStatus:o,showPricingModal:s,setShowPricingModal:u,handleTranslate:l}=KS(e.ctx),{t:c}=se(),{enable:d,handleCloseConfirm:m}=YS(),p=he(()=>c(o==="translating"?"Translating":o==="success"?"imageTools.resetImage":"imageTools.translateImage"),[n,o]);return d?x("div",{class:"imt-image-tools notranslate",ref:a,style:r,children:[n&&x(Pt,{children:[x(zn,{enableMobile:!0,text:p,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:x("div",{class:"imt-image-translate-button",onClick:()=>{l(n)},children:[x(Ft,{type:"logo",className:"logo",style:{width:14,height:14}}),x(Ft,{type:"translated",className:"translated-icon",hidden:o!=="success"})]})}),x(xO,{imgElement:n,setActive:g=>{i.current=g},onCloseConfirm:m})]}),x(HT,{visible:s,trigger:t,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{u(!1)}})]}):null}function xO(e){let{t}=se(),[n,r]=W(!1),[a,i]=W({});ee(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Oa()+"#manga";return x(Pt,{children:[x("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:x(SO,{})}),x(Rd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function qT(e){let t=We(e.url,e.rule.imageRule.blockToolsUrls);if(!hs(e)||!e.rule.imageRule.enableTools||t)return null;let r=P+"-image-tools";if(document.getElementById(r))return;let a=[de.IMMERSIVE_TRANSLATE_PICO_CSS,de.IMMERSIVE_TRANSLATE_COMMON_CSS,de.IMMERSIVE_TRANSLATE_POPUP_CSS,de.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,de.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` -`);Xo({id:r,parent:document.body,ctx:e,Component:vO,props:{ctx:e},style:a,isInsertMount:!0})}function SO(){return x("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{"clip-path":"url(#clip0_14556_6069)",children:x("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),x("defs",{children:x("clipPath",{id:"clip0_14556_6069",children:x("rect",{width:"14",height:"14",fill:"white"})})})]})}async function zT(e){if(!e){let n=await xn();e=await Qt({config:n,url:Te()})}if(e.config.debug?k.setLevel("debug"):k.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await Ro("auto",e.targetLanguage),r=document.createElement("meta");r.name=P+"-meta",r.content=Ss(JSON.stringify(n)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(n){k.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Oa(),r=document.createElement("meta");r.name=P+"-options-url",r.content=n;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){k.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Wt(),r=document.createElement("meta");r.name=P+"-version",r.content=n;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){k.warn("inject version failed",a)}}}}else await _d();Ke()||await eT().catch(n=>{k.error(`init popup page error: ${n}`)}),Ke()||C5()}await NT(),qT(e)}var al={capture:!0,once:!0,passive:!0},VT=()=>document.readyState==="interactive"||document.readyState==="complete",TO=e=>document.readyState===e,il=(e,t)=>TO(e)||VT()?(t(e),!0):!1,CO=()=>new Promise(e=>{il("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},al)}),wO=()=>new Promise(e=>{il("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},al)}),EO=()=>new Promise(e=>{il("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},al)}),WT=()=>new Promise(e=>{il("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},al)}),GT=()=>new Promise(e=>{il("load",e)||window.addEventListener("load",()=>{e("load")},al)}),KT={};Object.defineProperties(KT,{state:{get:function(){return document.readyState}},loading:{get:function(){return CO()}},interactive:{get:function(){return wO()}},complete:{get:function(){return EO()}},window:{get:function(){return GT()}},load:{get:function(){return GT()}},domready:{get:function(){return WT()}},dom:{get:function(){return WT()}},ready:{get:function(){return VT()}}});var YT=KT;var QT={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function AO(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function kO(e){if(typeof e!="function")throw new Error(QT.NOT_FUNCTION)}var d4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),kO(t),this._executeFn=AO(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${QT.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let d=document.createElement("button");d.setAttribute("style","margin-top:36px"),d.className=P+"-btn",d.innerText=n("error.retry"),d.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Fd(s,e,t,r,a,i,o)},i.append(d)}var na=null;async function oC(e,{srcUrl:t}){if(!hs(e))return;if(!await qs(e)){hd("image_right_menu");return}if(!na){k.error("rightMenu image ele not found",t,na);return}if(na.translationStatus!=="translating"){if(na.hasTranslate){di(na);return}if(t!==na.src)try{let r=new URL(t),a=new URL(na.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,na.src,r);return}wa(e,na,!0,"image_right_menu")}}function sC(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(na=e.target)})}var uC=0;function tl(e){let t=Date.now();if(t-uC<2e3||(uC=t,PB()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),d=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",d.innerHTML="",e(u,l,d,c,el)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=be();c.textContent=d.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let m=document.createElement("div");m.className=P+"-modal-content notranslate",u.appendChild(m);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",m.appendChild(p);let g=document.createElement("div");g.className=i+" notranslate",m.appendChild(g);let h=document.createElement("div");h.className=o+" notranslate",m.appendChild(h);let b=document.createElement("div");b.className=s,m.appendChild(b),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",f=>{f.target==u&&(u.style.display="none")}),e(u,g,h,b,el)}setTimeout(()=>{_B()},100)}function PB(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function _B(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function el(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function lC(e,t,n="sameLang",r,a,i,o){let s=Me.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await ln();qt({...l,sameLangCheck:!1}),o(i,!0)})}var cC=0;async function dC(e){let t=Date.now();if(t-cC<2e3||(cC=t,RB()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&e4(l,!0)},d,m;if(a)m=a.shadowRoot.querySelector(`.${r}`),u=m.querySelector(`.${i}`),l=m.querySelector(`.${s}`),u.innerHTML="",e(m,u,l,e4);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let h=a.attachShadow({mode:"open"}),b=document.createElement("style"),f=be();b.textContent=f.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,h.appendChild(b),m=document.createElement("div"),m.className=r+" notranslate",m.id=r;let y=document.createElement("div");y.className=o,m.appendChild(y),u=document.createElement("div"),u.className=i+" notranslate",y.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",y.appendChild(l),h.appendChild(m);let x=document.createElement("span");x.textContent="\xD7",x.className=P+"-toast-close",m.appendChild(x),x.onclick=function(){m.style.display="none"},h.addEventListener("click",T=>{T.target==m&&(m.style.display="none")}),e(m,u,l,e4)}let p=()=>{clearTimeout(d)},g=()=>{clearTimeout(d),d=setTimeout(c,2500)};m.addEventListener("mouseenter",p),m.addEventListener("mouseleave",g),setTimeout(()=>{FB()},100),d=setTimeout(c,2500)}function RB(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function FB(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function e4(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function t4(e,t,n,r="retry",a,i,o,s,u){let l=Me.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),d=l("unknownError");i.innerText=c,o.innerHTML=Je.sanitize(n||d,{ADD_ATTR:["target"]}),s.innerText="";let m="",p=document.createElement("button");if(r=="retry"){m=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let g=document.createElementNS("http://www.w3.org/2000/svg","svg");g.setAttribute("viewBox","0 0 16 16"),g.setAttribute("width","20"),g.setAttribute("height","20"),g.innerHTML='',p.appendChild(g),p.onclick=()=>{a.style.display="none",mC({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")m=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(l1)};else if(r=="upgrade")m=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(Gl)};else if(r=="loginOrUpgrade")m=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(p1)};else if(r=="setting")m=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(de.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let g=e.rule.detectionServiceOrder;r=="changeProService"&&g&&(g=["deepl","openai",...g]),m=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(de.OPTIONS_URL)},n4(e,e.config.translationService,!1,g).then(h=>{h?(m=l("toggleToService",{service:l("translationServices."+h)}),p.innerHTML=Je.sanitize(m),p.onclick=()=>{pC(h),u(p,!0)}):(m=l("goSettings"),p.innerHTML=Je.sanitize(m))})}else if(r=="autoEnableSubtitle")m=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let g=await Lt();g.generalRule||(g.generalRule={}),g.generalRule["subtitleRule.add"]||(g.generalRule["subtitleRule.add"]={}),g.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await qt(g),mC({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")m=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=Je.sanitize(m),s.appendChild(p)}function mC(e){jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(vr,{detail:e});globalThis.document.dispatchEvent(t)}var gC=!1,Ft={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},hC=[()=>{Nn.unbind()}],fC=[...hC],IB=$n(async()=>{await Ba()},50),BB=$n(async()=>{await cc()},50),OB=$n(async()=>{await w2()},50),NB=$n(async()=>{await C2()},50),bC=$n(e=>{Jt({method:e,data:{trigger:"userscript_menu"}})},50),r4=!1,jB=Ln(()=>{let e=globalThis.getSelection()?.toString().trim();!r4&&e&&e.length>0?Li({text:e}):Li({})},50),UB=()=>{r4=!0,setTimeout(()=>{r4=!1},100)};Ft.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(gC)return;gC=!0,X()||h2(),n.addEventListener("securitypolicyviolation",Ft.handleSecurityPolicyViolation),document.addEventListener(Z+"DocumentMessageUser",TC),document.addEventListener(Z+"DocumentMessageUpdateUser",SC),document.addEventListener(Z+"ChangeSuccessService",CC.bind(null,t)),document.addEventListener(Z+"ChangeService",wC.bind(null,t)),document.addEventListener(fn,Ft.showErrorByEvent.bind(null,t)),document.addEventListener(Ml,Ft.showToastByEvent.bind(null,t)),document.addEventListener(yi,Ft.showModal.bind(null,t)),n.addEventListener(Z+"EbookLoaded",Ft.handleEbookLoaded),n.addEventListener(j3,Ft.handleThirdPartyTell.bind(null,t)),n.addEventListener(U3,Ft.eventUpload.bind(null,t)),n.addEventListener(Rl,a=>{Ke()||_f(a,t)}),n.addEventListener(q3,zx),n.addEventListener("click",a=>{Ft.handleClick(a,t)}),document.addEventListener("selectionchange",jB),document.addEventListener("contextmenu",UB),sC(),Ke()&&e.addEventListener("message",Ft.handleGlobalMessage,!1),X()&&(Ke()||n.addEventListener(vr,Ft.handlePopupInit)),Ke()||Ja.rootIframe(Hl).handleAsk("throttleRequest",j9)};function rl(e,t){zB(),Ft.SetupDomListenersForOnce(t,e),X()&&(Ke()||(Rf(e.config),WB(e.config))),Jn()&&pS(e,t),at()&&Rf(e.config)}Ft.handlePopupInit=e=>{eC()};Ft.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===Dl&&jr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Ft.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){el(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Be(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),yC({method:"retryFailedParagraphs"}),el(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}tl(t4.bind(null,t,o,i,s));return}}};async function HB(){let e=await Lt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await qt(e)}async function qB(){let e=await Lt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await qt(e)}Ft.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;dC(lC.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Ft.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;tl(t4.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Ft.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?tl(Fd.bind(null,"manga",e)):r=="webReport"&&tl(Fd.bind(null,"web",e))};Ft.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=i4()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")yC({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")dc(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")HB();else if(i.type==="toggleEnableInputTranslation")qB();else if(i.type==="syncAppSetting")xC(i.data);else if(i.type==="translatePage")GB(i.data);else if(i.type==="getAsyncTranslationServiceList")a=Ql(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=v0(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await VB(i.data,o)}catch(s){nl(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await KB(o,i.data)}catch(s){nl(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await lc(i.data):i.type==="getAsyncDownloadSubtitle"?a=await U6():i.type==="sharePage"?_f({detail:i.data},r):i.type==="switchTranslationMode"?a4(i.data):i.type=="getAsyncAiAssistants"?a=await u9():i.type=="addAiAssistantAsync"?a=await a0("add",i.data):i.type=="removeAiAssistantAsync"?a=await a0("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await o4(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await EC(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await _o("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await bb(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await D2()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await L2()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await yb(i.data)):i.type==="openPopup"?_d({...i.data,open:!0}):i.type==="closePopup"?_d({...i.data,open:!1}):i.type==="togglePopup"?_d({...i.data}):i.type==="getPageStatusAsync"?a=$e():i.type==="restorePage"?$B():i.type==="getPageLanguageAsync"?a=mt():i.type==="showFloatBallGuide"?jS():i.type=="getAsyncDetectAndSetLanguage"?a=await vC(i.data):i.type=="setFloatBallActive"?WS(i.data):bC(i.type);a!=null&&i.id&&nl(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Ft.handleEbookLoaded=e=>{setTimeout(()=>{Id()},10)};Ft.handleSecurityPolicyViolation=e=>{de.HAS_CSP_ERROR="1"};Ft.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Be(n.name,[{name:n.name}],{...e})};function zB(){fC.forEach(e=>{e()}),fC=hC}function WB(e){if(X()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fc.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Me(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:km,title:Me(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Dm,title:Me(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Em,title:Me(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Am,title:Me(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Em?IB():i.id===Am?BB():i.id===Dm?OB():i.id===km?NB():bC(i.id)},i.key)}}function yC(e){jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(vr,{detail:e});globalThis.document.dispatchEvent(t)}async function xC(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await Ge(Se(),t)}async function GB(e){let t=await xC(e);Gn(t)}function nl(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function VB({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await Zt({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function KB(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await Zt({sentences:s},l,(c,d,m)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof j?c.status:"error"}),u[m.id]={error:p,errorUIConfig:c instanceof j?c?.uiConfig(e):null,sentence:d,sentenceRequest:m}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function $B(){$e()!=="Original"&&Fr()}var $i={};async function s4(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await Ie({text:t,minLength:200,pageLangs:[Ct(),"en"]});return er(n),n}async function AC(e){let t=0,n=0;Rn("Translating");let r=mt(),a=rc(),i=[...document.querySelectorAll(".source-text")];if(Lo(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let d=c.node.parentElement?.parentElement?.querySelector(".target-text");wt(c.node,"id",c.id+""),d&&(Mo(d,c.id)?.remove(),d.appendChild(lu(e,c.id,!0)))}),await s(l),await pt(0)}}catch(u){throw u}finally{t=0,n=0,Rn("Translated")}async function s(u){await Zt({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,d)=>{n+=1;let m=d.id,p=Mo(document.body,m);if(!p)return;let g=p.parentElement;g&&(p.remove(),l?(t+=1,g.innerHTML=Je.sanitize(`${l.message}`),$i[m]={ok:!1,sentence:d},DC(u,e,t,n,l)):c&&(g.innerHTML=Je.sanitize(c.text),$i[m]={ok:!0,sentence:d}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function kC(e){let t=0,n=0;Rn("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys($i),a=[],i=[];for(let o of r){let s=$i[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete $i[o],c.appendChild(lu(e,o)),i.push(s.sentence))}}}try{await Zt({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=Mo(document.body,l);if(!c)return;let d=c.parentElement;d&&(c.remove(),o?(t+=1,d.innerHTML=Je.sanitize(`${o.message}`),$i[l]={ok:!1,sentence:u},DC(i,e,t,n,o)):s&&(d.innerHTML=Je.sanitize(s.text),$i[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Rn("Translated")}}function u4(){Rn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function DC(e,t,n,r,a){if(!(a instanceof j))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(fn,{detail:i}))}var Bd={};async function LC(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await Ie({text:t,pageLangs:["en"]});return er(n),n}async function MC(e){Rn("Translating"),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Bd),n=[];for(let r of t){let a=Bd[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Ol}='${r}']`);o&&o.remove(),n.push(a)}}try{Au(),await A0(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Rn("Translated")}}function PC(e){Object.values(Bd).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=Jo(e,t.targetNodes);ti(e,i,r,t.rootNodes||[]),Ni(t.targetNodes)}else n==="dual"&&Ni(t.targetNodes)}),Rn("Original")}async function _C(e){Rn("Translating");let t=zs(),n=Wr(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;Yo(l,e);let c=l.body;if(!c)continue;Gr(l.documentElement,e.state.translationMode);let d=dn(e);d.isModifyImage=!1;let m=[];await xa({id:t,container:c,filterRule:d,onParagraph:g=>{m.push(g)}});let p=await s(m);a+=p,o(Math.max(a,1e4)),await pt(0)}o(a),Rn("Translated");function o(u){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=Do(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let d of u){let m=S0(d.commonAncestorContainer,d.flatNodes,{isPreWhitespace:d.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:w0(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!m)continue;d.id=(i++).toString();let p=await Zg(e,d,m,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Bd[p.id]=p)}A0(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}var re=null,Od={},ys,RC=!1;async function Id(){go.clearStrictTicks();let e=await Ge(Se(),{}),t=await Fn();if(k.debug("init page ctx",e),Bx(e),e.rule.pageType=="subtitleBuilder"){s4();return}if(e.rule.pageType=="ebookBuilder"){LC();return}if(ys||(ys=e.state.translationTheme),e.rule.urlChangeDelay&&await pt(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await sO(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let s=Oa(),u=document.createElement("meta");u.name=P+"-options-url",u.content=s;try{document.head&&document.head.appendChild&&document.head.appendChild(u)}catch(l){k.warn("inject options url failed",l)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(u=>{let l=document.createElement("meta");l.name=u,l.content=e.rule.globalMeta[u],document.head.appendChild(l)}),e.rule.initialGlobalAttributes&&v6(document.body,e.rule.initialGlobalAttributes),dO(e),e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let s=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");s&&(s.value="helloworld",s.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),s.dispatchEvent(new Event("change")))}RC||(RC=!0,Ke()&&e.rule.useIframePostMessage&&await v9());let n=e.sourceLanguage;n==="auto"?n=await FC():er(n);let r=wy(e,n);if(r&&(e=await Ge(Se(),{translationMode:r})),e.rule.isInjectMeta)try{let s=await _o(n,e.targetLanguage),u=document.createElement("meta");u.name=P+"-meta",u.content=Ts(JSON.stringify(s)),document.head&&document.head.appendChild&&document.head.appendChild(u)}catch(s){k.warn("inject meta failed",s)}let a=new URL(e.url);(a.searchParams.get("imt_refresh_rule")==="1"||a.searchParams.get("imt_refresh_rule")==="true")&&await Kh();let o=cO(e);if(!o&&!e.isTranslateExcludeUrl&&(k.debug(`detect page language: ${e.url} ${n}`),Fa(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto"||S9(n,e.config.translationLanguagePattern)&&(o=!0,k.debug(`match language pattern ${n}, auto translate`))),e.rule.pageType=="ebookBuilder"&&(o=!1),e.rule.pageType!=="pdfReader"&&Hs(t)&&kh(e),o)re.state.isAutoTranslate=!0,Gn(re);else if(k.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Fa(n,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||n==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Od[e.translationService]||(Od[e.translationService]=!0,Ke()||Fg(e).catch(s=>{k.warn("init translation engine error",s)})))}}async function jh(e){if($e()==="Original"){let t={};ys&&(t.translationTheme=ys),re&&(t={...re.state,...t});let n=await Ge(Se(),t);if(e?.trigger=="right_menu"&&Ai(n?.rule)){let r=ki(n.rule);if(r){po(!0,r||Se());return}}await Gn({...re,sourceProgram:"html"},e)}else($e()==="Translated"||$e()==="Error")&&Fr()}async function YB(){let e=mo();re||(re=await Ge(Se(),{})),e=="Original"?UT(re):(HT(),dr("Original"))}function ZB(){Zy("enableEditTranslation",!re?.config.enableEditTranslation);let e=Qc("enableEditTranslation");re&&(re.config.enableEditTranslation=e);let t=Ou();t&&(t.ctx.config.enableEditTranslation=e),document.querySelectorAll(`font.notranslate.${Dt}`).forEach(n=>{e?n.setAttribute("contenteditable","true"):n.removeAttribute("contenteditable")})}async function JB(){if(re=await Ge(Se(),{}),re.rule.pageType=="ebookBuilder")return MC(re);if(re.rule.pageType=="subtitleBuilder")return kC(re);qx()}async function Uh(e){if($e()==="Original"){re=await Ge(Se(),{}),ys||(ys=re.state.translationTheme);let t="mask";re.state.translationTheme==="opacity"&&(t="opacity"),re=await Ge(Se(),{translationTheme:t}),await Gn(re,e)}else if($e()==="Translated"){let t="mask";re?.state?.translationTheme==="opacity"&&(t="opacity");let n=Ty().filter(i=>i.contentDocument?.body).map(i=>i.contentDocument.body),r=[re.mainFrame,...n],a=re?.state.translationTheme;for(let i of r){let o=Lb(i,oo,!0);a==="mask"||a==="opacity"?o!=="none"?wt(i,oo,"none",!0):wt(i,oo,t,!0):o!=="mask"&&o!=="opacity"?wt(i,oo,t,!0):wt(i,oo,"none",!0)}}}async function FC(){let e=await Ge(Se(),{});return e.rule.pageType=="subtitleBuilder"?s4():Hx(e)}function XB(e){$e()==="Original"?AC(e):u4()}function QB(e){$e()==="Original"?Y0(e):is()}async function Fr(){Gs(""),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"restorePage",payload:{}})}));let e=await Ge(Se(),{});if(e.rule.pageType=="subtitleBuilder"){u4();return}else e.rule.pageType=="ebookBuilder"&&PC(e);is()}function eO(e){e.config.sameLangCheck&&!(e.rule.detectParagraphLanguage||e.state.isDetectParagraphLanguage)&&mt()==e.targetLanguage&&document.dispatchEvent(new CustomEvent(Ml,{detail:{type:"sameLang"}}))}async function Gn(e,t){if(eO(e),$e()!=="Original"&&await Fr(),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(Nt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Od[e.translationService]||(Od[e.translationService]=!0,Ke()||Fg(e).catch(r=>{k.warn("init translation engine error",r)})),e.specialAiAssistant=Mr(e,e.translationService,!0),lO(e,t),e.rule.pageType=="subtitleBuilder"){XB(e),Gs("yes");return}if(e.rule.pageType=="ebookBuilder"){_C(e),Gs("yes");return}QB(e),Gs("yes")}async function tO(e,t){let n=re?.translationService;if($e()==="Original"||n!=e){re=await Ge(Se(),{translationService:e});let r=Me(re.config.interfaceLanguage,`translationServices.${e}`);e.startsWith("custom-ai")&&(r=re.config.translationServices[e].name);let a=Me(re.config.interfaceLanguage,"tempChangeTransToService",{service:r});s0({text:a}),await Gn(re,t)}else{Fr();let r=await vn(),a={url:Se(),config:r,state:{}},i=await Yt(a);re=await Ge(Se(),{translationService:i.translationService})}}async function nO(e){$e()==="Original"?await l4(e):($e()==="Translated"||$e()==="Error")&&(re=await Ge(Se(),{}),re.state.translationArea!=="main"?await l4(e):Fr())}async function l4(e){re=await Ge(Se(),{translationArea:"main"}),await Gn(re,e)}async function IC(e){re=await Ge(Se(),{translationArea:"body"}),await Gn(re,e)}async function vC(e){let t=[Ct(),"en"],n=await Ie({text:e,pageLangs:t});return er(n),n}async function Hh(e){let t=await Ge(Se(),{}),n=t.state.translationMode=="dual"?"translation":"dual";if(t=await Ge(Se(),{translationMode:n}),$e()==="Original"){Gn(t,e);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(n)}async function a4(e){if(re=await Ge(Se(),{translationMode:e}),Be("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...re,sourceLanguage:"unknown"}),$e()==="Original"){Gn(re);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function rO(e){if($e()==="Original")await IC(e);else if($e()==="Translated"||$e()==="Error"){let t={};re&&re.state&&(t=re.state),re=await Ge(Se(),t),re.state.translationArea!=="body"?(re.state.translationArea="body",re=await Ge(Se(),re.state),await Gn(re,e)):Fr()}}async function BC(e){re=await Ge(Se(),{translationStartMode:"immediate"}),await Gn(re,e)}async function aO(e){$e()==="Original"?await BC(e):($e()==="Translated"||$e()==="Error")&&Fr()}async function OC(){let e=await Ge(Se(),{});if(!We(e.url,e.config.inputStyleBlockUrls)){let n=be().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;Tn(document,n,Bl)}e.rule.pageType&&e.rule.pageType!=="html"||e.config.enableInputTranslation&&Lh(e)}function i4(){return re}async function Ge(e,t){let n=Object.keys(t);if(re){let r={url:e,config:re.config,state:{...re.state,...t}};re=await Yt(r)}else{let r=await vn(),a=t;n.length===0&&(a=void 0),re=await Yt({url:e,config:r,state:a})}return re.state&&re.state.translationService&&(re.translationService=re.state.translationService),re.state&&re.state.targetLanguage&&(re.targetLanguage=re.state.targetLanguage),re}async function iO(){let e=await Lt()||{},t=e.generalRule||{},n=t["subtitleRule.add"]||{},r=!n.preTranslation;await qt({...e,generalRule:{...t,"subtitleRule.add":{...n,preTranslation:r}}}),r?s0({text:Me(re.config.interfaceLanguage,"videoSubtitlePreTranslationOn")}):s0({text:Me(re.config.interfaceLanguage,"videoSubtitlePreTranslationOff")}),setTimeout(()=>{window.location.reload()},1e3)}async function Ld(){let e=await vn();Qc("enableEditTranslation")!=null&&(e.enableEditTranslation=Qc("enableEditTranslation"));let t;re&&re.state&&(t=re.state);let n={url:Se(),config:e,state:t},r=await Yt(n);return r.state&&r.state.translationService&&(r.translationService=r.state.translationService),re=r,Lf(re),await oO(re),r}async function oO(e){let t=await Fn();rl(e,window),Hs(t)&&kh(e),e.config.enableInputTranslation&&Lh(e)}function sO(e,t=3e3){return new Promise((n,r)=>{let a=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,i=setInterval(()=>{e.every(s=>document.querySelector(s)!==null)&&(clearInterval(i),a&&clearTimeout(a),n(null))},50)})}async function TC(e){let t=e.detail,n=Lt();ft(t)&&await AS(t.token,n,qt),dt.set(ct,t);let r=await dt.get(Rm,!1);dt.set(Rm,!1),document.dispatchEvent(new CustomEvent(Z+"DocumentMessageUserResult",{detail:r?"close":"success"})),Vs()}function SC(e){k.debug("update user info",e);let t=e.detail;dt.set(ct,t),Vs()}async function CC(e){let t=await Lt();if(t.translationService)return;let n=e.config.translationService,r=await n4(e,n);if(e.translationService!==r){if(!r){eu([{name:"no_avaliable_translation_service"}],e.config.enableSelfServiceReport);return}t.translationService=r,qt(t),e.translationService=r,eu([{name:"change_default_translation_service",params:{translation_service:r}}],e.config.enableSelfServiceReport)}}async function wC(e,t){let n=t.detail;if(!e.rule.allowInnerInvoke)return;let r=n.translateService;if(!r)return;let a=n.provider,i=await Lt();i.translationService=r,a&&i?.translationServices?.[r]?.provider&&(i.translationServices[r].provider=a),i.translationServiceChangedbyUserAt=new Date().toISOString(),qt(i)}async function n4(e,t,n=!0,r){let a=r||e.rule.detectionServiceOrder||["google","bing","transmart","yandex"];return a.sort((i,o)=>i===t?n?-1:1:o===t?n?1:-1:0),await y6(a,e)}async function pC(e){let t=await Lt();t.translationService=e,await qt(t);let n=await Ge(Se(),{});n.translationService=e,await Gn(n)}var NC={interfaceLanguage:"",targetLanguage:"",translationService:"",aiAssistantIds:[],subtitleTranslateService:"",inputTranslationService:"",mouseHoverTranslationService:""};async function EC(e,t){let n=await Lt(),r=!1;return Object.keys(NC).forEach(a=>{let i=t[a];i!=null&&((a==="targetLanguage"||a==="interfaceLanguage")&&(i=Q(i)),n[a]=i,r=!0)}),r&&(Vh(n),await qt(n),e=await Ld()),o4(e)}function o4(e){let t=e.config,n={};return Object.keys(NC).forEach(r=>{t[r]!=null&&(n[r]=t[r])}),n}function uO(e){Ge(Se(),e),nl("syncContextState",e),e?.targetLanguage&&Li({targetLanguage:e.targetLanguage})}function lO(e,t){let n={};t&&t.trigger&&(n.trigger=t.trigger),Be("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Be("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:mt()});let r=e.config.translationServices?.[e.translationService];r.assistantId&&Be("assistant_translate_page",[{name:"assistant_translate_page",params:{...n,ai_assistant:r.assistantId,ai_assistant_use:e.specialAiAssistant?.id||"common"}}],{...e,sourceLanguage:mt()})}function cO(e){let t=new URL(e.url).searchParams;return!!e.config.autoTranslateParams?.find(r=>{let a=t.get(r)||"";if(r=="crosearch_translate"){let i=t.get("output_locale");i&&(re.state.targetLanguage=Q(i),re.targetLanguage=Q(i))}return["1","true"].includes(a)})||e.state.isAutoTranslate||e.isTranslateUrl}async function dO(e){let t=e.config.arxivRule;if(!t?.matches||!We(e.url,t.matches))return;let r=document.querySelector(t.injectContainerSelector);if(!r)return;let o=new URL(e.url).pathname.split("/").pop();for(let s of t.detectOrders)try{await K({url:`${s}/`+o,responseType:"HEAD",method:"HEAD"});let u=document.createElement("li");u.innerHTML=`${Me(e.config.interfaceLanguage,"viewWithImmersiveTranslate")}`,r.appendChild(u);break}catch{}}function mO(e,{text:t,trigger:n}){let r=document.activeElement;r&&(r.tagName!=="INPUT"&&r.tagName!=="TEXTAREA"&&!r.isContentEditable||Ih(e,window,t,n))}function pO(e,{translation_service:t}){Be("change_translate_service",[{name:"change_translate_service",params:{translation_service:t}}],e)}function gO(e,{key:t,events:n}){Be(t,n,e)}p2({detectCurrentPageLanguage:FC,ensureSwitchTranslationMode:Hh,restorePage:Fr,retryFailedParagraphs:JB,switchTranslationMode:a4,toggleTranslateManga:YB,toggleTranslatePage:jh,toggleTranslateTheMainPage:nO,toggleTranslateTheWholePage:rO,toggleTranslationMask:Uh,toggleEnableEditTranslation:ZB,toggleVideoSubtitlePreTranslation:iO,translatePage:Gn,translatePageWithTranslationService:tO,translateTheMainPage:l4,translateTheWholePage:IC,translateToThePageEndImmediately:BC,toggleTranslateToThePageEndImmediately:aO,updateGlobalContext:Ld,getPureGlobalContext:i4,getIsDulSubtitle:ex,updateContextState:uO,inputSelectedTextTranslate:mO,reportTranslateService:pO,popupEventReport:gO,updateFloatBallEnable:XS,translateSelectImage:oC});var fO=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return v("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:v("div",{style:i,children:t})})},jC=fO;function UC(e){let t=Ee(null),[n,r]=W(468),[a,i]=W(!1);if(ee(()=>{let s=new URL(Bm(e.trigger,e.interfaceLang));globalThis.addEventListener("message",function(u){if(u.origin===s.origin)try{let l=u.data;if(!l)return;let c=JSON.parse(l);c.type==="imtClosePricing"?e.onClose():c.type==="imtPricingResize"&&c.height&&r(c.height)}catch{}})},[t]),ee(()=>{e.visible||i(!1)},[e.visible]),!e.visible)return null;let o={padding:0,borderRadius:26,transform:"unset",left:"calc(50% - 370px)",top:`calc(50% - ${n/2}px)`,width:740,height:n};return globalThis.innerWidth<740&&(o={padding:0,borderRadius:26,transform:"unset",left:16,top:`calc(50% - ${n/2}px)`,width:"calc(100% - 32px)",height:n}),v(jC,{isOpen:e.visible,closeModal:e.onClose,contentStyles:o,children:[v("iframe",{ref:t,src:Bm(e.trigger,e.interfaceLang),style:{width:"100%",height:"100%"},onLoad:()=>{i(!0)}}),v(hO,{hidden:a})]})}function hO(e){return e.hidden?null:v("div",{style:{position:"absolute",left:0,top:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:v("div",{className:`${P}-loading-spinner`,style:"width: 30px !important; height: 30px !important;"})})}function bO(e){let{trigger:t,hoveImage:n,hoveImageStyles:r,containerRef:a,activeRef:i,imageStatus:o,showPricingModal:s,setShowPricingModal:u,handleTranslate:l}=VT(e.ctx),{t:c}=se(),{enable:d,handleCloseConfirm:m}=KT(),p=he(()=>c(o==="translating"?"Translating":o==="success"?"imageTools.resetImage":"imageTools.translateImage"),[n,o]);return d?v("div",{class:"imt-image-tools notranslate",ref:a,style:r,children:[n&&v(Pt,{children:[v(Wn,{enableMobile:!0,text:p,tipStyle:{left:"unset",right:0,transform:"unset"},position:"top",children:v("div",{class:"imt-image-translate-button",onClick:()=>{l(n)},children:[v(Rt,{type:"logo",className:"logo",style:{width:14,height:14}}),v(Rt,{type:"translated",className:"translated-icon",hidden:o!=="success"})]})}),v(yO,{imgElement:n,setActive:g=>{i.current=g},onCloseConfirm:m})]}),v(UC,{visible:s,trigger:t,interfaceLang:e.ctx.config.interfaceLanguage,onClose:()=>{u(!1)}})]}):null}function yO(e){let{t}=se(),[n,r]=W(!1),[a,i]=W({});ee(()=>{let s=document.querySelector("#monica-content-root"),u=()=>{if(!e.imgElement)return i({});let l=e.imgElement.getBoundingClientRect(),c=s?56:16,d=l.right-c-360,m=l.top+l.height-100,p=globalThis.innerHeight-260;i({position:"fixed",left:d+"px",top:Math.min(m,p)+"px"})};return u(),globalThis.addEventListener("scroll",u),()=>{globalThis.removeEventListener("scroll",u)}},[e.imgElement]);let o=Oa()+"#manga";return v(Pt,{children:[v("div",{title:t("floatBall.close"),class:"close-button",onClick:()=>{e.setActive(!0),r(!0)},children:v(xO,{})}),v(Pd,{title:t("closeImageTools.title"),visible:n,settingUrl:o,onClose:()=>{e.setActive(!1),r(!1)},style:a,onCloseConfirm:e.onCloseConfirm})]})}function HC(e){let t=We(e.url,e.rule.imageRule.blockToolsUrls);if(!hs(e)||!e.rule.imageRule.enableTools||t)return null;let r=P+"-image-tools";if(document.getElementById(r))return;let a=[de.IMMERSIVE_TRANSLATE_PICO_CSS,de.IMMERSIVE_TRANSLATE_COMMON_CSS,de.IMMERSIVE_TRANSLATE_POPUP_CSS,de.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS,de.IMMERSIVE_TRANSLATE_IMAGE_TOOLS_CSS].join(` +`);Xo({id:r,parent:document.body,ctx:e,Component:bO,props:{ctx:e},style:a,isInsertMount:!0})}function xO(){return v("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v("g",{"clip-path":"url(#clip0_14556_6069)",children:v("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.8"})}),v("defs",{children:v("clipPath",{id:"clip0_14556_6069",children:v("rect",{width:"14",height:"14",fill:"white"})})})]})}async function qC(e){if(!e){let n=await vn();e=await Yt({config:n,url:Se()})}if(e.config.debug?k.setLevel("debug"):k.setLevel("info"),!e.isTranslateExcludeUrl){if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){if(e.rule.isInjectMeta){try{let n=await _o("auto",e.targetLanguage),r=document.createElement("meta");r.name=P+"-meta",r.content=Ts(JSON.stringify(n)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(n){k.warn("inject meta failed",n)}if(e.rule.isInjectOptionsUrl){let n=Oa(),r=document.createElement("meta");r.name=P+"-options-url",r.content=n;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){k.warn("inject options url failed",a)}}if(e.rule.isInjectVersion){let n=Wt(),r=document.createElement("meta");r.name=P+"-version",r.content=n;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){k.warn("inject version failed",a)}}}}else await Id();Ke()||await QS().catch(n=>{k.error(`init popup page error: ${n}`)}),Ke()||SS()}await OC(),HC(e)}var al={capture:!0,once:!0,passive:!0},GC=()=>document.readyState==="interactive"||document.readyState==="complete",vO=e=>document.readyState===e,il=(e,t)=>vO(e)||GC()?(t(e),!0):!1,TO=()=>new Promise(e=>{il("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},al)}),SO=()=>new Promise(e=>{il("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},al)}),CO=()=>new Promise(e=>{il("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},al)}),zC=()=>new Promise(e=>{il("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},al)}),WC=()=>new Promise(e=>{il("load",e)||window.addEventListener("load",()=>{e("load")},al)}),VC={};Object.defineProperties(VC,{state:{get:function(){return document.readyState}},loading:{get:function(){return TO()}},interactive:{get:function(){return SO()}},complete:{get:function(){return CO()}},window:{get:function(){return WC()}},load:{get:function(){return WC()}},domready:{get:function(){return zC()}},dom:{get:function(){return zC()}},ready:{get:function(){return GC()}}});var KC=VC;var $C={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function wO(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function EO(e){if(typeof e!="function")throw new Error($C.NOT_FUNCTION)}var c4=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:r=!1,verbose:a=!1,backoffFactor:i=1,backoffMaxInterval:o,message:s=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=r,this._isWaiting=!1,this._isResolved=!1,this._verbose=a,this._userMessage=s,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=i,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),EO(t),this._executeFn=wO(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${$C.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},JT=(e,t)=>new d4(t).execute(e);async function ZT(e){try{let t=e.config.domReadyDetectTimeout;return await JT(()=>{let r=e.mainFrame.innerText||"";if(To(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if(Ke())throw t;return k.debug("check dom element ready failed:",t,e),!0}}function XT(){let e=document.querySelector(`meta[name=${P}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function eC(){if(!document.getElementById(P+"-status")){k.error("Could not find status element");return}await $T("local"),await $T("sync"),LO();let t=document.getElementById(P+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function DO(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){k.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(Pl,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(Pl,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function LO(){document.addEventListener(Ll,r=>{let a=r;if(k.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){k.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&DO(a,K):i.type==="tell"&&i.method==="updateCommands"&&dc(i.data)}});let e=document.getElementById(P+"-manifest");if(!e){k.error("Could not find manifest element");return}let t=ne.runtime.getManifest();at()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${P}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&ne.storage[a.data.area].remove(a.data.keys)}catch(a){k.error("parse message error",a)}})}async function $T(e){let t=document.getElementById(P+"-status"),n=document.getElementById(`${P}-${e}-storage`);if(n){k.debug("init storage");let r=await ne.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);ne.storage[e].set(i)}catch(i){k.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await ne.storage[e].get(null);n.value=JSON.stringify(i),k.debug("refresh ",e,"storage")})}else{k.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function MO(){try{document.dispatchEvent(new Event(q3))}catch{}}function tC(){Al()||MO()}var nC=["textarea","input","button","select","option","iframe","strong","form","body"];async function PO(){tC(),await _2();let e=await Mt();e.excludeTranslationHtmlTags&&(nC=e.excludeTranslationHtmlTags),Li({}),Ze.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(nC.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Ze.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),r.tagName?.toLowerCase()?.startsWith("mjx-")&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Ze.addHook("uponSanitizeAttribute",function(r,a){r.tagName?.toLowerCase().startsWith("mjx-")&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=Te(),n=await Qt({config:e,url:t});_e("init_page_daily",[{name:"init_page_daily"}],n),YT.domready.then(()=>{if(n.isTranslateExcludeUrl&&XT())k.debug("detect web options page"),rl(n,window),eC();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Wt(),i=document.createElement("meta");i.name=P+"-version",i.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(i)}catch(o){k.warn("inject version failed",o)}}if(We(n.url,n.config.blockUrls))return;rl(n,window),ZT(n).then(()=>{zT(n).catch(a=>{a&&k.debug("translate page error",a.name,a.message,a)})}).catch(a=>{k.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&k.debug("translate dom ready detect error",r)})}PO().catch(e=>{k.debug("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},YC=(e,t)=>new c4(t).execute(e);async function ZC(e){try{let t=e.config.domReadyDetectTimeout;return await YC(()=>{let r=e.mainFrame.innerText||"";if(So(r,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:t!==void 0?t:3e3}),!0}catch(t){if(Ke())throw t;return k.debug("check dom element ready failed:",t,e),!0}}function JC(){let e=document.querySelector(`meta[name=${P}-options]`);return!!(e&&e.getAttribute("content")==="true")}async function QC(){if(!document.getElementById(P+"-status")){k.error("Could not find status element");return}await XC("local"),await XC("sync"),kO();let t=document.getElementById(P+"-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function AO(e,t){let n;try{n=JSON.parse(e.detail)}catch(a){k.error("parse detail failed",a);return}let r=n.id||"default";try{let a=n.data||{},i=await t(a),o={id:r,ok:!0,data:i};document.dispatchEvent(new CustomEvent(Pl,{detail:JSON.stringify({...o,type:"answer"})}))}catch(a){let i={ok:!1,errorName:a.name,errorMessage:a.message,errorDetails:a.details||a.detail};document.dispatchEvent(new CustomEvent(Pl,{detail:JSON.stringify({...i,id:r,type:"answer"})}))}}function kO(){document.addEventListener(Ll,r=>{let a=r;if(k.debug("document message",a),a&&a.detail){let i;try{i=JSON.parse(a.detail)}catch(o){k.error("parse detail failed",o);return}i.type==="ask"?i.method==="request"&&AO(a,K):i.type==="tell"&&i.method==="updateCommands"&&dc(i.data)}});let e=document.getElementById(P+"-manifest");if(!e){k.error("Could not find manifest element");return}let t=ne.runtime.getManifest();at()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById(`${P}-message`).addEventListener("change",r=>{try{let a=JSON.parse(r.target.value);a&&a.method==="removeStorageKey"&&a.data&&a.data.area&&a.data.keys&&ne.storage[a.data.area].remove(a.data.keys)}catch(a){k.error("parse message error",a)}})}async function XC(e){let t=document.getElementById(P+"-status"),n=document.getElementById(`${P}-${e}-storage`);if(n){k.debug("init storage");let r=await ne.storage[e].get(null);n.value=JSON.stringify(r),n.dispatchEvent(new Event("change")),n.addEventListener("change",a=>{try{let i=JSON.parse(a.target.value);ne.storage[e].set(i)}catch(i){k.error("save to storage error",i)}}),n.addEventListener("refresh-"+e,async a=>{let i=await ne.storage[e].get(null);n.value=JSON.stringify(i),k.debug("refresh ",e,"storage")})}else{k.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}function DO(){try{document.dispatchEvent(new Event(H3))}catch{}}function ew(){Al()||DO()}var tw=["textarea","input","button","select","option","iframe","strong","form","body"];async function LO(){ew(),await I2();let e=await Mt();e.excludeTranslationHtmlTags&&(tw=e.excludeTranslationHtmlTags),Li({}),Je.addHook("beforeSanitizeElements",function(r,a,i){let o=(r.nodeName||"").toLowerCase();if(tw.includes(o)){let u=`<${o}>${r.textContent||""}`,l=document.createTextNode(u);return r.replaceWith(l),r}return r}),Je.addHook("uponSanitizeElement",function(r,a){let i=r.nodeName||"";/\d+$/.test(i)&&(a.allowedTags[a.tagName]=!0),r.tagName?.toLowerCase()?.startsWith("mjx-")&&(a.allowedTags[r.tagName.toLowerCase()]=!0)}),Je.addHook("uponSanitizeAttribute",function(r,a){r.tagName?.toLowerCase().startsWith("mjx-")&&(a.allowedAttributes[a.attrName.toLowerCase()]=!0)});let t=Se(),n=await Yt({config:e,url:t});Be("init_page_daily",[{name:"init_page_daily"}],n),KC.domready.then(()=>{if(n.isTranslateExcludeUrl&&JC())k.debug("detect web options page"),rl(n,window),QC();else{if(!n.config.enabled)return;if(n.rule.isInjectVersion){let a=Wt(),i=document.createElement("meta");i.name=P+"-version",i.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(i)}catch(o){k.warn("inject version failed",o)}}if(We(n.url,n.config.blockUrls))return;rl(n,window),ZC(n).then(()=>{qC(n).catch(a=>{a&&k.debug("translate page error",a.name,a.message,a)})}).catch(a=>{k.debug("can not detect a valid body: ",a)})}}).catch(r=>{r&&k.debug("translate dom ready detect error",r)})}LO().catch(e=>{k.debug("init error",e)});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/docs/options/options.js b/docs/options/options.js index 50d7b77..3001e8c 100644 --- a/docs/options/options.js +++ b/docs/options/options.js @@ -1,4 +1,4 @@ -(()=>{var E7=Object.defineProperty;var A7=(e,t)=>{for(var n in t)E7(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-11-22T10:30:05.000Z",VERSION:"1.11.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var w7=Object.defineProperty;var E7=(e,t)=>{for(var n in t)w7(e,n,{get:t[n],enumerable:!0})};var E={BUILD_TIME:"2024-11-25T09:06:11.000Z",VERSION:"1.11.7",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"1",BETA:"0",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -5447,71 +5447,71 @@ select.text-gray-6 { to { transform: rotate(359deg); } -}`,OPTIONS_URL:"https://dash.immersivetranslate.com/",SHARE_DRAFT_URL:"https://immersivetranslate.com/preview",ASSETS_BASE_URL:"https://s.immersivetranslate.com/static/extension/",AI_BASE_URL:"https://ai.immersivetranslate.com",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",PDF_PRO_URL:"https://app.immersivetranslate.com/pdf-pro/",TEXT_TRANSLATE_URL:"https://app.immersivetranslate.com/text/",TRANSLATE_FILE_URL:"https://app.immersivetranslate.com/"};function Te(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():E}var Ae=Te();function Z(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):Ae.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function n2(){return Ae.BETA==="1"}function ya(){return Ae.PROD==="1"}function Dg(){return Ae.PROD_API==="1"}function r2(){return Ae.HAS_CSP_ERROR=="1"}function je(){if(Ae.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Xo(){return Ae.IMMERSIVE_TRANSLATE_SAFARI==="1"}function Pc(){return typeof Deno<"u"}var az=Te().PROD==="1",$o=Te().PROD!=="1";function Rc(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Au(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function Lg(){return Ae.IMMERSIVE_TRANSLATE_JSSDK==="1"}var ie="immersiveTranslate",uo="Immersive Translate",P="immersive-translate",lo="immersivetranslate",a2="pdf/index.html";var et="immersivetranslate.com",D7=`https://config.${et}/`,uz=`https://app.${et}/`,Q=ya()||Dg()?`https://${et}/`:`https://test.${et}/`,Ic=`https://dash.${et}/`,ft=ya()||Dg()?`https://api2.${et}/`:`https://test-api2.${et}/`,ku=`https://github.com/${P}/${P}/`,$t=`https://s.${et}/`,lz=`https://onboarding.${et}/`,i2=ie+"DeeplGlobalState",Mg=ie+"BingGlobalState",Pg=ie+"YandexGlobalState",Rg=ie+"BaiduQianfanGlobalConfigStorageKey",o2=ie+"SiliconCloudGlobalConfigStorageKey",s2=ie+"ZhipuGlobalConfigStorageKey",Nc="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",hi=ie+"GoogleAccessToken",Du=ie+"AuthFlow",Uc=P+"-config-latest.json",Ig=ie+"AuthState",jc=ie+"IframeMessage",cz=ie+"WaitForRateLimit",u2=ie+"DocumentMessageAsk",en=ie+"DocumentMessageTellThirdParty",Fn=ie+"showError",co=ie+"showModal",Hc=ie+"showToast",l2=ie+"DocumentMessageThirdPartyTell",c2=ie+"DocumentMessageEventUpload",dz=ie+"DocumentMessageTypeStopJsSDK",d2=ie+"DocumentMessageHandler",qc=ie+"DocumentSetFloatBallActive",zc=`${ie}Share`,Vc=`${ie}ShowFloatBallGuide`,es=ie+"DocumentMessageTempEnableSubtitleChanged",Lu=`${ie}ToggleMouseHoverTranslateDirectly`,m2=`${ie}ReqDraft`,g2=`${ie}ResDraft`,L7=`${ie}Container`,p2=`${ie}SpecifiedContainer`,Wc="buildinConfig",ts="localConfig",Mu="openOptionsPage",Pu="translateMangaMenuId",Fg="openAboutPage",f2="translateLocalPdfFile",Ru="openEbookViewer",Iu="openEbookBuilder";var mo=`${ie}PageTranslatedStatus`,Fu=`${ie}MangaTranslatedStatus`,mz=`${ie}PageUrlChanged`,jr=`${ie}ReceiveCommand`,h2=ie+"LastUseMouseHoverTime",Bu=ie+"LastUseInputTime",kr=ie+"LastUseManualTranslatePageTime",gz=`${ie}PopupReceiveMessage`,go=ie+"DocumentMessageEventTogglePopup",bi=`${D7}default_config.json`,pz=`${ie}Mark`,fr=`${ie}Root`,b2=`${ie}Walked`,fz=`data-${P}-walked`,y2=`${ie}Paragraph`,v2=`data-${P}-paragraph`,ns=`data-${P}-translation-element-mark`,C2=`${ie}TranslationElementMark`,hz=`${ie}TranslatedMark`,Bg=`${P}-input-injected-css`,S2=`${ie}LoadingId`,_g=`data-${P}-loading-id`,x2=`${ie}ErrorId`,Gc=`data-${P}-error-id`,M7=`${ie}AtomicBlockMark`,T2=`${ie}ExcludeMark`,bz=`data-${P}-exclude-mark`,P7=`${ie}StayOriginalMark`,yz=`${ie}PreWhitespaceMark`,Kc=`${ie}InlineMark`,w2=`${ie}BlockMark`,vz=`${ie}Left`,Cz=`${ie}Right`,Sz=`${ie}Width`,xz=`${ie}Height`,Tz=`${ie}Top`,wz=`${ie}FontSize`,E2="lastRunTime";var Ez=`${ie}GlobalStyleMark`,rs=["@","#"],Yc=" --- ",A2=` -`,Gt=`${P}-target-wrapper`,Az=`${P}-pdf-target-container`,Qc=`${P}-target-inner`,kz=`${P}-source-wrapper`,Og=`${P}-target-translation-block-wrapper`,Dz=`${P}-root-translation-theme`,as=`${ie}RootTranslationTheme`,k2=`${P}-target-translation-vertical-block-wrapper`,Lz=`${P}-target-translation-pdf-block-wrapper`,D2=`${P}-target-translation-pre-whitespace`,Ng=`${P}-target-translation-inline-wrapper`,Ug=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],_u={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var Jc=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],L2=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Ic,Ic+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],yi="zh-CN",Ou=Q+"docs/communities/",M2=ku+"issues/1809",P2=ku+"issues/1179",Zc={type:ie+"ChildFrameToRootFrameIdentifier"},jg=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ka=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],R2=["ctrl","alt","shift","cmd","command","option","control"],Xc=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],$c=ya()?Ic+"#general":"http://localhost:8000/dist/userscript/options/#general",Nu="user_from_plugin",mt="user_info",is=Q+"accounts/login?from=plugin",Hg=Ic+"#general",I2=Q+"accounts/login?from=plugin&return_url="+encodeURIComponent(Hg),F2=is+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",B2=is+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",vi=Q+"profile/",e0=Q+"auth/pricing/",kn=Q+"pricing/",R7=Q+"download/",I7=Q+"topup?type=open_ai&",F7=Q+"topup?type=deepl&",_2=Q+"topup?type=comics&",Mz=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",O2=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",N2=R7+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",Pz=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",t0=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",qg=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",Rz=vi+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",U2=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",j2=I7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",H2=F7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",q2=Q+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",z2=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",zg=vi+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",Vg=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Wg=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",Gg=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",Uu=Q+"docs/usage/",Kg=Q+"docs/communities/",ju=Te().TRANSLATE_FILE_URL,V2=ju+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",W2=ju+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",G2=`${ju}download-subtitle/`,K2=`${ju}pdf-pro/`,Hu=`${ju}text/`,Ya=["deepl","openai","gemini","claude"],Y2="G-BHWL0KMJB8",Q2="7pr-olTJR6GKAjIW48UD0Q",Fc="G-MKMD9LWFTR",Bc="sitc4WmvShWYwfU0dANM3Q",_c="G-V5H2F5MJFJ",Oc="UBjpGOLISEaY5LVXNj3WvQ",J2="G-0LPWNREXBB",Z2="JVF4YeOaTVyDV27CTLhPtQ";function X2(){return Lg()?[{measurementId:Y2,apiSecret:Q2}]:ya?[{measurementId:Fc,apiSecret:Bc},{measurementId:_c,apiSecret:Oc}]:[{measurementId:Fc,apiSecret:Bc},{measurementId:_c,apiSecret:Oc}]}function qu(){return Lg()?[`https://www.google-analytics.com/mp/collect?measurement_id=${Y2}&api_secret=${Q2}`]:ya?[`https://www.google-analytics.com/mp/collect?measurement_id=${Fc}&api_secret=${Bc}`,`https://www.google-analytics.com/mp/collect?measurement_id=${_c}&api_secret=${Oc}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Fc}&api_secret=${Bc}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${_c}&api_secret=${Oc}`]}var zu=`https://analytics.${et}/collect`,Iz=`${Q}activities/components/image-pro`;var $2="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",eb="0VmM83i2D1ICuYBf";(function(){function e(o){let s=document.getElementById(`${P}-${o}-storage`);if(!s)throw new Error("Storage element not found");let u=s.value,l={};if(u)try{l=JSON.parse(u)}catch(c){throw c}return l}function t(o){let s=document.getElementById(`${P}-${o}-storage`);if(!s)throw new Error("Storage element not found");s.dispatchEvent(new Event("refresh-"+o))}function n(o){return{refresh:()=>t(o),get:u=>{if(u===null)return Promise.resolve(e(o));let l=[],c=e(o);typeof u=="string"?l=[u]:Array.isArray(u)?l=u:l=Object.keys(u);let m={};for(let g of l)m[g]=c[g];return Promise.resolve(m)},set:u=>{let l=r(),c=e(o);for(let p in u)c[p]=u[p];let m=document.getElementById(`${P}-sync-storage`),g=document.getElementById(`${P}-local-storage`);if(!m||!g)throw new Error("Storage element not found");if(o==="sync"||l._isUserscript){m.value=JSON.stringify(c);let p=new Event("change");m.dispatchEvent(p)}return(o==="local"||l._isUserscript)&&(g.value=JSON.stringify(c),g.dispatchEvent(new Event("change"))),Promise.resolve()},remove:u=>{let l=r(),c=document.getElementById(`${P}-message`);if(!c)throw new Error("Message element not found");let m={method:"removeStorageKey",data:{area:o,keys:u}};return new Promise((g,p)=>{c.value=JSON.stringify(m);let f=new Event("change");c.dispatchEvent(f),l._isUserscript?setTimeout(()=>{c.value=JSON.stringify({...m,data:{...m.data,area:m.data.area==="sync"?"local":"sync"}}),c.dispatchEvent(new Event("change")),g(null)},10):g(null)})}}}function r(){let o=document.getElementById(P+"-manifest");if(!o)throw new Error("Manifest element not found");let s=o.value,u={};if(s){try{u=JSON.parse(s)}catch(l){throw l}return u}else return{}}function a(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}let i={storage:{local:n("local"),sync:n("sync")},runtime:{getManifest:r,lastError:null,getURL:o=>o},contextMenus:{update:()=>{}},i18n:{getAcceptLanguages:a}};globalThis.immersiveTranslateBrowserAPI=i})();var o0,Ne,ib,B7,Vu,tb,ob,r0={},sb=[],_7=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ci(e,t){for(var n in t)e[n]=t[n];return e}function ub(e){var t=e.parentNode;t&&t.removeChild(e)}function fo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?o0.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return n0(e,o,r,a,null)}function n0(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++ib};return a==null&&Ne.vnode!=null&&Ne.vnode(i),i}function ce(e){return e.children}function po(e,t){this.props=e,this.context=t}function os(e,t){if(t==null)return e.__?os(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?n0(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=h[c])===null||g&&p.key==g.key&&p.type===g.type)h[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:s0}),n.__[e]}function N(e){return Wu=1,j7(wb,e)}function j7(e,t,n){var r=Gu(us++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):wb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Kt,!Kt.u)){Kt.u=!0;var a=Kt.shouldComponentUpdate;Kt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function z(e,t){var n=Gu(us++,3);!Ne.__s&&Xg(n.__H,t)&&(n.__=e,n.i=t,Kt.__H.__h.push(n))}function Ku(e,t){var n=Gu(us++,4);!Ne.__s&&Xg(n.__H,t)&&(n.__=e,n.i=t,Kt.__h.push(n))}function Se(e){return Wu=5,ne(function(){return{current:e}},[])}function ne(e,t){var n=Gu(us++,7);return Xg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function le(e,t){return Wu=8,ne(function(){return e},t)}function we(e){var t=Kt.context[e.__c],n=Gu(us++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Kt)),t.props.value):e.__}function H7(){for(var e;e=Tb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(u0),e.__H.__h.forEach(Zg),e.__H.__h=[]}catch(t){e.__H.__h=[],Ne.__e(t,e.__v)}}Ne.__b=function(e){typeof e.type!="function"||e.o||e.type===ce?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Kt=null,bb&&bb(e)},Ne.__r=function(e){yb&&yb(e),us=0;var t=(Kt=e.__c).__H;t&&(Jg===Kt?(t.__h=[],Kt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=s0,n.__N=n.i=void 0})):(t.__h.forEach(u0),t.__h.forEach(Zg),t.__h=[])),Jg=Kt},Ne.diffed=function(e){vb&&vb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Tb.push(t)!==1&&hb===Ne.requestAnimationFrame||((hb=Ne.requestAnimationFrame)||q7)(H7)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==s0&&(n.__=n.__V),n.i=void 0,n.__V=s0})),Jg=Kt=null},Ne.__c=function(e,t){t.some(function(n){try{n.__h.forEach(u0),n.__h=n.__h.filter(function(r){return!r.__||Zg(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ne.__e(r,n.__v)}}),Cb&&Cb(e,t)},Ne.unmount=function(e){Sb&&Sb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{u0(r)}catch(a){t=a}}),n.__H=void 0,t&&Ne.__e(t,n.__v))};var xb=typeof requestAnimationFrame=="function";function q7(e){var t,n=function(){clearTimeout(r),xb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xb&&(t=requestAnimationFrame(n))}function u0(e){var t=Kt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Kt=t}function Zg(e){var t=Kt;e.__c=e.__(),Kt=t}function Xg(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function wb(e,t){return typeof t=="function"?t(e):t}var Yu;function cp(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Fb(e,t=","){return e.map(cp).join(t)}var dp=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function ls(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function c0(e,t="@media "){return t+Tt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function Tt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Eb(e){return e}function Ju(){}var sn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Bb(e){return e.match(/[-=:;]/g)?.length||0}function ap(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Bb(e),15)<<18}var z7=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function mp({n:e,i:t,v:n=[]},r,a,i){e&&(e=cp({n:e,i:t,v:n})),i=[...Tt(i)];for(let s of n){let u=r.theme("screens",s);for(let l of Tt(u&&c0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|ap(l):s=="dark"?1073741824:l[0]=="@"?ap(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~z7.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var gp=new Map;function ip(e){if(e.d){let t=[],n=$g(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?$g(r,i=>$g(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):ep(i,o)}return ep(o,i)})):r,"&"),r=>ep(r,e.n?"."+dp(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function $g(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function ep(e,t){return e.replace(/&/g,t)}var Ab=new Intl.Collator("en",{numeric:!0});function _b(e,t){for(var n=0,r=e.length;n>1;0>=Ob(e[a],t)?n=a+1:r=a}return r}function Ob(e,t){let n=e.p&sn.o;return n==(t.p&sn.o)&&(n==sn.b||n==sn.o)?0:e.p-t.p||e.o-t.o||Ab.compare(kb(e.n),kb(t.n))||Ab.compare(Db(e.n),Db(t.n))}function kb(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Db(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function tp(e,t){return Math.round(parseInt(e,16)*t)}function Qa(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[tp(e.substr(1,i),o),tp(e.substr(1+i,i),o),tp(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function pp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,b=0;for(let v in o||{}){var y,h;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(...bp(s,u,Qu(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let x of Tt(C))g.push(...i(x,{n:s,p:(y=sn[v[7]],u&~sn.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...Tt(C).map(x=>({p:-1,o:0,r:[],d:v+" "+x})));continue}if(v[1]=="k"){g.push({p:sn.d,o:0,r:[v],d:i(C,{p:sn.d},m).map(ip).join("")});continue}if(v[1]=="f"){g.push(...Tt(C).map(x=>({p:sn.d,o:0,r:[v],d:i(x,{p:sn.d},m).map(ip).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+ls(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),b+=1,f=Math.max(f,(h=v)[0]=="-"?0:Bb(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+Tt(C).map(x=>m.s(v,fp(""+x,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let x=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(S,T)=>{let w=m.theme("screens",T);return w?(x|=67108864,c0(w,"")):S}),x|=ap(v)),g.push(...i(C,{n:s,p:x,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(Ob)}(e,mp(t,n,r,a),n)}function fp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Qa(s):""+Tt(s).filter(u=>Object(u)!==u)})}function hp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function l0(e,t,n=sn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,b){let y=gp.get(f.n);return y?y(f,b):b.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=mp(u,l,c,m),hp(l0(Qu(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var b,y;return{o:0,...f,r:[...Tt(m),...Tt(f.r)],p:(b=c,y=f.p??c,b&~sn.o|y)}}):pp(p,u,l,c,m):[{c:cp(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(_b(i,s),0,s);return i}function bp(e,t,n,r,a,i,o,s){return hp((s?n.flatMap(u=>l0([u],r,a,i,o)):l0(n,r,a,i,o)).map(u=>u.p&sn.o&&(u.n||t==sn.b)?{...u,p:u.p&~sn.o|t,o:0}:u),e)}function V7(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=mp(i,o,t);return n&&bp(s,t,n,o,u,l,c,r)},gp.set(e,a),e}function np(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(W7),i:a}))}}function W7(e,t,n){return n.indexOf(e)==t}var Lb=new Map;function Qu(e){let t=Lb.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&np(n,r)),a=s+1};for(;s1?m.slice(0,-1)+ls(JSON.stringify([m,g])):m+"("+Fb(g)+")",sn.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Lb.set(e,t=r[0])}return t}function Nb(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function Ub(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Nb(e,t,n=>rp(n).trim()):t.filter(Boolean).reduce((n,r)=>n+rp(r),e?rp(e):"")}function rp(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Ub(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var eV=jb("@"),tV=jb("~");function jb(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Fb(Qu(n+e+"("+Ub(r,a)+")"))}}function op(e,t){return Array.isArray(e)?Mb(Nb(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Mb(e):[e]}var G7=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Mb(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=G7.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function Hb(e,...t){var n;let r=op(e,t),a=(r.find(i=>i.label)?.label||"css")+ls(JSON.stringify(r));return n=(i,o)=>hp(r.flatMap(s=>pp(s,i,o,sn.o)),a),gp.set(a,n),a}var nV=new Proxy(function(e,t){return Pb("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Pb(t,n,r)}}});function Pb(e,t,n){return{toString(){return Hb({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,sp(t,n)]}function sp(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):up(n,1)}):n=>e||{[n[1]]:up(n,2)}}function up(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ue(e,t,n,r){return[e,K7(t,n,r)]}function K7(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=qb(e||a[1]),s=i.theme(o,a.$$)??Ca(a.$$,o,i);if(s!=null)return a._=up(a,0,s),r(a,i,o)}}function pn(e,t={},n){return[e,Y7(t,n)]}function Y7(e={},t){return(n,r)=>{let{section:a=qb(n[0]).replace("-","")+"Color"}=e,[i,o]=Q7(n.$$);if(!i)return;let s=r.theme(a,i)||Ca(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&Ca(o,l,r),p=t||(({_:b})=>{let y=Zu(c,b);return m?{[m]:y}:y});n._={value:Qa(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:b=>Qa(s,b),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:Qa(b,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Qa(b,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function Q7(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Zu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ca(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=cs(fp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function qb(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function cs(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>cs(n)+r+cs(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var rV=Symbol();function Xu({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:Tt(t.variants),rules:Tt(t.rules),ignorelist:Tt(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of Tt([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&Tt(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...Tt(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...Tt(u)],rules:[...n.rules,...Tt(l)],ignorelist:[...n.ignorelist,...Tt(c)],hash:m,stringify:g,finalize:[...n.finalize,...Tt(p)]}}return n}function Rb(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function J7(e){var t;return lp(e[0],typeof(t=e[1])=="function"?t:()=>t)}function Z7(e){var t,n;return Array.isArray(e)?lp(e[0],sp(e[1],e[2])):lp(e,sp(t,n))}function lp(e,t){return zb(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function zb(e,t){let n=Tt(e).map(X7);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function X7(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function $7(e,t){let n=Xu(e),r=function({theme:u,darkMode:l,darkColor:c=Ju,variants:m,rules:g,hash:p,stringify:f,ignorelist:b,finalize:y}){let h=new Map,v=new Map,C=new Map,x=new Map,S=zb(b,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${Tt(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let T=typeof p=="function"?A=>p(A,ls):p?ls:Eb;T!==Eb&&y.push(A=>({...A,n:A.n&&T(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+T(M).replace("#",""))}));let w={theme:function({extend:A={},...D}){let M={},I={get colors(){return R("colors")},theme:R,negative(){return{}},breakpoints(L){let U={};for(let F in L)typeof L[F]=="string"&&(U["screen-"+F]=L[F]);return U}};return R;function R(L,U,F,q){if(L){if({1:L,2:q}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let pe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,W,$=W)=>pe.push($)),L=pe.shift(),F=U,U=pe.join("-")}let te=M[L]||Object.assign(Object.assign(M[L]={},B(D,L)),B(A,L));if(U==null)return te;U||="DEFAULT";let xe=te[U]??U.split("-").reduce((pe,H)=>pe?.[H],te)??F;return q?Qa(xe,{opacityValue:fp(q,R)}):xe}let Y={};for(let te of[...Object.keys(D),...Object.keys(A)])Y[te]=R(te);return Y}function B(L,U){let F=L[U];return typeof F=="function"&&(F=F(I)),F&&/color|fill|stroke/i.test(U)?function q(Y,te=[]){let xe={};for(let pe in Y){let H=Y[pe],W=[...te,pe];xe[W.join("-")]=H,pe=="DEFAULT"&&(W=te,xe[te.join("-")]=H),typeof H=="object"&&Object.assign(xe,q(H,W))}return xe}(F):F}}(u),e:dp,h:T,s(A,D){return f(A,D,w)},d(A,D,M){return c(A,D,w,M)},v(A){return h.has(A)||h.set(A,Rb(A,m,v,J7,w)||"&:"+A),h.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!S(A,w)&&Rb(A,g,x,Z7,w,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,w),A)}};return w}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=ip(l);if(c&&!o.has(c)){o.add(c);let m=_b(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of Tt(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?bp("",sn.b,Qu(c),r,sn.b,[],!1,!0):pp(c,{},r,sn.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of l0(Qu(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function eE(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function tE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&eE(o,i=e(o))&&a.setAttribute("class",i)}}function nE(e=yp,t=typeof document<"u"&&document.documentElement){if(t){let n=tE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function Vb(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function rE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Vb(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:Ju}}function aE(e){let t=e&&typeof e!="string"?e:Vb(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:Ju}}function iE(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:Ju}}function Wb(e,t){let n=typeof document>"u"?iE(!t):e?aE():rE();return t||(n.resume=sE),n}function oE(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):Tt(e)).join("")}function sE(e,t){let n=oE(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var yp=new Proxy(Ju,{apply(e,t,n){return Yu(n[0])},get(e,t){let n=Yu[t];return typeof n=="function"?function(){return n.apply(Yu,arguments)}:n}});function Gb(e={},t=Wb,n){return Yu?.destroy(),Yu=nE($7(e,typeof t=="function"?t():t),n)}function vp(e,t=!0){let n=Xu(e);return Gb({...n,hash:n.hash??t},()=>Wb(!t))}var aV=function e(t){return new Proxy(function(n,...r){return Ib(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return Ib(t,r,a,i)}}})}();function Ib(e,t,n,r){return{toString(){let a=op(n,r),i=dp(t+ls(JSON.stringify([t,a])));return(typeof e=="function"?e:yp)(Hb({[`@keyframes ${i}`]:op(n,r)})),i}}}var uE=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Kb(e){return uE.get(e)}function Yb(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Qb(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var lE=[["-webkit-",1],["-moz-",2],["-ms-",4]];function d0(){return({stringify:e})=>({stringify(t,n,r){let a="",i=Kb(t);i&&(a+=e(i,n,r)+";");let o=Yb(t),s=Qb(t,n);for(let u of lE)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var Sp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...hr(4,"rem",4,.5,.5),...hr(12,"rem",4,5),14:"3.5rem",...hr(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:it("blur"),backdropBrightness:it("brightness"),backdropContrast:it("contrast"),backdropGrayscale:it("grayscale"),backdropHueRotate:it("hueRotate"),backdropInvert:it("invert"),backdropOpacity:it("opacity"),backdropSaturate:it("saturate"),backdropSepia:it("sepia"),backgroundColor:it("colors"),backgroundImage:{none:"none"},backgroundOpacity:it("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...hr(200,"",100,0,50),...hr(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:it("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:it("spacing"),borderWidth:{DEFAULT:"1px",...Dr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:it("colors"),caretColor:it("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...hr(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:it("borderColor"),divideOpacity:it("borderOpacity"),divideWidth:it("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...$u(2,6),...$u(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:it("spacing"),gradientColorStops:it("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...$u(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...$u(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...hr(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...hr(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:it("spacing"),placeholderColor:it("colors"),placeholderOpacity:it("opacity"),outlineColor:it("colors"),outlineOffset:Dr(8,"px"),outlineWidth:Dr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:it("colors"),ringOffsetWidth:Dr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Dr(8,"px")},rotate:{...Dr(2,"deg"),...Dr(12,"deg",3),...Dr(180,"deg",45)},saturate:hr(200,"",100,0,50),scale:{...hr(150,"",100,0,50),...hr(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:it("spacing"),scrollPadding:it("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Dr(2,"deg"),...Dr(12,"deg",3)},space:it("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:hr(2),textColor:it("colors"),textDecorationColor:it("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Dr(8,"px")},textUnderlineOffset:{auto:"auto",...Dr(8,"px")},textIndent:it("spacing"),textOpacity:it("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:it("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...$u(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...hr(50,"",1,0,10),auto:"auto"}};function $u(e,t){let n={};do for(var r=1;rt(e)}var cE={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Sp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Sp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},dE=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ca(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ue("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[c0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ue("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),ue("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",m0),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),ue("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ue("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),ue("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",Jb),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ue("(flex-(?:grow|shrink))(?:$|-)"),ue("(flex)-"),ue("grow(?:$|-)","flexGrow"),ue("shrink(?:$|-)","flexShrink"),ue("basis-","flexBasis"),ue("-?(order)-"),"-?(order)-(\\d+)",ue("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",e9),ue("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",$b),ue("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),ue("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),ue("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",e9),ue("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",$b),ue("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),ue("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>m0(Jb(e))),oe("grid-flow-(dense)","gridAutoFlow"),ue("auto-cols-","gridAutoColumns"),ue("auto-rows-","gridAutoRows"),ue("gap-x(?:$|-)","gap","columnGap"),ue("gap-y(?:$|-)","gap","rowGap"),ue("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",Zb),oe("(content|items|self)-",e=>({["align-"+e[1]]:Zb(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ue("p([xytrbl])?(?:$|-)","padding",ds("padding")),ue("-?m([xytrbl])?(?:$|-)","margin",ds("margin")),ue("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ue("w-","width"),ue("min-w-","minWidth"),ue("max-w-","maxWidth"),ue("h-","height"),ue("min-h-","minHeight"),ue("max-h-","maxHeight"),ue("font-","fontWeight"),ue("font-","fontFamily",({_:e})=>typeof(e=Tt(e))[1]=="string"?{fontFamily:Hr(e)}:{fontFamily:Hr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Si({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ue("tracking-","letterSpacing"),ue("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),ue("list-","listStyleType"),oe("list-","listStyleType"),ue("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),pn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),ue("text-opacity-","textOpacity","--tw-text-opacity"),pn("text-",{property:"color"}),ue("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ue("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),ue("underline-offset-","textUnderlineOffset"),pn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ue("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),pn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),pn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${ho(e," ")},var(--tw-gradient-stops))`),pn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),pn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),pn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ue("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),pn("bg-",{section:"backgroundColor"}),ue("bg-","backgroundImage"),ue("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",m0),ue("bg-","backgroundSize"),ue("rounded(?:$|-)","borderRadius"),ue("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${ho(n[0])}-radius`]:t,[`border-${ho(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),ue("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),ue("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...Si({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),pn("border-([xytrbl])-",{section:"borderColor"},ds("border","Color")),pn("border-"),ue("border-([xytrbl])(?:$|-)","borderWidth",ds("border","Width")),ue("border(?:$|-)","borderWidth"),ue("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ue("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${ho(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${ho(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),pn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ue("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),pn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ue("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),pn("ring-",{property:"--tw-ring-color"}),ue("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...Si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Qa(t("ringOffsetColor","","#fff")),"--tw-ring-color":Qa(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),pn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ue("shadow(?:$|-)","boxShadow",({_:e})=>({...Si({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Hr(e),"--tw-shadow-colored":Hr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ue("(opacity)-"),oe("mix-blend-","mixBlendMode"),...Xb(),...Xb("backdrop-"),ue("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Hr(e),transitionTimingFunction:e._=="none"?void 0:Hr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Hr(t("transitionDuration",""))})),ue("duration(?:$|-)","transitionDuration","transitionDuration",Hr),ue("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Hr),ue("delay(?:$|-)","transitionDelay","transitionDelay",Hr),ue("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Hr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",xp),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":t9(e=="gpu")})),ue("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xp()})),ue("-?(rotate)-","rotate",Cp),ue("-?(translate-[xy])-","translate",Cp),ue("-?(skew-[xy])-","skew",Cp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",m0),"(appearance)-",ue("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ue("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...Si({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),ue("scroll-p([xytrbl])?(?:$|-)","padding",ds("scroll-padding")),ue("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",ds("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...Si({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),ue("-?(outline-offset)-"),pn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ue("outline-","outlineWidth"),"(pointer-events)-",ue("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),pn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),pn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ue("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function m0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Jb(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function ho(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Hr(e){return e&&""+(e._||e)}function Zb({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function ds(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Zu(e+"-"+ho(a[0])+t,r),...Zu(e+"-"+ho(a[1])+t,r)}:Zu(e+t,r)}}function Xb(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...Si(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>ue(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:Tt(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function Cp({1:e,_:t}){return{["--tw-"+e]:t,...xp()}}function xp(){return{...Si({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":t9()}),transform:"var(--tw-transform)"}}function t9(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function $b({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function e9({1:e}){return`repeat(${e},minmax(0,1fr))`}function Si(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var mE=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Ca(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=cs(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Ca(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Ca(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Ca(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&cs(e).replace(/[}]+$/,"").split("{")]];function gE({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:cE,theme:{...Sp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:mE,rules:dE,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var pE={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},fE={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},hE={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},bE={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},yE={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},vE={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},CE={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},SE={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},xE={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},TE={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},wE={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},EE={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},AE={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},kE={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},DE={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},LE={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},ME={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},PE={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},RE={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},IE={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},FE={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},BE={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},_E={__proto__:null,slate:pE,gray:fE,zinc:hE,neutral:bE,stone:yE,red:vE,orange:CE,amber:SE,yellow:xE,lime:TE,green:wE,emerald:EE,teal:AE,cyan:kE,sky:DE,blue:LE,indigo:ME,violet:PE,purple:RE,fuchsia:IE,pink:FE,rose:BE};function g0({disablePreflight:e}={}){return gE({colors:_E,disablePreflight:e})}var p0=globalThis||(typeof window<"u"?window:self),OE=Object.create,wp=Object.defineProperty,NE=Object.getOwnPropertyDescriptor,UE=Object.getOwnPropertyNames,jE=Object.getPrototypeOf,HE=Object.prototype.hasOwnProperty,qE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zE=(e,t)=>{for(var n in t)wp(e,n,{get:t[n],enumerable:!0})},Tp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of UE(t))!HE.call(e,a)&&a!==n&&wp(e,a,{get:()=>t[a],enumerable:!(r=NE(t,a))||r.enumerable});return e},VE=(e,t,n)=>(Tp(e,t,"default"),n&&Tp(n,t,"default")),r9=(e,t,n)=>(n=e!=null?OE(jE(e)):{},Tp(t||!e||!e.__esModule?wp(n,"default",{value:e,enumerable:!0}):n,e)),a9=qE((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof p0=="object"&&p0.global===p0?p0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=b?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var h=o.URL||o.webkitURL,v=h.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){h.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),i9={};zE(i9,{default:()=>bo});var WE=r9(a9());VE(i9,r9(a9()));var{default:n9,...GE}=WE,bo=n9!==void 0?n9:GE;function S9(e){return typeof e>"u"||e===null}function KE(e){return typeof e=="object"&&e!==null}function YE(e){return Array.isArray(e)?e:S9(e)?[]:[e]}function QE(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n"u"&&typeof Deno<"u"?Deno.env.toObject():E}var Ae=Se();function J(e){return e&&window.document?.querySelector("meta[name=immersive-translate-options]")?!!window.document?.getElementById("immersive-translate-manifest")?.value?.includes("_isUserscript"):Ae.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function t2(){return Ae.BETA==="1"}function ya(){return Ae.PROD==="1"}function kg(){return Ae.PROD_API==="1"}function n2(){return Ae.HAS_CSP_ERROR=="1"}function je(){if(Ae.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Xo(){return Ae.IMMERSIVE_TRANSLATE_SAFARI==="1"}function Pc(){return typeof Deno<"u"}var nz=Se().PROD==="1",Qo=Se().PROD!=="1";function _c(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Au(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}function Dg(){return Ae.IMMERSIVE_TRANSLATE_JSSDK==="1"}var ie="immersiveTranslate",uo="Immersive Translate",P="immersive-translate",lo="immersivetranslate",r2="pdf/index.html";var et="immersivetranslate.com",k7=`https://config.${et}/`,oz=`https://app.${et}/`,Y=ya()||kg()?`https://${et}/`:`https://test.${et}/`,Rc=`https://dash.${et}/`,ft=ya()||kg()?`https://api2.${et}/`:`https://test-api2.${et}/`,ku=`https://github.com/${P}/${P}/`,Qt=`https://s.${et}/`,sz=`https://onboarding.${et}/`,a2=ie+"DeeplGlobalState",Lg=ie+"BingGlobalState",Mg=ie+"YandexGlobalState",Pg=ie+"BaiduQianfanGlobalConfigStorageKey",i2=ie+"SiliconCloudGlobalConfigStorageKey",o2=ie+"ZhipuGlobalConfigStorageKey",Nc="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",hi=ie+"GoogleAccessToken",Du=ie+"AuthFlow",Uc=P+"-config-latest.json",_g=ie+"AuthState",jc=ie+"IframeMessage",uz=ie+"WaitForRateLimit",s2=ie+"DocumentMessageAsk",en=ie+"DocumentMessageTellThirdParty",In=ie+"showError",co=ie+"showModal",Hc=ie+"showToast",u2=ie+"DocumentMessageThirdPartyTell",l2=ie+"DocumentMessageEventUpload",lz=ie+"DocumentMessageTypeStopJsSDK",c2=ie+"DocumentMessageHandler",qc=ie+"DocumentSetFloatBallActive",zc=`${ie}Share`,Wc=`${ie}ShowFloatBallGuide`,es=ie+"DocumentMessageTempEnableSubtitleChanged",Lu=`${ie}ToggleMouseHoverTranslateDirectly`,d2=`${ie}ReqDraft`,m2=`${ie}ResDraft`,D7=`${ie}Container`,g2=`${ie}SpecifiedContainer`,Vc="buildinConfig",ts="localConfig",Mu="openOptionsPage",Pu="translateMangaMenuId",Rg="openAboutPage",p2="translateLocalPdfFile",_u="openEbookViewer",Ru="openEbookBuilder";var mo=`${ie}PageTranslatedStatus`,Iu=`${ie}MangaTranslatedStatus`,cz=`${ie}PageUrlChanged`,jr=`${ie}ReceiveCommand`,f2=ie+"LastUseMouseHoverTime",Fu=ie+"LastUseInputTime",Dr=ie+"LastUseManualTranslatePageTime",dz=`${ie}PopupReceiveMessage`,go=ie+"DocumentMessageEventTogglePopup",bi=`${k7}default_config.json`,mz=`${ie}Mark`,hr=`${ie}Root`,h2=`${ie}Walked`,gz=`data-${P}-walked`,b2=`${ie}Paragraph`,y2=`data-${P}-paragraph`,ns=`data-${P}-translation-element-mark`,v2=`${ie}TranslationElementMark`,pz=`${ie}TranslatedMark`,Ig=`${P}-input-injected-css`,C2=`${ie}LoadingId`,Fg=`data-${P}-loading-id`,x2=`${ie}ErrorId`,Kc=`data-${P}-error-id`,L7=`${ie}AtomicBlockMark`,T2=`${ie}ExcludeMark`,fz=`data-${P}-exclude-mark`,M7=`${ie}StayOriginalMark`,hz=`${ie}PreWhitespaceMark`,Gc=`${ie}InlineMark`,S2=`${ie}BlockMark`,bz=`${ie}Left`,yz=`${ie}Right`,vz=`${ie}Width`,Cz=`${ie}Height`,xz=`${ie}Top`,Tz=`${ie}FontSize`,w2="lastRunTime";var Sz=`${ie}GlobalStyleMark`,rs=["@","#"],$c=" --- ",E2=` +`,Kt=`${P}-target-wrapper`,wz=`${P}-pdf-target-container`,Yc=`${P}-target-inner`,Ez=`${P}-source-wrapper`,Bg=`${P}-target-translation-block-wrapper`,Az=`${P}-root-translation-theme`,as=`${ie}RootTranslationTheme`,A2=`${P}-target-translation-vertical-block-wrapper`,kz=`${P}-target-translation-pdf-block-wrapper`,k2=`${P}-target-translation-pre-whitespace`,Og=`${P}-target-translation-inline-wrapper`,Ng=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Bu={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]};var Zc=[{name:"touch",shortcuts:[{command:"touchShortcutsToggleTranslatePage",type:"finger"},{command:"touchShortcutsToggleTranslationMask",type:"finger"},{command:"touchShortcutsToggleTranslatePageOnlyTranslation",type:"finger"},{command:"touchShortcutsToggleTranslateTouchElement",type:"finger"},{command:"touchShortcutsInputTranslate",type:"finger"}]},{name:"main",shortcuts:["toggleTranslatePage","shareToDraft","translateInputBox"]},{name:"mouse",shortcuts:[{command:"mouseHoverHoldKey",type:"mouseHoverHoldKey"},"toggleMouseHoverTranslateDirectly"]},{name:"others",shortcuts:["toggleTranslationMask","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleOnlyTransation","toggleTranslateTheWholePage","toggleVideoSubtitlePreTranslation"]},{name:"shortcutsForTranslationServices",shortcuts:["translateWithDeepL","translateWithGoogle","translateWithOpenAI","translateWithBing","translateWithTransmart","translateWithGemini","translateWithClaude",{command:"translateWithCustom1",type:"translateWithCustom"},{command:"translateWithCustom2",type:"translateWithCustom"},{command:"translateWithCustom3",type:"translateWithCustom"}]}],D2=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/",Rc,Rc+"auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","http://192.168.1.72:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/","http://192.168.1.72:8000/options/"],yi="zh-CN",Ou=Y+"docs/communities/",L2=ku+"issues/1809",M2=ku+"issues/1179",Jc={type:ie+"ChildFrameToRootFrameIdentifier"},Ug=["youtube","netflix","webvtt","khanacademy","udemy","hulu","mubi","text_track","text_track_dynamic","general","live","ebutt","disneyplus","fmp4.xml","multi_attach_vtt","twitter","subsrt","xml","av"],Ga=["Ctrl","Shift","Alt","MouseHoldKeyPressHold","Auto","Off","OtherCustom","Other"],P2=["ctrl","alt","shift","cmd","command","option","control"],Xc=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],Qc=ya()?Rc+"#general":"http://localhost:8000/dist/userscript/options/#general",Nu="user_from_plugin",mt="user_info",is=Y+"accounts/login?from=plugin",jg=Rc+"#general",_2=Y+"accounts/login?from=plugin&return_url="+encodeURIComponent(jg),R2=is+"&utm_source=extension&utm_medium=extension&utm_campaign=error_modal",I2=is+"&utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",vi=Y+"profile/",e0=Y+"auth/pricing/",kn=Y+"pricing/",P7=Y+"download/",_7=Y+"topup?type=open_ai&",R7=Y+"topup?type=deepl&",F2=Y+"topup?type=comics&",Dz=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",B2=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_guide",O2=P7+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",Lz=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",t0=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",Hg=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",Mz=vi+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",N2=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=subtitle_download",U2=_7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",j2=R7+"utm_source=extension&utm_medium=extension&utm_campaign=error_modal",H2=Y+"topup?utm_source=extension&utm_medium=extension&utm_campaign=error_modal",q2=kn+"?utm_source=extension&utm_medium=extension&utm_campaign=option_sync_config",qg=vi+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal&upgradeFromTrial=true",zg=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=manga_intro",Wg=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=image_intro",Vg=e0+"?utm_source=extension&utm_medium=extension&utm_campaign=yt_ai_asr",Uu=Y+"docs/usage/",Kg=Y+"docs/communities/",ju=Se().TRANSLATE_FILE_URL,z2=ju+"?utm_source=extension&utm_medium=extension&utm_campaign=options_nav",W2=ju+"?utm_source=extension&utm_medium=extension&utm_campaign=float_ball",V2=`${ju}download-subtitle/`,K2=`${ju}pdf-pro/`,Hu=`${ju}text/`,$a=["deepl","openai","gemini","claude"],G2="G-BHWL0KMJB8",$2="7pr-olTJR6GKAjIW48UD0Q",Ic="G-MKMD9LWFTR",Fc="sitc4WmvShWYwfU0dANM3Q",Bc="G-V5H2F5MJFJ",Oc="UBjpGOLISEaY5LVXNj3WvQ",Y2="G-0LPWNREXBB",Z2="JVF4YeOaTVyDV27CTLhPtQ";function J2(){return Dg()?[{measurementId:G2,apiSecret:$2}]:ya?[{measurementId:Ic,apiSecret:Fc},{measurementId:Bc,apiSecret:Oc}]:[{measurementId:Ic,apiSecret:Fc},{measurementId:Bc,apiSecret:Oc}]}function qu(){return Dg()?[`https://www.google-analytics.com/mp/collect?measurement_id=${G2}&api_secret=${$2}`]:ya?[`https://www.google-analytics.com/mp/collect?measurement_id=${Ic}&api_secret=${Fc}`,`https://www.google-analytics.com/mp/collect?measurement_id=${Bc}&api_secret=${Oc}`]:[`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ic}&api_secret=${Fc}`,`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Bc}&api_secret=${Oc}`]}var zu=`https://analytics.${et}/collect`,Pz=`${Y}activities/components/image-pro`;var X2="LdgzvqcdlDvNLdxrJVtZqxMTKaIgExlL",Q2="0VmM83i2D1ICuYBf";(function(){function e(o){let s=document.getElementById(`${P}-${o}-storage`);if(!s)throw new Error("Storage element not found");let u=s.value,l={};if(u)try{l=JSON.parse(u)}catch(c){throw c}return l}function t(o){let s=document.getElementById(`${P}-${o}-storage`);if(!s)throw new Error("Storage element not found");s.dispatchEvent(new Event("refresh-"+o))}function n(o){return{refresh:()=>t(o),get:u=>{if(u===null)return Promise.resolve(e(o));let l=[],c=e(o);typeof u=="string"?l=[u]:Array.isArray(u)?l=u:l=Object.keys(u);let m={};for(let g of l)m[g]=c[g];return Promise.resolve(m)},set:u=>{let l=r(),c=e(o);for(let p in u)c[p]=u[p];let m=document.getElementById(`${P}-sync-storage`),g=document.getElementById(`${P}-local-storage`);if(!m||!g)throw new Error("Storage element not found");if(o==="sync"||l._isUserscript){m.value=JSON.stringify(c);let p=new Event("change");m.dispatchEvent(p)}return(o==="local"||l._isUserscript)&&(g.value=JSON.stringify(c),g.dispatchEvent(new Event("change"))),Promise.resolve()},remove:u=>{let l=r(),c=document.getElementById(`${P}-message`);if(!c)throw new Error("Message element not found");let m={method:"removeStorageKey",data:{area:o,keys:u}};return new Promise((g,p)=>{c.value=JSON.stringify(m);let f=new Event("change");c.dispatchEvent(f),l._isUserscript?setTimeout(()=>{c.value=JSON.stringify({...m,data:{...m.data,area:m.data.area==="sync"?"local":"sync"}}),c.dispatchEvent(new Event("change")),g(null)},10):g(null)})}}}function r(){let o=document.getElementById(P+"-manifest");if(!o)throw new Error("Manifest element not found");let s=o.value,u={};if(s){try{u=JSON.parse(s)}catch(l){throw l}return u}else return{}}function a(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}let i={storage:{local:n("local"),sync:n("sync")},runtime:{getManifest:r,lastError:null,getURL:o=>o},contextMenus:{update:()=>{}},i18n:{getAcceptLanguages:a}};globalThis.immersiveTranslateBrowserAPI=i})();var o0,Ne,ab,I7,Wu,eb,ib,r0={},ob=[],F7=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ci(e,t){for(var n in t)e[n]=t[n];return e}function sb(e){var t=e.parentNode;t&&t.removeChild(e)}function fo(e,t,n){var r,a,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?o0.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return n0(e,o,r,a,null)}function n0(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++ab};return a==null&&Ne.vnode!=null&&Ne.vnode(i),i}function ce(e){return e.children}function po(e,t){this.props=e,this.context=t}function os(e,t){if(t==null)return e.__?os(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?n0(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=h[c])===null||g&&p.key==g.key&&p.type===g.type)h[c]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:s0}),n.__[e]}function N(e){return Vu=1,U7(Sb,e)}function U7(e,t,n){var r=Ku(us++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Sb(void 0,t),function(i){var o=r.__N?r.__N[0]:r.__[0],s=r.t(o,i);o!==s&&(r.__N=[s,r.__[1]],r.__c.setState({}))}],r.__c=Gt,!Gt.u)){Gt.u=!0;var a=Gt.shouldComponentUpdate;Gt.shouldComponentUpdate=function(i,o,s){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(c){return c.__c});if(u.every(function(c){return!c.__N}))return!a||a.call(this,i,o,s);var l=!1;return u.forEach(function(c){if(c.__N){var m=c.__[0];c.__=c.__N,c.__N=void 0,m!==c.__[0]&&(l=!0)}}),!!l&&(!a||a.call(this,i,o,s))}}return r.__N||r.__}function z(e,t){var n=Ku(us++,3);!Ne.__s&&Jg(n.__H,t)&&(n.__=e,n.i=t,Gt.__H.__h.push(n))}function Gu(e,t){var n=Ku(us++,4);!Ne.__s&&Jg(n.__H,t)&&(n.__=e,n.i=t,Gt.__h.push(n))}function xe(e){return Vu=5,ne(function(){return{current:e}},[])}function ne(e,t){var n=Ku(us++,7);return Jg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function le(e,t){return Vu=8,ne(function(){return e},t)}function we(e){var t=Gt.context[e.__c],n=Ku(us++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Gt)),t.props.value):e.__}function j7(){for(var e;e=Tb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(u0),e.__H.__h.forEach(Zg),e.__H.__h=[]}catch(t){e.__H.__h=[],Ne.__e(t,e.__v)}}Ne.__b=function(e){typeof e.type!="function"||e.o||e.type===ce?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Gt=null,hb&&hb(e)},Ne.__r=function(e){bb&&bb(e),us=0;var t=(Gt=e.__c).__H;t&&(Yg===Gt?(t.__h=[],Gt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=s0,n.__N=n.i=void 0})):(t.__h.forEach(u0),t.__h.forEach(Zg),t.__h=[])),Yg=Gt},Ne.diffed=function(e){yb&&yb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Tb.push(t)!==1&&fb===Ne.requestAnimationFrame||((fb=Ne.requestAnimationFrame)||H7)(j7)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==s0&&(n.__=n.__V),n.i=void 0,n.__V=s0})),Yg=Gt=null},Ne.__c=function(e,t){t.some(function(n){try{n.__h.forEach(u0),n.__h=n.__h.filter(function(r){return!r.__||Zg(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],Ne.__e(r,n.__v)}}),vb&&vb(e,t)},Ne.unmount=function(e){Cb&&Cb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{u0(r)}catch(a){t=a}}),n.__H=void 0,t&&Ne.__e(t,n.__v))};var xb=typeof requestAnimationFrame=="function";function H7(e){var t,n=function(){clearTimeout(r),xb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xb&&(t=requestAnimationFrame(n))}function u0(e){var t=Gt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Gt=t}function Zg(e){var t=Gt;e.__c=e.__(),Gt=t}function Jg(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Sb(e,t){return typeof t=="function"?t(e):t}var $u;function lp(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Rb(e,t=","){return e.map(lp).join(t)}var cp=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function ls(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function c0(e,t="@media "){return t+St(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(r=>`(${r}-width:${n[r]})`).join(" and "))).join(",")}function St(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function wb(e){return e}function Zu(){}var sn={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Ib(e){return e.match(/[-=:;]/g)?.length||0}function rp(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Ib(e),15)<<18}var q7=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function dp({n:e,i:t,v:n=[]},r,a,i){e&&(e=lp({n:e,i:t,v:n})),i=[...St(i)];for(let s of n){let u=r.theme("screens",s);for(let l of St(u&&c0(u)||r.v(s))){var o;i.push(l),a|=u?67108864|rp(l):s=="dark"?1073741824:l[0]=="@"?rp(l):(o=l,1<<~(/:([a-z-]+)/.test(o)&&~q7.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:a,r:i,i:t}}var mp=new Map;function ap(e){if(e.d){let t=[],n=Xg(e.r.reduce((r,a)=>a[0]=="@"?(t.push(a),r):a?Xg(r,i=>Xg(a,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let u=i.indexOf(s[1]);return~u?i.slice(0,u)+s[0]+i.slice(u+s[1].length):Qg(i,o)}return Qg(o,i)})):r,"&"),r=>Qg(r,e.n?"."+cp(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((r,a)=>a+"{"+r+"}",e.d)}}function Xg(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,r,a)=>t(r)+a)}function Qg(e,t){return e.replace(/&/g,t)}var Eb=new Intl.Collator("en",{numeric:!0});function Fb(e,t){for(var n=0,r=e.length;n>1;0>=Bb(e[a],t)?n=a+1:r=a}return r}function Bb(e,t){let n=e.p&sn.o;return n==(t.p&sn.o)&&(n==sn.b||n==sn.o)?0:e.p-t.p||e.o-t.o||Eb.compare(Ab(e.n),Ab(t.n))||Eb.compare(kb(e.n),kb(t.n))}function Ab(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function kb(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ep(e,t){return Math.round(parseInt(e,16)*t)}function Ya(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:r}=t,a=r?`var(${r})`:n;if(e.includes(""))return e.replace("",a);if(e[0]=="#"&&(e.length==4||e.length==7)){let i=(e.length-1)/3,o=[17,1,.062272][i-1];return`rgba(${[ep(e.substr(1,i),o),ep(e.substr(1+i,i),o),ep(e.substr(1+2*i,i),o),a]})`}return a=="1"?e:a=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${a})`)}function gp(e,t,n,r,a=[]){return function i(o,{n:s,p:u,r:l=[],i:c},m){let g=[],p="",f=0,b=0;for(let v in o||{}){var y,h;let C=o[v];if(v[0]=="@"){if(!C)continue;if(v[1]=="a"){g.push(...hp(s,u,Yu(""+C),m,u,l,c,!0));continue}if(v[1]=="l"){for(let T of St(C))g.push(...i(T,{n:s,p:(y=sn[v[7]],u&~sn.o|y),r:v[7]=="d"?[]:l,i:c},m));continue}if(v[1]=="i"){g.push(...St(C).map(T=>({p:-1,o:0,r:[],d:v+" "+T})));continue}if(v[1]=="k"){g.push({p:sn.d,o:0,r:[v],d:i(C,{p:sn.d},m).map(ap).join("")});continue}if(v[1]=="f"){g.push(...St(C).map(T=>({p:sn.d,o:0,r:[v],d:i(T,{p:sn.d},m).map(ap).join("")})));continue}}if(typeof C!="object"||Array.isArray(C))v=="label"&&C?s=C+ls(JSON.stringify([u,c,o])):(C||C===0)&&(v=v.replace(/[A-Z]/g,T=>"-"+T.toLowerCase()),b+=1,f=Math.max(f,(h=v)[0]=="-"?0:Ib(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+St(C).map(T=>m.s(v,pp(""+T,m.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let T=u;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(x,S)=>{let w=m.theme("screens",S);return w?(T|=67108864,c0(w,"")):x}),T|=rp(v)),g.push(...i(C,{n:s,p:T,r:[...l,v],i:c},m))}else g.push(...i(C,{p:u,r:[...l,v]},m))}return g.unshift({n:s,p:u,o:Math.max(0,15-b)+1.5*Math.min(f||15,15),r:l,d:p}),g.sort(Bb)}(e,dp(t,n,r,a),n)}function pp(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,r,a,i,o="")=>{let s=t(a,o);return typeof s=="function"&&/color|fill|stroke/i.test(a)?Ya(s):""+St(s).filter(u=>Object(u)!==u)})}function fp(e,t){let n,r=[];for(let a of e)a.d&&a.n?n?.p==a.p&&""+n.r==""+a.r?(n.c=[n.c,a.c].filter(Boolean).join(" "),n.d=n.d+";"+a.d):r.push(n={...a,n:a.n&&t}):r.push({...a,n:a.n&&t});return r}function l0(e,t,n=sn.u,r,a){let i=[];for(let o of e)for(let s of function(u,l,c,m,g){u={...u,i:u.i||g};let p=function(f,b){let y=mp.get(f.n);return y?y(f,b):b.r(f.n,f.v[0]=="dark")}(u,l);return p?typeof p=="string"?({r:m,p:c}=dp(u,l,c,m),fp(l0(Yu(p),l,c,m,u.i),u.n)):Array.isArray(p)?p.map(f=>{var b,y;return{o:0,...f,r:[...St(m),...St(f.r)],p:(b=c,y=f.p??c,b&~sn.o|y)}}):gp(p,u,l,c,m):[{c:lp(u),p:0,o:0,r:[]}]}(o,t,n,r,a))i.splice(Fb(i,s),0,s);return i}function hp(e,t,n,r,a,i,o,s){return fp((s?n.flatMap(u=>l0([u],r,a,i,o)):l0(n,r,a,i,o)).map(u=>u.p&sn.o&&(u.n||t==sn.b)?{...u,p:u.p&~sn.o|t,o:0}:u),e)}function z7(e,t,n,r){var a;return a=(i,o)=>{let{n:s,p:u,r:l,i:c}=dp(i,o,t);return n&&hp(s,t,n,o,u,l,c,r)},mp.set(e,a),e}function tp(e,t,n){if(e[e.length-1]!="("){let r=[],a=!1,i=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),a=!a),s.endsWith(":")){r[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),i=!i),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(W7),i:a}))}}function W7(e,t,n){return n.indexOf(e)==t}var Db=new Map;function Yu(e){let t=Db.get(e);if(!t){let n=[],r=[[]],a=0,i=0,o=null,s=0,u=(l,c=0)=>{a!=s&&(n.push(e.slice(a,s+c)),l&&tp(n,r)),a=s+1};for(;s1?m.slice(0,-1)+ls(JSON.stringify([m,g])):m+"("+Rb(g)+")",sn.a,g,/@$/.test(m))],r)}c=n.lastIndexOf("(",c-1)}n.length=c+1}else/[~@]/.test(l)&&e[s+1]=="("&&r.unshift([])}u(!0),Db.set(e,t=r[0])}return t}function Ob(e,t,n){return t.reduce((r,a,i)=>r+n(a)+e[i+1],e[0])}function Nb(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ob(e,t,n=>np(n).trim()):t.filter(Boolean).reduce((n,r)=>n+np(r),e?np(e):"")}function np(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Nb(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var Xz=Ub("@"),Qz=Ub("~");function Ub(e){return new Proxy(function(n,...r){return t("",n,r)},{get(n,r){return r in n?n[r]:function(a,...i){return t(r,a,i)}}});function t(n,r,a){return Rb(Yu(n+e+"("+Nb(r,a)+")"))}}function ip(e,t){return Array.isArray(e)?Lb(Ob(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Lb(e):[e]}var V7=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Lb(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],a=[];for(;t=V7.exec(e);)t[4]&&(n.shift(),a.shift()),t[3]?(a.unshift(t[3]),n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(a.reduce((i,o)=>({[o]:i}),n[0]))),n[0][t[1]]=t[2]);return r}function jb(e,...t){var n;let r=ip(e,t),a=(r.find(i=>i.label)?.label||"css")+ls(JSON.stringify(r));return n=(i,o)=>fp(r.flatMap(s=>gp(s,i,o,sn.o)),a),mp.set(a,n),a}var eW=new Proxy(function(e,t){return Mb("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,r){return Mb(t,n,r)}}});function Mb(e,t,n){return{toString(){return jb({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function oe(e,t,n){return[e,op(t,n)]}function op(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):sp(n,1)}):n=>e||{[n[1]]:sp(n,2)}}function sp(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ue(e,t,n,r){return[e,K7(t,n,r)]}function K7(e,t,n){let r=typeof t=="string"?(a,i)=>({[t]:n?n(a,i):a._}):t||(({1:a,_:i},o,s)=>({[a||s]:i}));return(a,i)=>{let o=Hb(e||a[1]),s=i.theme(o,a.$$)??Ca(a.$$,o,i);if(s!=null)return a._=sp(a,0,s),r(a,i,o)}}function pn(e,t={},n){return[e,G7(t,n)]}function G7(e={},t){return(n,r)=>{let{section:a=Hb(n[0]).replace("-","")+"Color"}=e,[i,o]=$7(n.$$);if(!i)return;let s=r.theme(a,i)||Ca(i,a,r);if(!s||typeof s=="object")return;let{opacityVariable:u=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:l=a.replace("Color","Opacity"),property:c=a,selector:m}=e,g=r.theme(l,o||"DEFAULT")||o&&Ca(o,l,r),p=t||(({_:b})=>{let y=Ju(c,b);return m?{[m]:y}:y});n._={value:Ya(s,{opacityVariable:u||void 0,opacityValue:g||void 0}),color:b=>Ya(s,b),opacityVariable:u||void 0,opacityValue:g||void 0};let f=p(n,r);if(!n.dark){let b=r.d(a,i,s);b&&b!==s&&(n._={value:Ya(b,{opacityVariable:u||void 0,opacityValue:g||"1"}),color:y=>Ya(b,y),opacityVariable:u||void 0,opacityValue:g||void 0},f={"&":f,[r.v("dark")]:p(n,r)})}return f}}function $7(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function Ju(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Ca(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=cs(pp(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Hb(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function cs(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",r,a="")=>cs(n)+r+cs(a)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var tW=Symbol();function Xu({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:St(t.variants),rules:St(t.rules),ignorelist:St(t.ignorelist),hash:void 0,stringify:(r,a)=>r+":"+a,finalize:[]};for(let r of St([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&St(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:a,darkMode:i=n.darkMode,darkColor:o=n.darkColor,theme:s,variants:u,rules:l,ignorelist:c,hash:m=n.hash,stringify:g=n.stringify,finalize:p}=typeof r=="function"?r(n):r;n={preflight:n.preflight!==!1&&a!==!1&&[...n.preflight,...St(a)],darkMode:i,darkColor:o,theme:{...n.theme,...s,extend:{...n.theme.extend,...s?.extend}},variants:[...n.variants,...St(u)],rules:[...n.rules,...St(l)],ignorelist:[...n.ignorelist,...St(c)],hash:m,stringify:g,finalize:[...n.finalize,...St(p)]}}return n}function Pb(e,t,n,r,a,i){for(let o of t){let s=n.get(o);s||n.set(o,s=r(o));let u=s(e,a,i);if(u)return u}}function Y7(e){var t;return up(e[0],typeof(t=e[1])=="function"?t:()=>t)}function Z7(e){var t,n;return Array.isArray(e)?up(e[0],op(e[1],e[2])):up(e,op(t,n))}function up(e,t){return qb(e,(n,r,a,i)=>{let o=r.exec(n);if(o)return o.$$=n.slice(o[0].length),o.dark=i,t(o,a)})}function qb(e,t){let n=St(e).map(J7);return(r,a,i)=>{for(let o of n){let s=t(r,o,a,i);if(s)return s}}}function J7(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function X7(e,t){let n=Xu(e),r=function({theme:u,darkMode:l,darkColor:c=Zu,variants:m,rules:g,hash:p,stringify:f,ignorelist:b,finalize:y}){let h=new Map,v=new Map,C=new Map,T=new Map,x=qb(b,(A,D)=>D.test(A));m.push(["dark",Array.isArray(l)||l=="class"?`${St(l)[1]||".dark"} &`:typeof l=="string"&&l!="media"?l:"@media (prefers-color-scheme:dark)"]);let S=typeof p=="function"?A=>p(A,ls):p?ls:wb;S!==wb&&y.push(A=>({...A,n:A.n&&S(A.n),d:A.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,M)=>"--"+S(M).replace("#",""))}));let w={theme:function({extend:A={},...D}){let M={},R={get colors(){return _("colors")},theme:_,negative(){return{}},breakpoints(L){let U={};for(let I in L)typeof L[I]=="string"&&(U["screen-"+I]=L[I]);return U}};return _;function _(L,U,I,q){if(L){if({1:L,2:q}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(L)||[,L],/[.[]/.test(L)){let pe=[];L.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,Q=V)=>pe.push(Q)),L=pe.shift(),I=U,U=pe.join("-")}let te=M[L]||Object.assign(Object.assign(M[L]={},F(D,L)),F(A,L));if(U==null)return te;U||="DEFAULT";let Te=te[U]??U.split("-").reduce((pe,H)=>pe?.[H],te)??I;return q?Ya(Te,{opacityValue:pp(q,_)}):Te}let $={};for(let te of[...Object.keys(D),...Object.keys(A)])$[te]=_(te);return $}function F(L,U){let I=L[U];return typeof I=="function"&&(I=I(R)),I&&/color|fill|stroke/i.test(U)?function q($,te=[]){let Te={};for(let pe in $){let H=$[pe],V=[...te,pe];Te[V.join("-")]=H,pe=="DEFAULT"&&(V=te,Te[te.join("-")]=H),typeof H=="object"&&Object.assign(Te,q(H,V))}return Te}(I):I}}(u),e:cp,h:S,s(A,D){return f(A,D,w)},d(A,D,M){return c(A,D,w,M)},v(A){return h.has(A)||h.set(A,Pb(A,m,v,Y7,w)||"&:"+A),h.get(A)},r(A,D){let M=JSON.stringify([A,D]);return C.has(M)||C.set(M,!x(A,w)&&Pb(A,g,T,Z7,w,D)),C.get(M)},f(A){return y.reduce((D,M)=>M(D,w),A)}};return w}(n),a=new Map,i=[],o=new Set;t.resume(u=>a.set(u,u),(u,l)=>{t.insert(u,i.length,l),i.push(l),o.add(u)});function s(u){let l=r.f(u),c=ap(l);if(c&&!o.has(c)){o.add(c);let m=Fb(i,u);t.insert(c,m,u),i.splice(m,0,u)}return l.n}return Object.defineProperties(function(u){if(!a.size)for(let c of St(n.preflight))typeof c=="function"&&(c=c(r)),c&&(typeof c=="string"?hp("",sn.b,Yu(c),r,sn.b,[],!1,!0):gp(c,{},r,sn.b)).forEach(s);u=""+u;let l=a.get(u);if(!l){let c=new Set;for(let m of l0(Yu(u),r))c.add(m.c).add(s(m));l=[...c].filter(Boolean).join(" "),a.set(u,l).set(l,l)}return l},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let u=t.snapshot(),l=new Set(o),c=new Map(a),m=[...i];return()=>{u(),o=l,a=c,i=m}},clear(){t.clear(),o=new Set,a=new Map,i=[]},destroy(){this.clear(),t.destroy()}}))}function Q7(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eE(e){let t=new MutationObserver(n);return{observe(a){t.observe(a,{attributeFilter:["class"],subtree:!0,childList:!0}),r(a),n([{target:a,type:""}])},disconnect(){t.disconnect()}};function n(a){for(let{type:i,target:o}of a)if(i[0]=="a")r(o);else for(let s of o.querySelectorAll("[class]"))r(s);t.takeRecords()}function r(a){let i,o=a.getAttribute?.("class");o&&Q7(o,i=e(o))&&a.setAttribute("class",i)}}function tE(e=bp,t=typeof document<"u"&&document.documentElement){if(t){let n=eE(e);n.observe(t);let{destroy:r}=e;e.destroy=()=>{n.disconnect(),r.call(e)}}return e}function zb(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function nE(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:zb(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,r=>r.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,r){try{t.insertRule(n,r)}catch{t.insertRule(":root{}",r)}},resume:Zu}}function rE(e){let t=e&&typeof e!="string"?e:zb(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,r=>r.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,r){t.insertBefore(document.createTextNode(n),t.childNodes[r]||null)},resume:Zu}}function aE(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,a){t.splice(r,0,e?`/*!${a.p.toString(36)},${(2*a.o).toString(36)}${a.n?","+a.n:""}*/${n}`:n)},resume:Zu}}function Wb(e,t){let n=typeof document>"u"?aE(!t):e?rE():nE();return t||(n.resume=oE),n}function iE(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):St(e)).join("")}function oE(e,t){let n=iE(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var a;let i;if(r.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;a=r.exec(n),i&&t(n.slice(i.index+i[0].length,a?.index),{p:parseInt(i[1],36),o:parseInt(i[2],36)/2,n:i[3]}),i=a;);}}var bp=new Proxy(Zu,{apply(e,t,n){return $u(n[0])},get(e,t){let n=$u[t];return typeof n=="function"?function(){return n.apply($u,arguments)}:n}});function Vb(e={},t=Wb,n){return $u?.destroy(),$u=tE(X7(e,typeof t=="function"?t():t),n)}function yp(e,t=!0){let n=Xu(e);return Vb({...n,hash:n.hash??t},()=>Wb(!t))}var nW=function e(t){return new Proxy(function(n,...r){return _b(t,"",n,r)},{get(n,r){return r==="bind"?e:r in n?n[r]:function(a,...i){return _b(t,r,a,i)}}})}();function _b(e,t,n,r){return{toString(){let a=ip(n,r),i=cp(t+ls(JSON.stringify([t,a])));return(typeof e=="function"?e:bp)(jb({[`@keyframes ${i}`]:ip(n,r)})),i}}}var sE=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Kb(e){return sE.get(e)}function Gb(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function $b(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var uE=[["-webkit-",1],["-moz-",2],["-ms-",4]];function d0(){return({stringify:e})=>({stringify(t,n,r){let a="",i=Kb(t);i&&(a+=e(i,n,r)+";");let o=Gb(t),s=$b(t,n);for(let u of uE)o&u[1]&&(a+=e(u[0]+t,n,r)+";"),s&u[1]&&(a+=e(t,u[0]+n,r)+";");return a+e(t,n,r)}})}var Cp={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...br(4,"rem",4,.5,.5),...br(12,"rem",4,5),14:"3.5rem",...br(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:it("blur"),backdropBrightness:it("brightness"),backdropContrast:it("contrast"),backdropGrayscale:it("grayscale"),backdropHueRotate:it("hueRotate"),backdropInvert:it("invert"),backdropOpacity:it("opacity"),backdropSaturate:it("saturate"),backdropSepia:it("sepia"),backgroundColor:it("colors"),backgroundImage:{none:"none"},backgroundOpacity:it("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...br(200,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:it("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:it("spacing"),borderWidth:{DEFAULT:"1px",...Lr(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:it("colors"),caretColor:it("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...br(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:it("borderColor"),divideOpacity:it("borderOpacity"),divideWidth:it("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...Qu(2,6),...Qu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:it("spacing"),gradientColorStops:it("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...Qu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...Qu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...br(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...br(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:it("spacing"),placeholderColor:it("colors"),placeholderOpacity:it("opacity"),outlineColor:it("colors"),outlineOffset:Lr(8,"px"),outlineWidth:Lr(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:it("colors"),ringOffsetWidth:Lr(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...Lr(8,"px")},rotate:{...Lr(2,"deg"),...Lr(12,"deg",3),...Lr(180,"deg",45)},saturate:br(200,"",100,0,50),scale:{...br(150,"",100,0,50),...br(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:it("spacing"),scrollPadding:it("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...Lr(2,"deg"),...Lr(12,"deg",3)},space:it("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:br(2),textColor:it("colors"),textDecorationColor:it("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...Lr(8,"px")},textUnderlineOffset:{auto:"auto",...Lr(8,"px")},textIndent:it("spacing"),textOpacity:it("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:it("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...Qu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...br(50,"",1,0,10),auto:"auto"}};function Qu(e,t){let n={};do for(var r=1;rt(e)}var lE={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Cp.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Cp.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},cE=[oe("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Ca(`[${t}]`,"",n)}}})),oe("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ue("aspect-","aspectRatio"),oe("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:a}=t("container"),i={width:"100%",marginRight:r&&"auto",marginLeft:r&&"auto",...o("xs")};for(let s in n){let u=n[s];typeof u=="string"&&(i[c0(u)]={"&":{maxWidth:u,...o(s)}})}return i;function o(s){let u=a&&(typeof a=="string"?a:a[s]||a.DEFAULT);if(u)return{paddingRight:u,paddingLeft:u}}}),ue("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),oe("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),oe("box-(border|content)","boxSizing",({1:e})=>e+"-box"),oe("hidden",{display:"none"}),oe("table-(auto|fixed)","tableLayout"),oe(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",oe("isolate","isolation"),oe("object-(contain|cover|fill|none|scale-down)","objectFit"),ue("object-","objectPosition"),oe("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",m0),oe("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),oe("(static|fixed|absolute|relative|sticky)","position"),ue("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ue("-?(top|bottom|left|right)(?:$|-)","inset"),oe("(visible|collapse)","visibility"),oe("invisible",{visibility:"hidden"}),ue("-?z-","zIndex"),oe("flex-((row|col)(-reverse)?)","flexDirection",Yb),oe("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ue("(flex-(?:grow|shrink))(?:$|-)"),ue("(flex)-"),ue("grow(?:$|-)","flexGrow"),ue("shrink(?:$|-)","flexShrink"),ue("basis-","flexBasis"),ue("-?(order)-"),"-?(order)-(\\d+)",ue("grid-cols-","gridTemplateColumns"),oe("grid-cols-(\\d+)","gridTemplateColumns",Qb),ue("col-","gridColumn"),oe("col-(span)-(\\d+)","gridColumn",Xb),ue("col-start-","gridColumnStart"),oe("col-start-(auto|\\d+)","gridColumnStart"),ue("col-end-","gridColumnEnd"),oe("col-end-(auto|\\d+)","gridColumnEnd"),ue("grid-rows-","gridTemplateRows"),oe("grid-rows-(\\d+)","gridTemplateRows",Qb),ue("row-","gridRow"),oe("row-(span)-(\\d+)","gridRow",Xb),ue("row-start-","gridRowStart"),oe("row-start-(auto|\\d+)","gridRowStart"),ue("row-end-","gridRowEnd"),oe("row-end-(auto|\\d+)","gridRowEnd"),oe("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>m0(Yb(e))),oe("grid-flow-(dense)","gridAutoFlow"),ue("auto-cols-","gridAutoColumns"),ue("auto-rows-","gridAutoRows"),ue("gap-x(?:$|-)","gap","columnGap"),ue("gap-y(?:$|-)","gap","rowGap"),ue("gap(?:$|-)","gap"),"(justify-(?:items|self))-",oe("justify-","justifyContent",Zb),oe("(content|items|self)-",e=>({["align-"+e[1]]:Zb(e)})),oe("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ue("p([xytrbl])?(?:$|-)","padding",ds("padding")),ue("-?m([xytrbl])?(?:$|-)","margin",ds("margin")),ue("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),oe("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ue("w-","width"),ue("min-w-","minWidth"),ue("max-w-","maxWidth"),ue("h-","height"),ue("min-h-","minHeight"),ue("max-h-","maxHeight"),ue("font-","fontWeight"),ue("font-","fontFamily",({_:e})=>typeof(e=St(e))[1]=="string"?{fontFamily:Hr(e)}:{fontFamily:Hr(e[0]),...e[1]}),oe("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),oe("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),oe("italic","fontStyle"),oe("not-italic",{fontStyle:"normal"}),oe("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...xi({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ue("tracking-","letterSpacing"),ue("leading-","lineHeight"),oe("list-(inside|outside)","listStylePosition"),ue("list-","listStyleType"),oe("list-","listStyleType"),ue("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),pn("placeholder-",{property:"color",selector:"&::placeholder"}),oe("text-(left|center|right|justify|start|end)","textAlign"),oe("text-(ellipsis|clip)","textOverflow"),ue("text-opacity-","textOpacity","--tw-text-opacity"),pn("text-",{property:"color"}),ue("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ue("indent-","textIndent"),oe("(overline|underline|line-through)","textDecorationLine"),oe("no-underline",{textDecorationLine:"none"}),ue("underline-offset-","textUnderlineOffset"),pn("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ue("decoration-","textDecorationThickness"),oe("decoration-","textDecorationStyle"),oe("(uppercase|lowercase|capitalize)","textTransform"),oe("normal-case",{textTransform:"none"}),oe("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),oe("align-","verticalAlign"),oe("whitespace-","whiteSpace"),oe("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),oe("break-words",{overflowWrap:"break-word"}),oe("break-all",{wordBreak:"break-all"}),oe("break-keep",{wordBreak:"keep-all"}),pn("caret-",{opacityVariable:!1,opacitySection:"opacity"}),pn("accent-",{opacityVariable:!1,opacitySection:"opacity"}),oe("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${ho(e," ")},var(--tw-gradient-stops))`),pn("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),pn("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),pn("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),oe("bg-(fixed|local|scroll)","backgroundAttachment"),oe("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),oe(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),oe("bg-blend-","backgroundBlendMode"),oe("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ue("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),pn("bg-",{section:"backgroundColor"}),ue("bg-","backgroundImage"),ue("bg-","backgroundPosition"),oe("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",m0),ue("bg-","backgroundSize"),ue("rounded(?:$|-)","borderRadius"),ue("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${ho(n[0])}-radius`]:t,[`border-${ho(n[1])}-radius`]:t}}),oe("border-(collapse|separate)","borderCollapse"),ue("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),oe("border-(solid|dashed|dotted|double|none)","borderStyle"),ue("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...xi({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),pn("border-([xytrbl])-",{section:"borderColor"},ds("border","Color")),pn("border-"),ue("border-([xytrbl])(?:$|-)","borderWidth",ds("border","Width")),ue("border(?:$|-)","borderWidth"),ue("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),oe("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),oe("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ue("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${ho(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${ho(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),pn("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ue("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),pn("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ue("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),oe("ring-inset",{"--tw-ring-inset":"inset"}),pn("ring-",{property:"--tw-ring-color"}),ue("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...xi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Ya(t("ringOffsetColor","","#fff")),"--tw-ring-color":Ya(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),pn("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ue("shadow(?:$|-)","boxShadow",({_:e})=>({...xi({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Hr(e),"--tw-shadow-colored":Hr(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ue("(opacity)-"),oe("mix-blend-","mixBlendMode"),...Jb(),...Jb("backdrop-"),ue("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Hr(e),transitionTimingFunction:e._=="none"?void 0:Hr(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Hr(t("transitionDuration",""))})),ue("duration(?:$|-)","transitionDuration","transitionDuration",Hr),ue("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Hr),ue("delay(?:$|-)","transitionDelay","transitionDelay",Hr),ue("animate(?:$|-)","animation",(e,{theme:t,h:n,e:r})=>{let a=Hr(e),i=a.split(" "),o=t("keyframes",i[0]);return o?{["@keyframes "+(i[0]=r(n(i[0])))]:o,animation:i.join(" ")}:{animation:a}}),"(transform)-(none)",oe("transform",xp),oe("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":e9(e=="gpu")})),ue("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xp()})),ue("-?(rotate)-","rotate",vp),ue("-?(translate-[xy])-","translate",vp),ue("-?(skew-[xy])-","skew",vp),oe("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",m0),"(appearance)-",ue("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ue("(cursor)-"),"(cursor)-",oe("snap-(none)","scroll-snap-type"),oe("snap-(x|y|both)",({1:e})=>({...xi({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),oe("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),oe("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),oe("snap-(normal|always)","scroll-snap-stop"),oe("scroll-(auto|smooth)","scroll-behavior"),ue("scroll-p([xytrbl])?(?:$|-)","padding",ds("scroll-padding")),ue("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",ds("scroll-margin")),oe("touch-(auto|none|manipulation)","touch-action"),oe("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...xi({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),oe("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),oe("outline",{outlineStyle:"solid"}),oe("outline-(dashed|dotted|double)","outlineStyle"),ue("-?(outline-offset)-"),pn("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ue("outline-","outlineWidth"),"(pointer-events)-",ue("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],oe("select-(none|text|all|auto)","userSelect"),pn("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),pn("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ue("stroke-","strokeWidth"),oe("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),oe("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function m0(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Yb(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function ho(e,t="-"){let n=[];for(let r of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[r]);return n.join(t)}function Hr(e){return e&&""+(e._||e)}function Zb({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function ds(e,t=""){return({1:n,_:r})=>{let a={x:"lr",y:"tb"}[n]||n+n;return a?{...Ju(e+"-"+ho(a[0])+t,r),...Ju(e+"-"+ho(a[1])+t,r)}:Ju(e+t,r)}}function Jb(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let r of t)n[`--tw-${e}${r}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...xi(n),[`${e}filter`]:t.map(r=>`var(--tw-${e}${r})`).join(" ")},[`(${e}filter)-(none)`,oe(`${e}filter`,n),...t.map(r=>ue(`${r[0]=="h"?"-?":""}(${e}${r})(?:$|-)`,r,({1:a,_:i})=>({[`--tw-${a}`]:St(i).map(o=>`${r}(${o})`).join(" "),...n})))]}function vp({1:e,_:t}){return{["--tw-"+e]:t,...xp()}}function xp(){return{...xi({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":e9()}),transform:"var(--tw-transform)"}}function e9(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Xb({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Qb({1:e}){return`repeat(${e},minmax(0,1fr))`}function xi(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var dE=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Ca(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:r="",6:a=t},{e:i,h:o,v:s})=>{let u=cs(r)||(n[0]=="["?n:s(n.slice(1)));return`${(u.includes("&")?u:"&"+u).replace(/&/g,`:merge(.${i(o(e+a))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Ca(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Ca(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Ca(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&cs(e).replace(/[}]+$/,"").split("{")]];function mE({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:lE,theme:{...Cp,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:dE,rules:cE,finalize(n){return n.n&&n.d&&n.r.some(r=>/^&::(before|after)$/.test(r))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var gE={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},pE={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},fE={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},hE={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},bE={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},yE={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},vE={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},CE={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},xE={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},TE={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},SE={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},wE={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},EE={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},AE={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},kE={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},DE={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},LE={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},ME={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},PE={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},_E={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},RE={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},IE={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},FE={__proto__:null,slate:gE,gray:pE,zinc:fE,neutral:hE,stone:bE,red:yE,orange:vE,amber:CE,yellow:xE,lime:TE,green:SE,emerald:wE,teal:EE,cyan:AE,sky:kE,blue:DE,indigo:LE,violet:ME,purple:PE,fuchsia:_E,pink:RE,rose:IE};function g0({disablePreflight:e}={}){return mE({colors:FE,disablePreflight:e})}var p0=globalThis||(typeof window<"u"?window:self),BE=Object.create,Sp=Object.defineProperty,OE=Object.getOwnPropertyDescriptor,NE=Object.getOwnPropertyNames,UE=Object.getPrototypeOf,jE=Object.prototype.hasOwnProperty,HE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qE=(e,t)=>{for(var n in t)Sp(e,n,{get:t[n],enumerable:!0})},Tp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of NE(t))!jE.call(e,a)&&a!==n&&Sp(e,a,{get:()=>t[a],enumerable:!(r=OE(t,a))||r.enumerable});return e},zE=(e,t,n)=>(Tp(e,t,"default"),n&&Tp(n,t,"default")),n9=(e,t,n)=>(n=e!=null?BE(UE(e)):{},Tp(t||!e||!e.__esModule?Sp(n,"default",{value:e,enumerable:!0}):n,e)),r9=HE((e,t)=>{(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof e<"u"?r():(r(),n.FileSaver={})})(e,function(){"use strict";function n(l,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function r(l,c,m){var g=new XMLHttpRequest;g.open("GET",l),g.responseType="blob",g.onload=function(){u(g.response,c,m)},g.onerror=function(){},g.send()}function a(l){var c=new XMLHttpRequest;c.open("HEAD",l,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function i(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof p0=="object"&&p0.global===p0?p0:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,c,m){var g=o.URL||o.webkitURL,p=document.createElement("a");c=c||l.name||"download",p.download=c,p.rel="noopener",typeof l=="string"?(p.href=l,p.origin===location.origin?i(p):a(p.href)?r(l,c,m):i(p,p.target="_blank")):(p.href=g.createObjectURL(l),setTimeout(function(){g.revokeObjectURL(p.href)},4e4),setTimeout(function(){i(p)},0))}:"msSaveOrOpenBlob"in navigator?function(l,c,m){if(c=c||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(n(l,m),c);else if(a(l))r(l,c,m);else{var g=document.createElement("a");g.href=l,g.target="_blank",setTimeout(function(){i(g)})}}:function(l,c,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof l=="string")return r(l,c,m);var p=l.type==="application/octet-stream",f=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||p&&f||s)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var C=y.result;C=b?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=C:location=C,g=null},y.readAsDataURL(l)}else{var h=o.URL||o.webkitURL,v=h.createObjectURL(l);g?g.location=v:location.href=v,g=null,setTimeout(function(){h.revokeObjectURL(v)},4e4)}});o.saveAs=u.saveAs=u,typeof t<"u"&&(t.exports=u)})}),a9={};qE(a9,{default:()=>bo});var WE=n9(r9());zE(a9,n9(r9()));var{default:t9,...VE}=WE,bo=t9!==void 0?t9:VE;function C9(e){return typeof e>"u"||e===null}function KE(e){return typeof e=="object"&&e!==null}function GE(e){return Array.isArray(e)?e:C9(e)?[]:[e]}function $E(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;ns&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Ap(e,t){return fn.repeat(" ",t-e.length)+e}function aA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=Ep(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=fn.repeat(" ",t.indent)+Ap((e.line-u+1).toString(),c)+" | "+l.str+` -`+s;for(l=Ep(e.buffer,r[o],a[o],e.position,m),s+=fn.repeat(" ",t.indent)+Ap((e.line+1).toString(),c)+" | "+l.str+` +`+e.mark.snippet),r+" "+n):r}function tl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=x9(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}tl.prototype=Object.create(Error.prototype);tl.prototype.constructor=tl;tl.prototype.toString=function(e){return this.name+": "+x9(this,e)};var Gn=tl;function wp(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+i.length}}function Ep(e,t){return fn.repeat(" ",t-e.length)+e}function rA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],a=[],i,o=-1;i=n.exec(e.buffer);)a.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,c=Math.min(e.line+t.linesAfter,a.length).toString().length,m=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=wp(e.buffer,r[o-u],a[o-u],e.position-(r[o]-r[o-u]),m),s=fn.repeat(" ",t.indent)+Ep((e.line-u+1).toString(),c)+" | "+l.str+` +`+s;for(l=wp(e.buffer,r[o],a[o],e.position,m),s+=fn.repeat(" ",t.indent)+Ep((e.line+1).toString(),c)+" | "+l.str+` `,s+=fn.repeat("-",t.indent+c+3+l.pos)+`^ -`,u=1;u<=t.linesAfter&&!(o+u>=a.length);u++)l=Ep(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=fn.repeat(" ",t.indent)+Ap((e.line+u+1).toString(),c)+" | "+l.str+` -`;return s.replace(/\n$/,"")}var iA=aA,oA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sA=["scalar","sequence","mapping"];function uA(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function lA(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(oA.indexOf(n)===-1)throw new Kn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=uA(t.styleAliases||null),sA.indexOf(this.kind)===-1)throw new Kn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dn=lA;function o9(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function cA(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),TA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wA(e){return!(e===null||!TA.test(e)||e[e.length-1]==="_")}function EA(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var AA=/^[-+]?[0-9]+e/;function kA(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fn.isNegativeZero(e))return"-0.0";return n=e.toString(10),AA.test(n)?n.replace("e",".e"):n}function DA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fn.isNegativeZero(e))}var P9=new Dn("tag:yaml.org,2002:float",{kind:"scalar",resolve:wA,construct:EA,predicate:DA,represent:kA,defaultStyle:"lowercase"}),R9=k9.extend({implicit:[D9,L9,M9,P9]}),I9=R9,F9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),B9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function LA(e){return e===null?!1:F9.exec(e)!==null||B9.exec(e)!==null}function MA(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=F9.exec(e),t===null&&(t=B9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function PA(e){return e.toISOString()}var _9=new Dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:LA,construct:MA,instanceOf:Date,represent:PA});function RA(e){return e==="<<"||e===null}var O9=new Dn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:RA}),Ip=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function IA(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=Ip;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function FA(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Ip,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function BA(e){var t="",n=0,r,a,i=e.length,o=Ip;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function _A(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var N9=new Dn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:IA,construct:FA,predicate:_A,represent:BA}),OA=Object.prototype.hasOwnProperty,NA=Object.prototype.toString;function UA(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var G9=new Array(256),K9=new Array(256);for(yo=0;yo<256;yo++)G9[yo]=l9(yo)?1:0,K9[yo]=l9(yo);var yo;function tk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Y9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=iA(n),new Kn(t,n)}function ke(e,t){throw Y9(e,t)}function b0(e,t){e.onWarning&&e.onWarning.call(null,Y9(e,t))}var c9={YAML:function(e,t,n){var r,a,i;e.version!==null&&ke(e,"duplication of %YAML directive"),n.length!==1&&ke(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ke(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ke(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&b0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ke(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],V9.test(r)||ke(e,"ill-formed tag handle (first argument) of the TAG directive"),Ti.call(e.tagMap,r)&&ke(e,'there is a previously declared suffix for "'+r+'" tag handle'),W9.test(a)||ke(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ke(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function xi(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=fn.repeat(` -`,t-1))}function nk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),ir(p)||gs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),ir(a)||n&&gs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),ir(a)||n&&gs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),ir(r))break}else{if(e.position===e.lineStart&&C0(e)||n&&gs(p))break;if(Sa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,un(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(xi(e,i,o,!1),_p(e,e.line-u),i=o=e.position,s=!1),vo(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return xi(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function rk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(xi(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else Sa(n)?(xi(e,r,a,!0),_p(e,un(e,!1,t)),r=a=e.position):e.position===e.lineStart&&C0(e)?ke(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ke(e,"unexpected end of the stream within a single quoted scalar")}function ak(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return xi(e,n,e.position,!0),e.position++,!0;if(s===92){if(xi(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Sa(s))un(e,!1,t);else if(s<256&&G9[s])e.result+=K9[s],e.position++;else if((o=XA(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=ZA(s))>=0?i=(i<<4)+o:ke(e,"expected hexadecimal character");e.result+=ek(i),e.position++}else ke(e,"unknown escape sequence");n=r=e.position}else Sa(s)?(xi(e,n,r,!0),_p(e,un(e,!1,t)),n=r=e.position):e.position===e.lineStart&&C0(e)?ke(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ke(e,"unexpected end of the stream within a double quoted scalar")}function ik(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),b,y,h,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(un(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&ke(e,"expected the node content, but found ','"):ke(e,"missed comma between flow collection entries"),y=b=h=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),ir(l)&&(m=g=!0,e.position++,un(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,fs(e,t,f0,!1,!0),y=e.tag,b=e.result,un(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),un(e,!0,t),fs(e,t,f0,!1,!0),h=e.result),p?ps(e,s,f,y,b,h,r,a,i):m?s.push(ps(e,null,f,y,b,h,r,a,i)):s.push(b),un(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}ke(e,"unexpected end of the stream within a flow collection")}function ok(e,t){var n,r,a=kp,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)kp===a?a=m===43?s9:KA:ke(e,"repeat of a chomping mode identifier");else if((c=$A(m))>=0)c===0?ke(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ke(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(vo(m)){do m=e.input.charCodeAt(++e.position);while(vo(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!Sa(m)&&m!==0)}for(;m!==0;){for(Bp(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),Sa(m)){u++;continue}if(e.lineIndent=a.length);u++)l=wp(e.buffer,r[o+u],a[o+u],e.position-(r[o]-r[o+u]),m),s+=fn.repeat(" ",t.indent)+Ep((e.line+u+1).toString(),c)+" | "+l.str+` +`;return s.replace(/\n$/,"")}var aA=rA,iA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],oA=["scalar","sequence","mapping"];function sA(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function uA(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(iA.indexOf(n)===-1)throw new Gn('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=sA(t.styleAliases||null),oA.indexOf(this.kind)===-1)throw new Gn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dn=uA;function i9(e,t){var n=[];return e[t].forEach(function(r){var a=n.length;n.forEach(function(i,o){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(a=o)}),n[a]=r}),n}function lA(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),TA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function SA(e){return!(e===null||!TA.test(e)||e[e.length-1]==="_")}function wA(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var EA=/^[-+]?[0-9]+e/;function AA(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fn.isNegativeZero(e))return"-0.0";return n=e.toString(10),EA.test(n)?n.replace("e",".e"):n}function kA(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fn.isNegativeZero(e))}var M9=new Dn("tag:yaml.org,2002:float",{kind:"scalar",resolve:SA,construct:wA,predicate:kA,represent:AA,defaultStyle:"lowercase"}),P9=A9.extend({implicit:[k9,D9,L9,M9]}),_9=P9,R9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),I9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function DA(e){return e===null?!1:R9.exec(e)!==null||I9.exec(e)!==null}function LA(e){var t,n,r,a,i,o,s,u=0,l=null,c,m,g;if(t=R9.exec(e),t===null&&(t=I9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],m=+(t[11]||0),l=(c*60+m)*6e4,t[9]==="-"&&(l=-l)),g=new Date(Date.UTC(n,r,a,i,o,s,u)),l&&g.setTime(g.getTime()-l),g}function MA(e){return e.toISOString()}var F9=new Dn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:DA,construct:LA,instanceOf:Date,represent:MA});function PA(e){return e==="<<"||e===null}var B9=new Dn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:PA}),_p=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function _A(e){if(e===null)return!1;var t,n,r=0,a=e.length,i=_p;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function RA(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=_p,o=0,s=[];for(t=0;t>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function IA(e){var t="",n=0,r,a,i=e.length,o=_p;for(r=0;r>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return a=i%3,a===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):a===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):a===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function FA(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var O9=new Dn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_A,construct:RA,predicate:FA,represent:IA}),BA=Object.prototype.hasOwnProperty,OA=Object.prototype.toString;function NA(e){if(e===null)return!0;var t=[],n,r,a,i,o,s=e;for(n=0,r=s.length;n>10)+55296,(e-65536&1023)+56320)}var V9=new Array(256),K9=new Array(256);for(yo=0;yo<256;yo++)V9[yo]=u9(yo)?1:0,K9[yo]=u9(yo);var yo;function ek(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Rp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function G9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=aA(n),new Gn(t,n)}function ke(e,t){throw G9(e,t)}function b0(e,t){e.onWarning&&e.onWarning.call(null,G9(e,t))}var l9={YAML:function(e,t,n){var r,a,i;e.version!==null&&ke(e,"duplication of %YAML directive"),n.length!==1&&ke(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&ke(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),a!==1&&ke(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&b0(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;n.length!==2&&ke(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],z9.test(r)||ke(e,"ill-formed tag handle (first argument) of the TAG directive"),Si.call(e.tagMap,r)&&ke(e,'there is a previously declared suffix for "'+r+'" tag handle'),W9.test(a)||ke(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{ke(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function Ti(e,t,n,r){var a,i,o,s;if(t1&&(e.result+=fn.repeat(` +`,t-1))}function tk(e,t,n){var r,a,i,o,s,u,l,c,m=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),ir(p)||gs(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(a=e.input.charCodeAt(e.position+1),ir(a)||n&&gs(a)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;p!==0;){if(p===58){if(a=e.input.charCodeAt(e.position+1),ir(a)||n&&gs(a))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),ir(r))break}else{if(e.position===e.lineStart&&C0(e)||n&&gs(p))break;if(xa(p))if(u=e.line,l=e.lineStart,c=e.lineIndent,un(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=c;break}}s&&(Ti(e,i,o,!1),Fp(e,e.line-u),i=o=e.position,s=!1),vo(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ti(e,i,o,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function nk(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ti(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,a=e.position;else return!0;else xa(n)?(Ti(e,r,a,!0),Fp(e,un(e,!1,t)),r=a=e.position):e.position===e.lineStart&&C0(e)?ke(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);ke(e,"unexpected end of the stream within a single quoted scalar")}function rk(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Ti(e,n,e.position,!0),e.position++,!0;if(s===92){if(Ti(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),xa(s))un(e,!1,t);else if(s<256&&V9[s])e.result+=K9[s],e.position++;else if((o=JA(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=ZA(s))>=0?i=(i<<4)+o:ke(e,"expected hexadecimal character");e.result+=QA(i),e.position++}else ke(e,"unknown escape sequence");n=r=e.position}else xa(s)?(Ti(e,n,r,!0),Fp(e,un(e,!1,t)),n=r=e.position):e.position===e.lineStart&&C0(e)?ke(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ke(e,"unexpected end of the stream within a double quoted scalar")}function ak(e,t){var n=!0,r,a,i,o=e.tag,s,u=e.anchor,l,c,m,g,p,f=Object.create(null),b,y,h,v;if(v=e.input.charCodeAt(e.position),v===91)c=93,p=!1,s=[];else if(v===123)c=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(un(e,!0,t),v=e.input.charCodeAt(e.position),v===c)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?v===44&&ke(e,"expected the node content, but found ','"):ke(e,"missed comma between flow collection entries"),y=b=h=null,m=g=!1,v===63&&(l=e.input.charCodeAt(e.position+1),ir(l)&&(m=g=!0,e.position++,un(e,!0,t))),r=e.line,a=e.lineStart,i=e.position,fs(e,t,f0,!1,!0),y=e.tag,b=e.result,un(e,!0,t),v=e.input.charCodeAt(e.position),(g||e.line===r)&&v===58&&(m=!0,v=e.input.charCodeAt(++e.position),un(e,!0,t),fs(e,t,f0,!1,!0),h=e.result),p?ps(e,s,f,y,b,h,r,a,i):m?s.push(ps(e,null,f,y,b,h,r,a,i)):s.push(b),un(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}ke(e,"unexpected end of the stream within a flow collection")}function ik(e,t){var n,r,a=Ap,i=!1,o=!1,s=t,u=0,l=!1,c,m;if(m=e.input.charCodeAt(e.position),m===124)r=!1;else if(m===62)r=!0;else return!1;for(e.kind="scalar",e.result="";m!==0;)if(m=e.input.charCodeAt(++e.position),m===43||m===45)Ap===a?a=m===43?o9:KA:ke(e,"repeat of a chomping mode identifier");else if((c=XA(m))>=0)c===0?ke(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ke(e,"repeat of an indentation width identifier"):(s=t+c-1,o=!0);else break;if(vo(m)){do m=e.input.charCodeAt(++e.position);while(vo(m));if(m===35)do m=e.input.charCodeAt(++e.position);while(!xa(m)&&m!==0)}for(;m!==0;){for(Ip(e),e.lineIndent=0,m=e.input.charCodeAt(e.position);(!o||e.lineIndents&&(s=e.lineIndent),xa(m)){u++;continue}if(e.lineIndentt)&&u!==0)ke(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),fs(e,t,h0,!0,a)&&(y?f=e.result:b=e.result),y||(ps(e,m,g,p,f,b,o,s,u),p=f=b=null),un(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)ke(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&ke(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ke(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function dk(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(un(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!ir(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ke(e,"directive name must not be less than one character in length");o!==0;){for(;vo(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Sa(o));break}if(Sa(o))break;for(n=e.position;o!==0&&!ir(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Bp(e),Ti.call(c9,r)?c9[r](e,r,a):b0(e,'unknown document directive "'+r+'"')}if(un(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,un(e,!0,-1)):i&&ke(e,"directives end mark is expected"),fs(e,e.lineIndent-1,h0,!1,!0),un(e,!0,-1),e.checkLineBreaks&&QA.test(e.input.slice(t,e.position))&&b0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&C0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,un(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=Q9(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;at)&&u!==0)ke(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(y&&(o=e.line,s=e.lineStart,u=e.position),fs(e,t,h0,!0,a)&&(y?f=e.result:b=e.result),y||(ps(e,m,g,p,f,b,o,s,u),p=f=b=null),un(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&v!==0)ke(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),m=0,g=e.implicitTypes.length;m"),e.result!==null&&f.kind!==e.kind&&ke(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ke(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function ck(e){var t=e.position,n,r,a,i=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(un(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(i=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!ir(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),a=[],r.length<1&&ke(e,"directive name must not be less than one character in length");o!==0;){for(;vo(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!xa(o));break}if(xa(o))break;for(n=e.position;o!==0&&!ir(o);)o=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}o!==0&&Ip(e),Si.call(l9,r)?l9[r](e,r,a):b0(e,'unknown document directive "'+r+'"')}if(un(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,un(e,!0,-1)):i&&ke(e,"directives end mark is expected"),fs(e,e.lineIndent-1,h0,!1,!0),un(e,!0,-1),e.checkLineBreaks&&$A.test(e.input.slice(t,e.position))&&b0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&C0(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,un(e,!0,-1));return}if(e.position"u"&&(n=t,t=null);var r=$9(e,n);if(typeof t!="function")return r;for(var a=0,i=r.length;a=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function a6(e){var t=/^\n* /;return t.test(e)}var i6=1,Pp=2,o6=3,s6=4,ms=5;function Hk(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,b=Uk(el(e,0))&&jk(el(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=el(e,u),!al(l))return ms;b=b&&f9(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=el(e,u),l===nl)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!al(l))return ms;b=b&&f9(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?b&&!o&&!a(e)?i6:i===rl?ms:Pp:n>9&&a6(e)?ms:o?i===rl?ms:Pp:g?s6:o6}function qk(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===rl?'""':"''";if(!e.noCompatMode&&(Rk.indexOf(t)!==-1||Ik.test(t)))return e.quotingType===rl?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return Nk(e,l)}switch(Hk(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case i6:return t;case Pp:return"'"+t.replace(/'/g,"''")+"'";case o6:return"|"+h9(t,e.indent)+b9(g9(t,i));case s6:return">"+h9(t,e.indent)+b9(g9(zk(t,o),i));case ms:return'"'+Vk(t)+'"';default:throw new Kn("impossible error: invalid scalar style")}}()}function h9(e,t){var n=a6(e)?String(t):"",r=e[e.length-1]===` +`&&(i+=n),i+=o;return i}function Lp(e,t){return` +`+fn.repeat(" ",e.indent*t)}function Ok(e,t){var n,r,a;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function r6(e){var t=/^\n* /;return t.test(e)}var a6=1,Mp=2,i6=3,o6=4,ms=5;function jk(e,t,n,r,a,i,o,s){var u,l=0,c=null,m=!1,g=!1,p=r!==-1,f=-1,b=Nk(el(e,0))&&Uk(el(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(l=el(e,u),!al(l))return ms;b=b&&p9(l,c,s),c=l}else{for(u=0;u=65536?u+=2:u++){if(l=el(e,u),l===nl)m=!0,p&&(g=g||u-f-1>r&&e[f+1]!==" ",f=u);else if(!al(l))return ms;b=b&&p9(l,c,s),c=l}g=g||p&&u-f-1>r&&e[f+1]!==" "}return!m&&!g?b&&!o&&!a(e)?a6:i===rl?ms:Mp:n>9&&r6(e)?ms:o?i===rl?ms:Mp:g?o6:i6}function Hk(e,t,n,r,a){e.dump=function(){if(t.length===0)return e.quotingType===rl?'""':"''";if(!e.noCompatMode&&(Pk.indexOf(t)!==-1||_k.test(t)))return e.quotingType===rl?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return Ok(e,l)}switch(jk(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,a)){case a6:return t;case Mp:return"'"+t.replace(/'/g,"''")+"'";case i6:return"|"+f9(t,e.indent)+h9(m9(t,i));case o6:return">"+f9(t,e.indent)+h9(m9(qk(t,o),i));case ms:return'"'+zk(t)+'"';default:throw new Gn("impossible error: invalid scalar style")}}()}function f9(e,t){var n=r6(e)?String(t):"",r=e[e.length-1]===` `,a=r&&(e[e.length-2]===` `||e===` `),i=a?"+":r?"":"-";return n+i+` -`}function b9(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function zk(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` -`);return l=l!==-1?l:e.length,n.lastIndex=l,y9(e.slice(0,l),t)}(),a=e[0]===` +`}function h9(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function qk(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(` +`);return l=l!==-1?l:e.length,n.lastIndex=l,b9(e.slice(0,l),t)}(),a=e[0]===` `||e[0]===" ",i,o;o=n.exec(e);){var s=o[1],u=o[2];i=u[0]===" ",r+=s+(!a&&!i&&u!==""?` -`:"")+y9(u,t),a=i}return r}function y9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` +`:"")+b9(u,t),a=i}return r}function b9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,a=0,i,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-a>t&&(i=o>a?o:s,u+=` `+e.slice(a,i),a=i+1),o=s;return u+=` `,e.length-a>t&&o>a?u+=e.slice(a,o)+` -`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function Vk(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=el(e,a),r=Bn[n],!r&&al(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||Bk(n);return t}function Wk(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Ja(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function v9(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Ja(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Mp(e,t)),e.dump&&nl===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function Gk(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ja(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function Kk(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Kn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&nl===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Mp(e,t)),Ja(e,t+1,c,!0,m)&&(e.dump&&nl===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function C9(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Ja(e,t,n,r,a,i,o){e.tag=null,e.dump=n,C9(e,n,!1)||C9(e,n,!0);var s=Z9.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(Kk(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(Gk(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?v9(e,t-1,e.dump,a):v9(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(Wk(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&qk(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Kn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function Yk(e,t){var n=[],r=[],a,i;for(Rp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Up=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function S0(e,t){let n=hs(),r=setTimeout(()=>n.reject(new Up),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ut(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var u6=class{#e=0;#t=[];#n=[];#r=hs();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tUD,bgBlue:()=>zD,bgBrightBlack:()=>KD,bgBrightBlue:()=>ZD,bgBrightCyan:()=>$D,bgBrightGreen:()=>QD,bgBrightMagenta:()=>XD,bgBrightRed:()=>YD,bgBrightWhite:()=>eL,bgBrightYellow:()=>JD,bgCyan:()=>WD,bgGreen:()=>HD,bgMagenta:()=>VD,bgRed:()=>jD,bgRgb24:()=>aL,bgRgb8:()=>nL,bgWhite:()=>GD,bgYellow:()=>qD,black:()=>TD,blue:()=>kD,bold:()=>hD,brightBlack:()=>d6,brightBlue:()=>BD,brightCyan:()=>OD,brightGreen:()=>ID,brightMagenta:()=>_D,brightRed:()=>RD,brightWhite:()=>ND,brightYellow:()=>FD,cyan:()=>LD,dim:()=>bD,getColorEnabled:()=>pD,gray:()=>PD,green:()=>ED,hidden:()=>SD,inverse:()=>CD,italic:()=>yD,magenta:()=>DD,red:()=>wD,reset:()=>fD,rgb24:()=>rL,rgb8:()=>tL,setColorEnabled:()=>gD,strikethrough:()=>xD,stripColor:()=>oL,underline:()=>vD,white:()=>MD,yellow:()=>AD});var{Deno:l6}=globalThis,c6=typeof l6?.noColor=="boolean"?l6.noColor:!0,jp=!c6;function gD(e){c6||(jp=e)}function pD(){return jp}function Be(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function _e(e,t){return jp?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function fD(e){return _e(e,Be([0],0))}function hD(e){return _e(e,Be([1],22))}function bD(e){return _e(e,Be([2],22))}function yD(e){return _e(e,Be([3],23))}function vD(e){return _e(e,Be([4],24))}function CD(e){return _e(e,Be([7],27))}function SD(e){return _e(e,Be([8],28))}function xD(e){return _e(e,Be([9],29))}function TD(e){return _e(e,Be([30],39))}function wD(e){return _e(e,Be([31],39))}function ED(e){return _e(e,Be([32],39))}function AD(e){return _e(e,Be([33],39))}function kD(e){return _e(e,Be([34],39))}function DD(e){return _e(e,Be([35],39))}function LD(e){return _e(e,Be([36],39))}function MD(e){return _e(e,Be([37],39))}function PD(e){return d6(e)}function d6(e){return _e(e,Be([90],39))}function RD(e){return _e(e,Be([91],39))}function ID(e){return _e(e,Be([92],39))}function FD(e){return _e(e,Be([93],39))}function BD(e){return _e(e,Be([94],39))}function _D(e){return _e(e,Be([95],39))}function OD(e){return _e(e,Be([96],39))}function ND(e){return _e(e,Be([97],39))}function UD(e){return _e(e,Be([40],49))}function jD(e){return _e(e,Be([41],49))}function HD(e){return _e(e,Be([42],49))}function qD(e){return _e(e,Be([43],49))}function zD(e){return _e(e,Be([44],49))}function VD(e){return _e(e,Be([45],49))}function WD(e){return _e(e,Be([46],49))}function GD(e){return _e(e,Be([47],49))}function KD(e){return _e(e,Be([100],49))}function YD(e){return _e(e,Be([101],49))}function QD(e){return _e(e,Be([102],49))}function JD(e){return _e(e,Be([103],49))}function ZD(e){return _e(e,Be([104],49))}function XD(e){return _e(e,Be([105],49))}function $D(e){return _e(e,Be([106],49))}function eL(e){return _e(e,Be([107],49))}function wi(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function tL(e,t){return _e(e,Be([38,5,wi(t)],39))}function nL(e,t){return _e(e,Be([48,5,wi(t)],49))}function rL(e,t){return typeof t=="number"?_e(e,Be([38,2,t>>16&255,t>>8&255,t&255],39)):_e(e,Be([38,2,wi(t.r),wi(t.g),wi(t.b)],39))}function aL(e,t){return typeof t=="number"?_e(e,Be([48,2,t>>16&255,t>>8&255,t&255],49)):_e(e,Be([48,2,wi(t.r),wi(t.g),wi(t.b)],49))}var iL=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function oL(e){return e.replace(iL,"")}var Hp=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},sL={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function qp(e,t){let n={...sL,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new Hp(a,n.maxAttempts)}var Za=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function zp(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Za[(t[r-2]&3)<<4|t[r-1]>>4],n+=Za[(t[r-1]&15)<<2|t[r]>>6],n+=Za[t[r]&63];return r===a+1&&(n+=Za[t[r-2]>>2],n+=Za[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Za[t[r-2]>>2],n+=Za[(t[r-2]&3)<<4|t[r-1]>>4],n+=Za[(t[r-1]&15)<<2],n+="="),n}var uL=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,lL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA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\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,cL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA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2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD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-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Vp={Space_Separator:uL,ID_Start:lL,ID_Continue:cL},tn={isSpaceSeparator(e){return typeof e=="string"&&Vp.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Vp.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Vp.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Gp,Yn,$a,T0,Ei,qr,Cn,Qp,sl,dL=function(e,t){Gp=String(e),Yn="start",$a=[],T0=0,Ei=1,qr=0,Cn=void 0,Qp=void 0,sl=void 0;do Cn=mL(),fL[Yn]();while(Cn.type!=="eof");return typeof t=="function"?Kp({"":sl},"",t):sl};function Kp(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ei();if(!tn.isHexDigit(n))throw It(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var fL={start(){if(Cn.type==="eof")throw So();Wp()},beforePropertyName(){switch(Cn.type){case"identifier":case"string":Qp=Cn.value,Yn="afterPropertyName";return;case"punctuator":x0();return;case"eof":throw So()}},afterPropertyName(){if(Cn.type==="eof")throw So();Yn="beforePropertyValue"},beforePropertyValue(){if(Cn.type==="eof")throw So();Wp()},beforeArrayValue(){if(Cn.type==="eof")throw So();if(Cn.type==="punctuator"&&Cn.value==="]"){x0();return}Wp()},afterPropertyValue(){if(Cn.type==="eof")throw So();switch(Cn.value){case",":Yn="beforePropertyName";return;case"}":x0()}},afterArrayValue(){if(Cn.type==="eof")throw So();switch(Cn.value){case",":Yn="beforeArrayValue";return;case"]":x0()}},end(){}};function Wp(){let e;switch(Cn.type){case"punctuator":switch(Cn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Cn.value;break}if(sl===void 0)sl=e;else{let t=$a[$a.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Qp,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")$a.push(e),Array.isArray(e)?Yn="beforeArrayValue":Yn="beforePropertyName";else{let t=$a[$a.length-1];t==null?Yn="end":Array.isArray(t)?Yn="afterArrayValue":Yn="afterPropertyValue"}}function x0(){$a.pop();let e=$a[$a.length-1];e==null?Yn="end":Array.isArray(e)?Yn="afterArrayValue":Yn="afterPropertyValue"}function It(e){return Jp(e===void 0?`JSON5: invalid end of input at ${Ei}:${qr}`:`JSON5: invalid character '${hL(e)}' at ${Ei}:${qr}`)}function So(){return Jp(`JSON5: invalid end of input at ${Ei}:${qr}`)}function m6(){return qr-=5,Jp(`JSON5: invalid identifier character at ${Ei}:${qr}`)}function hL(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Jp(e){let t=new SyntaxError(e);return t.lineNumber=Ei,t.columnNumber=qr,t}var bL=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,b){let y=b[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(b,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let b={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},h="";for(let C=0;Cb[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=i||Object.keys(f),h=[];for(let C of y){let x=l(C,f);if(x!==void 0){let S=g(C)+":";s!==""&&(S+=" "),S+=x,h.push(S)}}let v;if(h.length===0)v="{}";else{let C;if(s==="")C=h.join(","),v="{"+C+"}";else{let x=`, -`+a;C=h.join(x),v=`{ +`+e.slice(o+1):u+=e.slice(a),u.slice(1)}function zk(e){for(var t="",n=0,r,a=0;a=65536?a+=2:a++)n=el(e,a),r=Fn[n],!r&&al(n)?(t+=e[a],n>=65536&&(t+=e[a+1])):t+=r||Ik(n);return t}function Wk(e,t,n){var r="",a=e.tag,i,o,s;for(i=0,o=n.length;i"u"&&Za(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=a,e.dump="["+r+"]"}function y9(e,t,n,r){var a="",i=e.tag,o,s,u;for(o=0,s=n.length;o"u"&&Za(e,t+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=Lp(e,t)),e.dump&&nl===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=i,e.dump=a||"[]"}function Vk(e,t,n){var r="",a=e.tag,i=Object.keys(n),o,s,u,l,c;for(o=0,s=i.length;o1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Za(e,t,l,!1,!1)&&(c+=e.dump,r+=c));e.tag=a,e.dump="{"+r+"}"}function Kk(e,t,n,r){var a="",i=e.tag,o=Object.keys(n),s,u,l,c,m,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Gn("sortKeys must be a boolean or a function");for(s=0,u=o.length;s1024,m&&(e.dump&&nl===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,m&&(g+=Lp(e,t)),Za(e,t+1,c,!0,m)&&(e.dump&&nl===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=i,e.dump=a||"{}"}function v9(e,t,n){var r,a,i,o,s,u;for(a=n?e.explicitTypes:e.implicitTypes,i=0,o=a.length;i tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function Za(e,t,n,r,a,i,o){e.tag=null,e.dump=n,v9(e,n,!1)||v9(e,n,!0);var s=Z9.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",m,g;if(c&&(m=e.duplicates.indexOf(n),g=m!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[m])e.dump="*ref_"+m;else{if(c&&g&&!e.usedDuplicates[m]&&(e.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(Kk(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(Vk(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?y9(e,t-1,e.dump,a):y9(e,t,e.dump,a),g&&(e.dump="&ref_"+m+e.dump)):(Wk(e,t,e.dump),g&&(e.dump="&ref_"+m+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&Hk(e,e.dump,t,i,u);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new Gn("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function Gk(e,t){var n=[],r=[],a,i;for(Pp(e,n,r),a=0,i=r.length;a{e={async resolve(i){await i,t="fulfilled",r(i)},reject(i){t="rejected",a(i)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}var Np=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function x0(e,t){let n=hs(),r=setTimeout(()=>n.reject(new Np),t);return Promise.race([e,n]).finally(()=>clearTimeout(r))}function ut(e,t={}){let{signal:n,persistent:r}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,i)=>{let o=()=>{clearTimeout(u),i(new DOMException("Delay was aborted.","AbortError"))},u=setTimeout(()=>{n?.removeEventListener("abort",o),a()},e);if(n?.addEventListener("abort",o,{once:!0}),r===!1)try{Deno.unrefTimer(u)}catch(l){if(!(l instanceof ReferenceError))throw l}})}var s6=class{#e=0;#t=[];#n=[];#r=hs();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:n,done:r}=await t.next();r?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#r.resolve()}async*iterate(){for(;this.#e>0;){await this.#r;for(let t=0;tND,bgBlue:()=>qD,bgBrightBlack:()=>KD,bgBrightBlue:()=>ZD,bgBrightCyan:()=>XD,bgBrightGreen:()=>$D,bgBrightMagenta:()=>JD,bgBrightRed:()=>GD,bgBrightWhite:()=>QD,bgBrightYellow:()=>YD,bgCyan:()=>WD,bgGreen:()=>jD,bgMagenta:()=>zD,bgRed:()=>UD,bgRgb24:()=>rL,bgRgb8:()=>tL,bgWhite:()=>VD,bgYellow:()=>HD,black:()=>TD,blue:()=>AD,bold:()=>fD,brightBlack:()=>c6,brightBlue:()=>ID,brightCyan:()=>BD,brightGreen:()=>_D,brightMagenta:()=>FD,brightRed:()=>PD,brightWhite:()=>OD,brightYellow:()=>RD,cyan:()=>DD,dim:()=>hD,getColorEnabled:()=>gD,gray:()=>MD,green:()=>wD,hidden:()=>CD,inverse:()=>vD,italic:()=>bD,magenta:()=>kD,red:()=>SD,reset:()=>pD,rgb24:()=>nL,rgb8:()=>eL,setColorEnabled:()=>mD,strikethrough:()=>xD,stripColor:()=>iL,underline:()=>yD,white:()=>LD,yellow:()=>ED});var{Deno:u6}=globalThis,l6=typeof u6?.noColor=="boolean"?u6.noColor:!0,Up=!l6;function mD(e){l6||(Up=e)}function gD(){return Up}function Fe(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Be(e,t){return Up?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function pD(e){return Be(e,Fe([0],0))}function fD(e){return Be(e,Fe([1],22))}function hD(e){return Be(e,Fe([2],22))}function bD(e){return Be(e,Fe([3],23))}function yD(e){return Be(e,Fe([4],24))}function vD(e){return Be(e,Fe([7],27))}function CD(e){return Be(e,Fe([8],28))}function xD(e){return Be(e,Fe([9],29))}function TD(e){return Be(e,Fe([30],39))}function SD(e){return Be(e,Fe([31],39))}function wD(e){return Be(e,Fe([32],39))}function ED(e){return Be(e,Fe([33],39))}function AD(e){return Be(e,Fe([34],39))}function kD(e){return Be(e,Fe([35],39))}function DD(e){return Be(e,Fe([36],39))}function LD(e){return Be(e,Fe([37],39))}function MD(e){return c6(e)}function c6(e){return Be(e,Fe([90],39))}function PD(e){return Be(e,Fe([91],39))}function _D(e){return Be(e,Fe([92],39))}function RD(e){return Be(e,Fe([93],39))}function ID(e){return Be(e,Fe([94],39))}function FD(e){return Be(e,Fe([95],39))}function BD(e){return Be(e,Fe([96],39))}function OD(e){return Be(e,Fe([97],39))}function ND(e){return Be(e,Fe([40],49))}function UD(e){return Be(e,Fe([41],49))}function jD(e){return Be(e,Fe([42],49))}function HD(e){return Be(e,Fe([43],49))}function qD(e){return Be(e,Fe([44],49))}function zD(e){return Be(e,Fe([45],49))}function WD(e){return Be(e,Fe([46],49))}function VD(e){return Be(e,Fe([47],49))}function KD(e){return Be(e,Fe([100],49))}function GD(e){return Be(e,Fe([101],49))}function $D(e){return Be(e,Fe([102],49))}function YD(e){return Be(e,Fe([103],49))}function ZD(e){return Be(e,Fe([104],49))}function JD(e){return Be(e,Fe([105],49))}function XD(e){return Be(e,Fe([106],49))}function QD(e){return Be(e,Fe([107],49))}function wi(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function eL(e,t){return Be(e,Fe([38,5,wi(t)],39))}function tL(e,t){return Be(e,Fe([48,5,wi(t)],49))}function nL(e,t){return typeof t=="number"?Be(e,Fe([38,2,t>>16&255,t>>8&255,t&255],39)):Be(e,Fe([38,2,wi(t.r),wi(t.g),wi(t.b)],39))}function rL(e,t){return typeof t=="number"?Be(e,Fe([48,2,t>>16&255,t>>8&255,t&255],49)):Be(e,Fe([48,2,wi(t.r),wi(t.g),wi(t.b)],49))}var aL=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function iL(e){return e.replace(aL,"")}var jp=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},oL={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Hp(e,t){let n={...oL,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let r=n.minTimeout,a;for(let i=0;isetTimeout(s,r)),r*=n.multiplier,r=Math.max(r,n.minTimeout),n.maxTimeout>=0&&(r=Math.min(r,n.maxTimeout)),a=o}throw new jp(a,n.maxAttempts)}var Ja=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function qp(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",r,a=t.length;for(r=2;r>2],n+=Ja[(t[r-2]&3)<<4|t[r-1]>>4],n+=Ja[(t[r-1]&15)<<2|t[r]>>6],n+=Ja[t[r]&63];return r===a+1&&(n+=Ja[t[r-2]>>2],n+=Ja[(t[r-2]&3)<<4],n+="=="),r===a&&(n+=Ja[t[r-2]>>2],n+=Ja[(t[r-2]&3)<<4|t[r-1]>>4],n+=Ja[(t[r-1]&15)<<2],n+="="),n}var sL=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,uL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\u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E86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,lL=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D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F3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\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87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,zp={Space_Separator:sL,ID_Start:uL,ID_Continue:lL},tn={isSpaceSeparator(e){return typeof e=="string"&&zp.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||zp.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||zp.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Vp,$n,Qa,S0,Ei,qr,Cn,$p,sl,cL=function(e,t){Vp=String(e),$n="start",Qa=[],S0=0,Ei=1,qr=0,Cn=void 0,$p=void 0,sl=void 0;do Cn=dL(),pL[$n]();while(Cn.type!=="eof");return typeof t=="function"?Kp({"":sl},"",t):sl};function Kp(e,t,n){let r=e[t];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let a=0;a0;){let n=ei();if(!tn.isHexDigit(n))throw Rt(K());e+=K()}return String.fromCodePoint(parseInt(e,16))}var pL={start(){if(Cn.type==="eof")throw xo();Wp()},beforePropertyName(){switch(Cn.type){case"identifier":case"string":$p=Cn.value,$n="afterPropertyName";return;case"punctuator":T0();return;case"eof":throw xo()}},afterPropertyName(){if(Cn.type==="eof")throw xo();$n="beforePropertyValue"},beforePropertyValue(){if(Cn.type==="eof")throw xo();Wp()},beforeArrayValue(){if(Cn.type==="eof")throw xo();if(Cn.type==="punctuator"&&Cn.value==="]"){T0();return}Wp()},afterPropertyValue(){if(Cn.type==="eof")throw xo();switch(Cn.value){case",":$n="beforePropertyName";return;case"}":T0()}},afterArrayValue(){if(Cn.type==="eof")throw xo();switch(Cn.value){case",":$n="beforeArrayValue";return;case"]":T0()}},end(){}};function Wp(){let e;switch(Cn.type){case"punctuator":switch(Cn.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Cn.value;break}if(sl===void 0)sl=e;else{let t=Qa[Qa.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,$p,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")Qa.push(e),Array.isArray(e)?$n="beforeArrayValue":$n="beforePropertyName";else{let t=Qa[Qa.length-1];t==null?$n="end":Array.isArray(t)?$n="afterArrayValue":$n="afterPropertyValue"}}function T0(){Qa.pop();let e=Qa[Qa.length-1];e==null?$n="end":Array.isArray(e)?$n="afterArrayValue":$n="afterPropertyValue"}function Rt(e){return Yp(e===void 0?`JSON5: invalid end of input at ${Ei}:${qr}`:`JSON5: invalid character '${fL(e)}' at ${Ei}:${qr}`)}function xo(){return Yp(`JSON5: invalid end of input at ${Ei}:${qr}`)}function d6(){return qr-=5,Yp(`JSON5: invalid identifier character at ${Ei}:${qr}`)}function fL(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function Yp(e){let t=new SyntaxError(e);return t.lineNumber=Ei,t.columnNumber=qr,t}var hL=function(e,t,n){let r=[],a="",i,o,s="",u;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(n=t.space,u=t.quote,t=t.replacer),typeof t=="function")o=t;else if(Array.isArray(t)){i=[];for(let f of t){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&i.indexOf(b)<0&&i.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),s=" ".substr(0,n)):typeof n=="string"&&(s=n.substr(0,10)),l("",{"":e});function l(f,b){let y=b[f];switch(y!=null&&(typeof y.toJSON5=="function"?y=y.toJSON5(f):typeof y.toJSON=="function"&&(y=y.toJSON(f))),o&&(y=o.call(b,f,y)),y instanceof Number?y=Number(y):y instanceof String?y=String(y):y instanceof Boolean&&(y=y.valueOf()),y){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof y=="string")return c(y,!1);if(typeof y=="number")return String(y);if(typeof y=="object")return Array.isArray(y)?p(y):m(y)}function c(f){let b={"'":.1,'"':.2},y={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},h="";for(let C=0;Cb[C]=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=i||Object.keys(f),h=[];for(let C of y){let T=l(C,f);if(T!==void 0){let x=g(C)+":";s!==""&&(x+=" "),x+=T,h.push(x)}}let v;if(h.length===0)v="{}";else{let C;if(s==="")C=h.join(","),v="{"+C+"}";else{let T=`, +`+a;C=h.join(T),v=`{ `+a+C+`, `+b+"}"}}return r.pop(),a=b,v}function g(f){if(f.length===0)return c(f,!0);let b=String.fromCodePoint(f.codePointAt(0));if(!tn.isIdStartChar(b))return c(f,!0);for(let y=b.length;y=0)throw TypeError("Converting circular structure to JSON5");r.push(f);let b=a;a=a+s;let y=[];for(let v=0;v()=>(t||e((t={exports:{}}).exports,t),t.exports),DL=(e,t)=>{for(var n in t)Xp(e,n,{get:t[n],enumerable:!0})},Zp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of wL(t))!AL.call(e,a)&&a!==n&&Xp(e,a,{get:()=>t[a],enumerable:!(r=TL(t,a))||r.enumerable});return e},LL=(e,t,n)=>(Zp(e,t,"default"),n&&Zp(n,t,"default")),h6=(e,t,n)=>(n=e!=null?xL(EL(e)):{},Zp(t||!e||!e.__esModule?Xp(n,"default",{value:e,enumerable:!0}):n,e)),b6=kL((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof E0=="object"&&E0&&E0.Object===Object&&E0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(A,D,M){var I,R,B,L,U,F,q=0,Y=!1,te=!1,xe=!0;if(typeof A!="function")throw new TypeError(n);D=w(D)||0,x(M)&&(Y=!!M.leading,te="maxWait"in M,B=te?b(w(M.maxWait)||0,D):B,xe="trailing"in M?!!M.trailing:xe);function pe(be){var he=I,Le=R;return I=R=void 0,q=be,L=A.apply(Le,he),L}function H(be){return q=be,U=setTimeout(Re,D),Y?pe(be):L}function W(be){var he=be-F,Le=be-q,Ve=D-he;return te?y(Ve,B-Le):Ve}function $(be){var he=be-F,Le=be-q;return F===void 0||he>=D||he<0||te&&Le>=B}function Re(){var be=h();if($(be))return ve(be);U=setTimeout(Re,W(be))}function ve(be){return U=void 0,xe&&I?pe(be):(I=R=void 0,L)}function Ye(){U!==void 0&&clearTimeout(U),q=0,I=F=R=U=void 0}function X(){return U===void 0?L:ve(h())}function se(){var be=h(),he=$(be);if(I=arguments,R=this,F=be,he){if(U===void 0)return H(F);if(te)return U=setTimeout(Re,D),pe(F)}return U===void 0&&(U=setTimeout(Re,D)),L}return se.cancel=Ye,se.flush=X,se}function C(A,D,M){var I=!0,R=!0;if(typeof A!="function")throw new TypeError(n);return x(M)&&(I="leading"in M?!!M.leading:I,R="trailing"in M?!!M.trailing:R),v(A,D,{leading:I,maxWait:D,trailing:R})}function x(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function S(A){return!!A&&typeof A=="object"}function T(A){return typeof A=="symbol"||S(A)&&f.call(A)==a}function w(A){if(typeof A=="number")return A;if(T(A))return r;if(x(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=x(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),y6={};DL(y6,{default:()=>br});var ML=h6(b6());LL(y6,h6(b6()));var{default:f6,...PL}=ML,br=f6!==void 0?f6:PL;var A0=globalThis||(typeof window<"u"?window:self),RL=Object.create,ef=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,FL=Object.getOwnPropertyNames,BL=Object.getPrototypeOf,_L=Object.prototype.hasOwnProperty,OL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),NL=(e,t)=>{for(var n in t)ef(e,n,{get:t[n],enumerable:!0})},$p=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of FL(t))!_L.call(e,a)&&a!==n&&ef(e,a,{get:()=>t[a],enumerable:!(r=IL(t,a))||r.enumerable});return e},UL=(e,t,n)=>($p(e,t,"default"),n&&$p(n,t,"default")),C6=(e,t,n)=>(n=e!=null?RL(BL(e)):{},$p(t||!e||!e.__esModule?ef(n,"default",{value:e,enumerable:!0}):n,e)),S6=OL((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof A0=="object"&&A0&&A0.Object===Object&&A0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(w,A,D){var M,I,R,B,L,U,F=0,q=!1,Y=!1,te=!0;if(typeof w!="function")throw new TypeError(n);A=T(A)||0,C(D)&&(q=!!D.leading,Y="maxWait"in D,R=Y?b(T(D.maxWait)||0,A):R,te="trailing"in D?!!D.trailing:te);function xe(se){var be=M,he=I;return M=I=void 0,F=se,B=w.apply(he,be),B}function pe(se){return F=se,L=setTimeout($,A),q?xe(se):B}function H(se){var be=se-U,he=se-F,Le=A-be;return Y?y(Le,R-he):Le}function W(se){var be=se-U,he=se-F;return U===void 0||be>=A||be<0||Y&&he>=R}function $(){var se=h();if(W(se))return Re(se);L=setTimeout($,H(se))}function Re(se){return L=void 0,te&&M?xe(se):(M=I=void 0,B)}function ve(){L!==void 0&&clearTimeout(L),F=0,M=U=I=L=void 0}function Ye(){return L===void 0?B:Re(h())}function X(){var se=h(),be=W(se);if(M=arguments,I=this,U=se,be){if(L===void 0)return pe(U);if(Y)return L=setTimeout($,A),xe(U)}return L===void 0&&(L=setTimeout($,A)),B}return X.cancel=ve,X.flush=Ye,X}function C(w){var A=typeof w;return!!w&&(A=="object"||A=="function")}function x(w){return!!w&&typeof w=="object"}function S(w){return typeof w=="symbol"||x(w)&&f.call(w)==a}function T(w){if(typeof w=="number")return w;if(S(w))return r;if(C(w)){var A=typeof w.valueOf=="function"?w.valueOf():w;w=C(A)?A+"":A}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var D=s.test(w);return D||u.test(w)?l(w.slice(2),D?2:8):o.test(w)?r:+w}t.exports=v}),x6={};NL(x6,{default:()=>_n});var jL=C6(S6());UL(x6,C6(S6()));var{default:v6,...HL}=jL,_n=v6!==void 0?v6:HL;var qL=Object.create,nf=Object.defineProperty,zL=Object.getOwnPropertyDescriptor,VL=Object.getOwnPropertyNames,WL=Object.getPrototypeOf,GL=Object.prototype.hasOwnProperty,KL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),YL=(e,t)=>{for(var n in t)nf(e,n,{get:t[n],enumerable:!0})},tf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of VL(t))!GL.call(e,a)&&a!==n&&nf(e,a,{get:()=>t[a],enumerable:!(r=zL(t,a))||r.enumerable});return e},QL=(e,t,n)=>(tf(e,t,"default"),n&&tf(n,t,"default")),w6=(e,t,n)=>(n=e!=null?qL(WL(e)):{},tf(t||!e||!e.__esModule?nf(n,"default",{value:e,enumerable:!0}):n,e)),E6=KL((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,b){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:b})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,W){var $={};for(var Re in H)W.indexOf(Re)>=0||Object.prototype.hasOwnProperty.call(H,Re)&&($[Re]=H[Re]);return $}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},b=Object.assign||function(H){for(var W=1;W'+Re+"
",Le.onclick=function(){return R(Ve,he)},Le.listener=function(J){(D(J)||M(J))&&U()},I(Le,he),Ye&&Ye<1&&(Ye=1),!se&&Ye&&x(Ye).then(function(){return R(Ve,he)})},q=m.force=function(H,W){var $=H.type,Re=$===void 0?5:$,ve=H.text,Ye=H.buttonText,X=Ye===void 0?"OK":Ye,se=H.callback,be=H.position,he=be===void 0?h.positions.force||he.top:be;S(),U();var Le=document.createElement("div"),Ve=T();Le.id=Ve;var J=document.createElement("div");J.classList.add(h.classes.textbox),J.classList.add(h.classes.backgroundInfo),J.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(h.classes.button),Ee.classList.add(w[Re]),Ee.innerHTML=X,Ee.onclick=function(){R(Ve,he),L(),se?se():W&&W()},Le.appendChild(J),Le.appendChild(Ee),Le.listener=function(vt){D(vt)&&Ee.click()},I(Le,he),B()},Y=m.confirm=function(H,W,$){var Re=H.text,ve=H.submitText,Ye=ve===void 0?"Yes":ve,X=H.cancelText,se=X===void 0?"Cancel":X,be=H.submitCallback,he=H.cancelCallback,Le=H.position,Ve=Le===void 0?h.positions.confirm||Ve.top:Le;S(),U();var J=document.createElement("div"),Ee=T();J.id=Ee;var vt=document.createElement("div");vt.classList.add(h.classes.textbox),vt.classList.add(h.classes.backgroundInfo),vt.innerHTML='
'+Re+"
";var st=document.createElement("div");st.classList.add(h.classes.button),st.classList.add(h.classes.elementHalf),st.classList.add(h.classes.backgroundSuccess),st.innerHTML=Ye,st.onclick=function(){R(Ee,Ve),L(),be?be():W&&W()};var De=document.createElement("div");De.classList.add(h.classes.button),De.classList.add(h.classes.elementHalf),De.classList.add(h.classes.backgroundError),De.innerHTML=se,De.onclick=function(){R(Ee,Ve),L(),he?he():$&&$()},J.appendChild(vt),J.appendChild(st),J.appendChild(De),J.listener=function(Nt){D(Nt)?st.click():M(Nt)&&De.click()},I(J,Ve),B(J,Ve)},te=function(H,W,$){var Re=H.text,ve=H.submitText,Ye=ve===void 0?"Submit":ve,X=H.cancelText,se=X===void 0?"Cancel":X,be=H.submitCallback,he=H.cancelCallback,Le=H.position,Ve=Le===void 0?h.positions.input||Ve.top:Le,J=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);S(),U();var Ee=document.createElement("div"),vt=T();Ee.id=vt;var st=document.createElement("div");st.classList.add(h.classes.textbox),st.classList.add(h.classes.backgroundInfo),st.innerHTML='
'+Re+"
";var De=document.createElement("input");De.classList.add(h.classes.inputField),De.setAttribute("autocapitalize",J.autocapitalize||"none"),De.setAttribute("autocomplete",J.autocomplete||"off"),De.setAttribute("autocorrect",J.autocorrect||"off"),De.setAttribute("autofocus",J.autofocus||"true"),De.setAttribute("inputmode",J.inputmode||"verbatim"),De.setAttribute("max",J.max||""),De.setAttribute("maxlength",J.maxlength||""),De.setAttribute("min",J.min||""),De.setAttribute("minlength",J.minlength||""),De.setAttribute("placeholder",J.placeholder||""),De.setAttribute("spellcheck",J.spellcheck||"default"),De.setAttribute("step",J.step||"any"),De.setAttribute("type",J.type||"text"),De.value=J.value||"",J.allowed&&(De.oninput=function(){var Wt=void 0;if(Array.isArray(J.allowed)){for(var Xt="",Vn=J.allowed,Ar=0;Ar'+$+"
",he.appendChild(Ve),X.forEach(function(Ee,vt){var st=Ee.type,De=st===void 0?1:st,Nt=Ee.text,mn=Ee.handler,Wt=document.createElement("div");Wt.classList.add(w[De]),Wt.classList.add(h.classes.button),Wt.classList.add(h.classes.selectChoice);var Xt=X[vt+1];Xt&&!Xt.type&&(Xt.type=1),Xt&&Xt.type===De&&Wt.classList.add(h.classes.selectChoiceRepeated),Wt.innerHTML=Nt,Wt.onclick=function(){R(Le,be),L(),mn()},he.appendChild(Wt)});var J=document.createElement("div");J.classList.add(h.classes.backgroundNeutral),J.classList.add(h.classes.button),J.innerHTML=ve,J.onclick=function(){R(Le,be),L(),Ye?Ye():W&&W()},he.appendChild(J),he.listener=function(Ee){M(Ee)&&J.click()},I(he,be),B(he,be)},pe=m.date=function(H,W,$){var Re=H.value,ve=Re===void 0?new Date:Re,Ye=H.submitText,X=Ye===void 0?"OK":Ye,se=H.cancelText,be=se===void 0?"Cancel":se,he=H.submitCallback,Le=H.cancelCallback,Ve=H.position,J=Ve===void 0?h.positions.date||J.top:Ve;S(),U();var Ee="▾",vt=document.createElement("div"),st=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){vt.innerHTML=h.dateMonths[Ut.getMonth()],st.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},mn=function(Ut){var Ct=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),pr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pr)>Ct&&(pr=Ct.toString()),Ut.target.textContent=pr,Number(pr)<1&&(pr="1"),ve.setDate(Number(pr))},Wt=function(Ut){var Ct=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=Ct,ve.setFullYear(Number(Ct))},Xt=function(Ut){Nt(ve)},Vn=function(Ut){var Ct=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>Ct&&ve.setDate(Ct),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},Ar=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Eu=function(Ut){var Ct=ve.getFullYear()+Ut;Ct<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},ba=document.createElement("div"),oo=T();ba.id=oo;var Qo=document.createElement("div");Qo.classList.add(h.classes.backgroundInfo);var Rn=document.createElement("div");Rn.classList.add(h.classes.dateSelectorInner);var Ur=document.createElement("div");Ur.classList.add(h.classes.button),Ur.classList.add(h.classes.elementThird),Ur.classList.add(h.classes.dateSelectorUp),Ur.innerHTML=Ee;var In=document.createElement("div");In.classList.add(h.classes.button),In.classList.add(h.classes.elementThird),In.classList.add(h.classes.dateSelectorUp),In.innerHTML=Ee;var gr=document.createElement("div");gr.classList.add(h.classes.button),gr.classList.add(h.classes.elementThird),gr.classList.add(h.classes.dateSelectorUp),gr.innerHTML=Ee,vt.classList.add(h.classes.element),vt.classList.add(h.classes.elementThird),vt.innerHTML=h.dateMonths[ve.getMonth()],st.classList.add(h.classes.element),st.classList.add(h.classes.elementThird),st.setAttribute("contentEditable",!0),st.addEventListener("input",mn),st.addEventListener("blur",Xt),st.innerHTML=ve.getDate(),De.classList.add(h.classes.element),De.classList.add(h.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Wt),De.addEventListener("blur",Xt),De.innerHTML=ve.getFullYear();var za=document.createElement("div");za.classList.add(h.classes.button),za.classList.add(h.classes.elementThird),za.innerHTML=Ee;var Va=document.createElement("div");Va.classList.add(h.classes.button),Va.classList.add(h.classes.elementThird),Va.innerHTML=Ee;var so=document.createElement("div");so.classList.add(h.classes.button),so.classList.add(h.classes.elementThird),so.innerHTML=Ee,Ur.onclick=function(){return Vn(1)},In.onclick=function(){return Ar(1)},gr.onclick=function(){return Eu(1)},za.onclick=function(){return Vn(-1)},Va.onclick=function(){return Ar(-1)},so.onclick=function(){return Eu(-1)};var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementHalf),Wn.classList.add(h.classes.backgroundSuccess),Wn.innerHTML=X,Wn.onclick=function(){R(oo,J),L(),he?he(ve):W&&W(ve)};var Wa=document.createElement("div");Wa.classList.add(h.classes.button),Wa.classList.add(h.classes.elementHalf),Wa.classList.add(h.classes.backgroundError),Wa.innerHTML=be,Wa.onclick=function(){R(oo,J),L(),Le?Le(ve):$&&$(ve)},Rn.appendChild(Ur),Rn.appendChild(In),Rn.appendChild(gr),Rn.appendChild(vt),Rn.appendChild(st),Rn.appendChild(De),Rn.appendChild(za),Rn.appendChild(Va),Rn.appendChild(so),Qo.appendChild(Rn),ba.appendChild(Qo),ba.appendChild(Wn),ba.appendChild(Wa),ba.listener=function(Ut){D(Ut)?Wn.click():M(Ut)&&Wa.click()},I(ba,J),B(ba,J)};m.default={alert:F,force:q,confirm:Y,input:te,select:xe,date:pe,setOptions:v,hideAlerts:U}}])})}).call(r,a(0)(n))}])})}),A6={};YL(A6,{default:()=>k0});var JL=w6(E6());QL(A6,w6(E6()));var{default:T6,...ZL}=JL,k0=T6!==void 0?T6:ZL;var D0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ul(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function rf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function k6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ibs[e.toLowerCase()]||Vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),XL=e=>Object.keys(bs).find(t=>bs[t]===e),$L=e=>Object.keys(Vr).find(t=>Vr[t]===e);function I6(e){P6=e||"all"}function ll(){return P6||"all"}function eM(){return wt.slice(0)}function tM(){return wt.map(e=>XL(e)||$L(e)||String.fromCharCode(e))}function nM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>cl(o))})})}),e}function rM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function aM(e){return typeof e=="string"&&(e=cl(e)),wt.indexOf(e)!==-1}function iM(e,t){let n,r;e||(e=ll());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&wt.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&wt.splice(0,wt.length),(t===93||t===224)&&(t=91),t in Sn){Sn[t]=!1;for(let r in Vr)Vr[r]===t&&(ti[r]=!1)}}function F6(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&of(n)});else if(typeof e=="object")e.key&&of(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),of({key:e,scope:n,method:r,splitKey:"+"})}}var of=({key:e,scope:t,method:n,splitKey:r="+"})=>{af(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":cl(u);if(!jt[l])return;t||(t=ll());let c=s>1?rf(Vr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&k6(m.mods,c)))})};function L6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in Sn)Object.prototype.hasOwnProperty.call(Sn,i)&&(!Sn[i]&&t.mods.indexOf(+i)>-1||Sn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!Sn[16]&&!Sn[18]&&!Sn[17]&&!Sn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(wt),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function M6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ti.filter.call(this,e))return;if((r===93||r===224)&&(r=91),wt.indexOf(r)===-1&&r!==229&&wt.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=L0[i];e[i]&&wt.indexOf(o)===-1?wt.push(o):!e[i]&&wt.indexOf(o)>-1?wt.splice(wt.indexOf(o),1):i==="metaKey"&&e[i]&&wt.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(wt=wt.slice(wt.indexOf(o))))}),r in Sn){Sn[r]=!0;for(let i in Vr)Vr[i]===r&&(ti[i]=!0);if(!n)return}for(let i in Sn)Object.prototype.hasOwnProperty.call(Sn,i)&&(Sn[i]=e[L0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(wt.indexOf(17)===-1&&wt.push(17),wt.indexOf(18)===-1&&wt.push(18),Sn[17]=!0,Sn[18]=!0);let a=ll();if(n)for(let i=0;i-1}function ti(e,t,n){wt=[];let r=af(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&F6(e,i);s1&&(a=rf(Vr,e)),e=e[e.length-1],e=e==="*"?"*":cl(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!sM(o)&&window&&(R6.push(o),ul(o,"keydown",p=>{M6(p,o)},m),D6||(D6=!0,ul(window,"focus",()=>{wt=[]},m),ul(window,"click",()=>{wt=[]},!1)),ul(o,"keyup",p=>{M6(p,o),oM(p)},m))}function uM(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var sf={getPressedKeyString:tM,setScope:I6,getScope:ll,deleteScope:iM,getPressedKeyCodes:eM,getAllKeyCodes:nM,isPressed:aM,filter:rM,trigger:uM,unbind:F6,keyMap:bs,modifier:Vr,modifierMap:L0};for(let e in sf)Object.prototype.hasOwnProperty.call(sf,e)&&(ti[e]=sf[e]);if(typeof window<"u"){let e=window.hotkeys;ti.noConflict=t=>(t&&window.hotkeys===ti&&(window.hotkeys=e),ti),window.hotkeys=ti}var Yt=ti;var lM={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},_6={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Qn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ai={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=K.getVersionPrecision(e),a=K.getVersionPrecision(t),i=Math.max(r,a),o=0,s=K.map([e,t],u=>{let l=i-K.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return K.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return lM[e]}static getBrowserTypeByAlias(e){return _6[e]||""}},Et=/version\/(\d+(\.?_?\d+)+)/i,cM=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(Et,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(r,e),version:K.getSecondMatch(r,e)}}}],dM=cM,mM=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Qn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Qn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:Qn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Qn.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),r={name:Qn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Qn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),r={name:Qn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Qn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:Qn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Qn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Qn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Qn.Linux}}},{test:[/CrOS/],describe(){return{name:Qn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Qn.PlayStation4,version:t}}}],gM=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],pM=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ai.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ai.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ai.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ai.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ai.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ai.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ai.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],fM=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(dM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(mM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(gM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(pM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=K.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=K.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=K.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=K.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(K.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},B6=fM,hM=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new B6(e,t)}static parse(e){return new B6(e).getResult()}static get BROWSER_MAP(){return _6}static get ENGINE_MAP(){return Ai}static get OS_MAP(){return Qn}static get PLATFORMS_MAP(){return nn}},ys=hM;var{entries:V6,setPrototypeOf:O6,isFrozen:bM,getPrototypeOf:yM,getOwnPropertyDescriptor:vM}=Object,{freeze:Jn,seal:Gr,create:CM}=Object,{apply:gf,construct:pf}=typeof Reflect<"u"&&Reflect;gf||(gf=function(e,t,n){return e.apply(t,n)});Jn||(Jn=function(e){return e});Gr||(Gr=function(e){return e});pf||(pf=function(e,t){return new e(...t)});var SM=Mr(Array.prototype.forEach),N6=Mr(Array.prototype.pop),dl=Mr(Array.prototype.push),R0=Mr(String.prototype.toLowerCase),uf=Mr(String.prototype.toString),xM=Mr(String.prototype.match),Wr=Mr(String.prototype.replace),TM=Mr(String.prototype.indexOf),wM=Mr(String.prototype.trim),yr=Mr(RegExp.prototype.test),ml=EM(TypeError);function Mr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),MM=Gr(/\${[\w\W]*}/gm),PM=Gr(/^data-[\-\w.\u00B7-\uFFFF]/),RM=Gr(/^aria-[\-\w]+$/),W6=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IM=Gr(/^(?:\w+script|data):/i),FM=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G6=Gr(/^html$/i),z6=Object.freeze({__proto__:null,MUSTACHE_EXPR:DM,ERB_EXPR:LM,TMPLIT_EXPR:MM,DATA_ATTR:PM,ARIA_ATTR:RM,IS_ALLOWED_URI:W6,IS_SCRIPT_OR_DATA:IM,ATTR_WHITESPACE:FM,DOCTYPE_NAME:G6}),BM=()=>typeof window>"u"?null:window,_M=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function K6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BM(),t=_=>K6(_);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,b=M0(f,"cloneNode"),y=M0(f,"nextSibling"),h=M0(f,"childNodes"),v=M0(f,"parentNode");if(typeof o=="function"){let _=a.createElement("template");_.content&&_.content.ownerDocument&&(a=_.content.ownerDocument)}let C,x="",{implementation:S,createNodeIterator:T,createDocumentFragment:w,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof V6=="function"&&typeof v=="function"&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:L,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:q}=z6,{IS_ALLOWED_URI:Y}=z6,te=null,xe=Ke({},[...U6,...lf,...cf,...df,...j6]),pe=null,H=Ke({},[...H6,...mf,...q6,...P0]),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,Re=null,ve=!0,Ye=!0,X=!1,se=!0,be=!1,he=!1,Le=!1,Ve=!1,J=!1,Ee=!1,vt=!1,st=!0,De=!1,Nt="user-content-",mn=!0,Wt=!1,Xt={},Vn=null,Ar=Ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Eu=null,ba=Ke({},["audio","video","img","source","image","track"]),oo=null,Qo=Ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",In="http://www.w3.org/1999/xhtml",gr=In,za=!1,Va=null,so=Ke({},[Rn,Ur,In],uf),Wn,Wa=["application/xhtml+xml","text/html"],Ut="text/html",Ct,pr=null,C7=a.createElement("form"),G1=function(_){return _ instanceof RegExp||_ instanceof Function},Eg=function(_){if(!(pr&&pr===_)){if((!_||typeof _!="object")&&(_={}),_=vs(_),Wn=Wa.indexOf(_.PARSER_MEDIA_TYPE)===-1?Wn=Ut:Wn=_.PARSER_MEDIA_TYPE,Ct=Wn==="application/xhtml+xml"?uf:R0,te="ALLOWED_TAGS"in _?Ke({},_.ALLOWED_TAGS,Ct):xe,pe="ALLOWED_ATTR"in _?Ke({},_.ALLOWED_ATTR,Ct):H,Va="ALLOWED_NAMESPACES"in _?Ke({},_.ALLOWED_NAMESPACES,uf):so,oo="ADD_URI_SAFE_ATTR"in _?Ke(vs(Qo),_.ADD_URI_SAFE_ATTR,Ct):Qo,Eu="ADD_DATA_URI_TAGS"in _?Ke(vs(ba),_.ADD_DATA_URI_TAGS,Ct):ba,Vn="FORBID_CONTENTS"in _?Ke({},_.FORBID_CONTENTS,Ct):Ar,$="FORBID_TAGS"in _?Ke({},_.FORBID_TAGS,Ct):{},Re="FORBID_ATTR"in _?Ke({},_.FORBID_ATTR,Ct):{},Xt="USE_PROFILES"in _?_.USE_PROFILES:!1,ve=_.ALLOW_ARIA_ATTR!==!1,Ye=_.ALLOW_DATA_ATTR!==!1,X=_.ALLOW_UNKNOWN_PROTOCOLS||!1,se=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=_.SAFE_FOR_TEMPLATES||!1,he=_.WHOLE_DOCUMENT||!1,J=_.RETURN_DOM||!1,Ee=_.RETURN_DOM_FRAGMENT||!1,vt=_.RETURN_TRUSTED_TYPE||!1,Ve=_.FORCE_BODY||!1,st=_.SANITIZE_DOM!==!1,De=_.SANITIZE_NAMED_PROPS||!1,mn=_.KEEP_CONTENT!==!1,Wt=_.IN_PLACE||!1,Y=_.ALLOWED_URI_REGEXP||W6,gr=_.NAMESPACE||In,W=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&G1(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&G1(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&(Ye=!1),Ee&&(J=!0),Xt&&(te=Ke({},[...j6]),pe=[],Xt.html===!0&&(Ke(te,U6),Ke(pe,H6)),Xt.svg===!0&&(Ke(te,lf),Ke(pe,mf),Ke(pe,P0)),Xt.svgFilters===!0&&(Ke(te,cf),Ke(pe,mf),Ke(pe,P0)),Xt.mathMl===!0&&(Ke(te,df),Ke(pe,q6),Ke(pe,P0))),_.ADD_TAGS&&(te===xe&&(te=vs(te)),Ke(te,_.ADD_TAGS,Ct)),_.ADD_ATTR&&(pe===H&&(pe=vs(pe)),Ke(pe,_.ADD_ATTR,Ct)),_.ADD_URI_SAFE_ATTR&&Ke(oo,_.ADD_URI_SAFE_ATTR,Ct),_.FORBID_CONTENTS&&(Vn===Ar&&(Vn=vs(Vn)),Ke(Vn,_.FORBID_CONTENTS,Ct)),mn&&(te["#text"]=!0),he&&Ke(te,["html","head","body"]),te.table&&(Ke(te,["tbody"]),delete $.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw ml('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ml('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=_.TRUSTED_TYPES_POLICY,x=C.createHTML("")}else C===void 0&&(C=_M(p,r)),C!==null&&typeof x=="string"&&(x=C.createHTML(""));Jn&&Jn(_),pr=_}},K1=Ke({},["mi","mo","mn","ms","mtext"]),Y1=Ke({},["foreignobject","desc","title","annotation-xml"]),S7=Ke({},["title","style","font","a","script"]),Lc=Ke({},lf);Ke(Lc,cf),Ke(Lc,AM);let Ag=Ke({},df);Ke(Ag,kM);let x7=function(_){let ge=v(_);(!ge||!ge.tagName)&&(ge={namespaceURI:gr,tagName:"template"});let ae=R0(_.tagName),dt=R0(ge.tagName);return Va[_.namespaceURI]?_.namespaceURI===Ur?ge.namespaceURI===In?ae==="svg":ge.namespaceURI===Rn?ae==="svg"&&(dt==="annotation-xml"||K1[dt]):!!Lc[ae]:_.namespaceURI===Rn?ge.namespaceURI===In?ae==="math":ge.namespaceURI===Ur?ae==="math"&&Y1[dt]:!!Ag[ae]:_.namespaceURI===In?ge.namespaceURI===Ur&&!Y1[dt]||ge.namespaceURI===Rn&&!K1[dt]?!1:!Ag[ae]&&(S7[ae]||!Lc[ae]):!!(Wn==="application/xhtml+xml"&&Va[_.namespaceURI]):!1},Jo=function(_){dl(t.removed,{element:_});try{_.parentNode.removeChild(_)}catch{_.remove()}},kg=function(_,ge){try{dl(t.removed,{attribute:ge.getAttributeNode(_),from:ge})}catch{dl(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(_),_==="is"&&!pe[_])if(J||Ee)try{Jo(ge)}catch{}else try{ge.setAttribute(_,"")}catch{}},Q1=function(_){let ge,ae;if(Ve)_=""+_;else{let Gn=xM(_,/^[\r\n\t ]+/);ae=Gn&&Gn[0]}Wn==="application/xhtml+xml"&&gr===In&&(_=''+_+"");let dt=C?C.createHTML(_):_;if(gr===In)try{ge=new g().parseFromString(dt,Wn)}catch{}if(!ge||!ge.documentElement){ge=S.createDocument(gr,"template",null);try{ge.documentElement.innerHTML=za?x:dt}catch{}}let gn=ge.body||ge.documentElement;return _&&ae&&gn.insertBefore(a.createTextNode(ae),gn.childNodes[0]||null),gr===In?A.call(ge,he?"html":"body")[0]:he?ge.documentElement:gn},J1=function(_){return T.call(_.ownerDocument||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},T7=function(_){return _ instanceof m&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof c)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},Mc=function(_){return typeof s=="object"?_ instanceof s:_&&typeof _=="object"&&typeof _.nodeType=="number"&&typeof _.nodeName=="string"},Ga=function(_,ge,ae){M[_]&&SM(M[_],dt=>{dt.call(t,ge,ae,pr)})},Z1=function(_){let ge;if(Ga("beforeSanitizeElements",_,null),T7(_))return Jo(_),!0;let ae=Ct(_.nodeName);if(Ga("uponSanitizeElement",_,{tagName:ae,allowedTags:te}),_.hasChildNodes()&&!Mc(_.firstElementChild)&&(!Mc(_.content)||!Mc(_.content.firstElementChild))&&yr(/<[/\w]/g,_.innerHTML)&&yr(/<[/\w]/g,_.textContent))return Jo(_),!0;if(!te[ae]||$[ae]){if(!$[ae]&&$1(ae)&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,ae)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ae)))return!1;if(mn&&!Vn[ae]){let dt=v(_)||_.parentNode,gn=h(_)||_.childNodes;if(gn&&dt){let Gn=gn.length;for(let ar=Gn-1;ar>=0;--ar)dt.insertBefore(b(gn[ar],!0),y(_))}}return Jo(_),!0}return _ instanceof u&&!x7(_)||(ae==="noscript"||ae==="noembed")&&yr(/<\/no(script|embed)/i,_.innerHTML)?(Jo(_),!0):(be&&_.nodeType===3&&(ge=_.textContent,ge=Wr(ge,I," "),ge=Wr(ge,R," "),ge=Wr(ge,B," "),_.textContent!==ge&&(dl(t.removed,{element:_.cloneNode()}),_.textContent=ge)),Ga("afterSanitizeElements",_,null),!1)},X1=function(_,ge,ae){if(st&&(ge==="id"||ge==="name")&&(ae in a||ae in C7))return!1;if(!(Ye&&!Re[ge]&&yr(L,ge))&&!(ve&&yr(U,ge))){if(!pe[ge]||Re[ge]){if(!($1(_)&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,_)||W.tagNameCheck instanceof Function&&W.tagNameCheck(_))&&(W.attributeNameCheck instanceof RegExp&&yr(W.attributeNameCheck,ge)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(ge))||ge==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&yr(W.tagNameCheck,ae)||W.tagNameCheck instanceof Function&&W.tagNameCheck(ae))))return!1}else if(!oo[ge]&&!yr(Y,Wr(ae,q,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&_!=="script"&&TM(ae,"data:")===0&&Eu[_])&&!(X&&!yr(F,Wr(ae,q,"")))&&ae)return!1}return!0},$1=function(_){return _.indexOf("-")>0},e2=function(_){let ge,ae,dt,gn;Ga("beforeSanitizeAttributes",_,null);let{attributes:Gn}=_;if(!Gn)return;let ar={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(gn=Gn.length;gn--;){ge=Gn[gn];let{name:vn,namespaceURI:Zo}=ge;if(ae=vn==="value"?ge.value:wM(ge.value),dt=Ct(vn),ar.attrName=dt,ar.attrValue=ae,ar.keepAttr=!0,ar.forceKeepAttr=void 0,Ga("uponSanitizeAttribute",_,ar),ae=ar.attrValue,ar.forceKeepAttr||(kg(vn,_),!ar.keepAttr))continue;if(!se&&yr(/\/>/i,ae)){kg(vn,_);continue}be&&(ae=Wr(ae,I," "),ae=Wr(ae,R," "),ae=Wr(ae,B," "));let t2=Ct(_.nodeName);if(X1(t2,dt,ae)){if(De&&(dt==="id"||dt==="name")&&(kg(vn,_),ae=Nt+ae),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Zo)switch(p.getAttributeType(t2,dt)){case"TrustedHTML":{ae=C.createHTML(ae);break}case"TrustedScriptURL":{ae=C.createScriptURL(ae);break}}try{Zo?_.setAttributeNS(Zo,vn,ae):_.setAttribute(vn,ae),N6(t.removed)}catch{}}}Ga("afterSanitizeAttributes",_,null)},w7=function _(ge){let ae,dt=J1(ge);for(Ga("beforeSanitizeShadowDOM",ge,null);ae=dt.nextNode();)Ga("uponSanitizeShadowNode",ae,null),!Z1(ae)&&(ae.content instanceof i&&_(ae.content),e2(ae));Ga("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(_){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae,dt,gn,Gn;if(za=!_,za&&(_=""),typeof _!="string"&&!Mc(_))if(typeof _.toString=="function"){if(_=_.toString(),typeof _!="string")throw ml("dirty is not a string, aborting")}else throw ml("toString is not a function");if(!t.isSupported)return _;if(Le||Eg(ge),t.removed=[],typeof _=="string"&&(Wt=!1),Wt){if(_.nodeName){let Zo=Ct(_.nodeName);if(!te[Zo]||$[Zo])throw ml("root node is forbidden and cannot be sanitized in-place")}}else if(_ instanceof s)ae=Q1(""),dt=ae.ownerDocument.importNode(_,!0),dt.nodeType===1&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?ae=dt:ae.appendChild(dt);else{if(!J&&!be&&!he&&_.indexOf("<")===-1)return C&&vt?C.createHTML(_):_;if(ae=Q1(_),!ae)return J?null:vt?x:""}ae&&Ve&&Jo(ae.firstChild);let ar=J1(Wt?_:ae);for(;gn=ar.nextNode();)Z1(gn)||(gn.content instanceof i&&w7(gn.content),e2(gn));if(Wt)return _;if(J){if(Ee)for(Gn=w.call(ae.ownerDocument);ae.firstChild;)Gn.appendChild(ae.firstChild);else Gn=ae;return(pe.shadowroot||pe.shadowrootmod)&&(Gn=D.call(n,Gn,!0)),Gn}let vn=he?ae.outerHTML:ae.innerHTML;return he&&te["!doctype"]&&ae.ownerDocument&&ae.ownerDocument.doctype&&ae.ownerDocument.doctype.name&&yr(G6,ae.ownerDocument.doctype.name)&&(vn=" -`+vn),be&&(vn=Wr(vn,I," "),vn=Wr(vn,R," "),vn=Wr(vn,B," ")),C&&vt?C.createHTML(vn):vn},t.setConfig=function(_){Eg(_),Le=!0},t.clearConfig=function(){pr=null,Le=!1},t.isValidAttribute=function(_,ge,ae){pr||Eg({});let dt=Ct(_),gn=Ct(ge);return X1(dt,gn,ae)},t.addHook=function(_,ge){typeof ge=="function"&&(M[_]=M[_]||[],dl(M[_],ge))},t.removeHook=function(_){if(M[_])return N6(M[_])},t.removeHooks=function(_){M[_]&&(M[_]=[])},t.removeAllHooks=function(){M={}},t}var lt=K6();var OM=Object.create,hf=Object.defineProperty,NM=Object.getOwnPropertyDescriptor,UM=Object.getOwnPropertyNames,jM=Object.getPrototypeOf,HM=Object.prototype.hasOwnProperty,bf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qM=(e,t)=>{for(var n in t)hf(e,n,{get:t[n],enumerable:!0})},ff=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of UM(t))!HM.call(e,a)&&a!==n&&hf(e,a,{get:()=>t[a],enumerable:!(r=NM(t,a))||r.enumerable});return e},zM=(e,t,n)=>(ff(e,t,"default"),n&&ff(n,t,"default")),Q6=(e,t,n)=>(n=e!=null?OM(jM(e)):{},ff(t||!e||!e.__esModule?hf(n,"default",{value:e,enumerable:!0}):n,e)),VM=bf((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` -`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,b,y,h){return o(b)+(y||"")+h});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let Ve=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(Ve&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),Ve=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(J){if(!(!J.parentNode||typeof J.parentNode.tagName>"u")){var Ee=this._getInnerText(J);if(!(Ee.length<25)){var vt=this._getNodeAncestors(J,5);if(vt.length!==0){var st=0;st+=1,st+=Ee.split(",").length,st+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(vt,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),b.push(De)),Nt===0)var mn=1;else Nt===1?mn=2:mn=Nt*3;De.readability.contentScore+=st/mn}})}}}});for(var y=[],h=0,v=b.length;hT.readability.contentScore){y.splice(S,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var w=y[0]||null,A=!1,D;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var M=[],I=1;I=.75&&M.push(this._getNodeAncestors(y[I]));var R=3;if(M.length>=R)for(D=w.parentNode;D.tagName!=="BODY";){for(var B=0,L=0;L=R){w=D;break}D=D.parentNode}w.readability||this._initializeNode(w),D=w.parentNode;for(var U=w.readability.contentScore,F=U/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var q=D.readability.contentScore;if(qU){w=D;break}U=D.readability.contentScore,D=D.parentNode}for(D=w.parentNode;D.tagName!="BODY"&&D.children.length==1;)w=D,D=w.parentNode;w.readability||this._initializeNode(w)}var Y=a.createElement("DIV");i&&(Y.id="readability-content");var te=Math.max(10,w.readability.contentScore*.2);D=w.parentNode;for(var xe=D.children,pe=0,H=xe.length;pe=te)$=!0;else if(W.nodeName==="P"){var ve=this._getLinkDensity(W),Ye=this._getInnerText(W),X=Ye.length;(X>80&&ve<.25||X<80&&X>0&&ve===0&&Ye.search(/\.( |$)/)!==-1)&&($=!0)}}$&&(this.log("Appending node:",W),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(W.nodeName)===-1&&(this.log("Altering sibling:",W,"to div."),W=this._setNodeTag(W,"DIV")),Y.appendChild(W),xe=D.children,pe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+Y.innerHTML),this._prepArticle(Y),this._debug&&this.log("Article content post-prep: "+Y.innerHTML),A)w.id="readability-page-1",w.className="page";else{var se=a.createElement("DIV");for(se.id="readability-page-1",se.className="page";Y.firstChild;)se.appendChild(Y.firstChild);Y.appendChild(se)}this._debug&&this.log("Article content after paging: "+Y.innerHTML);var be=!0,he=this._getInnerText(Y,!0).length;if(he0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),h=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||b>Math.floor(g/3)||!s&&y<.9&&T<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&S>.2||c>=25&&S>.5||h===1&&T<75||h>1;if(s&&w){for(var A=0;A1)return w;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),WM=bf((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),J6=bf((e,t)=>{var n=VM(),r=WM();t.exports={Readability:n,isProbablyReaderable:r}}),Z6={};qM(Z6,{Readability:()=>I0,default:()=>ey,isProbablyReaderable:()=>$6});var X6=Q6(J6());zM(Z6,Q6(J6()));var{Readability:I0,isProbablyReaderable:$6}=X6,{default:Y6,...KM}=X6,ey=Y6!==void 0?Y6:KM;var yf=k0.alert;var Cs=console,vf=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Lr.green;r>1e4?a=Lr.red:r>1e3&&(a=Lr.yellow),Cs.debug(Lr.dim(uo+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},gl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Cs.log(Lr.dim(uo+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Cs.log(Lr.green(uo+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Cs.warn(Lr.yellow(uo+" WARN:"),...t)}error(...t){this.#e<=3&&Cs.error(Lr.red(uo+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Cs.error(Lr.red(uo+" FATAL:"),...t)}timing(){return this.level===0?new vf:{reset:()=>{},stop:()=>{}}}},k=new gl;function St(){try{let e=[Te().EBOOK_BUILDER_URL,Te().EBOOK_VIEWER_URL,Te().SUBTITLE_BUILDER_URL,Te().HTML_VIEWER_URL,Te().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];ya()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var F0={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.6",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var Cf=/iPhone/i,ty=/iPod/i,ny=/iPad/i,ry=/\biOS-universal(?:.+)Mac\b/i,Sf=/\bAndroid(?:.+)Mobile\b/i,ay=/Android/i,Ss=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,B0=/Silk/i,ni=/Windows Phone/i,iy=/\bWindows(?:.+)ARM\b/i,oy=/BlackBerry/i,sy=/BB10/i,uy=/Opera Mini/i,ly=/\b(CriOS|Chrome)(?:.+)Mobile/i,cy=/Mobile(?:.+)Firefox\b/i,dy=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function QM(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=QM(n),i={apple:{phone:a(Cf)&&!a(ni),ipod:a(ty),tablet:!a(Cf)&&(a(ny)||dy(t))&&!a(ni),universal:a(ry),device:(a(Cf)||a(ty)||a(ny)||a(ry)||dy(t))&&!a(ni)},amazon:{phone:a(Ss),tablet:!a(Ss)&&a(B0),device:a(Ss)||a(B0)},android:{phone:!a(ni)&&a(Ss)||!a(ni)&&a(Sf),tablet:!a(ni)&&!a(Ss)&&!a(Sf)&&(a(B0)||a(ay)),device:!a(ni)&&(a(Ss)||a(B0)||a(Sf)||a(ay))||a(/\bokhttp\b/i)},windows:{phone:a(ni),tablet:a(iy),device:a(ni)||a(iy)},other:{blackberry:a(oy),blackberry10:a(sy),opera:a(uy),firefox:a(cy),chrome:a(ly),device:a(oy)||a(sy)||a(uy)||a(cy)||a(ly)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var xf="DENO",_0="CHROME",O0="FIREFOX";function my(e){let t=_0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=O0:/deno/i.test(n)&&(t=xf)}catch{}return e===_0&&t===_0||e===O0&&t===O0||e===xf&&t===xf}function N0(){return my(_0)}function gy(){return typeof Deno<"u"}function Zn(){return Te().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:my(O0)}function vr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function py(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Kr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var fy={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},hy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:fy,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:fy,query:()=>{},sendMessage:()=>{}}};var j;gy()?j=hy:j=globalThis.immersiveTranslateBrowserAPI;var JM="";function On(){return JM||F0.version}function Pr(){return j.runtime.getManifest().version}function Tf(e){return e.replace(//g,">")}var xo=ie+"CacheKey_";function To(e,t){let n=xo+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function ZM(){let e=j.storage.local.refresh;e&&e()}function wf(e,t){let n=xo+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(xo)).filter(r=>r!==xo+mt);if(n.length>0)return j.storage.local.remove(n)}}var tt={get:To,set:wo,getExpired:wf,setExpired:Ef,remove:Af,clear:kf,refresh:ZM};function At(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function by(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function yy(e){if(e){let t=new Date(e.createTime),n=XM(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function XM(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function xs(e){if(e?.isPro)return!0;let t=await tt.get(mt,null);return At(t)}var or=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],Df={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},vy={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Lf={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Mf={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function re(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=or.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":or[a]}else return"auto";else return or[r]}function Ht(){return re(document?.documentElement?.lang||"en")}var U0=["caiyun","cai"],Cy=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Ts={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+b+"]"}return r.pop(),a=b,h}},bL={parse:cL,stringify:hL},yL=bL,w0=yL;var g6=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function vL(e,t){return!!(e===t||g6(e)&&g6(t))}function CL(e,t){if(e.length!==t.length)return!1;for(var n=0;n()=>(t||e((t={exports:{}}).exports,t),t.exports),kL=(e,t)=>{for(var n in t)Jp(e,n,{get:t[n],enumerable:!0})},Zp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of SL(t))!EL.call(e,a)&&a!==n&&Jp(e,a,{get:()=>t[a],enumerable:!(r=TL(t,a))||r.enumerable});return e},DL=(e,t,n)=>(Zp(e,t,"default"),n&&Zp(n,t,"default")),f6=(e,t,n)=>(n=e!=null?xL(wL(e)):{},Zp(t||!e||!e.__esModule?Jp(n,"default",{value:e,enumerable:!0}):n,e)),h6=AL((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof E0=="object"&&E0&&E0.Object===Object&&E0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(A,D,M){var R,_,F,L,U,I,q=0,$=!1,te=!1,Te=!0;if(typeof A!="function")throw new TypeError(n);D=w(D)||0,T(M)&&($=!!M.leading,te="maxWait"in M,F=te?b(w(M.maxWait)||0,D):F,Te="trailing"in M?!!M.trailing:Te);function pe(be){var he=R,Le=_;return R=_=void 0,q=be,L=A.apply(Le,he),L}function H(be){return q=be,U=setTimeout(_e,D),$?pe(be):L}function V(be){var he=be-I,Le=be-q,We=D-he;return te?y(We,F-Le):We}function Q(be){var he=be-I,Le=be-q;return I===void 0||he>=D||he<0||te&&Le>=F}function _e(){var be=h();if(Q(be))return ve(be);U=setTimeout(_e,V(be))}function ve(be){return U=void 0,Te&&R?pe(be):(R=_=void 0,L)}function $e(){U!==void 0&&clearTimeout(U),q=0,R=I=_=U=void 0}function X(){return U===void 0?L:ve(h())}function se(){var be=h(),he=Q(be);if(R=arguments,_=this,I=be,he){if(U===void 0)return H(I);if(te)return U=setTimeout(_e,D),pe(I)}return U===void 0&&(U=setTimeout(_e,D)),L}return se.cancel=$e,se.flush=X,se}function C(A,D,M){var R=!0,_=!0;if(typeof A!="function")throw new TypeError(n);return T(M)&&(R="leading"in M?!!M.leading:R,_="trailing"in M?!!M.trailing:_),v(A,D,{leading:R,maxWait:D,trailing:_})}function T(A){var D=typeof A;return!!A&&(D=="object"||D=="function")}function x(A){return!!A&&typeof A=="object"}function S(A){return typeof A=="symbol"||x(A)&&f.call(A)==a}function w(A){if(typeof A=="number")return A;if(S(A))return r;if(T(A)){var D=typeof A.valueOf=="function"?A.valueOf():A;A=T(D)?D+"":D}if(typeof A!="string")return A===0?A:+A;A=A.replace(i,"");var M=s.test(A);return M||u.test(A)?l(A.slice(2),M?2:8):o.test(A)?r:+A}t.exports=C}),b6={};kL(b6,{default:()=>yr});var LL=f6(h6());DL(b6,f6(h6()));var{default:p6,...ML}=LL,yr=p6!==void 0?p6:ML;var A0=globalThis||(typeof window<"u"?window:self),PL=Object.create,Qp=Object.defineProperty,_L=Object.getOwnPropertyDescriptor,RL=Object.getOwnPropertyNames,IL=Object.getPrototypeOf,FL=Object.prototype.hasOwnProperty,BL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),OL=(e,t)=>{for(var n in t)Qp(e,n,{get:t[n],enumerable:!0})},Xp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of RL(t))!FL.call(e,a)&&a!==n&&Qp(e,a,{get:()=>t[a],enumerable:!(r=_L(t,a))||r.enumerable});return e},NL=(e,t,n)=>(Xp(e,t,"default"),n&&Xp(n,t,"default")),v6=(e,t,n)=>(n=e!=null?PL(IL(e)):{},Xp(t||!e||!e.__esModule?Qp(n,"default",{value:e,enumerable:!0}):n,e)),C6=BL((e,t)=>{var n="Expected a function",r=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c=typeof A0=="object"&&A0&&A0.Object===Object&&A0,m=typeof self=="object"&&self&&self.Object===Object&&self,g=c||m||Function("return this")(),p=Object.prototype,f=p.toString,b=Math.max,y=Math.min,h=function(){return g.Date.now()};function v(w,A,D){var M,R,_,F,L,U,I=0,q=!1,$=!1,te=!0;if(typeof w!="function")throw new TypeError(n);A=S(A)||0,C(D)&&(q=!!D.leading,$="maxWait"in D,_=$?b(S(D.maxWait)||0,A):_,te="trailing"in D?!!D.trailing:te);function Te(se){var be=M,he=R;return M=R=void 0,I=se,F=w.apply(he,be),F}function pe(se){return I=se,L=setTimeout(Q,A),q?Te(se):F}function H(se){var be=se-U,he=se-I,Le=A-be;return $?y(Le,_-he):Le}function V(se){var be=se-U,he=se-I;return U===void 0||be>=A||be<0||$&&he>=_}function Q(){var se=h();if(V(se))return _e(se);L=setTimeout(Q,H(se))}function _e(se){return L=void 0,te&&M?Te(se):(M=R=void 0,F)}function ve(){L!==void 0&&clearTimeout(L),I=0,M=U=R=L=void 0}function $e(){return L===void 0?F:_e(h())}function X(){var se=h(),be=V(se);if(M=arguments,R=this,U=se,be){if(L===void 0)return pe(U);if($)return L=setTimeout(Q,A),Te(U)}return L===void 0&&(L=setTimeout(Q,A)),F}return X.cancel=ve,X.flush=$e,X}function C(w){var A=typeof w;return!!w&&(A=="object"||A=="function")}function T(w){return!!w&&typeof w=="object"}function x(w){return typeof w=="symbol"||T(w)&&f.call(w)==a}function S(w){if(typeof w=="number")return w;if(x(w))return r;if(C(w)){var A=typeof w.valueOf=="function"?w.valueOf():w;w=C(A)?A+"":A}if(typeof w!="string")return w===0?w:+w;w=w.replace(i,"");var D=s.test(w);return D||u.test(w)?l(w.slice(2),D?2:8):o.test(w)?r:+w}t.exports=v}),x6={};OL(x6,{default:()=>Bn});var UL=v6(C6());NL(x6,v6(C6()));var{default:y6,...jL}=UL,Bn=y6!==void 0?y6:jL;var HL=Object.create,tf=Object.defineProperty,qL=Object.getOwnPropertyDescriptor,zL=Object.getOwnPropertyNames,WL=Object.getPrototypeOf,VL=Object.prototype.hasOwnProperty,KL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),GL=(e,t)=>{for(var n in t)tf(e,n,{get:t[n],enumerable:!0})},ef=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zL(t))!VL.call(e,a)&&a!==n&&tf(e,a,{get:()=>t[a],enumerable:!(r=qL(t,a))||r.enumerable});return e},$L=(e,t,n)=>(ef(e,t,"default"),n&&ef(n,t,"default")),S6=(e,t,n)=>(n=e!=null?HL(WL(e)):{},ef(t||!e||!e.__esModule?tf(n,"default",{value:e,enumerable:!0}):n,e)),w6=KL((e,t)=>{(function(n,r){typeof e=="object"&&typeof t=="object"?t.exports=r():typeof define=="function"&&define.amd?define([],r):typeof e=="object"?e.notie=r():n.notie=r()})(e,function(){return function(n){function r(i){if(a[i])return a[i].exports;var o=a[i]={i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var a={};return r.m=n,r.c=a,r.i=function(i){return i},r.d=function(i,o,s){r.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(o,"a",o),o},r.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},r.p="",r(r.s=1)}([function(n,r){n.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(n,r,a){"use strict";(function(i){var o,s,u,l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,m){l(r)==="object"&&l(i)==="object"?i.exports=m():(s=[],o=m,u=typeof o=="function"?o.apply(r,s):o,u!==void 0&&(i.exports=u))})(void 0,function(){return function(c){function m(p){if(g[p])return g[p].exports;var f=g[p]={i:p,l:!1,exports:{}};return c[p].call(f.exports,f,f.exports,m),f.l=!0,f.exports}var g={};return m.m=c,m.c=g,m.i=function(p){return p},m.d=function(p,f,b){m.o(p,f)||Object.defineProperty(p,f,{configurable:!1,enumerable:!0,get:b})},m.n=function(p){var f=p&&p.__esModule?function(){return p.default}:function(){return p};return m.d(f,"a",f),f},m.o=function(p,f){return Object.prototype.hasOwnProperty.call(p,f)},m.p="",m(m.s=0)}([function(c,m,g){function p(H,V){var Q={};for(var _e in H)V.indexOf(_e)>=0||Object.prototype.hasOwnProperty.call(H,_e)&&(Q[_e]=H[_e]);return Q}Object.defineProperty(m,"__esModule",{value:!0});var f=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":l(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":l(H)},b=Object.assign||function(H){for(var V=1;V'+_e+"
",Le.onclick=function(){return _(We,he)},Le.listener=function(Z){(D(Z)||M(Z))&&U()},R(Le,he),$e&&$e<1&&($e=1),!se&&$e&&T($e).then(function(){return _(We,he)})},q=m.force=function(H,V){var Q=H.type,_e=Q===void 0?5:Q,ve=H.text,$e=H.buttonText,X=$e===void 0?"OK":$e,se=H.callback,be=H.position,he=be===void 0?h.positions.force||he.top:be;x(),U();var Le=document.createElement("div"),We=S();Le.id=We;var Z=document.createElement("div");Z.classList.add(h.classes.textbox),Z.classList.add(h.classes.backgroundInfo),Z.innerHTML='
'+ve+"
";var Ee=document.createElement("div");Ee.classList.add(h.classes.button),Ee.classList.add(w[_e]),Ee.innerHTML=X,Ee.onclick=function(){_(We,he),L(),se?se():V&&V()},Le.appendChild(Z),Le.appendChild(Ee),Le.listener=function(vt){D(vt)&&Ee.click()},R(Le,he),F()},$=m.confirm=function(H,V,Q){var _e=H.text,ve=H.submitText,$e=ve===void 0?"Yes":ve,X=H.cancelText,se=X===void 0?"Cancel":X,be=H.submitCallback,he=H.cancelCallback,Le=H.position,We=Le===void 0?h.positions.confirm||We.top:Le;x(),U();var Z=document.createElement("div"),Ee=S();Z.id=Ee;var vt=document.createElement("div");vt.classList.add(h.classes.textbox),vt.classList.add(h.classes.backgroundInfo),vt.innerHTML='
'+_e+"
";var st=document.createElement("div");st.classList.add(h.classes.button),st.classList.add(h.classes.elementHalf),st.classList.add(h.classes.backgroundSuccess),st.innerHTML=$e,st.onclick=function(){_(Ee,We),L(),be?be():V&&V()};var De=document.createElement("div");De.classList.add(h.classes.button),De.classList.add(h.classes.elementHalf),De.classList.add(h.classes.backgroundError),De.innerHTML=se,De.onclick=function(){_(Ee,We),L(),he?he():Q&&Q()},Z.appendChild(vt),Z.appendChild(st),Z.appendChild(De),Z.listener=function(Nt){D(Nt)?st.click():M(Nt)&&De.click()},R(Z,We),F(Z,We)},te=function(H,V,Q){var _e=H.text,ve=H.submitText,$e=ve===void 0?"Submit":ve,X=H.cancelText,se=X===void 0?"Cancel":X,be=H.submitCallback,he=H.cancelCallback,Le=H.position,We=Le===void 0?h.positions.input||We.top:Le,Z=p(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);x(),U();var Ee=document.createElement("div"),vt=S();Ee.id=vt;var st=document.createElement("div");st.classList.add(h.classes.textbox),st.classList.add(h.classes.backgroundInfo),st.innerHTML='
'+_e+"
";var De=document.createElement("input");De.classList.add(h.classes.inputField),De.setAttribute("autocapitalize",Z.autocapitalize||"none"),De.setAttribute("autocomplete",Z.autocomplete||"off"),De.setAttribute("autocorrect",Z.autocorrect||"off"),De.setAttribute("autofocus",Z.autofocus||"true"),De.setAttribute("inputmode",Z.inputmode||"verbatim"),De.setAttribute("max",Z.max||""),De.setAttribute("maxlength",Z.maxlength||""),De.setAttribute("min",Z.min||""),De.setAttribute("minlength",Z.minlength||""),De.setAttribute("placeholder",Z.placeholder||""),De.setAttribute("spellcheck",Z.spellcheck||"default"),De.setAttribute("step",Z.step||"any"),De.setAttribute("type",Z.type||"text"),De.value=Z.value||"",Z.allowed&&(De.oninput=function(){var Vt=void 0;if(Array.isArray(Z.allowed)){for(var Xt="",Wn=Z.allowed,kr=0;kr'+Q+"
",he.appendChild(We),X.forEach(function(Ee,vt){var st=Ee.type,De=st===void 0?1:st,Nt=Ee.text,mn=Ee.handler,Vt=document.createElement("div");Vt.classList.add(w[De]),Vt.classList.add(h.classes.button),Vt.classList.add(h.classes.selectChoice);var Xt=X[vt+1];Xt&&!Xt.type&&(Xt.type=1),Xt&&Xt.type===De&&Vt.classList.add(h.classes.selectChoiceRepeated),Vt.innerHTML=Nt,Vt.onclick=function(){_(Le,be),L(),mn()},he.appendChild(Vt)});var Z=document.createElement("div");Z.classList.add(h.classes.backgroundNeutral),Z.classList.add(h.classes.button),Z.innerHTML=ve,Z.onclick=function(){_(Le,be),L(),$e?$e():V&&V()},he.appendChild(Z),he.listener=function(Ee){M(Ee)&&Z.click()},R(he,be),F(he,be)},pe=m.date=function(H,V,Q){var _e=H.value,ve=_e===void 0?new Date:_e,$e=H.submitText,X=$e===void 0?"OK":$e,se=H.cancelText,be=se===void 0?"Cancel":se,he=H.submitCallback,Le=H.cancelCallback,We=H.position,Z=We===void 0?h.positions.date||Z.top:We;x(),U();var Ee="▾",vt=document.createElement("div"),st=document.createElement("div"),De=document.createElement("div"),Nt=function(Ut){vt.innerHTML=h.dateMonths[Ut.getMonth()],st.innerHTML=Ut.getDate(),De.innerHTML=Ut.getFullYear()},mn=function(Ut){var Ct=new Date(ve.getFullYear(),ve.getMonth()+1,0).getDate(),fr=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(fr)>Ct&&(fr=Ct.toString()),Ut.target.textContent=fr,Number(fr)<1&&(fr="1"),ve.setDate(Number(fr))},Vt=function(Ut){var Ct=Ut.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ut.target.textContent=Ct,ve.setFullYear(Number(Ct))},Xt=function(Ut){Nt(ve)},Wn=function(Ut){var Ct=new Date(ve.getFullYear(),ve.getMonth()+Ut+1,0).getDate();ve.getDate()>Ct&&ve.setDate(Ct),ve.setMonth(ve.getMonth()+Ut),Nt(ve)},kr=function(Ut){ve.setDate(ve.getDate()+Ut),Nt(ve)},Eu=function(Ut){var Ct=ve.getFullYear()+Ut;Ct<0?ve.setFullYear(0):ve.setFullYear(ve.getFullYear()+Ut),Nt(ve)},ba=document.createElement("div"),oo=S();ba.id=oo;var Yo=document.createElement("div");Yo.classList.add(h.classes.backgroundInfo);var _n=document.createElement("div");_n.classList.add(h.classes.dateSelectorInner);var Ur=document.createElement("div");Ur.classList.add(h.classes.button),Ur.classList.add(h.classes.elementThird),Ur.classList.add(h.classes.dateSelectorUp),Ur.innerHTML=Ee;var Rn=document.createElement("div");Rn.classList.add(h.classes.button),Rn.classList.add(h.classes.elementThird),Rn.classList.add(h.classes.dateSelectorUp),Rn.innerHTML=Ee;var pr=document.createElement("div");pr.classList.add(h.classes.button),pr.classList.add(h.classes.elementThird),pr.classList.add(h.classes.dateSelectorUp),pr.innerHTML=Ee,vt.classList.add(h.classes.element),vt.classList.add(h.classes.elementThird),vt.innerHTML=h.dateMonths[ve.getMonth()],st.classList.add(h.classes.element),st.classList.add(h.classes.elementThird),st.setAttribute("contentEditable",!0),st.addEventListener("input",mn),st.addEventListener("blur",Xt),st.innerHTML=ve.getDate(),De.classList.add(h.classes.element),De.classList.add(h.classes.elementThird),De.setAttribute("contentEditable",!0),De.addEventListener("input",Vt),De.addEventListener("blur",Xt),De.innerHTML=ve.getFullYear();var za=document.createElement("div");za.classList.add(h.classes.button),za.classList.add(h.classes.elementThird),za.innerHTML=Ee;var Wa=document.createElement("div");Wa.classList.add(h.classes.button),Wa.classList.add(h.classes.elementThird),Wa.innerHTML=Ee;var so=document.createElement("div");so.classList.add(h.classes.button),so.classList.add(h.classes.elementThird),so.innerHTML=Ee,Ur.onclick=function(){return Wn(1)},Rn.onclick=function(){return kr(1)},pr.onclick=function(){return Eu(1)},za.onclick=function(){return Wn(-1)},Wa.onclick=function(){return kr(-1)},so.onclick=function(){return Eu(-1)};var Vn=document.createElement("div");Vn.classList.add(h.classes.button),Vn.classList.add(h.classes.elementHalf),Vn.classList.add(h.classes.backgroundSuccess),Vn.innerHTML=X,Vn.onclick=function(){_(oo,Z),L(),he?he(ve):V&&V(ve)};var Va=document.createElement("div");Va.classList.add(h.classes.button),Va.classList.add(h.classes.elementHalf),Va.classList.add(h.classes.backgroundError),Va.innerHTML=be,Va.onclick=function(){_(oo,Z),L(),Le?Le(ve):Q&&Q(ve)},_n.appendChild(Ur),_n.appendChild(Rn),_n.appendChild(pr),_n.appendChild(vt),_n.appendChild(st),_n.appendChild(De),_n.appendChild(za),_n.appendChild(Wa),_n.appendChild(so),Yo.appendChild(_n),ba.appendChild(Yo),ba.appendChild(Vn),ba.appendChild(Va),ba.listener=function(Ut){D(Ut)?Vn.click():M(Ut)&&Va.click()},R(ba,Z),F(ba,Z)};m.default={alert:I,force:q,confirm:$,input:te,select:Te,date:pe,setOptions:v,hideAlerts:U}}])})}).call(r,a(0)(n))}])})}),E6={};GL(E6,{default:()=>k0});var YL=S6(w6());$L(E6,S6(w6()));var{default:T6,...ZL}=YL,k0=T6!==void 0?T6:ZL;var D0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function ul(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent(`on${t}`,()=>{n(window.event)})}function nf(e,t){let n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function A6(e,t){let n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,a=!0;for(let i=0;ibs[e.toLowerCase()]||Wr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),JL=e=>Object.keys(bs).find(t=>bs[t]===e),XL=e=>Object.keys(Wr).find(t=>Wr[t]===e);function _6(e){M6=e||"all"}function ll(){return M6||"all"}function QL(){return wt.slice(0)}function eM(){return wt.map(e=>JL(e)||XL(e)||String.fromCharCode(e))}function tM(){let e=[];return Object.keys(jt).forEach(t=>{jt[t].forEach(({key:n,scope:r,mods:a,shortcut:i})=>{e.push({scope:r,shortcut:i,mods:a,keys:n.split("+").map(o=>cl(o))})})}),e}function nM(e){let t=e.target||e.srcElement,{tagName:n}=t,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function rM(e){return typeof e=="string"&&(e=cl(e)),wt.indexOf(e)!==-1}function aM(e,t){let n,r;e||(e=ll());for(let a in jt)if(Object.prototype.hasOwnProperty.call(jt,a))for(n=jt[a],r=0;r=0&&wt.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&wt.splice(0,wt.length),(t===93||t===224)&&(t=91),t in xn){xn[t]=!1;for(let r in Wr)Wr[r]===t&&(ti[r]=!1)}}function R6(e,...t){if(typeof e>"u")Object.keys(jt).forEach(n=>delete jt[n]);else if(Array.isArray(e))e.forEach(n=>{n.key&&af(n)});else if(typeof e=="object")e.key&&af(e);else if(typeof e=="string"){let[n,r]=t;typeof n=="function"&&(r=n,n=""),af({key:e,scope:n,method:r,splitKey:"+"})}}var af=({key:e,scope:t,method:n,splitKey:r="+"})=>{rf(e).forEach(i=>{let o=i.split(r),s=o.length,u=o[s-1],l=u==="*"?"*":cl(u);if(!jt[l])return;t||(t=ll());let c=s>1?nf(Wr,o):[];jt[l]=jt[l].filter(m=>!((n?m.method===n:!0)&&m.scope===t&&A6(m.mods,c)))})};function D6(e,t,n,r){if(t.element!==r)return;let a;if(t.scope===n||t.scope==="all"){a=t.mods.length>0;for(let i in xn)Object.prototype.hasOwnProperty.call(xn,i)&&(!xn[i]&&t.mods.indexOf(+i)>-1||xn[i]&&t.mods.indexOf(+i)===-1)&&(a=!1);(t.mods.length===0&&!xn[16]&&!xn[18]&&!xn[17]&&!xn[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(wt),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function L6(e,t){let n=jt["*"],r=e.keyCode||e.which||e.charCode;if(!ti.filter.call(this,e))return;if((r===93||r===224)&&(r=91),wt.indexOf(r)===-1&&r!==229&&wt.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(i=>{let o=L0[i];e[i]&&wt.indexOf(o)===-1?wt.push(o):!e[i]&&wt.indexOf(o)>-1?wt.splice(wt.indexOf(o),1):i==="metaKey"&&e[i]&&wt.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(wt=wt.slice(wt.indexOf(o))))}),r in xn){xn[r]=!0;for(let i in Wr)Wr[i]===r&&(ti[i]=!0);if(!n)return}for(let i in xn)Object.prototype.hasOwnProperty.call(xn,i)&&(xn[i]=e[L0[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(wt.indexOf(17)===-1&&wt.push(17),wt.indexOf(18)===-1&&wt.push(18),xn[17]=!0,xn[18]=!0);let a=ll();if(n)for(let i=0;i-1}function ti(e,t,n){wt=[];let r=rf(e),a=[],i="all",o=document,s=0,u=!1,l=!0,c="+",m=!1,g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(i=t.scope),t.element&&(o=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(l=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(i=t),g&&R6(e,i);s1&&(a=nf(Wr,e)),e=e[e.length-1],e=e==="*"?"*":cl(e),e in jt||(jt[e]=[]),jt[e].push({keyup:u,keydown:l,scope:i,mods:a,shortcut:r[s],method:n,key:r[s],splitKey:c,element:o});typeof o<"u"&&!oM(o)&&window&&(P6.push(o),ul(o,"keydown",p=>{L6(p,o)},m),k6||(k6=!0,ul(window,"focus",()=>{wt=[]},m),ul(window,"click",()=>{wt=[]},!1)),ul(o,"keyup",p=>{L6(p,o),iM(p)},m))}function sM(e,t="all"){Object.keys(jt).forEach(n=>{jt[n].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}var of={getPressedKeyString:eM,setScope:_6,getScope:ll,deleteScope:aM,getPressedKeyCodes:QL,getAllKeyCodes:tM,isPressed:rM,filter:nM,trigger:sM,unbind:R6,keyMap:bs,modifier:Wr,modifierMap:L0};for(let e in of)Object.prototype.hasOwnProperty.call(of,e)&&(ti[e]=of[e]);if(typeof window<"u"){let e=window.hotkeys;ti.noConflict=t=>(t&&window.hotkeys===ti&&(window.hotkeys=e),ti),window.hotkeys=ti}var $t=ti;var uM={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},F6={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Yn={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ai={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let r=G.getVersionPrecision(e),a=G.getVersionPrecision(t),i=Math.max(r,a),o=0,s=G.map([e,t],u=>{let l=i-G.getVersionPrecision(u),c=u+new Array(l+1).join(".0");return G.map(c.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=i-Math.min(r,a)),i-=1;i>=o;){if(s[0][i]>s[1][i])return 1;if(s[0][i]===s[1][i]){if(i===o)return 0;i-=1}else if(s[0][i]{n[o]=i[o]})}return e}static getBrowserAlias(e){return uM[e]}static getBrowserTypeByAlias(e){return F6[e]||""}},Et=/version\/(\d+(\.?_?\d+)+)/i,lM=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(Et,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(Et,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(r,e),version:G.getSecondMatch(r,e)}}}],cM=lM,dM=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Yn.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Yn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:Yn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Yn.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),r={name:Yn.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Yn.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),r={name:Yn.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Yn.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:Yn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Yn.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Yn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Yn.Linux}}},{test:[/CrOS/],describe(){return{name:Yn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Yn.PlayStation4,version:t}}}],mM=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],gM=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ai.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ai.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ai.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ai.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ai.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ai.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ai.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],pM=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(cM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(dM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(mM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(gM,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,r={},a=0;if(Object.keys(e).forEach(i=>{let o=e[i];typeof o=="string"?(r[i]=o,a+=1):typeof o=="object"&&(t[i]=o,n+=1)}),n>0){let i=Object.keys(t),o=G.find(i,u=>this.isOS(u));if(o){let u=this.satisfies(t[o]);if(u!==void 0)return u}let s=G.find(i,u=>this.isPlatform(u));if(s){let u=this.satisfies(t[s]);if(u!==void 0)return u}}if(a>0){let i=Object.keys(r),o=G.find(i,s=>this.isBrowser(s,!0));if(o!==void 0)return this.compareVersion(r[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),a=G.getBrowserTypeByAlias(r);return t&&a&&(r=a.toLowerCase()),r===n}compareVersion(e){let t=[0],n=e,r=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(r=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(r=!0,n=e.substr(1)),t.indexOf(G.compareVersions(a,n,r))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},I6=pM,fM=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new I6(e,t)}static parse(e){return new I6(e).getResult()}static get BROWSER_MAP(){return F6}static get ENGINE_MAP(){return Ai}static get OS_MAP(){return Yn}static get PLATFORMS_MAP(){return nn}},ys=fM;var{entries:z6,setPrototypeOf:B6,isFrozen:hM,getPrototypeOf:bM,getOwnPropertyDescriptor:yM}=Object,{freeze:Zn,seal:Kr,create:vM}=Object,{apply:mf,construct:gf}=typeof Reflect<"u"&&Reflect;mf||(mf=function(e,t,n){return e.apply(t,n)});Zn||(Zn=function(e){return e});Kr||(Kr=function(e){return e});gf||(gf=function(e,t){return new e(...t)});var CM=Pr(Array.prototype.forEach),O6=Pr(Array.prototype.pop),dl=Pr(Array.prototype.push),_0=Pr(String.prototype.toLowerCase),sf=Pr(String.prototype.toString),xM=Pr(String.prototype.match),Vr=Pr(String.prototype.replace),TM=Pr(String.prototype.indexOf),SM=Pr(String.prototype.trim),vr=Pr(RegExp.prototype.test),ml=wM(TypeError);function Pr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a/gm),LM=Kr(/\${[\w\W]*}/gm),MM=Kr(/^data-[\-\w.\u00B7-\uFFFF]/),PM=Kr(/^aria-[\-\w]+$/),W6=Kr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_M=Kr(/^(?:\w+script|data):/i),RM=Kr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V6=Kr(/^html$/i),q6=Object.freeze({__proto__:null,MUSTACHE_EXPR:kM,ERB_EXPR:DM,TMPLIT_EXPR:LM,DATA_ATTR:MM,ARIA_ATTR:PM,IS_ALLOWED_URI:W6,IS_SCRIPT_OR_DATA:_M,ATTR_WHITESPACE:RM,DOCTYPE_NAME:V6}),IM=()=>typeof window>"u"?null:window,FM=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return null}};function K6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IM(),t=B=>K6(B);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,r=n.currentScript,{document:a}=e,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:p}=e,f=u.prototype,b=M0(f,"cloneNode"),y=M0(f,"nextSibling"),h=M0(f,"childNodes"),v=M0(f,"parentNode");if(typeof o=="function"){let B=a.createElement("template");B.content&&B.content.ownerDocument&&(a=B.content.ownerDocument)}let C,T="",{implementation:x,createNodeIterator:S,createDocumentFragment:w,getElementsByTagName:A}=a,{importNode:D}=n,M={};t.isSupported=typeof z6=="function"&&typeof v=="function"&&x&&x.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:_,TMPLIT_EXPR:F,DATA_ATTR:L,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:q}=q6,{IS_ALLOWED_URI:$}=q6,te=null,Te=Ge({},[...N6,...uf,...lf,...cf,...U6]),pe=null,H=Ge({},[...j6,...df,...H6,...P0]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,_e=null,ve=!0,$e=!0,X=!1,se=!0,be=!1,he=!1,Le=!1,We=!1,Z=!1,Ee=!1,vt=!1,st=!0,De=!1,Nt="user-content-",mn=!0,Vt=!1,Xt={},Wn=null,kr=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Eu=null,ba=Ge({},["audio","video","img","source","image","track"]),oo=null,Yo=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_n="http://www.w3.org/1998/Math/MathML",Ur="http://www.w3.org/2000/svg",Rn="http://www.w3.org/1999/xhtml",pr=Rn,za=!1,Wa=null,so=Ge({},[_n,Ur,Rn],sf),Vn,Va=["application/xhtml+xml","text/html"],Ut="text/html",Ct,fr=null,v7=a.createElement("form"),V1=function(B){return B instanceof RegExp||B instanceof Function},wg=function(B){if(!(fr&&fr===B)){if((!B||typeof B!="object")&&(B={}),B=vs(B),Vn=Va.indexOf(B.PARSER_MEDIA_TYPE)===-1?Vn=Ut:Vn=B.PARSER_MEDIA_TYPE,Ct=Vn==="application/xhtml+xml"?sf:_0,te="ALLOWED_TAGS"in B?Ge({},B.ALLOWED_TAGS,Ct):Te,pe="ALLOWED_ATTR"in B?Ge({},B.ALLOWED_ATTR,Ct):H,Wa="ALLOWED_NAMESPACES"in B?Ge({},B.ALLOWED_NAMESPACES,sf):so,oo="ADD_URI_SAFE_ATTR"in B?Ge(vs(Yo),B.ADD_URI_SAFE_ATTR,Ct):Yo,Eu="ADD_DATA_URI_TAGS"in B?Ge(vs(ba),B.ADD_DATA_URI_TAGS,Ct):ba,Wn="FORBID_CONTENTS"in B?Ge({},B.FORBID_CONTENTS,Ct):kr,Q="FORBID_TAGS"in B?Ge({},B.FORBID_TAGS,Ct):{},_e="FORBID_ATTR"in B?Ge({},B.FORBID_ATTR,Ct):{},Xt="USE_PROFILES"in B?B.USE_PROFILES:!1,ve=B.ALLOW_ARIA_ATTR!==!1,$e=B.ALLOW_DATA_ATTR!==!1,X=B.ALLOW_UNKNOWN_PROTOCOLS||!1,se=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=B.SAFE_FOR_TEMPLATES||!1,he=B.WHOLE_DOCUMENT||!1,Z=B.RETURN_DOM||!1,Ee=B.RETURN_DOM_FRAGMENT||!1,vt=B.RETURN_TRUSTED_TYPE||!1,We=B.FORCE_BODY||!1,st=B.SANITIZE_DOM!==!1,De=B.SANITIZE_NAMED_PROPS||!1,mn=B.KEEP_CONTENT!==!1,Vt=B.IN_PLACE||!1,$=B.ALLOWED_URI_REGEXP||W6,pr=B.NAMESPACE||Rn,V=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&V1(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&V1(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&($e=!1),Ee&&(Z=!0),Xt&&(te=Ge({},[...U6]),pe=[],Xt.html===!0&&(Ge(te,N6),Ge(pe,j6)),Xt.svg===!0&&(Ge(te,uf),Ge(pe,df),Ge(pe,P0)),Xt.svgFilters===!0&&(Ge(te,lf),Ge(pe,df),Ge(pe,P0)),Xt.mathMl===!0&&(Ge(te,cf),Ge(pe,H6),Ge(pe,P0))),B.ADD_TAGS&&(te===Te&&(te=vs(te)),Ge(te,B.ADD_TAGS,Ct)),B.ADD_ATTR&&(pe===H&&(pe=vs(pe)),Ge(pe,B.ADD_ATTR,Ct)),B.ADD_URI_SAFE_ATTR&&Ge(oo,B.ADD_URI_SAFE_ATTR,Ct),B.FORBID_CONTENTS&&(Wn===kr&&(Wn=vs(Wn)),Ge(Wn,B.FORBID_CONTENTS,Ct)),mn&&(te["#text"]=!0),he&&Ge(te,["html","head","body"]),te.table&&(Ge(te,["tbody"]),delete Q.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw ml('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ml('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=B.TRUSTED_TYPES_POLICY,T=C.createHTML("")}else C===void 0&&(C=FM(p,r)),C!==null&&typeof T=="string"&&(T=C.createHTML(""));Zn&&Zn(B),fr=B}},K1=Ge({},["mi","mo","mn","ms","mtext"]),G1=Ge({},["foreignobject","desc","title","annotation-xml"]),C7=Ge({},["title","style","font","a","script"]),Lc=Ge({},uf);Ge(Lc,lf),Ge(Lc,EM);let Eg=Ge({},cf);Ge(Eg,AM);let x7=function(B){let ge=v(B);(!ge||!ge.tagName)&&(ge={namespaceURI:pr,tagName:"template"});let ae=_0(B.tagName),dt=_0(ge.tagName);return Wa[B.namespaceURI]?B.namespaceURI===Ur?ge.namespaceURI===Rn?ae==="svg":ge.namespaceURI===_n?ae==="svg"&&(dt==="annotation-xml"||K1[dt]):!!Lc[ae]:B.namespaceURI===_n?ge.namespaceURI===Rn?ae==="math":ge.namespaceURI===Ur?ae==="math"&&G1[dt]:!!Eg[ae]:B.namespaceURI===Rn?ge.namespaceURI===Ur&&!G1[dt]||ge.namespaceURI===_n&&!K1[dt]?!1:!Eg[ae]&&(C7[ae]||!Lc[ae]):!!(Vn==="application/xhtml+xml"&&Wa[B.namespaceURI]):!1},Zo=function(B){dl(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},Ag=function(B,ge){try{dl(t.removed,{attribute:ge.getAttributeNode(B),from:ge})}catch{dl(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(B),B==="is"&&!pe[B])if(Z||Ee)try{Zo(ge)}catch{}else try{ge.setAttribute(B,"")}catch{}},$1=function(B){let ge,ae;if(We)B=""+B;else{let Kn=xM(B,/^[\r\n\t ]+/);ae=Kn&&Kn[0]}Vn==="application/xhtml+xml"&&pr===Rn&&(B=''+B+"");let dt=C?C.createHTML(B):B;if(pr===Rn)try{ge=new g().parseFromString(dt,Vn)}catch{}if(!ge||!ge.documentElement){ge=x.createDocument(pr,"template",null);try{ge.documentElement.innerHTML=za?T:dt}catch{}}let gn=ge.body||ge.documentElement;return B&&ae&&gn.insertBefore(a.createTextNode(ae),gn.childNodes[0]||null),pr===Rn?A.call(ge,he?"html":"body")[0]:he?ge.documentElement:gn},Y1=function(B){return S.call(B.ownerDocument||B,B,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},T7=function(B){return B instanceof m&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},Mc=function(B){return typeof s=="object"?B instanceof s:B&&typeof B=="object"&&typeof B.nodeType=="number"&&typeof B.nodeName=="string"},Ka=function(B,ge,ae){M[B]&&CM(M[B],dt=>{dt.call(t,ge,ae,fr)})},Z1=function(B){let ge;if(Ka("beforeSanitizeElements",B,null),T7(B))return Zo(B),!0;let ae=Ct(B.nodeName);if(Ka("uponSanitizeElement",B,{tagName:ae,allowedTags:te}),B.hasChildNodes()&&!Mc(B.firstElementChild)&&(!Mc(B.content)||!Mc(B.content.firstElementChild))&&vr(/<[/\w]/g,B.innerHTML)&&vr(/<[/\w]/g,B.textContent))return Zo(B),!0;if(!te[ae]||Q[ae]){if(!Q[ae]&&X1(ae)&&(V.tagNameCheck instanceof RegExp&&vr(V.tagNameCheck,ae)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ae)))return!1;if(mn&&!Wn[ae]){let dt=v(B)||B.parentNode,gn=h(B)||B.childNodes;if(gn&&dt){let Kn=gn.length;for(let ar=Kn-1;ar>=0;--ar)dt.insertBefore(b(gn[ar],!0),y(B))}}return Zo(B),!0}return B instanceof u&&!x7(B)||(ae==="noscript"||ae==="noembed")&&vr(/<\/no(script|embed)/i,B.innerHTML)?(Zo(B),!0):(be&&B.nodeType===3&&(ge=B.textContent,ge=Vr(ge,R," "),ge=Vr(ge,_," "),ge=Vr(ge,F," "),B.textContent!==ge&&(dl(t.removed,{element:B.cloneNode()}),B.textContent=ge)),Ka("afterSanitizeElements",B,null),!1)},J1=function(B,ge,ae){if(st&&(ge==="id"||ge==="name")&&(ae in a||ae in v7))return!1;if(!($e&&!_e[ge]&&vr(L,ge))&&!(ve&&vr(U,ge))){if(!pe[ge]||_e[ge]){if(!(X1(B)&&(V.tagNameCheck instanceof RegExp&&vr(V.tagNameCheck,B)||V.tagNameCheck instanceof Function&&V.tagNameCheck(B))&&(V.attributeNameCheck instanceof RegExp&&vr(V.attributeNameCheck,ge)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(ge))||ge==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&vr(V.tagNameCheck,ae)||V.tagNameCheck instanceof Function&&V.tagNameCheck(ae))))return!1}else if(!oo[ge]&&!vr($,Vr(ae,q,""))&&!((ge==="src"||ge==="xlink:href"||ge==="href")&&B!=="script"&&TM(ae,"data:")===0&&Eu[B])&&!(X&&!vr(I,Vr(ae,q,"")))&&ae)return!1}return!0},X1=function(B){return B.indexOf("-")>0},Q1=function(B){let ge,ae,dt,gn;Ka("beforeSanitizeAttributes",B,null);let{attributes:Kn}=B;if(!Kn)return;let ar={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:pe};for(gn=Kn.length;gn--;){ge=Kn[gn];let{name:vn,namespaceURI:Jo}=ge;if(ae=vn==="value"?ge.value:SM(ge.value),dt=Ct(vn),ar.attrName=dt,ar.attrValue=ae,ar.keepAttr=!0,ar.forceKeepAttr=void 0,Ka("uponSanitizeAttribute",B,ar),ae=ar.attrValue,ar.forceKeepAttr||(Ag(vn,B),!ar.keepAttr))continue;if(!se&&vr(/\/>/i,ae)){Ag(vn,B);continue}be&&(ae=Vr(ae,R," "),ae=Vr(ae,_," "),ae=Vr(ae,F," "));let e2=Ct(B.nodeName);if(J1(e2,dt,ae)){if(De&&(dt==="id"||dt==="name")&&(Ag(vn,B),ae=Nt+ae),C&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Jo)switch(p.getAttributeType(e2,dt)){case"TrustedHTML":{ae=C.createHTML(ae);break}case"TrustedScriptURL":{ae=C.createScriptURL(ae);break}}try{Jo?B.setAttributeNS(Jo,vn,ae):B.setAttribute(vn,ae),O6(t.removed)}catch{}}}Ka("afterSanitizeAttributes",B,null)},S7=function B(ge){let ae,dt=Y1(ge);for(Ka("beforeSanitizeShadowDOM",ge,null);ae=dt.nextNode();)Ka("uponSanitizeShadowNode",ae,null),!Z1(ae)&&(ae.content instanceof i&&B(ae.content),Q1(ae));Ka("afterSanitizeShadowDOM",ge,null)};return t.sanitize=function(B){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae,dt,gn,Kn;if(za=!B,za&&(B=""),typeof B!="string"&&!Mc(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw ml("dirty is not a string, aborting")}else throw ml("toString is not a function");if(!t.isSupported)return B;if(Le||wg(ge),t.removed=[],typeof B=="string"&&(Vt=!1),Vt){if(B.nodeName){let Jo=Ct(B.nodeName);if(!te[Jo]||Q[Jo])throw ml("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof s)ae=$1(""),dt=ae.ownerDocument.importNode(B,!0),dt.nodeType===1&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?ae=dt:ae.appendChild(dt);else{if(!Z&&!be&&!he&&B.indexOf("<")===-1)return C&&vt?C.createHTML(B):B;if(ae=$1(B),!ae)return Z?null:vt?T:""}ae&&We&&Zo(ae.firstChild);let ar=Y1(Vt?B:ae);for(;gn=ar.nextNode();)Z1(gn)||(gn.content instanceof i&&S7(gn.content),Q1(gn));if(Vt)return B;if(Z){if(Ee)for(Kn=w.call(ae.ownerDocument);ae.firstChild;)Kn.appendChild(ae.firstChild);else Kn=ae;return(pe.shadowroot||pe.shadowrootmod)&&(Kn=D.call(n,Kn,!0)),Kn}let vn=he?ae.outerHTML:ae.innerHTML;return he&&te["!doctype"]&&ae.ownerDocument&&ae.ownerDocument.doctype&&ae.ownerDocument.doctype.name&&vr(V6,ae.ownerDocument.doctype.name)&&(vn=" +`+vn),be&&(vn=Vr(vn,R," "),vn=Vr(vn,_," "),vn=Vr(vn,F," ")),C&&vt?C.createHTML(vn):vn},t.setConfig=function(B){wg(B),Le=!0},t.clearConfig=function(){fr=null,Le=!1},t.isValidAttribute=function(B,ge,ae){fr||wg({});let dt=Ct(B),gn=Ct(ge);return J1(dt,gn,ae)},t.addHook=function(B,ge){typeof ge=="function"&&(M[B]=M[B]||[],dl(M[B],ge))},t.removeHook=function(B){if(M[B])return O6(M[B])},t.removeHooks=function(B){M[B]&&(M[B]=[])},t.removeAllHooks=function(){M={}},t}var lt=K6();var BM=Object.create,ff=Object.defineProperty,OM=Object.getOwnPropertyDescriptor,NM=Object.getOwnPropertyNames,UM=Object.getPrototypeOf,jM=Object.prototype.hasOwnProperty,hf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HM=(e,t)=>{for(var n in t)ff(e,n,{get:t[n],enumerable:!0})},pf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of NM(t))!jM.call(e,a)&&a!==n&&ff(e,a,{get:()=>t[a],enumerable:!(r=OM(t,a))||r.enumerable});return e},qM=(e,t,n)=>(pf(e,t,"default"),n&&pf(n,t,"default")),$6=(e,t,n)=>(n=e!=null?BM(UM(e)):{},pf(t||!e||!e.__esModule?ff(n,"default",{value:e,enumerable:!0}):n,e)),zM=hf((e,t)=>{function n(r,a){if(a&&a.documentElement)r=a,a=arguments[2];else if(!r||!r.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(a=a||{},this._doc=r,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!a.debug,this._maxElemsToParse=a.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=a.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=a.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(a.classesToPreserve||[]),this._keepClasses=!!a.keepClasses,this._serializer=a.serializer||function(i){return i.innerHTML},this._disableJSONLD=!!a.disableJSONLD,this._allowedVideoRegex=a.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let i=function(o){if(o.nodeType==o.TEXT_NODE)return`${o.nodeName} ("${o.textContent}")`;let s=Array.from(o.attributes||[],function(u){return`${u.name}="${u.value}"`}).join(" ");return`<${o.localName} ${s}>`};this.log=function(){if(typeof console<"u")Array.from(arguments,u=>u&&u.nodeType==this.ELEMENT_NODE?i(u):u).unshift("Reader: (Readability)");else if(typeof dump<"u"){var o=Array.prototype.map.call(arguments,function(s){return s&&s.nodeName?i(s):s}).join(" ");dump("Reader: (Readability) "+o+` +`)}}}else this.log=function(){}}n.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(r){this._fixRelativeUris(r),this._simplifyNestedElements(r),this._keepClasses||this._cleanClasses(r)},_removeNodes:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=r.length-1;i>=0;i--){var o=r[i],s=o.parentNode;s&&(!a||a.call(this,o,i,r))&&s.removeChild(o)}},_replaceNodeTags:function(r,a){if(this._docJSDOMParser&&r._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(let i of r)this._setNodeTag(i,a)},_forEachNode:function(r,a){Array.prototype.forEach.call(r,a,this)},_findNode:function(r,a){return Array.prototype.find.call(r,a,this)},_someNode:function(r,a){return Array.prototype.some.call(r,a,this)},_everyNode:function(r,a){return Array.prototype.every.call(r,a,this)},_concatNodeLists:function(){var r=Array.prototype.slice,a=r.call(arguments),i=a.map(function(o){return r.call(o)});return Array.prototype.concat.apply([],i)},_getAllNodesWithTag:function(r,a){return r.querySelectorAll?r.querySelectorAll(a.join(",")):[].concat.apply([],a.map(function(i){var o=r.getElementsByTagName(i);return Array.isArray(o)?o:Array.from(o)}))},_cleanClasses:function(r){var a=this._classesToPreserve,i=(r.getAttribute("class")||"").split(/\s+/).filter(function(o){return a.indexOf(o)!=-1}).join(" ");for(i?r.setAttribute("class",i):r.removeAttribute("class"),r=r.firstElementChild;r;r=r.nextElementSibling)this._cleanClasses(r)},_fixRelativeUris:function(r){var a=this._doc.baseURI,i=this._doc.documentURI;function o(l){if(a==i&&l.charAt(0)=="#")return l;try{return new URL(l,a).href}catch{}return l}var s=this._getAllNodesWithTag(r,["a"]);this._forEachNode(s,function(l){var c=l.getAttribute("href");if(c)if(c.indexOf("javascript:")===0)if(l.childNodes.length===1&&l.childNodes[0].nodeType===this.TEXT_NODE){var m=this._doc.createTextNode(l.textContent);l.parentNode.replaceChild(m,l)}else{for(var g=this._doc.createElement("span");l.firstChild;)g.appendChild(l.firstChild);l.parentNode.replaceChild(g,l)}else l.setAttribute("href",o(c))});var u=this._getAllNodesWithTag(r,["img","picture","figure","video","audio","source"]);this._forEachNode(u,function(l){var c=l.getAttribute("src"),m=l.getAttribute("poster"),g=l.getAttribute("srcset");if(c&&l.setAttribute("src",o(c)),m&&l.setAttribute("poster",o(m)),g){var p=g.replace(this.REGEXPS.srcsetUrl,function(f,b,y,h){return o(b)+(y||"")+h});l.setAttribute("srcset",p)}})},_simplifyNestedElements:function(r){for(var a=r;a;){if(a.parentNode&&["DIV","SECTION"].includes(a.tagName)&&!(a.id&&a.id.startsWith("readability"))){if(this._isElementWithoutContent(a)){a=this._removeAndGetNext(a);continue}else if(this._hasSingleTagInsideElement(a,"DIV")||this._hasSingleTagInsideElement(a,"SECTION")){for(var i=a.children[0],o=0;o»] /.test(a))o=/ [\\\/>»] /.test(a),a=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"),s(a)<3&&(a=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(a.indexOf(": ")!==-1){var u=this._concatNodeLists(r.getElementsByTagName("h1"),r.getElementsByTagName("h2")),l=a.trim(),c=this._someNode(u,function(p){return p.textContent.trim()===l});c||(a=i.substring(i.lastIndexOf(":")+1),s(a)<3?a=i.substring(i.indexOf(":")+1):s(i.substr(0,i.indexOf(":")))>5&&(a=i))}else if(a.length>150||a.length<15){var m=r.getElementsByTagName("h1");m.length===1&&(a=this._getInnerText(m[0]))}a=a.trim().replace(this.REGEXPS.normalize," ");var g=s(a);return g<=4&&(!o||g!=s(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(a=i),a},_prepDocument:function(){var r=this._doc;this._removeNodes(this._getAllNodesWithTag(r,["style"])),r.body&&this._replaceBrs(r.body),this._replaceNodeTags(this._getAllNodesWithTag(r,["font"]),"SPAN")},_nextNode:function(r){for(var a=r;a&&a.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(a.textContent);)a=a.nextSibling;return a},_replaceBrs:function(r){this._forEachNode(this._getAllNodesWithTag(r,["br"]),function(a){for(var i=a.nextSibling,o=!1;(i=this._nextNode(i))&&i.tagName=="BR";){o=!0;var s=i.nextSibling;i.parentNode.removeChild(i),i=s}if(o){var u=this._doc.createElement("p");for(a.parentNode.replaceChild(u,a),i=u.nextSibling;i;){if(i.tagName=="BR"){var l=this._nextNode(i.nextSibling);if(l&&l.tagName=="BR")break}if(!this._isPhrasingContent(i))break;var c=i.nextSibling;u.appendChild(i),i=c}for(;u.lastChild&&this._isWhitespace(u.lastChild);)u.removeChild(u.lastChild);u.parentNode.tagName==="P"&&this._setNodeTag(u.parentNode,"DIV")}})},_setNodeTag:function(r,a){if(this.log("_setNodeTag",r,a),this._docJSDOMParser)return r.localName=a.toLowerCase(),r.tagName=a.toUpperCase(),r;for(var i=r.ownerDocument.createElement(a);r.firstChild;)i.appendChild(r.firstChild);r.parentNode.replaceChild(i,r),r.readability&&(i.readability=r.readability);for(var o=0;o!i.includes(l)),u=s.join(" ").length/o.join(" ").length;return 1-u},_checkByline:function(r,a){if(this._articleByline)return!1;if(r.getAttribute!==void 0)var i=r.getAttribute("rel"),o=r.getAttribute("itemprop");return(i==="author"||o&&o.indexOf("author")!==-1||this.REGEXPS.byline.test(a))&&this._isValidByline(r.textContent)?(this._articleByline=r.textContent.trim(),!0):!1},_getNodeAncestors:function(r,a){a=a||0;for(var i=0,o=[];r.parentNode&&(o.push(r.parentNode),!(a&&++i===a));)r=r.parentNode;return o},_grabArticle:function(r){this.log("**** grabArticle ****");var a=this._doc,i=r!==null;if(r=r||this._doc.body,!r)return this.log("No body found in document. Abort."),null;for(var o=r.innerHTML;;){this.log("Starting grabArticle loop");var s=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),u=[],l=this._doc.documentElement;let We=!0;for(;l;){l.tagName==="HTML"&&(this._articleLang=l.getAttribute("lang"));var c=l.className+" "+l.id;if(!this._isProbablyVisible(l)){this.log("Removing hidden node - "+c),l=this._removeAndGetNext(l);continue}if(l.getAttribute("aria-modal")=="true"&&l.getAttribute("role")=="dialog"){l=this._removeAndGetNext(l);continue}if(this._checkByline(l,c)){l=this._removeAndGetNext(l);continue}if(We&&this._headerDuplicatesTitle(l)){this.log("Removing header: ",l.textContent.trim(),this._articleTitle.trim()),We=!1,l=this._removeAndGetNext(l);continue}if(s){if(this.REGEXPS.unlikelyCandidates.test(c)&&!this.REGEXPS.okMaybeItsACandidate.test(c)&&!this._hasAncestorTag(l,"table")&&!this._hasAncestorTag(l,"code")&&l.tagName!=="BODY"&&l.tagName!=="A"){this.log("Removing unlikely candidate - "+c),l=this._removeAndGetNext(l);continue}if(this.UNLIKELY_ROLES.includes(l.getAttribute("role"))){this.log("Removing content with role "+l.getAttribute("role")+" - "+c),l=this._removeAndGetNext(l);continue}}if((l.tagName==="DIV"||l.tagName==="SECTION"||l.tagName==="HEADER"||l.tagName==="H1"||l.tagName==="H2"||l.tagName==="H3"||l.tagName==="H4"||l.tagName==="H5"||l.tagName==="H6")&&this._isElementWithoutContent(l)){l=this._removeAndGetNext(l);continue}if(this.DEFAULT_TAGS_TO_SCORE.indexOf(l.tagName)!==-1&&u.push(l),l.tagName==="DIV"){for(var m=null,g=l.firstChild;g;){var p=g.nextSibling;if(this._isPhrasingContent(g))m!==null?m.appendChild(g):this._isWhitespace(g)||(m=a.createElement("p"),l.replaceChild(m,g),m.appendChild(g));else if(m!==null){for(;m.lastChild&&this._isWhitespace(m.lastChild);)m.removeChild(m.lastChild);m=null}g=p}if(this._hasSingleTagInsideElement(l,"P")&&this._getLinkDensity(l)<.25){var f=l.children[0];l.parentNode.replaceChild(f,l),l=f,u.push(l)}else this._hasChildBlockElement(l)||(l=this._setNodeTag(l,"P"),u.push(l))}l=this._getNextNode(l)}var b=[];this._forEachNode(u,function(Z){if(!(!Z.parentNode||typeof Z.parentNode.tagName>"u")){var Ee=this._getInnerText(Z);if(!(Ee.length<25)){var vt=this._getNodeAncestors(Z,5);if(vt.length!==0){var st=0;st+=1,st+=Ee.split(",").length,st+=Math.min(Math.floor(Ee.length/100),3),this._forEachNode(vt,function(De,Nt){if(!(!De.tagName||!De.parentNode||typeof De.parentNode.tagName>"u")){if(typeof De.readability>"u"&&(this._initializeNode(De),b.push(De)),Nt===0)var mn=1;else Nt===1?mn=2:mn=Nt*3;De.readability.contentScore+=st/mn}})}}}});for(var y=[],h=0,v=b.length;hS.readability.contentScore){y.splice(x,0,C),y.length>this._nbTopCandidates&&y.pop();break}}}var w=y[0]||null,A=!1,D;if(w===null||w.tagName==="BODY"){for(w=a.createElement("DIV"),A=!0;r.firstChild;)this.log("Moving child out:",r.firstChild),w.appendChild(r.firstChild);r.appendChild(w),this._initializeNode(w)}else if(w){for(var M=[],R=1;R=.75&&M.push(this._getNodeAncestors(y[R]));var _=3;if(M.length>=_)for(D=w.parentNode;D.tagName!=="BODY";){for(var F=0,L=0;L=_){w=D;break}D=D.parentNode}w.readability||this._initializeNode(w),D=w.parentNode;for(var U=w.readability.contentScore,I=U/3;D.tagName!=="BODY";){if(!D.readability){D=D.parentNode;continue}var q=D.readability.contentScore;if(qU){w=D;break}U=D.readability.contentScore,D=D.parentNode}for(D=w.parentNode;D.tagName!="BODY"&&D.children.length==1;)w=D,D=w.parentNode;w.readability||this._initializeNode(w)}var $=a.createElement("DIV");i&&($.id="readability-content");var te=Math.max(10,w.readability.contentScore*.2);D=w.parentNode;for(var Te=D.children,pe=0,H=Te.length;pe=te)Q=!0;else if(V.nodeName==="P"){var ve=this._getLinkDensity(V),$e=this._getInnerText(V),X=$e.length;(X>80&&ve<.25||X<80&&X>0&&ve===0&&$e.search(/\.( |$)/)!==-1)&&(Q=!0)}}Q&&(this.log("Appending node:",V),this.ALTER_TO_DIV_EXCEPTIONS.indexOf(V.nodeName)===-1&&(this.log("Altering sibling:",V,"to div."),V=this._setNodeTag(V,"DIV")),$.appendChild(V),Te=D.children,pe-=1,H-=1)}if(this._debug&&this.log("Article content pre-prep: "+$.innerHTML),this._prepArticle($),this._debug&&this.log("Article content post-prep: "+$.innerHTML),A)w.id="readability-page-1",w.className="page";else{var se=a.createElement("DIV");for(se.id="readability-page-1",se.className="page";$.firstChild;)se.appendChild($.firstChild);$.appendChild(se)}this._debug&&this.log("Article content after paging: "+$.innerHTML);var be=!0,he=this._getInnerText($,!0).length;if(he0&&r.length<100):!1},_unescapeHtmlEntities:function(r){if(!r)return r;var a=this.HTML_ESCAPE_MAP;return r.replace(/&(quot|amp|apos|lt|gt);/g,function(i,o){return a[o]}).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,function(i,o,s){var u=parseInt(o||s,o?16:10);return String.fromCharCode(u)})},_getJSONLD:function(r){var a=this._getAllNodesWithTag(r,["script"]),i;return this._forEachNode(a,function(o){if(!i&&o.getAttribute("type")==="application/ld+json")try{var s=o.textContent.replace(/^\s*\s*$/g,""),u=JSON.parse(s);if(!u["@context"]||!u["@context"].match(/^https?\:\/\/schema\.org$/)||(!u["@type"]&&Array.isArray(u["@graph"])&&(u=u["@graph"].find(function(g){return(g["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)})),!u||!u["@type"]||!u["@type"].match(this.REGEXPS.jsonLdArticleTypes)))return;if(i={},typeof u.name=="string"&&typeof u.headline=="string"&&u.name!==u.headline){var l=this._getArticleTitle(),c=this._textSimilarity(u.name,l)>.75,m=this._textSimilarity(u.headline,l)>.75;m&&!c?i.title=u.headline:i.title=u.name}else typeof u.name=="string"?i.title=u.name.trim():typeof u.headline=="string"&&(i.title=u.headline.trim());u.author&&(typeof u.author.name=="string"?i.byline=u.author.name.trim():Array.isArray(u.author)&&u.author[0]&&typeof u.author[0].name=="string"&&(i.byline=u.author.filter(function(g){return g&&typeof g.name=="string"}).map(function(g){return g.name.trim()}).join(", "))),typeof u.description=="string"&&(i.excerpt=u.description.trim()),u.publisher&&typeof u.publisher.name=="string"&&(i.siteName=u.publisher.name.trim());return}catch(g){this.log(g.message)}}),i||{}},_getArticleMetadata:function(r){var a={},i={},o=this._doc.getElementsByTagName("meta"),s=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,u=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(o,function(l){var c=l.getAttribute("name"),m=l.getAttribute("property"),g=l.getAttribute("content");if(g){var p=null,f=null;m&&(p=m.match(s),p&&(f=p[0].toLowerCase().replace(/\s/g,""),i[f]=g.trim())),!p&&c&&u.test(c)&&(f=c,g&&(f=f.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[f]=g.trim()))}}),a.title=r.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],a.title||(a.title=this._getArticleTitle()),a.byline=r.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,a.excerpt=r.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],a.siteName=r.siteName||i["og:site_name"],a.title=this._unescapeHtmlEntities(a.title),a.byline=this._unescapeHtmlEntities(a.byline),a.excerpt=this._unescapeHtmlEntities(a.excerpt),a.siteName=this._unescapeHtmlEntities(a.siteName),a},_isSingleImage:function(r){return r.tagName==="IMG"?!0:r.children.length!==1||r.textContent.trim()!==""?!1:this._isSingleImage(r.children[0])},_unwrapNoscriptImages:function(r){var a=Array.from(r.getElementsByTagName("img"));this._forEachNode(a,function(o){for(var s=0;s"u"?!0:a;var i=r.textContent.trim();return a?i.replace(this.REGEXPS.normalize," "):i},_getCharCount:function(r,a){return a=a||",",this._getInnerText(r).split(a).length-1},_cleanStyles:function(r){if(!(!r||r.tagName.toLowerCase()==="svg")){for(var a=0;a0&&s>i)return!1;if(r.parentNode.tagName===a&&(!o||o(r.parentNode)))return!0;r=r.parentNode,s++}return!1},_getRowAndColumnCount:function(r){for(var a=0,i=0,o=r.getElementsByTagName("tr"),s=0;s0){o._readabilityDataTable=!0;continue}var m=["col","colgroup","tfoot","thead","th"],g=function(f){return!!o.getElementsByTagName(f)[0]};if(m.some(g)){this.log("Data table because found data-y descendant"),o._readabilityDataTable=!0;continue}if(o.getElementsByTagName("table")[0]){o._readabilityDataTable=!1;continue}var p=this._getRowAndColumnCount(o);if(p.rows>=10||p.columns>4){o._readabilityDataTable=!0;continue}o._readabilityDataTable=p.rows*p.columns>10}},_fixLazyImages:function(r){this._forEachNode(this._getAllNodesWithTag(r,["img","picture","figure"]),function(a){if(a.src&&this.REGEXPS.b64DataUrl.test(a.src)){var i=this.REGEXPS.b64DataUrl.exec(a.src);if(i[1]==="image/svg+xml")return;for(var o=!1,s=0;so+=this._getInnerText(u,!0).length),o/i},_cleanConditionally:function(r,a){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(r,[a]),function(i){var o=function(D){return D._readabilityDataTable},s=a==="ul"||a==="ol";if(!s){var u=0,l=this._getAllNodesWithTag(i,["ul","ol"]);this._forEachNode(l,D=>u+=this._getInnerText(D).length),s=u/this._getInnerText(i).length>.9}if(a==="table"&&o(i)||this._hasAncestorTag(i,"table",-1,o)||this._hasAncestorTag(i,"code"))return!1;var c=this._getClassWeight(i);this.log("Cleaning Conditionally",i);var m=0;if(c+m<0)return!0;if(this._getCharCount(i,",")<10){for(var g=i.getElementsByTagName("p").length,p=i.getElementsByTagName("img").length,f=i.getElementsByTagName("li").length-100,b=i.getElementsByTagName("input").length,y=this._getTextDensity(i,["h1","h2","h3","h4","h5","h6"]),h=0,v=this._getAllNodesWithTag(i,["object","embed","iframe"]),C=0;C1&&g/p<.5&&!this._hasAncestorTag(i,"figure")||!s&&f>g||b>Math.floor(g/3)||!s&&y<.9&&S<25&&(p===0||p>2)&&!this._hasAncestorTag(i,"figure")||!s&&c<25&&x>.2||c>=25&&x>.5||h===1&&S<75||h>1;if(s&&w){for(var A=0;A1)return w;let D=i.getElementsByTagName("li").length;if(p==D)return!1}return w}return!1})},_cleanMatchedNodes:function(r,a){for(var i=this._getNextNode(r,!0),o=this._getNextNode(r);o&&o!=i;)a.call(this,o,o.className+" "+o.id)?o=this._removeAndGetNext(o):o=this._getNextNode(o)},_cleanHeaders:function(r){let a=this._getAllNodesWithTag(r,["h1","h2"]);this._removeNodes(a,function(i){let o=this._getClassWeight(i)<0;return o&&this.log("Removing header with low class weight:",i),o})},_headerDuplicatesTitle:function(r){if(r.tagName!="H1"&&r.tagName!="H2")return!1;var a=this._getInnerText(r,!1);return this.log("Evaluating similarity of header:",a,this._articleTitle),this._textSimilarity(this._articleTitle,a)>.75},_flagIsActive:function(r){return(this._flags&r)>0},_removeFlag:function(r){this._flags=this._flags&~r},_isProbablyVisible:function(r){return(!r.style||r.style.display!="none")&&!r.hasAttribute("hidden")&&(!r.hasAttribute("aria-hidden")||r.getAttribute("aria-hidden")!="true"||r.className&&r.className.indexOf&&r.className.indexOf("fallback-image")!==-1)},parse:function(){if(this._maxElemsToParse>0){var r=this._doc.getElementsByTagName("*").length;if(r>this._maxElemsToParse)throw new Error("Aborting parsing document; "+r+" elements found")}this._unwrapNoscriptImages(this._doc);var a=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(a);this._articleTitle=i.title;var o=this._grabArticle();if(!o)return null;if(this.log("Grabbed: "+o.innerHTML),this._postProcessContent(o),!i.excerpt){var s=o.getElementsByTagName("p");s.length>0&&(i.excerpt=s[0].textContent.trim())}var u=o.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(o),textContent:u,length:u.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName}}},typeof t=="object"&&(t.exports=n)}),WM=hf((e,t)=>{var n={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function r(i){return(!i.style||i.style.display!="none")&&!i.hasAttribute("hidden")&&(!i.hasAttribute("aria-hidden")||i.getAttribute("aria-hidden")!="true"||i.className&&i.className.indexOf&&i.className.indexOf("fallback-image")!==-1)}function a(i,o={}){typeof o=="function"&&(o={visibilityChecker:o});var s={minScore:20,minContentLength:140,visibilityChecker:r};o=Object.assign(s,o);var u=i.querySelectorAll("p, pre, article"),l=i.querySelectorAll("div > br");if(l.length){var c=new Set(u);[].forEach.call(l,function(g){c.add(g.parentNode)}),u=Array.from(c)}var m=0;return[].some.call(u,function(g){if(!o.visibilityChecker(g))return!1;var p=g.className+" "+g.id;if(n.unlikelyCandidates.test(p)&&!n.okMaybeItsACandidate.test(p)||g.matches("li p"))return!1;var f=g.textContent.trim().length;return fo.minScore)})}typeof t=="object"&&(t.exports=a)}),Y6=hf((e,t)=>{var n=zM(),r=WM();t.exports={Readability:n,isProbablyReaderable:r}}),Z6={};HM(Z6,{Readability:()=>R0,default:()=>Q6,isProbablyReaderable:()=>X6});var J6=$6(Y6());qM(Z6,$6(Y6()));var{Readability:R0,isProbablyReaderable:X6}=J6,{default:G6,...VM}=J6,Q6=G6!==void 0?G6:VM;var bf=k0.alert;var Cs=console,yf=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),r=Math.round(n-this.#e),a=Mr.green;r>1e4?a=Mr.red:r>1e3&&(a=Mr.yellow),Cs.debug(Mr.dim(uo+" TIMING:"),t,"in",a(r+"ms")),this.#e=n}},gl=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Cs.log(Mr.dim(uo+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Cs.log(Mr.green(uo+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Cs.warn(Mr.yellow(uo+" WARN:"),...t)}error(...t){this.#e<=3&&Cs.error(Mr.red(uo+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Cs.error(Mr.red(uo+" FATAL:"),...t)}timing(){return this.level===0?new yf:{reset:()=>{},stop:()=>{}}}},k=new gl;function xt(){try{let e=[Se().EBOOK_BUILDER_URL,Se().EBOOK_VIEWER_URL,Se().SUBTITLE_BUILDER_URL,Se().HTML_VIEWER_URL,Se().PDF_VIEWER_URL].filter(a=>!!a),t=["app."+et];ya()||t.push("localhost:38001");let n=globalThis.location.pathname;return e.find(a=>{let i=new URL(a);return n.startsWith(i.pathname)&&t.includes(i.host)})?!1:globalThis.self!==globalThis.top}catch{return!0}}var I0={manifest_version:3,name:"__MSG_brandName__",description:"__MSG_brandDescription__",version:"1.11.7",default_locale:"en",background:{service_worker:"background.js"},web_accessible_resources:["styles/inject.css","pdf/index.html","video-subtitle/inject.js","image/inject.js"],content_scripts:[{matches:["","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0},{matches:["","file:///*","*://*/*"],js:["content_start.js"],run_at:"document_start",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePageOfficialPage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"},shareToDraft:{description:"__MSG_shareToDraft__"},toggleMouseHoverTranslateDirectly:{description:"__MSG_toggleMouseHoverTranslateDirectly__"},translateWithOpenAI:{description:"__MSG_translateWithOpenAI__"},translateWithDeepL:{description:"__MSG_translateWithDeepL__"},translateWithGoogle:{description:"__MSG_translateWithGoogle__"},translateWithTransmart:{description:"__MSG_translateWithTransmart__"},translateWithGemini:{description:"__MSG_translateWithGemini__"},translateWithBing:{description:"__MSG_translateWithBing__"},translateWithClaude:{description:"__MSG_translateWithClaude__"},translateInputBox:{description:"__MSG_translateInputBox__"},translateWithCustom1:{description:"__MSG_translateWithCustom1__"},translateWithCustom2:{description:"__MSG_translateWithCustom2__"},translateWithCustom3:{description:"__MSG_translateWithCustom3__"},toggleVideoSubtitlePreTranslation:{description:"__MSG_toggleVideoSubtitlePreTranslation__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"},gecko_android:{strict_min_version:"113.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};var vf=/iPhone/i,ey=/iPod/i,ty=/iPad/i,ny=/\biOS-universal(?:.+)Mac\b/i,Cf=/\bAndroid(?:.+)Mobile\b/i,ry=/Android/i,xs=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,F0=/Silk/i,ni=/Windows Phone/i,ay=/\bWindows(?:.+)ARM\b/i,iy=/BlackBerry/i,oy=/BB10/i,sy=/Opera Mini/i,uy=/\b(CriOS|Chrome)(?:.+)Mobile/i,ly=/Mobile(?:.+)Firefox\b/i,cy=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function $M(e){return t=>t.test(e)}function qe(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);let a=$M(n),i={apple:{phone:a(vf)&&!a(ni),ipod:a(ey),tablet:!a(vf)&&(a(ty)||cy(t))&&!a(ni),universal:a(ny),device:(a(vf)||a(ey)||a(ty)||a(ny)||cy(t))&&!a(ni)},amazon:{phone:a(xs),tablet:!a(xs)&&a(F0),device:a(xs)||a(F0)},android:{phone:!a(ni)&&a(xs)||!a(ni)&&a(Cf),tablet:!a(ni)&&!a(xs)&&!a(Cf)&&(a(F0)||a(ry)),device:!a(ni)&&(a(xs)||a(F0)||a(Cf)||a(ry))||a(/\bokhttp\b/i)},windows:{phone:a(ni),tablet:a(ay),device:a(ni)||a(ay)},other:{blackberry:a(iy),blackberry10:a(oy),opera:a(sy),firefox:a(ly),chrome:a(uy),device:a(iy)||a(oy)||a(sy)||a(ly)||a(uy)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var xf="DENO",B0="CHROME",O0="FIREFOX";function dy(e){let t=B0;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=O0:/deno/i.test(n)&&(t=xf)}catch{}return e===B0&&t===B0||e===O0&&t===O0||e===xf&&t===xf}function N0(){return dy(B0)}function my(){return typeof Deno<"u"}function Jn(){return Se().IMMERSIVE_TRANSLATE_FIREFOX==="1"?!0:dy(O0)}function Cr(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function gy(){return!!globalThis.matchMedia("(pointer:fine)").matches}function Gr(e){return!!(e?.confirmSupportMouse||globalThis.matchMedia("(pointer:fine)").matches)}var py={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},fy={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:py,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}},local:{map:new Map,async get(e){return new Promise(t=>{setTimeout(()=>{let n=this.map.get(e);t({[e]:n})},100)})},async set(e,t){return new Promise((n,r)=>{setTimeout(()=>{this.map.set(e,t),n("")},100)})}}},tabs:{onUpdated:py,query:()=>{},sendMessage:()=>{}}};var j;my()?j=fy:j=globalThis.immersiveTranslateBrowserAPI;var YM="";function On(){return YM||I0.version}function _r(){return j.runtime.getManifest().version}function Tf(e){return e.replace(//g,">")}var To=ie+"CacheKey_";function So(e,t){let n=To+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function ZM(){let e=j.storage.local.refresh;e&&e()}function Sf(e,t){let n=To+e;return j.storage.local.get(n).then(r=>{if(r[n]===void 0)return t;let{value:a,expired:i}=r[n];return i&&ir.startsWith(To)).filter(r=>r!==To+mt);if(n.length>0)return j.storage.local.remove(n)}}var tt={get:So,set:wo,getExpired:Sf,setExpired:wf,remove:Ef,clear:Af,refresh:ZM};function At(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function hy(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function by(e){if(e){let t=new Date(e.createTime),n=JM(t),r="free",a="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(r=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?a="stripe":a="admin"),e.subscription?.isTrial&&(r="trial"),{user_type:r,user_register_day:n,subscription_from:a}}else return null}function JM(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[r,a,i]=n.split("/");return n=`${i}-${r}-${a}`,n}catch{return"unknown"}}async function Ts(e){if(e?.isPro)return!0;let t=await tt.get(mt,null);return At(t)}var or=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","pt-br","ru","ar","it","ms","id","vi","af","th","ur","yue","zh-CN-NE","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","nl","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu","ur-roman"],kf={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Auto Detect",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese","pt-br":"Portuguese (Brazil)","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-CN-NE":"Northeastern Chinese",zu:"Zulu","":"All Languages","ur-roman":"Roman Urdu"},yy={af:"Afrikaans",am:"\u12A0\u121B\u122D\u129B",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",auto:"Auto Detect",az:"Az\u0259rbaycanca",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",tn:"Setswana",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",bs:"Bosanski",bo:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42",ca:"Catal\xE0",ceb:"Binisaya",co:"Corsu",cs:"\u010Ce\u0161tina",cy:"Cymraeg",da:"Dansk",de:"Deutsch",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",en:"English",eo:"Esperanto",es:"Espa\xF1ol",et:"Eesti",eu:"Euskara",sa:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D",fa:"\u0641\u0627\u0631\u0633\u06CC",fi:"Suomi",fil:"Filipino",fj:"Na Vosa Vakaviti",fr:"Fran\xE7ais",fy:"Frysk",ga:"Gaeilge",gd:"G\xE0idhlig",gl:"Galego",gu:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",ha:"Hausa",haw:"\u02BB\u014Clelo Hawai\u02BBi",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",hmn:"Hmoob",hr:"Hrvatski",ht:"Krey\xF2l Ayisyen",hu:"Magyar",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",id:"Bahasa Indonesia",ig:"As\u1EE5s\u1EE5 Igbo",is:"\xCDslenska",it:"Italiano",ja:"\u65E5\u672C\u8A9E",jw:"Basa Jawa",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",kk:"\u049A\u0430\u0437\u0430\u049B \u0422\u0456\u043B\u0456",km:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",ko:"\uD55C\uAD6D\uC5B4",ku:"Kurd\xEE",ky:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",la:"Latina",lb:"L\xEBtzebuergesch",lo:"\u0EA5\u0EB2\u0EA7",lt:"Lietuvi\u0173",lv:"Latvie\u0161u",mg:"Malagasy",mi:"M\u0101ori",mk:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",ml:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",mr:"\u092E\u0930\u093E\u0920\u0940",ms:"Bahasa Melayu",mt:"Malti",mww:"Hmong Daw",my:"\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",nl:"Nederlands",no:"Norsk",ny:"Chichewa",otq:"H\xF1\xE4h\xF1u",pa:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",pl:"Polski",ps:"\u067E\u069A\u062A\u0648",pt:"Portugu\xEAs","pt-br":"Portugu\xEAs (Brasil)","pt-BR":"Portugu\xEAs (Brasil)","pt-PT":"Portugu\xEAs (Portugal)",ro:"Rom\xE2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",sd:"\u0633\u0646\u068C\u064A",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",sk:"Sloven\u010Dina",sl:"Sloven\u0161\u010Dina",sm:"Gagana Samoa",sn:"ChiShona",so:"Soomaali",sq:"Shqip",sr:"\u0421\u0440\u043F\u0441\u043A\u0438","sr-Cyrl":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Latn":"Srpski (Latinica)",st:"Sesotho",su:"Basa Sunda",sv:"Svenska",sw:"Kiswahili",ta:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",te:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",th:"\u0E44\u0E17\u0E22",tlh:"tlhIngan Hol","tlh-Qaak":"tlhIngan Hol (pIqaD)",to:"lea fakatonga",tr:"T\xFCrk\xE7e",ty:"Reo Tahiti",ug:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",ur:"\u0627\u0631\u062F\u0648",uz:"O\u02BBzbek",vi:"Ti\u1EBFng Vi\u1EC7t",wyw:"\u6587\u8A00\u6587",xh:"isiXhosa",placeholder:"Please Select",yi:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9",yo:"\xC8d\xE8 Yor\xF9b\xE1",yua:"M\xE0aya T'\xE0an",yue:"\u7CB5\u8A9E","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u5B98\u8A71",zu:"isiZulu","":"All Languages","ur-roman":"Roman Urdu"},Df={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED","pt-br":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8BED\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8BED\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587","zh-CN-NE":"\u4E1C\u5317\u8BDD",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u5C14\u90FD\u8BED"},Lf={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E","pt-br":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-BR":"\u8461\u8404\u7259\u8A9E\uFF08\u5DF4\u897F\uFF09","pt-PT":"\u8461\u8404\u7259\u8A9E\uFF08\u8461\u8404\u7259\uFF09",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587","zh-CN-NE":"\u6771\u5317\u8A71",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00","ur-roman":"\u7F57\u9A6C\u4E4C\u723E\u90FD\u8A9E"};function re(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t.startsWith("zh-hans"))return"zh-CN";if(t.startsWith("zh-hant")||t.startsWith("zh-hk")||t.startsWith("zh-tw")||t.startsWith("yue"))return"zh-TW";if(t.startsWith("zh-"))return"zh-CN";if(t==="iw")return"he";if(t==="jv")return"jw";let n=or.map(a=>a.toLowerCase()),r=n.indexOf(t);if(r===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=n.indexOf(t);return a===-1?"auto":or[a]}else return"auto";else return or[r]}function Ht(){return re(document?.documentElement?.lang||"en")}var U0=["caiyun","cai"],vy=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Ss={ai:!0,name:"Custom AI",homepage:"https://openai.com/api/",allProps:[{name:"name",labelKey:"field.name",placeholderKey:"field.namePlaceholder",required:!0,type:"text"},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",descriptionKey:"description.apiUrl",descriptionLink1:Y+"docs/services/ai/",default:"https://api.openai.com/v1/chat/completions"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo",options:[{label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{label:"gpt-3.5-turbo-16k",value:"gpt-3.5-turbo-16k"},{label:"gpt-3.5-turbo-instruct",value:"gpt-3.5-turbo-instruct"},{label:"gpt-4",value:"gpt-4"},{label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{label:"gpt-4-32k",value:"gpt-4-32k"},{label:"gpt-4-turbo-preview",value:"gpt-4-turbo-preview"},{label:"gpt-4-turbo",value:"gpt-4-turbo"},{label:"gpt-4-vision-preview",value:"gpt-4-vision-preview"},{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"ERNIE-4.0-8K",value:"ERNIE-4.0-8K"},{label:"ERNIE-3.5-8K",value:"ERNIE-3.5-8K"},{label:"ERNIE-Speed-8K",value:"ERNIE-Speed-8K"},{label:"ERNIE-Speed-128K",value:"ERNIE-Speed-128K"},{label:"chatglm_turbo",value:"chatglm_turbo"},{label:"chatglm_pro",value:"chatglm_pro"},{label:"chatglm_std",value:"chatglm_std"},{label:"chatglm_lite",value:"chatglm_lite"},{label:"glm-4",value:"glm-4"},{label:"glm-4v",value:"glm-4v"},{label:"glm-3-turbo",value:"glm-3-turbo"},{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-max",value:"qwen-max"},{label:"qwen-max-longcontext",value:"qwen-max-longcontext"},{label:"SparkDesk",value:"SparkDesk"},{label:"hunyuan",value:"hunyuan"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.5-flash-preview-0514",value:"gemini-1.5-flash-preview-0514"},{label:"llama2:7b",value:"llama2:7b"},{label:"llama3:latest",value:"llama3:latest"},{label:"command-r",value:"command-r"},{label:"moonshot-v1-8k",value:"moonshot-v1-8k"},{label:"moonshot-v1-32k",value:"moonshot-v1-32k"},{label:"moonshot-v1-128k",value:"moonshot-v1-128k"},{label:"Baichuan2-Turbo",value:"Baichuan2-Turbo"},{label:"Baichuan2-Turbo-192k",value:"Baichuan2-Turbo-192k"},{label:"llama3-70b-8192",value:"llama3-70b-8192"},{label:"deepseek-chat",value:"deepseek-chat"},{label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},Yr={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:Q+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},$r={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},zhipu:{ai:!0,name:"zhipu",homepage:"https://open.bigmodel.cn/",link1:"",link2:"",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"glm-4-flash (free)",value:"glm-4-flash"},{label:"glm-4-air",value:"glm-4-air"},{label:"glm-4-airx",value:"glm-4-airx"},{label:"glm-4",value:"glm-4"},{label:"glm-4-plus",value:"glm-4-plus"},{label:"glm-4-0520",value:"glm-4-0520"},{label:"glm-4-long",value:"glm-4-long"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"APIKEY",required:!0,type:"password",sensitive:!0,descriptionKey:"description.zhipuCustomAPIKey",descriptionLink1:"https://open.bigmodel.cn/",descriptionLink2:Y+"zh-Hans/docs/services/zhipu/"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:Q+"docs/services/deepL/",link1:"https://www.deepl.com/zh/whydeepl",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_deepl",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:Q+"docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password",sensitive:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1}]},openai:{ai:!0,name:"Open AI",homepage:"https://openai.com/api/",docUrl:Q+"docs/services/openai/",link1:"https://readit.plus/a/GKQas/understanding-chatgpt",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_openai",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:Q+"docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo-1106",providers:["custom"],options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom"],label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{providers:["custom","pro"],label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4-1106-preview",value:"gpt-4-1106-preview"},{providers:["custom"],label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{providers:["custom"],label:"gpt-4o",value:"gpt-4o"},{providers:["custom"],label:"gpt-4o-mini",value:"gpt-4o-mini"},{providers:["custom"],label:"gpt-4-turbo",value:"gpt-4-turbo"},{providers:["custom"],label:"gpt-4",value:"gpt-4"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",default:10,providers:["custom"]},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/openai/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:Y+"docs/services/deepL/",link1:"https://www.deepl.com/zh/whydeepl",link2:Y+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_deepl",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:Y+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:Y+"docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password",sensitive:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1}]},openai:{ai:!0,name:"Open AI",homepage:"https://openai.com/api/",docUrl:Y+"docs/services/openai/",link1:"https://readit.plus/a/GKQas/understanding-chatgpt",link2:Y+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_openai",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:Y+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:Y+"docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"gpt-3.5-turbo-1106",providers:["custom"],options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom"],label:"gpt-3.5-turbo-0125",value:"gpt-3.5-turbo-0125"},{providers:["custom","pro"],label:"gpt-3.5-turbo-1106",value:"gpt-3.5-turbo-1106"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4-1106-preview",value:"gpt-4-1106-preview"},{providers:["custom"],label:"gpt-4-0125-preview",value:"gpt-4-0125-preview"},{providers:["custom"],label:"gpt-4o",value:"gpt-4o"},{providers:["custom"],label:"gpt-4o-mini",value:"gpt-4o-mini"},{providers:["custom"],label:"gpt-4-turbo",value:"gpt-4-turbo"},{providers:["custom"],label:"gpt-4",value:"gpt-4"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:Y+"docs/services/openai/",type:"number",default:10,providers:["custom"]},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",descriptionLink1:Y+"docs/services/openai/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!1},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:Q+"docs/services/gemini/",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:Q+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.0-pro-latest",value:"gemini-1.0-pro-latest"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.0-pro-001",value:"gemini-1.0-pro-001"},{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:Q+"docs/services/claude/",link2:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Q+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:Q+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:Q+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2-7B-Instruct",options:[{label:"internlm/internlm2_5-7b-chat",value:"internlm/internlm2_5-7b-chat"},{label:"Qwen/Qwen2-7B-Instruct",value:"Qwen/Qwen2-7B-Instruct"},{label:"Qwen/Qwen2-1.5B-Instruct",value:"Qwen/Qwen2-1.5B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"THUDM/chatglm3-6b",value:"THUDM/chatglm3-6b"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"},{label:"01-ai/Yi-1.5-6B-Chat",value:"01-ai/Yi-1.5-6B-Chat"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:Q+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},gemini:{ai:!0,name:"Gemini",homepage:"https://ai.google.dev/aistudio/",docUrl:Y+"docs/services/gemini/",link2:Y+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_gemini",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Y+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"geminiCustomDescription",descriptionLink1:"https://ai.google.dev/aistudio/",descriptionLink2:Y+"docs/services/gemini/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",providers:["custom"],options:[{label:"gemini-1.0-pro-latest",value:"gemini-1.0-pro-latest"},{label:"gemini-1.0-pro-002",value:"gemini-1.0-pro-002"},{label:"gemini-1.0-pro-001",value:"gemini-1.0-pro-001"},{label:"gemini-1.5-pro-latest",value:"gemini-1.5-pro-latest"},{label:"gemini-1.5-flash",value:"gemini-1.5-flash"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Y+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",descriptionKey:"description.apiUrl",descriptionLink1:Y+"docs/services/gemini/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},claude:{ai:!0,name:"Claude",homepage:"https://www.anthropic.com/",docUrl:Y+"docs/services/claude/",link2:Y+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=service_claude",providers:[{name:"pro",nameKey:"serviceProName",descriptionKey:"serviceProDescription",descriptionKeyForNormal:"serviceProDescriptionForNormal",descriptionLink1:Y+"auth/pricing/?utm_campaign=services"},{name:"custom",nameKey:"serviceCustomName",descriptionKey:"claudeCustomDescription",descriptionLink1:"https://www.anthropic.com/",descriptionLink2:Y+"docs/services/claude/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"claude-3-haiku-20240307",providers:["custom"],options:[{label:"claude-3-haiku-20240307",value:"claude-3-haiku-20240307"},{label:"claude-3-sonnet-20240229",value:"claude-3-sonnet-20240229"},{label:"claude-3-5-sonnet-20240620",value:"claude-3-5-sonnet-20240620"},{label:"claude-3-opus-20240229",value:"claude-3-opus-20240229"},{label:"claude-2.1",value:"claude-2.1"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",providers:["custom"],descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Y+"docs/services/openai/",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:10,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.anthropic.com/v1/messages",descriptionKey:"description.apiUrl",descriptionLink1:Y+"docs/services/claude/",optional:!0,providers:["custom"]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},siliconcloud:{ai:!0,name:"siliconcloud",homepage:"https://cloud.siliconflow.cn/",allProps:[{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],default:"Qwen/Qwen2-7B-Instruct",options:[{label:"internlm/internlm2_5-7b-chat",value:"internlm/internlm2_5-7b-chat"},{label:"Qwen/Qwen2-7B-Instruct",value:"Qwen/Qwen2-7B-Instruct"},{label:"Qwen/Qwen2-1.5B-Instruct",value:"Qwen/Qwen2-1.5B-Instruct"},{label:"THUDM/glm-4-9b-chat",value:"THUDM/glm-4-9b-chat"},{label:"THUDM/chatglm3-6b",value:"THUDM/chatglm3-6b"},{label:"01-ai/Yi-1.5-9B-Chat-16K",value:"01-ai/Yi-1.5-9B-Chat-16K"},{label:"01-ai/Yi-1.5-6B-Chat",value:"01-ai/Yi-1.5-6B-Chat"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Y+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"APIKEY",descriptionKey:"description.siliconcloudCustomAPIKey",descriptionLink1:"https://siliconflow.cn/",providers:["custom"],required:!1,type:"password",sensitive:!0,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0,default:5},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},yandex:{name:"Yandex",homepage:"https://translate.yandex.com/"},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},lingyiwanwu:{ai:!0,name:"lingyiwanwu",homepage:"https://platform.lingyiwanwu.com/docs",docUrl:Y+"docs/services/lingyiwanwu/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"yi-large",value:"yi-large"},{label:"yi-large-turbo",value:"yi-large-turbo"},{label:"yi-large-rag",value:"yi-large-rag"},{label:"yi-medium",value:"yi-medium"},{label:"yi-medium-200k",value:"yi-medium-200k"},{label:"yi-spark",value:"yi-spark"},{label:"yi-vision",value:"yi-vision"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:Q+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:Q+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:Q+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:Q+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:Q+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:Q+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:Q+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:Q+"docs/services/custom/",docUrl:Q+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:rs,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:Q+"docs/services/openL/",beta:!0,allProps:[...Cy,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:Cy},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:Q+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:Q+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":Ts,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:Q+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:Y+"docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text",sensitive:!0},{name:"appSecret",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/translateapi",docUrl:Y+"docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text",sensitive:!0},{name:"secretKey",required:!0,type:"password",sensitive:!0}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:Y+"docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text",sensitive:!0},{name:"AccessKeySecret",required:!0,type:"password",sensitive:!0},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:Y+"docs/services/azure/",allProps:[{name:"region",required:!1,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.cognitive.microsofttranslator.com/",descriptionKey:"description.azureApiUrl",optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:Y+"docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text",sensitive:!0},{name:"key",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"action",required:!1,labelKey:"field.baiduAction",descriptionKey:"description.baiduAction",descriptionLink1:"https://fanyi-api.baidu.com/doc/21",type:"boolean",default:!1,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.baiduField",descriptionLink1:"https://fanyi-api.baidu.com/doc/22",type:"text",default:"",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:Y+"docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text",sensitive:!0},{name:"secretAccessKey",required:!0,type:"password",sensitive:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:Y+"docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password",sensitive:!0}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:Y+"docs/services/custom/",docUrl:Y+"docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:rs,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:Y+"docs/services/openL/",beta:!0,allProps:[...vy,{type:"password",name:"apikey",required:!0,sensitive:!0}],props:vy},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",canary:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:Y+"docs/services/niu/",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0}]},qianfan:{ai:!0,name:"baidu-qianfan",homepage:"https://console.bce.baidu.com/qianfan/overview",docUrl:Y+"docs/services/baidu-qianfan/",allProps:[{label:"API Key",name:"AccessKeyID",placeholder:"API Key",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"AccessKeySecret",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"ERNIE-Speed-8K",value:"ernie_speed"},{label:"ERNIE-Speed-128K",value:"ernie-speed-128k"},{label:"ERNIE-4.0-8K",value:"completions_pro"},{label:"ERNIE-4.0-8K-Preview",value:"ernie-4.0-8k-preview"},{label:"ERNIE-3.5-8K",value:"completions"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Y+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]},"custom-ai":Ss,deepseek:{ai:!0,name:"deepseek",homepage:"https://www.deepseek.com/",docUrl:Y+"docs/services/deepseek/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"deepseek-chat",options:[{label:"deepseek-chat",value:"deepseek-chat"},{label:"deepseek-coder",value:"deepseek-coder"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:Q+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},"aliyun-bailian":{ai:!0,name:"aliyun-bailian",homepage:"https://bailian.console.aliyun.com/",docUrl:Y+"docs/services/aliyun-bailian/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"model-select",default:"qwen-long",options:[{label:"qwen-turbo",value:"qwen-turbo"},{label:"qwen-plus",value:"qwen-plus"},{label:"qwen-long",value:"qwen-long"},{label:"qwen-max",value:"qwen-max"},{label:"qwen1.5-7b-chat",value:"qwen1.5-7b-chat"},{label:"qwen1.5-14b-chat",value:"qwen1.5-14b-chat"},{label:"qwen1.5-32b-chat",value:"qwen1.5-32b-chat"},{label:"qwen1.5-72b-chat",value:"qwen1.5-72b-chat"},{label:"qwen1.5-110b-chat",value:"qwen1.5-110b-chat"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:Q+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},doubao:{ai:!0,name:"doubao",homepage:"https://www.volcengine.com/product/doubao",docUrl:Y+"docs/services/doubao/",link1:"",link2:"",allProps:[{name:"APIKEY",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.accessPoint",descriptionKey:"description.accessPoint",placeholder:" ",required:!1,type:"text",default:""},{name:"limit",required:!1,labelKey:"field.limitPerSecond",placeholder:"ep-20240512123030-kv128",descriptionKey:"description.generalLimitPerSecond",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",default:5,type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0},{name:"temperature",descriptionKey:"description.temperature",label:"Temperature",required:!1,type:"number",default:"0",optional:!0}]},hunyuan:{ai:!0,name:"hunyuan",homepage:"https://hunyuan.tencent.com/",docUrl:Q+"docs/services/tencent-hunyuan/",allProps:[{label:"Secret ID",name:"secret_id",placeholder:"Secret ID",required:!0,type:"text",sensitive:!0},{label:"Secret Key",name:"secret_key",placeholder:"Secret Key",required:!0,type:"password",sensitive:!0},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!0,type:"model-select",providers:["custom"],options:[{label:"hunyuan-lite",value:"hunyuan-lite"},{label:"hunyuan-standard",value:"hunyuan-standard"},{label:"hunyuan-standard-256K",value:"hunyuan-standard-256K"},{label:"hunyuan-pro",value:"hunyuan-pro"},{providers:["custom"],label:"more-models",value:"more-models"}]},{name:"enableRichTranslate",labelKey:"field.enableRichTranslate",descriptionKey:"description.enableRichTranslate",required:!1,type:"boolean",default:!1,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",descriptionLink1:Q+"docs/services/openai/",type:"number",providers:["custom"],default:1},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:3,optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0},{name:"maxTextGroupLengthPerRequestForSubtitle",required:!1,labelKey:"field.maxTextGroupLengthPerRequestForSubtitle",type:"number",optional:!0},{name:"subtitlePrompt",label:"Subtitle Prompt",required:!1,descriptionKey:"description.subtitlePrompt",type:"textarea",default:"",optional:!0}]}};function pl(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],r=-1;do e/=1024,++r;while(Math.abs(e)>=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function $M(e,t){let n=[],r=[];for(let a=0;a0?b=1024&&ru+l.text.length,0)+o.text.length>t||i.tempSentences.length>=n)&&(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(i.from!==o.from||i.to!==o.to)&&(i.tempSentences.length>0?(a.push(i),i={fromByClient:i.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(i.from=o.from,i.to=o.to)),i.tempSentences.push(o);return i.tempSentences.length>0&&a.push(i),a}function XM(e,t){let n=[],r=[];for(let a=0;a0?bt){let v=[];Pf(y,t,v);for(let C=0;C0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Pf(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:h.i18n?.[r]?.name||h.name,value:h.id}))?.filter(h=>h.label&&h.value)||[];if(y.length>0){let h=[{label:"aiAssistant.common",value:"common"}];y.length>1&&h.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:eP([...h,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],b=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(h=>{g.length>0&&h.providers&&h.providers.length>0&&!h.providers.includes(m)||(h.optional?b.push(h):f.push(h))});let y=b.concat(f).filter(h=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(h.name,s.model,h.required)));if(y.length>0){for(let h of y)if(!s[h.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:f}}var ws=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=At(u),c=Object.keys(Yr);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&je()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=Yr[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=Ts);let b=Rf(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?b:null}).filter(p=>!!p);function g(p,f){let b=!!p.canary,y=!!p.alpha,h=!!p.beta;return f===e[t]||b&&o||y&&(a||o)||h&&(i||a||o)?!0:!y&&!h&&!b}};function Es(e,t,n){return ws(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:If(r.config,n))}function If(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function As(e,t,n="en",r){return ws(e,t,n).find(o=>o.id===r)}function fl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function xy(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function j0(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=Ya.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function eP(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var Ty=ie+"SyncStoreKey_";function Bt(e,t){let n=Ty+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function Je(e,t){let n=Ty+e;return j.storage.sync.set({[n]:t})}var wy=["*://*/*","*","*://*"],Ay="immersive-translate-wildcard-placeholder.com";function Ff(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>wy.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(wy.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return nP(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,Ay),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let b=tP(l+":",Ey(p),Ey(f));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function Ey(e){return e.replaceAll(Ay,"*")}function tP(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function gt(e,t){return Ff(e,t)!==null}function nP(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var ky=ie+"StoreKey_";function Eo(e,t){let n=ky+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function Dy(e,t){let n=ky+e;return j.storage.local.set({[n]:t})}var vY=My(2),Ly=My(3);function My(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var rP=/\s+/g,aP=/[\t\n\v\f\r ]+/g;function Py(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?iP:oP;return String(e).replace(t.style==="html"?aP:rP,t.trim?sP(n):n)}function iP(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function oP(){return" "}function sP(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var Ry={}.hasOwnProperty;function uP(e){return e==null?"":Py(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function lP(e){return Ly(" "+uP(e)+" ")}function cP(e){let t=lP(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function bP(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function yP(e,t,n,r){t=CP(t,n,r);let a=[],i;if(t)for(i in t)H0.call(t,i)&&a.push([i,vP(e,t[i])]);return a.length===0?_f():a.sort(SP)}function vP(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of PP){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?jy(e)?"zh-TW":"zh-CN":t:"auto"}var qy=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Of=new Map(qy),RP=new Map(qy.map(([e,t])=>[t,e]));function zy(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>RP.get(s));!t&&t!==0&&(t=25);let a=z0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Of.keys()]},o=By(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Of.get(m)}}let[s,u]=o[0],l=Of.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Di(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function IP(e,t){return e<>>32-t}function W0(e,t,n,r,a,i){return Di(IP(Di(Di(t,e),Di(r,i)),a),n)}function Nn(e,t,n,r,a,i,o){return W0(t&n|~t&r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return W0(t&r|n&~r,e,t,a,i,o)}function jn(e,t,n,r,a,i,o){return W0(t^n^r,e,t,a,i,o)}function Hn(e,t,n,r,a,i,o){return W0(n^(t|~r),e,t,a,i,o)}function V0(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Nf(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=V0(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=V0(a.concat(Nf(t)),512+t.length*8),Vy(V0(i.concat(o),512+128))}function Wy(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Uf(e){return unescape(encodeURIComponent(e))}function Gy(e){return FP(Uf(e))}function _P(e){return Wy(Gy(e))}function Ky(e,t){return BP(Uf(e),Uf(t))}function OP(e,t){return Wy(Ky(e,t))}function Cr(e,t,n){return t?n?Ky(t,e):OP(t,e):n?Gy(e):_P(e)}var ks=[],XY=1e3*3600*24;async function bl(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function G0(e){let t=`${P}-${e.service}@${e.from}->${e.to}`;return await UP(t,{...e,createAt:new Date().getTime()})}async function K0(e){let t=Cr(e.originalText),n=`${P}-${e.service}@${e.from}->${e.to}`;return await NP(n,t)}async function NP(e,t){let n=await bl(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function UP(e,t){let n=await bl(e);return(await jf()).includes(e)||await jP(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function jP(e){let t="cache_list",n=await bl(P+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),ks.push(e)},a.onerror=i=>{n.close()}}async function jf(){if(ks&&ks.length>0)return ks;let e=await bl(P+"-cacheList","cache_list");return ks=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),ks}async function Y0(){try{let e=[];(await jf()).forEach(r=>{e.push(HP(r))});let n=await Promise.all(e);return pl(n.reduce((r,a)=>r+a,0))}catch{return pl(0)}}async function HP(e){let t=await bl(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=qP(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function qP(e,t){return await new Promise((n,r)=>{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)},i.onerror=o=>r("error in "+t+": "+o)})}async function Yy(){try{let t=(await jf()).map(r=>zP(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function zP(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Q0="Original";function ot(){return Q0}function Xn(e){Q0=e,Jy(Q0);let t=new CustomEvent(en,{detail:JSON.stringify({type:"updatePageStatus",payload:Q0})});document.dispatchEvent(t)}var Qy="Original";function Ds(){return Qy}function Rr(e,t){if(t)return;Qy=e;let n=new CustomEvent(Fu,{detail:e});document.dispatchEvent(n)}var Xy="auto",J0="auto",Zy="auto";function $y(e){Xy=e}function Sr(e){J0=e}function Dt(){return J0!=="auto"?J0:Zy!=="auto"?Zy:Xy}function Z0(){return J0}var yl=new Map,xa=class{fromType;logger;constructor(t,n=!1){this.logger=new gl,n&&this.logger.setLevel("debug"),this.fromType=t,yl.has(t)||(yl.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=qf(s),{type:g,name:p}=m;if(g!==t)return!1;let f=qf(o),y=yl.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:h,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let x=h(r.payload,C);i({ok:!0,data:x})}catch(x){i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.details,errorStatus:x.status})}return!1}else return h(r.payload,C).then(x=>{i({ok:!0,data:x})}).catch(x=>{i({ok:!1,errorName:x.name,errorMessage:x.message,errorDetails:x.message,errorStatus:x.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=yl.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new Hf(`${i}:${t}`,this.logger);return yl.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},Hf=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=qf(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return e5(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return e5(o,s,this.logger)}}};function e5(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new V(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new V("noResponse","Unknown error")}function qf(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Ao(e){return e?.id?.endsWith("pdfWebPage")||!1}function ko(e){try{if(!e||!Ao(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var We={},Ta=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return We.getIsDulSubtitle();if(n==="getPageStatus")return ot();n==="updateContextState"&&await We.updateContextState(r);let a=await We.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await We.translateTheWholePage(r),Je(kr,i);else if(n==="translateTheMainPage")await We.translateTheMainPage(r),Je(kr,i);else if(n==="translateToThePageEndImmediately")await We.translateToThePageEndImmediately(r),Je(kr,i);else if(n==="toggleTranslateManga")await We.toggleTranslateManga(),Je(kr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ao(a?.rule)){let s=ko(a.rule);Ls(!0,s||o);return}await We.toggleTranslatePage(r),Je(kr,i)}else if(n==="toggleTranslateTheWholePage")await We.toggleTranslateTheWholePage(r),Je(kr,i);else if(n==="toggleTranslateTheMainPage")await We.toggleTranslateTheMainPage(r),Je(kr,i);else if(n==="toggleOnlyTransation")await We.ensureSwitchTranslationMode(r),Je(kr,i);else if(n=="toggleEnableEditTranslation")We.toggleEnableEditTranslation();else if(n==="translatePage")await We.translatePage(a,r),Je(kr,i);else if(n==="toggleTranslationMask")await We.toggleTranslationMask(r);else if(n==="restorePage")We.restorePage();else if(n==="retryFailedParagraphs")We.retryFailedParagraphs();else if(n=="change_translate_service")We.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await We.switchTranslationMode(r.mode),await We.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")We.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(zc,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await We.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Lu,{detail:r}));else if(n==="translateWithOpenAI")await We.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await We.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await We.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await We.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await We.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await We.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await We.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await We.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await We.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")St()||await We.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!St())return JSON.stringify(a);await ut(5e3)}else if(n==="inputSelectedTextTranslate")await We.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return We.popupEventReport(a,r);if(n==="updateFloatBallEnable")return We.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(co,{detail:{type:"webReport"}})):n===Pu&&await We.translateSelectImage(a,r)}};function t5(e){Object.assign(We,e)}function n5(e){Object.assign(We,e)}function r5(e){Object.assign(We,e)}var VP=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return ot();if(n==="getCurrentPageLanguage"){let a=Dt();return We.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Sr(r),Dt();if(n==="getContextString"){let a=We.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=We.getPureGlobalContext();return ko(a?.rule)}}},X0,$0;function a5(){let e=ed();St()||WP(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function ed(){return X0||(X0=new xa("content_script",!1).getConnection("main",Ta),X0)}function WP(){return $0||($0=new xa("content_script",!1).getConnection("main_sync",VP,{sync:!0}),$0)}var vl=new Map;function i5(){document.addEventListener(d2,e=>{let t=e;if(t&&t.detail){let n;try{n=JSON.parse(t.detail),vl.has(n.id)&&(n.ok?vl.get(n.id)(null,n.data):vl.get(n.id)(new Error(n.errorMessage),null),vl.delete(n.id))}catch{}}})}function td(e){let t=GP(64),n=new CustomEvent(u2,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{vl.set(t,(i,o)=>{i?a(i):r(o)})})}function GP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await ee({url:nd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function KP(e,t){return Math.floor(Math.random()*(t-e+1))+e}var YP=30,Vf="RATE_LIMITER_TICKS",Li=class e{static strictTicks={};static clearStrictTicks(){Qr(Vf,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Do(Vf)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Qr(Vf,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=KP(4,YP);await ut(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function xt(e){return await ed().sendMessage("background:main",e)}function ee(e){return Rc()?td({method:"request",data:e}):Z()||Pc()?(e.fetchPolyfill=globalThis.GM_fetch,Br(e)):xt({method:"fetch",data:e})}function o5(e){return Z()?Promise.resolve():xt({method:"reportOptionsPageView",data:e})}function Ir(){return Z()?Ze():xt({method:"getConfig"})}function ln(e){return Z()?sr(e):xt({method:"setUserConfig",data:e})}function Qt(){return Z()?cn():xt({method:"getUserConfig"})}function Ln(){return Z()?Mt():xt({method:"getLocalConfig"})}function Fr(e){return Z()?kt(e):xt({method:"setLocalConfig",data:e})}function s5(e){return Z()?S5(e):xt({method:"setBuildinConfig",data:e})}async function ze(e){if(e.text){let n=z0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(Z()||je()){if(e.translateService&&!U0.includes(e.translateService))return Promise.resolve("auto");let r=zy(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await xt({method:"detectLanguage",data:e});return Promise.resolve(t)}function u5(){return xt({method:"detectTabLanguage"})}async function rd(e){let t=await ze({text:e,pageLangs:["en"]});try{if(Z()||je()){let n=e.substring(0,200);t=await ri.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function Jy(e){let t=new CustomEvent(mo,{detail:e});if(document.dispatchEvent(t),Z())return;ed().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function l5(e){return Z()?K0(e):xt({method:"queryParagraphCache",data:e})}async function c5(e){if(Z()){await G0(e);return}return xt({method:"setParagraphCache",data:e})}async function d5(){if(Z())return Promise.resolve();await xt({method:"mockRequest"})}function wa(e=!1,t=""){return document.querySelector(`meta[name=${P}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):Z()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):xt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function ad(e=""){return Z()||je()?Te().OPTIONS_URL:j.runtime.getURL("options.html")}function m5(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function id(e=!1){return Z()?(j.extra.openAboutPage(e),Promise.resolve()):xt({method:"openAboutPage"})}function Ea(e){return Z()?(j.extra.openInTab(e),Promise.resolve()):xt({method:"openInTab",data:e})}function g5(e=!1){return Z()?(j.extra.openEbookViewerPage(e),Promise.resolve()):xt({method:"openEbookViewerPage"})}function p5(e=!1){return Z()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):xt({method:"openEbookBuilderPage"})}function f5(e){je()}function Ls(e=!1,t){return Z()?(j.extra.openPdfViewerPage(e),Promise.resolve()):xt({method:"openPdfViewerPage",data:{url:t}})}function h5(e=!1){return Z()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):xt({method:"openSubtitleBuilderPage"})}function Cl(e){return Z()?Promise.resolve():xt({method:"setBadge",data:{text:e}})}function b5(){return Z()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):xt({method:"autoSyncLatestConfig"})}function od(e,t=!1){return Z()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function y5(e,t){return Z()||Ae.MOCK==="1"?Li.getDelay(e,t):xt({method:"getDelay",data:{key:e,options:t}})}async function v5(){return Z()?!1:xt({method:"getIsSupportIsOnToolbar"})}async function C5(){return Z()?!1:xt({method:"getIsOnToolbar"})}async function Wf(){if(!Z())return xt({method:"updateVideoSubtitleStatus"})}function Sl({targetLanguage:e,text:t}){Z()||xt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function xl(){Z()||xt({method:"updateImageMenu"})}var x5={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 +`;continue}else if(y.length>t){let v=[];Mf(y,t,v);for(let C=0;C0&&b{let s=e.lastIndexOf(o,t);return s>i?s:i},-1);if(a===-1){let i=e.slice(0,t);if(i&&!i.trim())return;n.push({text:i,prefix:"",suffix:""}),e.length>t&&Mf(e.slice(t),t,n)}else{let i=e.slice(0,a+1);if(i&&i.trim()==="")return;i.startsWith(" ")?n.push({text:i.slice(1),prefix:" ",suffix:""}):n.push({text:i,prefix:"",suffix:""}),a+1({label:h.i18n?.[r]?.name||h.name,value:h.id}))?.filter(h=>h.label&&h.value)||[];if(y.length>0){let h=[{label:"aiAssistant.common",value:"common"}];y.length>1&&h.push({label:"aiAssistant.auto",value:"auto"});let v={type:"select",name:"assistantId",labelKey:"field_label.assistant",default:"common",required:!1,optional:!1,options:QM([...h,...y,{label:"aiAssistant.more",value:"more",action:"jumpOptions",args:[!0,"#ai"]}])};p.push(v),o.props=[v]}}let f=[],b=[];if(l||m==="pro"&&(c=!1),p.length>0){p.forEach(h=>{g.length>0&&h.providers&&h.providers.length>0&&!h.providers.includes(m)||(h.optional?b.push(h):f.push(h))});let y=b.concat(f).filter(h=>(t in globalThis.TranslationServicesClass,globalThis.TranslationServicesClass?.[t]?.isApiKeyRequired(h.name,s.model,h.required)));if(y.length>0){for(let h of y)if(!s[h.name]){c=!1;break}}}return{...o,id:t,selected:n[e]===t,ok:c,currentProvider:m,config:s,providers:o.providers||[],props:o.props||[],allProps:p,optionalProps:b,explicitProps:f}}var ws=(e,t,n="en")=>{let{config:r}=e,a=r.alpha,i=r.beta,o=r.canary,s=r.debug,u=e.user,l=At(u),c=Object.keys($r);t!=="translationService"&&c.unshift("inherit");let m=Object.keys(e.config.translationServices).filter(p=>e.config.translationServices[p].type==="custom-ai");return[...c,...m].filter(p=>p==="inherit"?!0:p.startsWith("mock")?s?!0:p===e.config[t]:p===e.config[t]?!0:p==="openai"&&je()?e.config.showOpenaiOnSafari||l?!0:!!(i||a||o||l):p!="custom-ai").map(p=>{let f=$r[p];e.config.translationServices[p]?.type=="custom-ai"&&(f=Ss);let b=Pf(t,p,e,n);return p==="inherit"||p==e.config[t]||b?.ok&&e.config.rawUserConfig?.translationServices?.[p]||g(f,p)?b:null}).filter(p=>!!p);function g(p,f){let b=!!p.canary,y=!!p.alpha,h=!!p.beta;return f===e[t]||b&&o||y&&(a||o)||h&&(i||a||o)?!0:!y&&!h&&!b}};function Es(e,t,n){return ws(e,t,n).filter(r=>r.id=="inherit"||r.id==e.config[t]?!0:_f(r.config,n))}function _f(e,t){return e?.visible!=null?e?.visible:e?.defaultVisible!=null?!(e?.defaultHiddenLangs||[]).find(n=>n==t):e.ok}function As(e,t,n="en",r){return ws(e,t,n).find(o=>o.id===r)}function fl(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function xy(e){return e.replace(/([a-zA-Z0-9]+)([\u4e00-\u9fa5]+)/g,"$1 $2").replace(/([\u4e00-\u9fa5]+)([a-zA-Z0-9]+)/g,"$1 $2")}function j0(e,t,n,r,a=!1){let i=`${r("translationServices."+e.id)}`;if(!e.ok&&!a){let s=$a.includes(e.id);i=`${i} ${r(!t&&!n&&s?"goLoginOrAction":"needAction")}`}return e.config.type=="custom-ai"&&(i=`${e.config.name} (${r("translationServices.custom-ai")})`),i}function QM(e){let t=[],n=[],r=[],a=[];for(let i of e)i.value==="auto"?n.push(i):i.value==="common"?t.push(i):i.value?.startsWith("custom")?r.push(i):a.push(i);return[...t,...n,...r,...a]}var Ty=ie+"SyncStoreKey_";function Ft(e,t){let n=Ty+e;return j.storage.sync.get(n).then(r=>r[n]===void 0?t:r[n])}function Ze(e,t){let n=Ty+e;return j.storage.sync.set({[n]:t})}var Sy=["*://*/*","*","*://*"],Ey="immersive-translate-wildcard-placeholder.com";function Rf(e,t){try{let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(s=>Sy.includes(s)))return e;let r=new URL(e);r.hash="",r.search="";let a=r.href,i=r.hostname,o=r.port;if(n&&n.length>0){let s=n.find(u=>{if(!u)return!1;if(u===i)return!0;if(Sy.includes(u))return!0;if(!u.includes("*")&&u.includes("://")){try{let l=new URL(u);if(l.pathname==="/"&&!u.endsWith("/")){let c=l.hostname===i,m=l.port===o;return l.port?c&&m:c}else return tP(a,u)}catch{}return!1}else{let l,c=u;if(u.includes("://")){let y=u.split("://");l=y[0],l==="*"&&y.length>1&&(l="*",u="https://"+y[1])}else l="*",u="https://"+u;let m=u.replace(/\*/g,Ey),g;try{g=new URL(m)}catch{return k.debug("invalid match pattern",m,"raw match value:",c),!1}let p=g.host,f=g.pathname;f==="/"&&(c.replace("://","").includes("/")||(f="/*"));let b=eP(l+":",wy(p),wy(f));return b?b.test(e):!1}});if(s)return s}return null}catch{return null}}function wy(e){return e.replaceAll(Ey,"*")}function eP(e,t,n){let r="^";return e==="*:"?r+="(http:|https:|file:)":r+=e,r+="//",t&&(e==="file:"||(t==="*"?r+="[^/]+?":(t.match(/^\*\./)&&(r+="[^/]*?",t=t.substring(1)),r+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?r+="(/.*)?":n.includes("*")?(r+=n.replace(/\*/g,".*?"),r+="/?"):r+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):r+="/?",r+="$",new RegExp(r)}function gt(e,t){return Rf(e,t)!==null}function tP(e,t){let n=new URL(e),r=new URL(t);return n.hostname===r.hostname&&n.pathname===r.pathname&&n.protocol===r.protocol&&n.port===r.port}var Ay=ie+"StoreKey_";function Eo(e,t){let n=Ay+e;return j.storage.local.get(n).then(r=>r[n]===void 0?t:r[n])}function ky(e,t){let n=Ay+e;return j.storage.local.set({[n]:t})}var b$=Ly(2),Dy=Ly(3);function Ly(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let r=[];if(n==null)return r;let a=typeof n.slice=="function"?n:String(n),i=a.length-e+1;if(i<1)return r;for(;i--;)r[i]=a.slice(i,i+e);return r}}var nP=/\s+/g,rP=/[\t\n\v\f\r ]+/g;function My(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?aP:iP;return String(e).replace(t.style==="html"?rP:nP,t.trim?oP(n):n)}function aP(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function iP(){return" "}function oP(e){return t;function t(n,r,a){return r===0||r+n.length===a.length?"":e(n)}}var Py={}.hasOwnProperty;function sP(e){return e==null?"":My(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function uP(e){return Dy(" "+sP(e)+" ")}function lP(e){let t=uP(e),n={},r=-1;for(;++rn&&(n=i,r=a)}return[r,n]}function hP(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function bP(e,t,n,r){t=vP(t,n,r);let a=[],i;if(t)for(i in t)H0.call(t,i)&&a.push([i,yP(e,t[i])]);return a.length===0?Ff():a.sort(CP)}function yP(e,t){let n=0,r=-1;for(;++rt.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterss+u.length,0));let i=e.length-r,o={};for(let s of MP){let u=s[1],l=s[0],c=e.match(u),m=c?c.length:0;o[l]=m,m>n&&(n=m,t=l)}if(i>0){let s=o.ja/i;if(o.ko/i>.1)return"ko";if(s>.1)return"ja"}return n*2.5/i>.5?t==="zh-CN"?Uy(e)?"zh-TW":"zh-CN":t:"auto"}var Hy=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Bf=new Map(Hy),PP=new Map(Hy.map(([e,t])=>[t,e]));function qy(e,t,n=["en"]){if(!e)return"auto";try{let r=n.map(s=>PP.get(s));!t&&t!==0&&(t=25);let a=z0(e);if(a!=="auto")return a;let i={minLength:t,whitelist:[...Bf.keys()]},o=Iy(e,i);if(o&&o.length>0){if(o.length>1&&o[0][1]-o[1][1]<=.3)for(let c=0;c.5&&c/o.length<=.25){if(m=="eng"&&g<.95)break;return Bf.get(m)}}let[s,u]=o[0],l=Bf.get(s);if(l&&u>.9)return l}}catch(r){k.error(r)}return"auto"}function Di(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function _P(e,t){return e<>>32-t}function V0(e,t,n,r,a,i){return Di(_P(Di(Di(t,e),Di(r,i)),a),n)}function Nn(e,t,n,r,a,i,o){return V0(t&n|~t&r,e,t,a,i,o)}function Un(e,t,n,r,a,i,o){return V0(t&r|n&~r,e,t,a,i,o)}function jn(e,t,n,r,a,i,o){return V0(t^n^r,e,t,a,i,o)}function Hn(e,t,n,r,a,i,o){return V0(n^(t|~r),e,t,a,i,o)}function W0(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,r,a,i,o,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function Of(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(r=W0(r,e.length*8)),n=0;n<16;n+=1)a[n]=r[n]^909522486,i[n]=r[n]^1549556828;return o=W0(a.concat(Of(t)),512+t.length*8),zy(W0(i.concat(o),512+128))}function Wy(e){var t="0123456789abcdef",n="",r,a;for(a=0;a>>4&15)+t.charAt(r&15);return n}function Nf(e){return unescape(encodeURIComponent(e))}function Vy(e){return RP(Nf(e))}function FP(e){return Wy(Vy(e))}function Ky(e,t){return IP(Nf(e),Nf(t))}function BP(e,t){return Wy(Ky(e,t))}function xr(e,t,n){return t?n?Ky(t,e):BP(t,e):n?Vy(e):FP(e)}var ks=[],Z$=1e3*3600*24;async function bl(e,t){return await new Promise((n,r)=>{let a=e,i=1,o=indexedDB.open(a,i);o.onsuccess=s=>{n(o.result)},o.onerror=s=>{r()},o.onupgradeneeded=s=>{let u=o.result,l=t||"cache";u.createObjectStore(l,{keyPath:"key"})}})}async function K0(e){let t=`${P}-${e.service}@${e.from}->${e.to}`;return await NP(t,{...e,createAt:new Date().getTime()})}async function G0(e){let t=xr(e.originalText),n=`${P}-${e.service}@${e.from}->${e.to}`;return await OP(n,t)}async function OP(e,t){let n=await bl(e);return await new Promise((r,a)=>{if(!n)return a();let i="cache",s=n.transaction([i],"readonly").objectStore(i).get(t);s.onsuccess=u=>{n.close();let l=s.result;r(l)},s.onerror=u=>{n.close(),a()}})}async function NP(e,t){let n=await bl(e);return(await Uf()).includes(e)||await UP(e),await new Promise(a=>{if(!n)return a(!1);let i="cache",s=n.transaction([i],"readwrite").objectStore(i).put(t);s.onsuccess=u=>{n.close(),a(!0)},s.onerror=u=>{n.close(),a(!1)}})}async function UP(e){let t="cache_list",n=await bl(P+"-cacheList",t),a=n.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=i=>{n.close(),ks.push(e)},a.onerror=i=>{n.close()}}async function Uf(){if(ks&&ks.length>0)return ks;let e=await bl(P+"-cacheList","cache_list");return ks=await new Promise(t=>{let n="cache_list",a=e.transaction([n],"readonly").objectStore(n).getAllKeys();a.onsuccess=i=>{e.close(),t(a.result)},a.onerror=i=>{e.close(),t([])}}),ks}async function $0(){try{let e=[];(await Uf()).forEach(r=>{e.push(jP(r))});let n=await Promise.all(e);return pl(n.reduce((r,a)=>r+a,0))}catch{return pl(0)}}async function jP(e){let t=await bl(e),r=[...t.objectStoreNames].reduce((o,s)=>{let u=HP(t,s);return o.push(u),o},[]),a=await Promise.all(r);return t.close(),a.reduce((o,s)=>o+s,0)}async function HP(e,t){return await new Promise((n,r)=>{if(e==null)return r();let a=0,i=e.transaction([t]).objectStore(t).openCursor();i.onsuccess=o=>{let s=i.result;if(s){let u=s.value,l=JSON.stringify(u);a+=l.length,s.continue()}else n(a)},i.onerror=o=>r("error in "+t+": "+o)})}async function Gy(){try{let t=(await Uf()).map(r=>qP(r));return!!(await Promise.all(t)).every(r=>r)}catch{return!1}}async function qP(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=r=>{t(!1)}})}var Y0="Original";function ot(){return Y0}function Xn(e){Y0=e,Yy(Y0);let t=new CustomEvent(en,{detail:JSON.stringify({type:"updatePageStatus",payload:Y0})});document.dispatchEvent(t)}var $y="Original";function Ds(){return $y}function Rr(e,t){if(t)return;$y=e;let n=new CustomEvent(Iu,{detail:e});document.dispatchEvent(n)}var Jy="auto",Z0="auto",Zy="auto";function Xy(e){Jy=e}function Tr(e){Z0=e}function Dt(){return Z0!=="auto"?Z0:Zy!=="auto"?Zy:Jy}function J0(){return Z0}var yl=new Map,Ta=class{fromType;logger;constructor(t,n=!1){this.logger=new gl,n&&this.logger.setLevel("debug"),this.fromType=t,yl.has(t)||(yl.set(t,new Map),j.runtime.onMessage.addListener((r,a,i)=>{let o=r.from,s=r.to,u,l,c;a.tab&&a.tab.id&&(u=a.tab.id,o=`${o}:${u}`,l=a.tab.url,c=a.tab.active),this.logger.debug(`${r.to} received message [${r.payload.method}] from ${r.from}`,r.payload.data?r.payload.data:" ");let m=Hf(s),{type:g,name:p}=m;if(g!==t)return!1;let f=Hf(o),y=yl.get(g).get(p);if(!y)return this.logger.debug(`no message handler for ${g}:${s}, but it's ok`),!1;let{messageHandler:h,sync:v}=y,C={type:t,name:f.name,id:u,url:l,active:c};if(v){try{let T=h(r.payload,C);i({ok:!0,data:T})}catch(T){i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.details,errorStatus:T.status})}return!1}else return h(r.payload,C).then(T=>{i({ok:!0,data:T})}).catch(T=>{i({ok:!1,errorName:T.name,errorMessage:T.message,errorDetails:T.message,errorStatus:T.status})}),!0}))}getConnection(t,n,r){let a=!1;r&&r.sync&&(a=!0);let i=this.fromType,o=yl.get(i);if(o.has(t))return o.get(t).connectionInstance;{let s=new jf(`${i}:${t}`,this.logger);return yl.get(i).set(t,{messageHandler:n,sync:a,connectionInstance:s}),s}}},jf=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let r=Hf(t),{type:a,id:i}=r;if(a!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let s=await j.runtime.sendMessage(o);return Qy(o,s,this.logger)}catch(s){if(a==="popup"){let u=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(u,n,t,s),Promise.resolve({message:u})}else throw s}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let s=await j.tabs.sendMessage(i,o);return Qy(o,s,this.logger)}}};function Qy(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new W(t.errorName||"UnknownError",t.errorMessage||"Unknown error").initNetWork(t.errorStatus)}else throw new W("noResponse","Unknown error")}function Hf(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let r=parseInt(t[2]);if(!isNaN(r))n.id=r;else throw new Error("tab id not a valid number")}return n}function Ao(e){return e?.id?.endsWith("pdfWebPage")||!1}function ko(e){try{if(!e||!Ao(e))return"";let t="";if(e.pdfUrlExtractRule.attribute&&e.pdfUrlExtractRule.selector){let r=e.pdfUrlExtractRule,{selector:a,attribute:i}=r;if(a&&i){let o=document.querySelector(a);if(!o)return"";t=o.getAttribute(i)||""}}else t=document.querySelector("embed[type='application/pdf']")?.getAttribute("src")||"";if(t.startsWith("about"))return"";if(!t.startsWith("/"))return t;let n=new URL(location.href);return t.startsWith("//")?n.protocol+t:n.protocol+"//"+n.host+t}catch{return""}}var Ve={},Sa=async function(e,t){let{method:n,data:r}=e;if(n==="getIsDulSubtitle")return Ve.getIsDulSubtitle();if(n==="getPageStatus")return ot();n==="updateContextState"&&await Ve.updateContextState(r);let a=await Ve.updateGlobalContext(),i=Date.now();if(k.debug(`content script received message: ${n}`,r||" "),n==="translateTheWholePage")await Ve.translateTheWholePage(r),Ze(Dr,i);else if(n==="translateTheMainPage")await Ve.translateTheMainPage(r),Ze(Dr,i);else if(n==="translateToThePageEndImmediately")await Ve.translateToThePageEndImmediately(r),Ze(Dr,i);else if(n==="toggleTranslateManga")await Ve.toggleTranslateManga(),Ze(Dr,i);else if(n==="toggleTranslatePage"){let o=location.href;if(Ao(a?.rule)){let s=ko(a.rule);Ls(!0,s||o);return}await Ve.toggleTranslatePage(r),Ze(Dr,i)}else if(n==="toggleTranslateTheWholePage")await Ve.toggleTranslateTheWholePage(r),Ze(Dr,i);else if(n==="toggleTranslateTheMainPage")await Ve.toggleTranslateTheMainPage(r),Ze(Dr,i);else if(n==="toggleOnlyTransation")await Ve.ensureSwitchTranslationMode(r),Ze(Dr,i);else if(n=="toggleEnableEditTranslation")Ve.toggleEnableEditTranslation();else if(n==="translatePage")await Ve.translatePage(a,r),Ze(Dr,i);else if(n==="toggleTranslationMask")await Ve.toggleTranslationMask(r);else if(n==="restorePage")Ve.restorePage();else if(n==="retryFailedParagraphs")Ve.retryFailedParagraphs();else if(n=="change_translate_service")Ve.reportTranslateService(a,r);else if(n==="switchTranslationMode"){if(a.rule.isPdf)return;r&&r.mode&&(await Ve.switchTranslationMode(r.mode),await Ve.reloadSubtitleWithTranslationModeChanged())}else if(n==="autoEnableSubtitleChanged")Ve.autoEnableSubtitleChanged(a,r);else if(n=="shareToDraft")globalThis.document.dispatchEvent(new CustomEvent(zc,{detail:r}));else if(n=="toggleTranslateToThePageEndImmediately")await Ve.toggleTranslateToThePageEndImmediately(r);else if(n==="toggleMouseHoverTranslateDirectly")globalThis.document.dispatchEvent(new CustomEvent(Lu,{detail:r}));else if(n==="translateWithOpenAI")await Ve.translatePageWithTranslationService("openai",r);else if(n==="translateWithGoogle")await Ve.translatePageWithTranslationService("google",r);else if(n==="translateWithDeepL")await Ve.translatePageWithTranslationService("deepl",r);else if(n==="translateWithBing")await Ve.translatePageWithTranslationService("bing",r);else if(n==="translateWithTransmart")await Ve.translatePageWithTranslationService("transmart",r);else if(n==="translateWithGemini")await Ve.translatePageWithTranslationService("gemini",r);else if(n==="translateWithClaude")await Ve.translatePageWithTranslationService("claude",r);else if(n.startsWith("translateWithCustom"))await Ve.translatePageWithTranslationService(a.config.rawUserConfig?.shortcuts?.translateWithCustomServices?.[n]??"bing",r);else if(n==="translateInputBox")await Ve.translateInputBoxWithShortcut(a);else if(n!=="updateGlobalCtx")if(n==="toggleVideoSubtitlePreTranslation")xt()||await Ve.toggleVideoSubtitlePreTranslation();else if(n==="getAsyncContextString"){if(!xt())return JSON.stringify(a);await ut(5e3)}else if(n==="inputSelectedTextTranslate")await Ve.inputSelectedTextTranslate(a,r);else{if(n==="popupEventReport")return Ve.popupEventReport(a,r);if(n==="updateFloatBallEnable")return Ve.updateFloatBallEnable();n==="webReport"?document.dispatchEvent(new CustomEvent(co,{detail:{type:"webReport"}})):n===Pu&&await Ve.translateSelectImage(a,r)}};function ev(e){Object.assign(Ve,e)}function tv(e){Object.assign(Ve,e)}function nv(e){Object.assign(Ve,e)}var zP=function(e,t){let{method:n,data:r}=e;if(k.debug(`content script received sync message: ${n}`,r||" "),n==="ping")return"pong";if(n==="getPageStatus")return ot();if(n==="getCurrentPageLanguage"){let a=Dt();return Ve.detectCurrentPageLanguage().catch(i=>{k.warn("detectCurrentPageLanguage failed",i)}),a}else{if(n==="setCurrentPageLanguageByClient")return Tr(r),Dt();if(n==="getContextString"){let a=Ve.getPureGlobalContext(),{articleNode:i,bodyNode:o,...s}=a;return JSON.stringify(s)}else if(n=="getPdfWebUrl"){let a=Ve.getPureGlobalContext();return ko(a?.rule)}}},X0,Q0;function rv(){let e=ed();xt()||WP(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function ed(){return X0||(X0=new Ta("content_script",!1).getConnection("main",Sa),X0)}function WP(){return Q0||(Q0=new Ta("content_script",!1).getConnection("main_sync",zP,{sync:!0}),Q0)}var vl=new Map;function av(){document.addEventListener(c2,e=>{let t=e;if(t&&t.detail){let n;try{n=JSON.parse(t.detail),vl.has(n.id)&&(n.ok?vl.get(n.id)(null,n.data):vl.get(n.id)(new Error(n.errorMessage),null),vl.delete(n.id))}catch{}}})}function td(e){let t=VP(64),n=new CustomEvent(s2,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((r,a)=>{vl.set(t,(i,o)=>{i?a(i):r(o)})})}function VP(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[n,t]));static getClientKey(){return"tencent_transmart_crx_"+btoa(navigator.userAgent).slice(0,100)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},r=await ee({url:nd,method:"POST",body:JSON.stringify(n)});if(r.header.ret_code!=="succ")throw new Error(r.message||r.header.ret_code);let a=r.language,i=e.langMapReverse.get(a);return i||a}};function KP(e,t){return Math.floor(Math.random()*(t-e+1))+e}var GP=30,zf="RATE_LIMITER_TICKS",Li=class e{static strictTicks={};static clearStrictTicks(){Yr(zf,"{}")}static async getStrictTicks(t,n){if(n)return this.strictTicks[t]||[];try{let r=await Do(zf)||"";r&&(this.strictTicks=JSON.parse(r)||{})}catch(r){k.debug("Error setting rate limiter ticks",r),this.strictTicks[t]=[]}finally{return this.strictTicks[t]||[]}}static wait(t,n){return new Promise((r,a)=>{e.getDelay(t,n).then(i=>{setTimeout(()=>{r(i)},i)})})}static async setStrictTicks(t,n,r){try{if(this.strictTicks[t]=n,r)return;await Yr(zf,JSON.stringify(this.strictTicks))}catch(a){k.debug("Error setting rate limiter ticks",a)}}static async getDelay(t,n,r=!1){if(!r){let l=KP(4,GP);await ut(l)}let a=await this.getStrictTicks(t,r)||[],{limit:i,interval:o}=n,s=Date.now();if(a.length=u?(a.push(s),await this.setStrictTicks(t,a,r),0):(a.push(u),await this.setStrictTicks(t,a,r),u-s)}};async function Tt(e){return await ed().sendMessage("background:main",e)}function ee(e){return _c()?td({method:"request",data:e}):J()||Pc()?(e.fetchPolyfill=globalThis.GM_fetch,Br(e)):Tt({method:"fetch",data:e})}function iv(e){return J()?Promise.resolve():Tt({method:"reportOptionsPageView",data:e})}function Ir(){return J()?Je():Tt({method:"getConfig"})}function ln(e){return J()?sr(e):Tt({method:"setUserConfig",data:e})}function Yt(){return J()?cn():Tt({method:"getUserConfig"})}function Ln(){return J()?Mt():Tt({method:"getLocalConfig"})}function Fr(e){return J()?kt(e):Tt({method:"setLocalConfig",data:e})}function ov(e){return J()?Cv(e):Tt({method:"setBuildinConfig",data:e})}async function ze(e){if(e.text){let n=z0(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(J()||je()){if(e.translateService&&!U0.includes(e.translateService))return Promise.resolve("auto");let r=qy(e.text,e.minLength,e.pageLangs);return Promise.resolve(r)}let t=await Tt({method:"detectLanguage",data:e});return Promise.resolve(t)}function sv(){return Tt({method:"detectTabLanguage"})}async function rd(e){let t=await ze({text:e,pageLangs:["en"]});try{if(J()||je()){let n=e.substring(0,200);t=await ri.detectLanguageRemotelyByTransmart(n)}}catch{}return t}function Yy(e){let t=new CustomEvent(mo,{detail:e});if(document.dispatchEvent(t),J())return;ed().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(r=>{})}function uv(e){return J()?G0(e):Tt({method:"queryParagraphCache",data:e})}async function lv(e){if(J()){await K0(e);return}return Tt({method:"setParagraphCache",data:e})}async function cv(){if(J())return Promise.resolve();await Tt({method:"mockRequest"})}function wa(e=!1,t=""){return document.querySelector(`meta[name=${P}-options]`)?(location.href=location.href.replace(/options.html.+/g,`options.html${t}`),Promise.resolve()):J()?(j.runtime.openOptionsPage(e,t),Promise.resolve()):Tt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function ad(e=""){return J()||je()?Se().OPTIONS_URL:j.runtime.getURL("options.html")}function dv(e=""){return j&&j.runtime&&j.runtime.getURL?j.runtime.getURL("options.html"):""}function id(e=!1){return J()?(j.extra.openAboutPage(e),Promise.resolve()):Tt({method:"openAboutPage"})}function Ea(e){return J()?(j.extra.openInTab(e),Promise.resolve()):Tt({method:"openInTab",data:e})}function mv(e=!1){return J()?(j.extra.openEbookViewerPage(e),Promise.resolve()):Tt({method:"openEbookViewerPage"})}function gv(e=!1){return J()?(j.extra.openEbookBuilderPage(e),Promise.resolve()):Tt({method:"openEbookBuilderPage"})}function pv(e){je()}function Ls(e=!1,t){return J()?(j.extra.openPdfViewerPage(e),Promise.resolve()):Tt({method:"openPdfViewerPage",data:{url:t}})}function fv(e=!1){return J()?(j.extra.openSubtitleBuilderPage(e),Promise.resolve()):Tt({method:"openSubtitleBuilderPage"})}function Cl(e){return J()?Promise.resolve():Tt({method:"setBadge",data:{text:e}})}function hv(){return J()?(k.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Tt({method:"autoSyncLatestConfig"})}function od(e,t=!1){return J()?j.extra.openInTab(e,t):globalThis.open(e,t?"_blank":"_self"),Promise.resolve()}function bv(e,t){return J()||Ae.MOCK==="1"?Li.getDelay(e,t):Tt({method:"getDelay",data:{key:e,options:t}})}async function yv(){return J()?!1:Tt({method:"getIsSupportIsOnToolbar"})}async function vv(){return J()?!1:Tt({method:"getIsOnToolbar"})}async function Wf(){if(!J())return Tt({method:"updateVideoSubtitleStatus"})}function xl({targetLanguage:e,text:t}){J()||Tt({method:"updateToggleTranslateContextMenu",data:{targetLanguage:e,text:t}})}function Tl(){J()||Tt({method:"updateImageMenu"})}var xv={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",goLogin:"\u53BB\u767B\u5F55",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",help:"\u5E2E\u52A9",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 - \u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6 | PDF\u7FFB\u8BD1 | \u514D\u8D39","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8BD1\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8BD1\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u3011\u4E00\u6B3E\u514D\u8D39\u7684\uFF08\u539F\u6587/\u8BD1\u6587\uFF09\u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1\u63D2\u4EF6\uFF0C\u540C\u65F6\u652F\u6301PDF\u7FFB\u8BD1\u548CEPUB\u7535\u5B50\u4E66\u7FFB\u8BD1\u4E14\u4FDD\u7559\u539F\u6587\u6863\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u7FFB\u8BD1\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8BD1\u670D\u52A1;","browser.toggleTranslatePage":"\u7FFB\u8BD1\u4E3A{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6","browser.translateMangaMenuId":"\u7FFB\u8BD1\u56FE\u7247/\u8FD8\u539F\u56FE\u7247",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7",mouseHoldKey:"+ {key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5",mouseHoldKeyPressHold:"+ \u957F\u6309\u9F20\u6807\u5DE6\u952E",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1/\u8FD8\u539F\u8BE5\u6BB5","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u4F7F\u7528\u6559\u7A0B",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",advanced:"\u8FDB\u9636\u8BBE\u7F6E",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",helpToTranslate:"\u534F\u52A9\u7FFB\u8BD1\u754C\u9762",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",enableNavTranslate:"\u5F00\u542F\u4FA7\u8FB9\u680F\u7FFB\u8BD1",disableNavTranslate:"\u5173\u95ED\u4FA7\u8FB9\u680F\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",autoEnableSubtitle:"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55",add:"\u6DFB\u52A0","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91",pickAll:"\u5168\u9009","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C06\u5185\u5BB9\u7FFB\u8BD1\u6210\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65","floatBallOptions.enable":"\u542F\u7528\u60AC\u6D6E\u7403","floatBallOptions.blockUrls":"\u7981\u7528\u7F51\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u663E\u793A\u60AC\u6D6E\u7403","floatBallOptions.clickType":"\u70B9\u51FB\u884C\u4E3A","floatBallOptions.clickTypeDesc":"\u60AC\u6D6E\u7403\u56FE\u6807\u70B9\u51FB\u65F6\u7684\u884C\u4E3A","floatBallOptions.clickPopup":"\u663E\u793A\u7FFB\u8BD1\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8BD1/\u663E\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u60AC\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u4FA7\u8FD8\u662F\u53F3\u4FA7","floatBallOptions.fixedPositionLeft":"\u5DE6\u4FA7","floatBallOptions.fixedPositionRight":"\u53F3\u4FA7",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.claude":"Claude","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.deepseek":"DeepSeek","translationServices.aliyun-bailian":"\u963F\u91CC\u4E91\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan":"\u817E\u8BAF\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8BD1","translationServices.zhipu":"\u667A\u8C31 GLM \u7FFB\u8BD1","translationServices.lingyiwanwu":"\u96F6\u4E00\u4E07\u7269","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8BD1\u6587\u6837\u5F0F",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)","customThemeLabel.weight":"\u5B57\u4F53\u7C97\u7EC6","customThemeLabel.italics":"\u8BBE\u7F6E\u4E3A\u659C\u4F53",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.accessPoint":"\u63A5\u5165\u70B9","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.accessPoint":"\u8FD9\u91CC\u7684\u63A5\u5165\u70B9\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E2A\u63A8\u7406\u70B9\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","description.siliconcloudCustomAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>SiliconCloud \u5408\u4F5C\u4E3A\u60A8\u63D0\u4F9B\u7684\u514D\u8D39\u5927\u6A21\u578B\u7FFB\u8BD1\uFF0C\u5176\u4ED6\u6A21\u578B\u9700\u8981\u586B\u5199 API-Key \u624D\u80FD\u4F7F\u7528","description.zhipuFreeAPIKey":"\u53EF\u9009\uFF0C\u4E0D\u586B\u5219\u9ED8\u8BA4\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u548C <1>\u667A\u8C31 \u5408\u4F5C\u4E3A\u60A8\u514D\u8D39\u63D0\u4F9B\u7684 glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8BF7\u53C2\u8003<2>\u6B64\u6587\u6863","description.zhipuCustomAPIKey":"\u975E\u514D\u8D39\u6A21\u578B\u9700\u8981\u586B\u5199<1>\u667A\u8C31\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003<2>\u6559\u7A0B","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740\uFF0C<1>\u66F4\u591A\u8BF4\u660E",enabledExtension:"\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6","error.retry":"\u91CD\u8BD5","error.reason":"\u9519\u8BEF\u539F\u56E0",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u5B9A\u4E49\u89E6\u53D1\u7684\u5FEB\u6377\u952E\u548C\u8FDE\u51FB\u7684\u95F4\u9694\u65F6\u95F4\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1",autoRenewTrialSuffix:'\uFF08\u8BD5\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458\uFF09',subtitle:"\u89C6\u9891\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u89C6\u9891\u5B57\u5E55\u7FFB\u8BD1\u670D\u52A1","subtitle.disabledSubtitle":"\u6C38\u4E45\u7981\u7528\u89C6\u9891\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u548C\u5176\u4ED6\u6269\u5C55\u6709\u51B2\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u6C38\u4E45\u7981\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u89C6\u9891\u5B57\u5E55\u529F\u80FD\u6216\u8005\u5378\u8F7D\u5176\u4ED6\u51B2\u7A81\u7684\u6269\u5C55","subtitle.humanSubtitlesPreferred":"\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u5F53\u89C6\u9891\u6709\u76EE\u6807\u8BED\u8A00\u4EBA\u5DE5\u5B57\u5E55\u65F6\uFF0C\u4F18\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u8350\uFF09","subtitle.bilingual":"\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u663E\u793A\u8BE5\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u5728\u64AD\u653E\u5668\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F",videoSubtitleTranslationDescription:"\u4E3A\u89C6\u9891\u5B57\u5E55\u5355\u72EC\u6307\u5B9A\u4E00\u4E2A\u7FFB\u8BD1\u670D\u52A1",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52A1\u7FFB\u8BD1\u5B57\u5E55\u4E2D\uFF0C\u8BF7\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8BD1\uFF09",subtitleLoading:"\u6B63\u5728\u52A0\u8F7D\u5B57\u5E55...",bilingual:"\u53CC\u8BED","field.action":"\u662F\u5426\u542F\u7528\u767E\u5EA6\u672F\u8BED","description.action":"\u542F\u7528\u540E\u4F1A\u5728\u8BF7\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C2\u6570\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u542F\u7528\u672F\u8BED\uFF0C<1>\u66F4\u591A\u8BF4\u660E\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863",closeQuickTranslation:"\u5173\u95ED\u60AC\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u5173\u95ED\u76F4\u5230\u4E0B\u6B21\u8BBF\u95EE","closeQuickTranslation.currentWebsite":"\u5F53\u524D\u7F51\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8BBE\u7F6E\u9875\u5F00\u542F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u786E\u5B9A","floatBall.translate":"\u70B9\u51FB\u7FFB\u8BD1\u8BE5\u9875\u9762","floatBall.showOriginal":"\u70B9\u51FB\u5207\u6362\u56DE\u539F\u6587","floatBall.close":"\u5173\u95ED\u60AC\u6D6E\u7403","floatBallOptions.enableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1","floatBallOptions.enableDesc":"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","description.azureApiUrl":"\u586B\u5199\u81EA\u5B9A\u4E49\u7684API\u63A5\u53E3\u5730\u5740","floatBall.guideClickToTranslate":`\u70B9\u51FB\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u60AC\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8BD1`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u542F\u7528\u4EC5\u9F20\u6807\u6A21\u5F0F",confirmSupportMouseDescription:"\u5F53\u524D\u8BBE\u5907\u652F\u6301\u89E6\u6478\u5C4F\u3002\u9ED8\u8BA4\u4F7F\u7528\u89E6\u6478\u6A21\u5F0F\uFF0C\u542F\u7528\u6B64\u5F00\u5173\u5C06\u5207\u6362\u81F3\u4EC5\u9F20\u6807\u6A21\u5F0F\u3002",sampleTargetText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u53CC\u8BED\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8BD1)",errorReason:"\u9519\u8BEF\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A

1. \u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"
3. \u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8BD1\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6570",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u8FD9\u91CC\u6307\u7684\u5B57\u7B26\u957F\u5EA6\uFF0C\u6BD4\u5982: hello \u662F 5 \u4E2A\u5B57\u7B26, \u8BBE\u7F6E\u4E3A\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u51CF\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8BD1",networkError:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u51FA\u73B0\u95EE\u9898",notLogin:"\u672A\u767B\u5F55","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9875\u9762\u4E0A\u4E34\u65F6\u542F\u7528\u6216\u5173\u95ED\u9F20\u6807\u60AC\u505C\u76F4\u63A5\u7FFB\u8BD1","browser.translateWithOpenAI":"\u4E34\u65F6\u4F7F\u7528 OpenAI \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithDeepL":"\u4E34\u65F6\u4F7F\u7528 DeepL \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGoogle":"\u4E34\u65F6\u4F7F\u7528 Google \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithBing":"\u4E34\u65F6\u4F7F\u7528\u5FAE\u8F6F\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithGemini":"\u4E34\u65F6\u4F7F\u7528 Gemini \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithTransmart":"\u4E34\u65F6\u4F7F\u7528\u817E\u8BAF\u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithClaude":"\u4E34\u65F6\u4F7F\u7528 Claude \u7FFB\u8BD1\u5F53\u524D\u9875\u9762","browser.translateWithCustom1":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(1)","browser.translateWithCustom2":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(2)","browser.translateWithCustom3":"\u4E34\u65F6\u4F7F\u7528\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u7FFB\u8BD1\u5F53\u524D\u9875\u9762(3)","browser.translateInputBox":"\u7FFB\u8BD1\u5F53\u524D\u8F93\u5165\u6846\u5185\u5BB9",shortcutSettings:"\u5FEB\u6377\u952E",shortcutSettingsTitle:"\u5FEB\u6377\u952E\u8BBE\u7F6E",confirmResetToDefaultSettings:"\u786E\u8BA4\u8981\u6062\u590D\u8BE5\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E\u5417\uFF1F\uFF08\u4EC5\u91CD\u7F6E\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u7684\u8BBE\u7F6E\uFF09","intro.hoverTitle":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D","intro.hoverDescription":"\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u662F\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u91CC\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C06\u9F20\u6807\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u65F6\u6309\u4E0B\u8BBE\u5B9A\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u81EA\u52A8\u7FFB\u8BD1\u5F53\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9ED8\u8BA4\u6CA1\u6709\u542F\u7528\u54E6\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8BBE\u7F6E\uFF09\uFF0C\u8BE5\u4EA4\u4E92\u7528\u4E8E\u66F4\u597D\u7684\u66FF\u4EE3\u5212\u8BCD\u7FFB\u8BD1\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u8FD8\u5E7F\u6CDB\u5E94\u7528\u4E8E\u90A3\u4E9B\u65E0\u6CD5\u88AB\u8BC6\u522B\u7684\u7FFB\u8BD1\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8BE5\u529F\u80FD\uFF0C\u5F3A\u5236\u7FFB\u8BD1\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403","intro.floatBallDescription":"\u542F\u7528\u540E\uFF0C\u4F1A\u5728\u9875\u9762\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\uFF0C\u518D\u6B21\u70B9\u51FB\u5373\u53EF\u5207\u6362\u56DE\u539F\u6587\u3002\u5728\u79FB\u52A8\u7AEF\uFF0C\u957F\u6309\u60AC\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u5F00\u5FEB\u6377\u8BBE\u7F6E\u9762\u677F\u3002","intro.subtitleTitle":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u663E\u793A","desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u8FD9\u4E2A\u5FEB\u6377\u952E\u540E\uFF0C\u5728\u9875\u9762\u4E0A\uFF0C\u53EA\u8981\u9F20\u6807\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u8FD9\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u6377\u952E\uFF0C\u5C31\u53EF\u4EE5\u5173\u95ED\u8FD9\u4E2A\u81EA\u52A8\u7FFB\u8BD1\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u4E49\u529F\u80FD\u5FEB\u6377\u952E","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8BD1\u670D\u52A1\u76F8\u5173\u5FEB\u6377\u952E",browserShortcutsSucks:"\u7531\u4E8E\u6D4F\u89C8\u5668\u5BF9\u8F93\u5165\u6846\u7684\u5FEB\u6377\u952E\u8BC6\u522B\u4E0D\u51C6\u786E\uFF0C\u6240\u4EE5\u8BF7\u624B\u52A8\u8F93\u5165\u5FEB\u6377\u952E\u7684\u540D\u5B57\uFF0C\u8F93\u5165\u540E\uFF0C\u70B9\u51FB\u7A7A\u767D\u5904\u5373\u53EF\u81EA\u52A8\u4FDD\u5B58\u3002\uFF08macOS \u91CC\u9762 Alt \u548C Option \u662F\u540C\u6837\u7684\u952E\uFF0C\u5EFA\u8BAE\u7EDF\u4E00\u8F93\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89E6\u5C4F\u4E13\u7528\u624B\u52BF","shortcutGroup.mouse":"\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u5355\u8BCD\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8BD1","neverTranslateText.description":"\u7531\u4E8E\u67D0\u4E9B\u7FFB\u8BD1\u5F15\u64CE\u5BF9\u4E13\u6709\u540D\u8BCD\u8BC6\u522B\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u5904\u6DFB\u52A0\u5355\u8BCD\uFF0C\u786E\u4FDD\u5B83\u4EEC\u5728\u7FFB\u8BD1\u8FC7\u7A0B\u4E2D\u4E0D\u88AB\u8F6C\u6362\u3002\u8BF7\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u533A\u5206\u5927\u5C0F\u5199\uFF0C\u5E76\u4EC5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u5355\u8BCD\u8BED\u8A00\uFF08\u5982\u82F1\u8BED\u3001\u6CD5\u8BED\uFF09\uFF0C\u4E0D\u9002\u7528\u4E8E\u65E5\u8BED\u3001\u97E9\u8BED\u7B49\u8BED\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u67D0\u4E2A\u6BB5\u843D\u4E0A\u65F6\uFF0C\u540C\u65F6\u6309\u4E0B\u53F3\u4FA7\u7684\u5FEB\u6377\u952E\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u4E49\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u4E49\u4E00\u4E2A\u9F20\u6807\u60AC\u505C\u7684\u7EC4\u5408\u5FEB\u6377\u952E\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8BF7\u624B\u52A8\u8F93\u5165",mouseHoverShortcutPlaceholder:"\u8BF7\u624B\u52A8\u8F93\u5165",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D-> \u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D",browserShortcutsNoteForChrome:"\u8BF7\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u4E8EChrome\u5185\u6838\u7684\u6D4F\u89C8\u5668\u4E2D\u4FEE\u6539\u5FEB\u6377\u952E\uFF0C\u8BF7\u8BBF\u95EE[\u6269\u5C55\u7BA1\u7406\u9875\u9762] -> [\u7BA1\u7406\u5FEB\u6377\u952E] ","desc.toggleTranslateTheMainPage":"\u4EC5\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF\uFF0C\u5F53\u4F60\u5728\u8FDB\u9636\u8BBE\u7F6E\u91CC\u542F\u7528\u4E86\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\u540E\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF0C\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u6211\u4EEC\u4F1A\u7FFB\u8BD1\u9875\u9762\u7684\u4E3B\u8981\u533A\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u8FD9\u4E2A\u5FEB\u6377\u952E\u6765\u4E13\u95E8\u7FFB\u8BD1\u9875\u9762\u7684\u5168\u90E8\u533A\u57DF","browser.toggleTranslationMask":"\u5207\u6362\u5F53\u524D\u9875\u9762\u8BD1\u6587\u4E3A\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u754C\u9762\u8BED\u8A00\u8BBE\u7F6E\u5F71\u54CD\u63A7\u5236\u9762\u677F\u7684\u663E\u793A\u8BED\u8A00\uFF0C\u548C\u7FFB\u8BD1\u7684\u76EE\u6807\u8BED\u8A00\u65E0\u5173",mouseHoverHoldKey:"\u60AC\u505C\u7FFB\u8BD1\u89E6\u53D1\u952E",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",shortcutDisableTooltip:"\u8BF7\u5728\u6D4F\u89C8\u5668\u63D0\u4F9B\u7684\u6269\u5C55\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\uFF0C\u66F4\u591A\u6307\u5F15\u8BF7\u67E5\u770B\u672C\u9875\u9762\u6700\u4E0A\u65B9\u7684\u8BF4\u660E",floatBallOptions:"\u60AC\u6D6E\u7403","floatBall.longPress":"\u957F\u6309\u53EF\u5FEB\u901F\u6253\u5F00\u8BBE\u7F6E\u9762\u677F\u54E6",notLoginPro:"\u60A8\u8FD8\u672A\u767B\u5F55\u60A8\u7684\u4F1A\u5458\u8D26\u6237",upgradeToProErrorTitle:"\u8BF7\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u518D\u4F7F\u7528\u8BE5\u7FFB\u8BD1\u670D\u52A1",loggedIn:"\u5DF2\u767B\u5F55","description.baiduField":"\u652F\u6301\u7684\u9886\u57DF\u89C1<1>\u8FD9\u91CC\uFF0C\u4E3A\u7A7A\u5219\u8868\u793A\u4E0D\u6307\u5B9A\u9886\u57DF","widget.translateFile":"PDF/ePub","widget.instruction":"\u4F7F\u7528\u8BF4\u660E",buildSnapshots:"\u751F\u6210\u7F51\u9875\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1{language}\u9875\u9762",alwaysTranslateThisSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",touchShortcutsToggleTranslatePage:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u6765\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8BBE\u7F6E\u540E\uFF0C\u5728\u79FB\u52A8\u8BBE\u5907\u65F6\uFF0C\u53EF\u4EE5\u540C\u65F6\u7528 X \u4E2A\u624B\u6307\u89E6\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52A8\u6216\u8FDE\u7EED\u70B9\u51FB\uFF0C\u89E6\u53D1\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u663E\u793A\u7FFB\u8BD1\u906E\u7F69/\u663E\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8BD1\u906E\u7F69\u662F\u6307\u8BD1\u6587\u6837\u5F0F\u91CC\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09\uFF0C\u5F00\u542F\u540E\u4E34\u65F6\u5BF9\u8BD1\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B66\u4E60",touchShortcutsToggleTranslateTouchElement:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u4E49\u4E00\u4E2A\u624B\u52BF\uFF0C\u5373\u53EF\u7FFB\u8BD1\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478","multipleClick.2":"\u53CC\u51FB","multipleClick.3":"\u4E09\u8FDE\u51FB","multipleClick.4":"\u56DB\u8FDE\u51FB","slide.left":"\u5411\u53F3\u6ED1\u52A8","slide.right":"\u5411\u5DE6\u6ED1\u52A8",contact:"\u8054\u7CFB\u6211\u4EEC","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u95EE\u9898\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u586B\u5199\u4E0B\u65B9\u8868\u5355\u8054\u7CFB\u6211\u4EEC\uFF0C\u6216\u8005\u53D1\u9001\u90AE\u4EF6\u81F3 {email}\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D\u60A8\u3002","font.none":"\u65E0","font.Microsoft YaHei":"\u5FAE\u8F6F\u96C5\u9ED1","font.SimSun":"\u5B8B\u4F53","font.NSimSun":"\u65B0\u5B8B\u4F53","font.Microsoft JhengHei":"\u5FAE\u8F6F\u6B63\u9ED1\u4F53","font.Source Han Serif":"\u601D\u6E90\u5B8B\u4F53","font.Source Han Sans":"\u601D\u6E90\u9ED1\u4F53","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u4F53","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u4F53\u7B80\u4F53","font.KaiTi":"\u6977\u4F53","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u82F9\u65B9","font.STHeiti":"\u534E\u6587\u9ED1\u4F53","font.STKaiti":"\u534E\u6587\u6977\u4F53","font.STSong":"\u534E\u6587\u5B8B\u4F53","font.STFangsong":"\u534E\u6587\u4EFF\u5B8B","font.STZhongsong":"\u534E\u6587\u4E2D\u5B8B","font.STHupo":"\u534E\u6587\u7425\u73C0","font.STXinwei":"\u534E\u6587\u65B0\u9B4F","font.STLiti":"\u534E\u6587\u96B6\u4E66","font.STXingkai":"\u534E\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u4F53","font.Lantinghei SC":"\u5170\u4EAD\u9ED1","font.Hanzipen SC":"\u6C49\u4EEA\u7FE9\u7FE9\u4F53","font.Hannotate SC":"\u6C49\u4EEA\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u4F53","font.Wawati SC":"\u5A03\u5A03\u4F53","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5706\u4F53","browser.toggleVideoSubtitlePreTranslation":"\u5207\u6362\u53CC\u8BED\u5B57\u5E55\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBE\u7F6E","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u540E\uFF0C\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u4F1A\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8BBE\u7F6E\uFF0C\u518D\u6B21\u6309\u4E0B\u4F1A\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8BE5\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8BBE\u7F6E",videoSubtitlePreTranslationOn:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",videoSubtitlePreTranslationOff:"\u89C6\u9891\u5B57\u5E55\u5C06\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55",translationFont:"\u8BBE\u7F6E\u5B57\u4F53","translationFont.custom":"\u8F93\u5165\u81EA\u5B9A\u4E49\u5B57\u4F53","translationFont.customPlaceholder":"\u5B57\u4F53","translationFont.notSupportErrorMessage":"\u8BF7\u68C0\u67E5\u60A8\u8F93\u5165\u7684\u5B57\u4F53\u540D\u79F0\u662F\u5426\u6B63\u786E\uFF0C\u6216\u786E\u8BA4\u8BE5\u5B57\u4F53\u5DF2\u5728\u60A8\u7684\u8BBE\u5907\u4E0A\u5B89\u88C5\u3002","touch.mouse-translate":"\u7FFB\u8BD1\u6307\u5B9A\u6BB5\u843D","translationServices.inherit":"\u8DDF\u968F\u4E3B\u7FFB\u8BD1\u670D\u52A1","error.serveConfigError":"\u670D\u52A1\u914D\u7F6E\u9519\u8BEF","error.reloadPageOfSetting":"\u914D\u7F6E\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.googleLimitIp":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8C37\u6B4C\u670D\u52A1\u5DF2\u5BF9\u8BE5IP\u5730\u5740\u8FDB\u884C\u9650\u6D41\uFF0C\u5EFA\u8BAE\u60A8\u66F4\u6362\u7F51\u7EDC\u8282\u70B9\u3002","error.openAIFreeLimit":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u5F53\u524D\u7684\u7FFB\u8BD1\u8BF7\u6C42\u9891\u7387\u5DF2\u8FBE\u5230\u6BCF\u5206\u949F\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002\uFF08\u8FD9\u662F OpenAI \u5B98\u65B9\u5BF9\u514D\u8D39 API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8BF7\u5728 OpenAI \u540E\u53F0\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A\u4F60\u5F53\u524D\u7684 OpenAI \u8D26\u6237\u4F59\u989D\u4E0D\u8DB3\uFF0C\u8BF7\u5728 OpenAI \u5B98\u65B9\u540E\u53F0\u8FDB\u884C\u5145\u503C\u6216\u8005\u7ED1\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","error.403":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ","error.400":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002","error.502":"\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C \u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ","error.proUpgrade":"\u5347\u7EA7\u540E\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u518D\u6B21\u7FFB\u8BD1\u3002","error.configError":"\u914D\u7F6E\u6570\u636E\u5F02\u5E38","error.goReset":"\u53BB\u91CD\u7F6E",batchEdit:"\u6279\u91CF\u64CD\u4F5C","translationModeLang.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeLang.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u8BED\u8A00","translationModeLang.translation.dual.description":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","translationModeUrl.translation.title":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u4EC5\u8BD1\u6587\u6A21\u5F0F","translationModeUrl.translation.dual.title":"\u53CC\u8BED\u6A21\u5F0F\u7684\u7F51\u5740","translationModeUrl.translation.dual.description":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u4F7F\u7528\u53CC\u8BED\u6A21\u5F0F","browser.toggleOnlyTransation":"\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u4EC5\u8BD1\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8BBE\u7F6E\u89E6\u5C4F\u624B\u52BF\u5207\u6362\u53CC\u8BED/\u4EC5\u8BD1\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u4EC5\u8BD1\u6587\u6307\u7684\u662F\u53EA\u663E\u793A\u8BD1\u6587\uFF0C\u5982\u679C\u7F51\u9875\u8FD8\u6CA1\u6709\u7FFB\u8BD1\u7684\u8BDD\uFF0C\u5C06\u4F1A\u5207\u6362\u6A21\u5F0F\u5E76\u7FFB\u8BD1",download_started:"\u4E0B\u8F7D\u5DF2\u7ECF\u5F00\u59CB\uFF0C\u5982\u679C\u6CA1\u6709\u81EA\u52A8\u4E0B\u8F7D\uFF0C\u8BF7\u624B\u52A8\u70B9\u51FB",here:"\u8FD9\u91CC",detectServiceLoading:"\u6B63\u5728\u68C0\u6D4B\u53EF\u7528\u7684\u7FFB\u8BD1\u670D\u52A1...",toggleToService:"\u5207\u6362\u5230{service}\u5E76\u91CD\u8BD5","error.gemini.429":"\u5F53\u524D Gemini \u670D\u52A1\u5F53\u524D\u627F\u8F7D\u80FD\u529B\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\uFF0C\u6216\u8005\u5207\u6362\u5230\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002","languages.auto":"\u81EA\u52A8\u68C0\u6D4B","floatBall.setting":"\u8BBE\u7F6E","floatBall.translateToLanguage":"\u70B9\u51FB\u7FFB\u8BD1\u4E3A{language}",changeToOnlyTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u4E34\u65F6\u5207\u6362\u9ED8\u8BA4\u8BD1\u6587\u6A21\u5F0F\u4E3A\u53CC\u8BED\u5BF9\u7167",changeToOnlyTempTranslationMode:`\u5F53\u524D\u4E3A\u53CC\u8BED\u5BF9\u7167 \u70B9\u51FB\u5207\u6362\u4E3A\u4EC5\u8BD1\u6587`,changeToDualTempTranslationMode:`\u5F53\u524D\u4E3A\u4EC5\u8BD1\u6587 \u70B9\u51FB\u5207\u6362\u4E3A\u53CC\u8BED\u5BF9\u7167`,"subtitle.transitionMode":"\u89C6\u9891\u5B57\u5E55\u53CC\u8BED/\u4EC5\u8BD1\u6587\u8BBE\u7F6E","subtitle.transitionModeDescription":"\u8BBE\u7F6E\u89C6\u9891\u5B57\u5E55\u4E3A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u8BD1\u6587\u6A21\u5F0F","transitionMode.inherit":"\u548C\u7CFB\u7EDF\u7684\u9ED8\u8BA4\u8BD1\u6587\u663E\u793A\u6A21\u5F0F\u4FDD\u6301\u4E00\u81F4","transitionMode.translation":"\u4EC5\u8BD1\u6587","transitionMode.dual":"\u53CC\u8BED\u5BF9\u7167","options.navbar.translateFile":"\u7FFB\u8BD1\u6587\u6863","options.navbar.installApp":"\u5B89\u88C5\u624B\u673A APP","subtitle.showQuickButtonDescription":"\u5728\u89C6\u9891\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u542F\u7528\u53CC\u8BED\u5B57\u5E55\u7684\u5FEB\u6377\u65B9\u5F0F",translateFileTooltip:`\u7FFB\u8BD1 PDF\u3001ePub\u3001docx\u3001srt\u3001 @@ -5523,7 +5523,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"subtitle.quickButton.setting {env.imt_sub_trans_field}: \u8BD1\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u548C\u5BFC\u822A\u6761\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F\u4E0E\u9876\u90E8\u5BFC\u822A\u83DC\u5355"};var T5={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 + {env.imt_sub_trans_field}: \u8BD1\u6587`,"browser.PdfProFile":"AI \u9A71\u52A8\u7684 PDF Pro \u7FFB\u8BD1","browser.textTranslate":"\u6587\u672C\u7FFB\u8BD1","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F7D\u5B57\u5E55","subtitle.enableDualSubtitle":"\u603B\u662F\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u8FD8\u672A\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8BF7\u5148\u542F\u7528\u53CC\u8BED\u5B57\u5E55\uFF0C\u968F\u540E\u518D\u6B21\u70B9\u51FB\u4E0B\u8F7D\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u8FD8\u672A\u767B\u5F55\u6216\u4E0D\u662F Pro \u4F1A\u5458","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F7D] \u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u529F\u80FD\uFF0C\u8BF7\u5148\u767B\u5F55\u6216\u5F00\u901A\u53EF\u514D\u8D39\u8BD5\u7528\u7684 Pro \u4F1A\u5458\uFF0C\u7136\u540E\u5237\u65B0\u9875\u9762\u518D\u6B21\u5C1D\u8BD5\u5373\u53EF",touchShortcutsInputTranslate:"\u8BBE\u7F6E\u79FB\u52A8\u7AEF\u8F93\u5165\u6846\u589E\u5F3A\u624B\u52BF","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F7D\u7684\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8BF7\u68C0\u67E5\u5F53\u524D\u89C6\u9891\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u542F\u7528\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.tempEnableSubtitle":"\u4EC5\u672C\u6B21\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u5173\u95ED\u53CC\u8BED\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5F55\u6216\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","subtitle.stylesSetting":"\u5728\u7EBF\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u6837\u5F0F\u8BBE\u7F6E","subtitle.stylesSettingDescription":"\u4EC5\u90E8\u5206\u7F51\u7AD9\u652F\u6301\uFF08\u5982 YouTube\uFF09",setting:"\u8BBE\u7F6E",goSetting:"\u53BB\u8BBE\u7F6E",goEditing:"\u53BB\u4FEE\u6539","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u5DF1\u5199\u4E00\u4E2A\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u6807\u51C6 API \u7684\u63A5\u53E3\u4EE5\u63A5\u5165\u4EFB\u4F55\u8FD8\u672A\u53D7\u652F\u6301\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5177\u4F53\u8BF7\u53C2\u8003\u63A5\u5165\u6587\u6863","translationServices.tencent.introduction":"\u817E\u8BAF\u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u548C\u817E\u8BAF\u7FFB\u8BD1\u541B\u63D0\u4F9B\u7684\u670D\u52A1\u4E00\u81F4\u3002","translationServices.tenAlpha.introduction":"\u817E\u8BAF\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.google.introduction":"Chrome \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u514D\u8D39\u7FFB\u8BD1\u670D\u52A1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F83\u4E25\u683C\uFF0C\u4F7F\u7528\u4F53\u9A8C\u4E00\u822C\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u4E91\u63A8\u51FA\u7684\u673A\u5668\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.deeplx.introduction":"DeepL X","translationServices.bing.introduction":"Edge \u6D4F\u89C8\u5668\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u7684\u7FFB\u8BD1\u3002","translationServices.deepl.introduction":"\u88AB\u8A89\u4E3A\u5168\u4E16\u754C\u6700\u7CBE\u51C6\u7684\u673A\u5668\u7FFB\u8BD1\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u4EEC\u7684\u7ADE\u4E89\u5BF9\u624B<1>\u51C6\u786E\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1<2>\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.azure.introduction":"\u5FAE\u8F6F Azure \u63D0\u4F9B\u7684\u7FFB\u8BD1 API\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.mock.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1\uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.mock2.introduction":"\u6A21\u62DF\u7FFB\u8BD1\u670D\u52A1 2 \uFF0C\u7528\u4E8E\u6D4B\u8BD5\u548C\u5F00\u53D1\uFF0C\u4E0D\u63D0\u4F9B\u5B9E\u9645\u7FFB\u8BD1\u670D\u52A1\u3002","translationServices.caiyun.introduction":"\u5F69\u4E91\u5C0F\u8BD1\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u53EA\u652F\u6301\u4E2D\u82F1\u65E5 3 \u79CD\u8BED\u8A00\u3002","translationServices.cai.introduction":"\u5F69\u4E91\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u4E2A\u7FFB\u8BD1\u5F15\u64CE\uFF0C\u4F46\u4EF7\u683C\u8F83\u8D35\u3002","translationServices.youdao.introduction":"\u7F51\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8BD1 Alpha \u7248\u672C","translationServices.transmart.introduction":"\u817E\u8BAF\u6700\u65B0\u63A8\u51FA\u7684\u4EA4\u4E92\u7FFB\u8BD1\u670D\u52A1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.niu.introduction":"\u5C0F\u725B\u673A\u5668\u7FFB\u8BD1\uFF0C\u652F\u6301\u591A\u79CD\u8BED\u8A00\u3002","translationServices.papago.introduction":"\u4F53\u9A8C\u6765\u81EANAVER\u7684Papago\u7FFB\u8BD1\u670D\u52A1\uFF0C\u4EAB\u53D7\u7CBE\u51C6\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8BD1\u4F53\u9A8C\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8BD1\u670D\u52A1\u7684Alpha\u7248\u672C\uFF0C\u4F53\u9A8C\u6700\u524D\u6CBF\u7684\u7FFB\u8BD1\u6280\u672F\u548C\u521B\u65B0\u3002","translationServices.dpro.introduction":"\u5C1D\u8BD5D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u4E13\u4E1A\u7EA7\u7684\u7FFB\u8BD1\u670D\u52A1\u548C\u9886\u5148\u7684\u6280\u672F\u652F\u6301\u3002","translationServices.openai.introduction":"GPT \u6280\u672F\u6700\u521D\u5C31\u662F\u4E3A\u7FFB\u8BD1\u800C\u8BDE\u751F\u7684\uFF0C\u5B83\u88AB\u8D4B\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A71\u52A8\u7684GPT\u662F\u6709\u53F2\u4EE5\u6765\u6700\u667A\u80FD\u7684\u5927\u8BED\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8BD1\u670D\u52A1\uFF0C\u5728\u4FC4\u8BED\u7FFB\u8BD1\u4E2D\u8868\u73B0\u8F83\u597D\u3002","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u70BC\u5927\u6A21\u578B","translationServices.doubao.introduction":"\u5B57\u8282\u8DF3\u52A8\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u817E\u8BAF\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u4E8E\u4F18\u79C0\u7684\u5F00\u6E90\u57FA\u7840\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u4EF7\u6BD4\u7684 GenAI \u670D\u52A1","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u5B98\u65B9\u5408\u4F5C\u4F19\u4F34\u201C\u667A\u8C31\u201D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u7528\u6237\u53EF\u76F4\u63A5\u514D\u8D39\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002",moreTranslationServices:"\u66F4\u591A\u7FFB\u8BD1\u670D\u52A1",onlineTransalteCompare:"\u5728\u7EBF\u5BF9\u6BD4\u7FFB\u8BD1\u670D\u52A1",translationServiceNav:"\u7FFB\u8BD1\u670D\u52A1",needActionLabel:"\u9700\u8BBE\u7F6E",needSettingTip:"\u8BBE\u7F6E API Key \u4E4B\u540E\u624D\u80FD\u542F\u7528","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8BBE\u7F6E","subtitle.quickButton.textShadowType":"\u5B57\u7B26\u8FB9\u7F18\u6837\u5F0F","subtitle.quickButton.textShadowType.none":"\u65E0","subtitle.quickButton.textShadowType.shadow":"\u9634\u5F71","subtitle.quickButton.textShadowType.raised":"\u51F8\u8D77","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.outline":"\u8FB9\u6846",setDefault:"\u70B9\u51FB\u8BBE\u4E3A\u9ED8\u8BA4","field.assistant":"AI \u4E13\u5BB6","aiAssistant.more":"\u66F4\u591A\u7FFB\u8BD1\u4E13\u5BB6","aiAssistant.auto":"\u667A\u80FD\u9009\u62E9","aiAssistant.common":"\u901A\u7528",currentDefault:"\u5F53\u524D\u9ED8\u8BA4","aiAssistant.noData":"\u6682\u65E0 AI \u7FFB\u8BD1\u4E13\u5BB6\u6570\u636E","aiAssistant.getDataError":"\u83B7\u53D6 AI \u4E13\u5BB6\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","aiAssistant.moreAI":"\u8BF7\u6C42\u6216\u8D21\u732E\u66F4\u591A AI \u4E13\u5BB6\uFF1F","aiAssistant.hot":"\u70ED\u5EA6","aiAssistant.detail":"\u8BF4\u660E","aiAssistant.autoEnableAssistant":"\u81EA\u52A8\u542F\u7528 AI \u4E13\u5BB6","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","aiAssistant.versionNeedUpgrade":"\u68C0\u6D4B\u5230\u63D2\u4EF6\u7248\u672C\u8F83\u4F4E\uFF0C\u90E8\u5206 AI \u4E13\u5BB6\u53EF\u80FD\u65E0\u6CD5\u4F7F\u7528\uFF0C\u8BF7\u524D\u5F80\u5B98\u7F51\u66F4\u65B0\u63D2\u4EF6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7F51","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u53BB\u5B98\u7F51\u4E0B\u8F7D\u6700\u65B0\u7248\u672C","aiAssistant.install":"\u5B89\u88C5","aiAssistant.Uninstall":"\u5378\u8F7D","subtitle.autoEnableSubtitle":"\u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55\uFF08\u5F53\u524D\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\uFF09","subtitle.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6240\u6709\u89C6\u9891\u5E73\u53F0\u64AD\u653E\u89C6\u9891\u65F6\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52A8\u5F00\u542F\u53CC\u8BED\u5B57\u5E55","subtitle.youtube.autoEnableSubtitleDescription":"\u542F\u7528\u540E\uFF0C\u5F53 YouTube \u89C6\u9891\u64AD\u653E\u7684\u65F6\u5019\uFF0C\u4F1A\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6765\u7FFB\u8BD1 YouTube \u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u4E13\u5C5E\u8BBE\u7F6E",enableEditTranslation:"\u4E34\u65F6\u5F00\u542F\u8BD1\u6587\u7F16\u8F91",disableEditTranslation:"\u5173\u95ED\u8BD1\u6587\u7F16\u8F91","widget.pdfPro":"PDF Pro","widget.pdfProTooltip":"\u4E3A\u6700\u590D\u6742\u7684 PDF \u6587\u4EF6\u800C\u8BBE\u8BA1","widget.text":"\u6587\u672C\u7FFB\u8BD1","widget.textTooltip":"\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\u5BF9\u6BD4","widget.cache":"\u6E05\u9664\u7F13\u5B58","model.customMoreModels":"\u81EA\u5B9A\u4E49\u6A21\u578B\u5217\u8868","more-models":"\u8BBE\u7F6E\u66F4\u591A\u6A21\u578B","model.addModelsDescription":"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0\uFF0C\u591A\u4E2A\u6A21\u578B\u7528\u82F1\u6587\u9017\u53F7,\u5206\u9694\uFF0C\u7CFB\u7EDF\u4F1A\u5728\u5217\u8868\u91CC\u8BB0\u4F4F\u8FD9\u91CC\u6DFB\u52A0\u7684\u81EA\u5B9A\u4E49\u6A21\u578B \uFF0C\u5982: gpt-3.5-turbo,gpt-4","model.addModelsSeniorDescription":"\u652F\u6301\u9AD8\u9636\u8BED\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 - \u6765\u9690\u85CF\u4E00\u4E2A\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u6765\u9690\u85CF\u5168\u90E8\u5185\u7F6E\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u6765\u81EA\u5B9A\u4E49\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","subtitle.quickButton.reset":"\u91CD\u7F6E","subtitle.resetStyle":"\u6062\u590D\u9ED8\u8BA4\u6837\u5F0F",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",serviceProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",serviceCustomName:"\u81EA\u5B9A\u4E49 Auth Key",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863","subtitle.preTranslationDescription":"\u542F\u7528\u540E\u4F1A\u4F18\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u63D0\u524D\u7FFB\u8BD1\u5B57\u5E55\uFF0C\u5173\u95ED\u5219\u4F18\u5148\u4F7F\u7528\u539F\u89C6\u9891\u81EA\u5E26\u7684\u673A\u7FFB\u5B57\u5E55\uFF1B\u8BF7\u6CE8\u610F\uFF0C\u5F53\u539F\u89C6\u9891\u6CA1\u6709\u5BF9\u5E94\u7684\u8BD1\u6587\u5B57\u5E55\u65F6\uFF0C\u65E0\u8BBA\u662F\u5426\u542F\u7528\u8FD9\u4E2A\u9009\u9879\uFF0C\u90FD\u4F1A\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8BD1\u670D\u52A1\u6765\u7FFB\u8BD1\u5B57\u5E55\u3002","error.serveProUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u5668\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","subtitle.quickButton.translationFontFamily":"\u8BD1\u6587\u5B57\u4F53","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u4F53","subtitle.quickButton.translationFontWeight":"\u8BD1\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u4F53\u7C97\u7EC6","subtitle.quickButton.translationSetting":"\u8BD1\u6587\u8BBE\u7F6E","subtitle.quickButton.sourceSetting":"\u539F\u6587\u5B57\u4F53\u8BBE\u7F6E","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570",unknownError:'\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684\u7FFB\u8BD1\u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662FPro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8BD1\u670D\u52A1\u3002\u540C\u65F6\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u540E\u91CD\u65B0\u5C1D\u8BD5\u3002',aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8BD1","error.serveUnavailable":"\u60A8\u5F53\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52A1\u56E0\u7F51\u7EDC\u8FDE\u63A5\u6216\u670D\u52A1\u63D0\u4F9B\u5546\u7684\u95EE\u9898\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE\u3002\u5EFA\u8BAE\u60A8\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u901A\u8FC7<1>\u8BBE\u7F6E\u66F4\u6362\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1\u3002\u82E5\u60A8\u662F<2>Pro\u4F1A\u5458\uFF0C\u53EF\u4EE5\u9009\u62E9\u4F7F\u7528\u66F4\u4E3A\u7A33\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8BD1\u670D\u52A1\uFF08<3>\u70B9\u6B64\u514D\u8D39\u4F53\u9A8C\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C <2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4F1A\u5458\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6237\uFF0C\u8BF7\u767B\u5F55\u540E\u518D\u4F7F\u7528Pro\u7FFB\u8BD1\u670D\u52A1 ","translationServices.custom-ai":"\u81EA\u5B9A\u4E49AI","field.name":"\u81EA\u5B9A\u4E49\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","field.namePlaceholder":"\u7FFB\u8BD1\u670D\u52A1\u540D\u79F0","translationServices.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u7FFB\u8BD1\u670D\u52A1\u5417\uFF1F","translationServices.delete":"\u5220\u9664","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u63A5\u53E3\u7684\u81EA\u5B9A\u4E49 AI \u7FFB\u8BD1\u670D\u52A1\uFF1F","error.subscriptionExpired":"\u60A8\u7684\u4F1A\u5458\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u5C1A\u672A\u8BA2\u9605\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u4F1A\u5458\u72B6\u6001","error.subscriptionExpiredTitle":"\u672A\u8BA2\u9605\u4F1A\u5458\u6216\u5DF2\u8FC7\u671F",enableAutoSyncAPIKey:"\u540C\u65F6\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8BBE\u7F6E",proRightOpenPro:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u8BF7\u5F00\u901A Pro \u4F1A\u5458\u540E\u518D\u4F7F\u7528",proRightDescription:"\u591A\u8BBE\u5907\u4E91\u540C\u6B65\u4E3A Pro \u4F1A\u5458\u4E13\u5C5E\u7684\u6743\u76CA\uFF0C\u70B9\u6B64<1>\u4E86\u89E3\u66F4\u591A","field_label.fallbackAssistant":"\u5F53\u667A\u80FD\u9009\u62E9\u65E0\u6CD5\u5339\u914D\u65F6\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u4E13\u5BB6",reset:"\u91CD\u7F6E\u8BBE\u7F6E","aiAssistant.topBar":"\u901A\u8FC7\u5B9A\u5236 AI \u7FFB\u8BD1\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8BD1\u8D28\u91CF\u3002\u6211\u4EEC\u5C06\u8FD9\u4E9B\u7B56\u7565\u79F0\u4E3A \u201CAI\u4E13\u5BB6\u201D \u2014\u2014\u672C\u8D28\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8BBE\u8BA1\u7684\u63D0\u793A\u8BCD\u3002\u8FD9\u4E9B\u63D0\u793A\u8BCD\u516C\u5F00\u5728<1>\u8FD9\u4E2A\u4ED3\u5E93\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8D21\u732E\u3002\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88C5\u76F8\u5E94\u7684\u201CAI\u4E13\u5BB6\u201D\u540E\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9009\u62E9\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u7C7B\u7FFB\u8BD1\u670D\u52A1(\u5982 Claude, Gemini)\uFF0C\u7136\u540E\u518D\u9009\u62E9\u4E0D\u540C\u7684AI\u4E13\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8BA4\u7684\u7FFB\u8BD1\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9002\u5408\u5927\u591A\u6570\u573A\u666F\u3002","translationServices.deleteDefaultError":"\u5F53\u524D\u7FFB\u8BD1\u670D\u52A1\u4E3A\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1\uFF0C\u65E0\u6CD5\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u66F4\u6362\u9ED8\u8BA4\u7FFB\u8BD1\u670D\u52A1",cleanSuccess:"\u6E05\u7406\u7F13\u5B58\u6210\u529F","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B",watchIntroVideo:"\u67E5\u770B\u89C6\u9891\u6F14\u793A",subscribeEmail:"\u8BA2\u9605\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Newsletter","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A AI \u4E13\u5BB6\u6765\u63D0\u4F9B\u7FFB\u8BD1\u7B56\u7565",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6807\u7B7E\u9875\u6216\u6D4F\u89C8\u5668\u7279\u6743\u9875\u9762\u7B49\uFF09",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9875\u9762\u4E2D...\u82E5\u957F\u65F6\u95F4\u672A\u54CD\u5E94\uFF0C\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u51B3\uFF1A","proQuotaError.toggleAnotherService":"\u5207\u6362\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1","proQuotaError.trail":'\u7ACB\u523B\u5347\u7EA7\u4E3A\u6B63\u5F0F\u4F1A\u5458',"proQuotaError.onetime7day":'\u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458',"proQuotaError.resetTime":"\u989D\u5EA6\u91CD\u7F6E\u65F6\u95F4\uFF1A{resetTime}","proQuotaError.package":'\u8D2D\u4E70 {translationService} \u989D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8D2D\u4E70 \u989D\u5916\u6D41\u91CF\u5305',manga:"\u6F2B\u753B","intro.mangaTitle":"Pro \u6F2B\u753B\u7FFB\u8BD1 (Beta)","intro.mangaDescription":"\u6F2B\u753B\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u4F7F\u7528\u8BF4\u660E\uFF1A\u5728\u5F53\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u753B\u7F51\u7AD9\u91CC\uFF0C\u7F51\u9875\u5FEB\u6377\u7FFB\u8BD1\u60AC\u6D6E\u7403\u4E0B\u65B9\u4F1A\u51FA\u73B0\u4E00\u4E2A\u6F2B\u753B\u7FFB\u8BD1\u7684\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u5F00\u542F\u6F2B\u753B\u7FFB\u8BD1\uFF09\uFF0C\u5F53\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7F51\u7AD9\u7684\u6F2B\u753B\u7FFB\u8BD1\uFF1A","popup.mangaSiteSupport":"\u5F53\u524D\u7F51\u7AD9\u652F\u6301\u6F2B\u753B\u7FFB\u8BD1","guide.mangaProTip":"\u60A8\u73B0\u5728\u53EF\u4EE5\u901A\u8FC7\u70B9\u51FB\u6F2B\u753B\u60AC\u6D6E\u7403\u6765\u7FFB\u8BD1\u6F2B\u753B\u3002","guide.mangaNoProTip":"Pro \u4F1A\u5458\u73B0\u5728\u53EF\u4EE5\u7FFB\u8BD1\u6F2B\u753B\u4E86\uFF01","error.siteDisableManga":"\u5F53\u524D\u6F2B\u753B\u56FE\u7247\u7981\u6B62\u7FFB\u8BD1","mangaQuotaError.solvedTitle":"\u6F2B\u753B\u7FFB\u8BD1\u989D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","mangaQuotaError.package":'\u8D2D\u4E70 \u6F2B\u753B\u7FFB\u8BD1\u989D\u5916\u6D41\u91CF\u5305',"floatBallOptions.mangaEnableDescPc":"\u542F\u7528\u9875\u9762\u60AC\u6D6E\u7403\u540E\uFF0C\u4F1A\u5728\u652F\u6301\u7684\u6F2B\u753B\u7AD9\u70B9\u53F3\u4FA7\u663E\u793A\u4E00\u4E2A\u5FEB\u6377\u6F2B\u753B\u7FFB\u8BD1\u6309\u94AE\uFF0C\u70B9\u51FB\u5373\u53EF\u7FFB\u8BD1\u6F2B\u753B","error.azure.401":"Azure \u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u53EF\u80FD\u662F\u7531\u4E8E region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5199\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002",translationPosition:"\u8BD1\u6587\u5728\u5148\uFF0C\u539F\u6587\u968F\u540E",translationPositionDescription:"\u5F00\u542F\u540E\uFF0C\u6BCF\u4E2A\u6BB5\u843D\u7684\u8BD1\u6587\u5C06\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u5373\uFF1A\u8BD1\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u540E","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7F51\u7AD9\u81EA\u52A8\u4F7F\u7528\u5F53\u524D\u4E13\u5BB6","aiAssistant.matchesDescription":"AI \u4E13\u5BB6\u5FC5\u987B\u8BBE\u7F6E\u4E3A\u3010\u667A\u80FD\u9009\u62E9\u3011\u4EE5\u4E0B\u8BBE\u7F6E\u624D\u751F\u6548",feedbackOrMore:"\u8BF7\u6C42\u652F\u6301\u66F4\u591A\u7F51\u7AD9\u6216\u53CD\u9988\u95EE\u9898","manga.cleanCache":"\u6E05\u9664\u6F2B\u753B\u7F13\u5B58","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55 AI \u667A\u80FD\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u5B57\u5E55\u5206\u53E5\u57FA\u7840\u4F18\u5316","subtitle.ytAsrDescription":"\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u505A\u521D\u6B65\u57FA\u7840\u5206\u53E5\u4F18\u5316","subtitle.ytAIAsrDescription":"\u9488\u5BF9 YouTube \u81EA\u52A8\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u91C7\u7528 AI \u667A\u80FD\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u53CC\u8BED\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528","subtitle.ytAsrDisableTooltip":"\u8BF7\u5148\u5F00\u542F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7FFB\u8BD1 YouTube \u5B57\u5E55\u3011\u9009\u9879","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","aiAssistant.customAiAssistant":"\u81EA\u5B9A\u4E49 AI \u4E13\u5BB6","field.aiAssistantName":"AI \u4E13\u5BB6\u540D\u79F0","aiAssistant.deleteConfirm":"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 AI \u4E13\u5BB6\u5417\uFF1F","intro.subtitleDescription":"\u5F00\u542F\u6B64\u529F\u80FD\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u65F6\u5C06\u81EA\u52A8\u663E\u793A\u53CC\u8BED\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u987B\u624B\u52A8\u5F00\u542F\u539F\u89C6\u9891\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u4E8E\u6280\u672F\u9650\u5236\uFF0C\u67D0\u4E9B\u7F51\u7AD9\u5728\u9996\u6B21\u6253\u5F00\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u65F6\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9875\u9762\u624D\u80FD\u663E\u793A\u53CC\u8BED\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8BBE\u7F6E\u9875\u9762\uFF0C\u60A8\u8FD8\u53EF\u4EE5\u5728\u8BBF\u95EE\u652F\u6301\u7684\u89C6\u9891\u7F51\u7AD9\u65F6\uFF0C\u53F3\u4E0A\u89D2\u6253\u5F00\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5FEB\u6377\u9762\u677F\u542F\u7528/\u5173\u95ED\u89C6\u9891\u53CC\u8BED\u5B57\u5E55\u529F\u80FD\uFF09

\u5F53\u524D\u5DF2\u652F\u6301\u5728\u8FD9\u4E9B\u7F51\u7AD9\u4F7F\u7528\u53CC\u8BED\u5B57\u5E55\uFF1A","subtitle.ytAIAsrProTooltip":"\u8BE5\u529F\u80FD\u4EC5 Pro \u7528\u6237\u53EF\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458","description.temperature":"\u91C7\u6837\u53D1\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F, \u751F\u6210\u7684\u5185\u5BB9\u8D8A\u56FA\u5B9A\u3002\u5F53\u53D60\u65F6\uFF0C\u6A21\u578B\u751F\u6210\u65F6\u51E0\u4E4E\u603B\u662F\u4F1A\u9009\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8BCD\u5143\uFF09","field.enableRichTranslate":"\u542F\u7528\u5BCC\u6587\u672C\u7FFB\u8BD1","description.enableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C","description.aiDualEnableRichTranslate":"\u5F00\u542F\u5BCC\u6587\u672C\u7FFB\u8BD1\u53EF\u4FDD\u7559\u539F\u6587\u7684\u94FE\u63A5\u548C\u6837\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8BD1\u6A21\u578B\u4E0B\u542F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u54CD\u7FFB\u8BD1\u8D28\u91CF\uFF0C\u56E0\u6B64\u53CC\u8BED\u6A21\u5F0F\u9ED8\u8BA4\u5173\u95ED\u6B64\u529F\u80FD\uFF09","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 {service} \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u6587\u672C\u7684\u7C7B\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F `html` \u6216 `text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u4E2D\u5305\u542B html \u6807\u7B7E\u7684\u65F6\u5019\u624D\u4F1A\u6709\u503C\u3002","reportInfo.reasonDesc":"\u8BF7\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u95EE\u9898\uFF08\u5FC5\u586B\uFF09","reportInfo.attachLog":"\u5C06\u5F53\u524D\u9519\u8BEF\u65E5\u5FD7\u53CD\u9988\u7ED9\u6C89\u6D78\u5F0F\u7FFB\u8BD1","reportInfo.tip":"\u8BF7\u586B\u5199\u95EE\u9898\u63CF\u8FF0\u540E\u518D\u63D0\u4EA4","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u8D25...","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u91CD\u65B0\u53CD\u9988\uFF0C\u6216\u6362\u4E2A\u65F6\u95F4\u518D\u6B21\u5C1D\u8BD5",reportTip:"\u53CD\u9988","translationServices.lingyiwanwu.introduction":"\u7531 \u96F6\u4E00\u4E07\u7269\u63A8\u51FA\u7684 Yi \u7CFB\u5217\u5927\u8BED\u8A00\u6A21\u578B","reportInfo.title":"\u7FFB\u8BD1\u9047\u5230\u4E86\u95EE\u9898\uFF1F","browser.translateText":'\u7FFB\u8BD1\u6587\u672C\uFF1A"{text}"',tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8BD1\u5F53\u524D\u9875\u9762",trustTypeError:"\u8BE5\u7F51\u7AD9\u9650\u5236\u6CB9\u7334\u811A\u672C\u63D0\u4F9B\u53CC\u8BED\u5B57\u5E55\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u63D2\u4EF6\u7248\u672C","floatBallOptions.disable":"\u7981\u7528\u60AC\u6D6E\u7403","popup.upgrade":"\u5347\u7EA7","widget.webReport":"\u53CD\u9988\u5F53\u524D\u9875\u9762\u7FFB\u8BD1\u95EE\u9898","floatBall.upgrade":"\u8BD5\u7528 Pro \u4F1A\u5458\uFF08\u4F53\u9A8C OpenAI, DeepL, PDF Pro, \u6F2B\u753B\u7FFB\u8BD1\u7B49\uFF09","popup.trial_pro_service":"\u8BD5\u7528OpenAI, DeepL\u667A\u80FD\u7FFB\u8BD1",translationModePreferLabel:"\u7FFB\u8BD1\u504F\u597D",translationModePreferDesc:"\u9009\u62E9\u7FFB\u8BD1\u540E\u7684\u663E\u793A\u65B9\u5F0F\uFF1A\u53CC\u8BED\u5BF9\u7167\u6216\u4EC5\u663E\u793A\u8BD1\u6587",refreshPage:"\u5237\u65B0\u9875\u9762",ctxInvalidatedError:"\u63D2\u4EF6\u4E0A\u4E0B\u6587\u5931\u6548\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5","reportInfo.email":"\u90AE\u7BB1","reportInfo.emailError":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E","glm-4-flash (free)":"glm-4-flash (\u514D\u8D39)",translateSuccess:"\u7FFB\u8BD1\u6210\u529F",translateFail:"\u7FFB\u8BD1\u5931\u8D25","closeImageTools.title":"\u5173\u95ED\u56FE\u7247\u7FFB\u8BD1","imageTools.translateImage":"\u70B9\u51FB\u7FFB\u8BD1\u56FE\u7247","imageTools.resetImage":"\u70B9\u51FB\u663E\u793A\u539F\u56FE","image.enableTools":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.enableToolsDes":"\u5F53\u9F20\u6807\u60AC\u505C\u5728\u56FE\u7247\u4E0A\u65F6\u663E\u793A\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","image.blockToolsUrls":"\u7981\u7528\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u7F51\u7AD9","image.blockToolsUrlsDes":"\u5F53\u9047\u4E0B\u5217\u7F51\u7AD9\u65F6\u4E0D\u5728\u56FE\u7247\u4E0A\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE","floatBallOptions.enableManga":"\u542F\u7528\u6F2B\u753B\u7FFB\u8BD1\u60AC\u6D6E\u7403","image.imageTranslate":"Pro \u56FE\u7247\u7FFB\u8BD1( Beta)",mangaAndImage:"\u6F2B\u753B/\u56FE\u7247","image.imageTranslateDes":"\u56FE\u7247\u7FFB\u8BD1\u4EC5 <1>Pro \u4F1A\u5458\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\u70B9\u51FB\u9F20\u6807\u53F3\u952E\u5E76\u9009\u62E9\u201C\u7FFB\u8BD1\u56FE\u7247\u201D\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8BBE\u7F6E\u9F20\u6807\u60AC\u505C\u7FFB\u8BD1\u6BB5\u843D\u5FEB\u6377\u952E\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6807\u60AC\u505C\u7684\u5FEB\u6377\u952E\u7FFB\u8BD1\u56FE\u7247\u3002\u4E3A\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u542F\u7528\u4E0B\u65B9\u7684\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\uFF0C\u542F\u7528\u4E4B\u540E\uFF0C\u5C06\u9F20\u6807\u60AC\u505C\u5728\u4EFB\u4F55\u56FE\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8BD1\u201D\u6309\u94AE\uFF0C\u70B9\u51FB\u6B64\u6309\u94AE\u5373\u53EF\u8FDB\u884C\u7FFB\u8BD1\u3002","browser.shareToDraft":"\u751F\u6210\u7F51\u9875\u5FEB\u7167","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",sameLangNoTranslate:"\u60A8\u8BBE\u7F6E\u7684\u76EE\u6807\u8BED\u8A00\u548C\u8BE5\u7F51\u9875\u8BED\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u5185\u5BB9\u65E0\u6CD5\u88AB\u7FFB\u8BD1",neverShowFuture:"\u4EE5\u540E\u4E0D\u518D\u663E\u793A",sameLangCheck:"\u68C0\u6D4B\u9875\u9762\u8BED\u8A00\u4E0E\u76EE\u6807\u8BED\u8A00\u662F\u5426\u76F8\u540C",sameLangCheckDescription:"\u542F\u7528\u540E\uFF0C\u82E5\u76EE\u6807\u8BED\u8A00\u4E0E\u9875\u9762\u539F\u6587\u8BED\u8A00\u76F8\u540C\uFF0C\u5C06\u63D0\u793A\u65E0\u6CD5\u8FDB\u884C\u7FFB\u8BD1","imageState.reading":"\u8BFB\u53D6\u4E2D","imageState.loading":"\u5904\u7406\u4E2D","imageState.detectingRecognizing":"\u8BC6\u522B\u4E2D","imageState.translating":"\u7FFB\u8BD1\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","image.toolsDelayTime":"\u663E\u793A\u56FE\u7247\u5FEB\u6377\u7FFB\u8BD1\u6309\u94AE\u7684\u5EF6\u8FDF\u65F6\u95F4(\u6BEB\u79D2)","image.toolsDelayTimeDes":"\u9F20\u6807\u60AC\u505C\u591A\u4E45\u540E\u663E\u793A\u56FE\u7247\u7FFB\u8BD1\u6309\u94AE","imageState.pending":"\u6392\u961F\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u6301 GIF",orCustom:"\u6216\u81EA\u5B9A\u4E49",navHeadEnableTranslate:"\u542F\u7528\u4FA7\u8FB9\u680F\u7FFB\u8BD1",navHeadEnableTranslateDescription:"\u542F\u7528\u540E\u5219\u4F1A\u7FFB\u8BD1\u7F51\u9875\u7684\u4FA7\u8FB9\u680F"};var Tv={nologin:"\u672A\u767B\u9304",loginForSafari:"\u767B\u5165\u6216\u8A3B\u518A",login:"\u767B\u5165",goLogin:"\u53BB\u767B\u9304",manageAccount:"\u7BA1\u7406\u5E33\u6236",openPremium:"\u958B\u901A\u6703\u54E1",logout:"\u9000\u51FA",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u9078\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",help:"\u8AAA\u660E",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F - \u7DB2\u9801\u7FFB\u8B6F\u64F4\u5145 | PDF\u7FFB\u8B6F | \u514D\u8CBB","browser.brandDescription":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u652F\u6301PDF\u7FFB\u8B6F\uFF08\u4FDD\u7559\u6392\u7248\uFF09\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF08Youtube, Netflix\uFF09\uFF0CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\uFF1B\u652F\u6301\u4EBA\u5DE5\u667A\u80FDAI\u7FFB\u8B6F\u5927\u6A21\u578B\uFF08OpenAI (ChatGPT)\u3001DeepL\u3001Gemini(Bard) \u7B49\uFF09","browser.toggleTranslatePage":"\u7FFB\u8B6F\u70BA{targetLanguage}","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.shareToDraft":"\u751F\u6210\u7DB2\u9801\u5FEB\u7167","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304",mouseHoldKey:"+ {key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u901F\u9375(\u6253\u958B\u8A2D\u5B9A)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F/\u9084\u539F\u8A72\u6BB5","mouse-translate":"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",advanced:"\u9032\u968E\u8A2D\u5B9A",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00",reset:"\u91CD\u7F6E\u8A2D\u5B9A",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:'\u60A8\u76EE\u524D\u4F7F\u7528\u7684\u7FFB\u8B6F\u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u900F\u904E\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662FPro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684DeepL\u6216OpenAI, Claude, Gemini \u7FFB\u8B6F\u670D\u52D9\u3002\u540C\u6642\uFF0C\u60A8\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u5F8C\u91CD\u65B0\u5617\u8A66\u3002',canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u8A2D\u5B9A",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",autoEnableSubtitle:"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55",add:"\u65B0\u589E","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F",pickAll:"\u5168\u9078","translate other languages into specific language":"\u6307\u5B9A\u60A8\u5E0C\u671B\u5C07\u5167\u5BB9\u7FFB\u8B6F\u6210\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65","floatBallOptions.enable":"\u555F\u7528\u61F8\u6D6E\u7403","floatBallOptions.blockUrls":"\u505C\u7528\u7DB2\u7AD9","floatBallOptions.add":"\u6DFB\u52A0","floatBallOptions.blockUrlDesc":"\u7576\u9047\u5230\u4EE5\u4E0B\u7DB2\u7AD9\u6642\u4E0D\u986F\u793A\u61F8\u6D6E\u7403","floatBallOptions.clickType":"\u9EDE\u9078\u884C\u70BA","floatBallOptions.clickTypeDesc":"\u61F8\u6D6E\u7403\u5716\u6A19\u9EDE\u9078\u6642\u7684\u884C\u70BA","floatBallOptions.clickPopup":"\u986F\u793A\u7FFB\u8B6F\u9762\u677F","floatBallOptions.clickTranslate":"\u7FFB\u8B6F/\u986F\u793A\u539F\u6587","floatBallOptions.fixedPosition":"\u56FA\u5B9A\u4F4D\u7F6E","floatBallOptions.fixedPositionDesc":"\u61F8\u6D6E\u7403\u5728\u7A97\u53E3\u5DE6\u5074\u9084\u662F\u53F3\u5074","floatBallOptions.fixedPositionLeft":"\u5DE6\u5074","floatBallOptions.fixedPositionRight":"\u53F3\u5074",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeepLX(Beta)","translationServices.bing":"Bing \u7FFB\u8B6F","translationServices.deepl":"DeepL","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon \u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.chatgpt":"ChatGPT Web(3.5)","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u300C{theme}\u300D \u8B6F\u6587\u6A23\u5F0F",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6A19\u6E96\u3002",syncToAccount:"\u540C\u6B65\u5230\u5E33\u6236",syncToAccountButton:"\u7ACB\u5373\u8207\u96F2\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u5E33\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u88DD\u7F6E\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6A19\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u5E33\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u5E33\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u5FEB\u5730\u7372\u53D6\u4E92\u806F\u7DB2\u4E0A\u8C50\u5BCC\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u5011\u7684<10>Twitter\uFF0C<9>YouTube\u6216\u8005\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u4FE1\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6(%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.langs":"\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8ACB\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u9032\u5165\u6392\u968A\u72C0\u614B\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u5206\u50B3\u9001\u7D66{service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D{{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00\uFF0C{{content_type}} \u8868\u793A\u539F\u59CB\u6587\u672C\u7684\u985E\u578B\uFF0C\u53EF\u80FD\u7684\u503C\u662F`html` \u6216`text`, {{html_only}} \u662F\u53EA\u6709\u539F\u6587\u5305\u542Bhtml \u6A19\u7C64\u7684\u6642\u5019\u624D\u6703\u6709\u503C\u3002","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u8EAB\u4EFD\u767C\u9001\u7D66 {service} \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9818\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u5B9A\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u4F7F\u7528\u8005\u8A5E\u5178ID","description.vocabId":"\u6307\u5B9A\u7684\u5B57\u5178out_id\uFF0C\u76EE\u524D\u652F\u63F4\u82F1\u8B6F\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u6ED1\u9F20\u6307\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u555F\u7528\u5F8C\uFF0C\u8F38\u5165\u6846\u76F4\u63A5\u8F38\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u5F8C\u5FEB\u901F\u9023\u64CA{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8B6F\u70BA {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u6709\u52B9\u306B\u3057\u305F\u3089\u3001\uFF1AHello World\u3068\u5165\u529B\u30DC\u30C3\u30AF\u30B9\u306B\u76F4\u63A5\u5165\u529B\u3057\u3001{inputTrailingTriggerKeyRepeatTimes}{trailingKey}\u3092\u7D20\u65E9\u304F\u62BC\u3057\u3066\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u8A00\u8A9E\u306B\u7FFB\u8A33\u3059\u308B\u3002",inputTargetLanguage:"\u8A2D\u5B9A\u8F38\u5165\u6846\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputTargetLanguageDescription:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u70BA\u89F8\u767C\u8A5E\u7684\u9810\u8A2D\u8A9E\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F38\u5165\u6846\u7FFB\u8B6F\u7684\u9810\u8A2D\u76EE\u6A19\u8A9E\u8A00",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"\u7576\u4F60\u4E0D\u9700\u8981\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u7684\u6642\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8A31\u4F60\u53EA\u7FFB\u8B6F {startingKey}{startingKey} \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8A9E\u8A00\u4EE3\u78BC\uFF0C\u4F8B\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8B6F {startingKey}ja \u5230\u8F38\u5165\u6846\u5C3E\u7AEF\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u76EE\u524D\u8A2D\u5B9A\u70BA\u7121\u9700\u524D\u7DB4\uFF0C\u66AB\u7121\u6CD5\u4F7F\u7528\u8F38\u5165\u6846\u7684\u90E8\u5206\u6587\u5B57\u7FFB\u8B6F\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9078\u64C7\u4E00\u500B\u8F38\u5165\u7D50\u675F\u7684\u89F8\u767C\u7B26\u865F",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey} \u5C07\u6703\u958B\u59CB\u7FFB\u8B6F",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u5B9A\u8F38\u5165\u7D50\u675F\u9023\u7E8C\u89F8\u767C\u7684\u6642\u9593\u9593\u9694\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u7121\u9700\u524D\u7DB4\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u6587\u5B57\u6846",inputTranslationBlockUrlsTitle:"\u8ACB\u52FF\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7DB2\u5740\u4E2D\uFF0C\u8F38\u5165\u6846\u589E\u5F37\u5C07\u4E0D\u6703\u751F\u6548",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u7B26\u865F\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8FA8\u8B58\u70BA\u89F8\u767C\u7B26\u865F\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u9019\u88E1\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u7B49\u5F85\u6CE8\u5165\u9801\u9762\u4E2D...\u82E5\u9577\u6642\u9593\u672A\u97FF\u61C9\uFF0C\u8ACB\u5617\u8A66\u5237\u65B0\u9801\u9762",noLocalFilePermissionForPDF:"\u66AB\u7121\u6B0A\u9650\u8B80\u53D6\u672C\u6A5F\u6587\u4EF6\uFF0C\u8ACB\u9EDE\u9078\u4E0A\u65B9\u6309\u9215\uFF0C\u7136\u5F8C\u532F\u5165\u672C\u6A5F\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u66AB\u7121\u6B0A\u9650\u7FFB\u8B6F\u7576\u524D\u9801\u9762\uFF08\u53EF\u80FD\u7684\u539F\u56E0\u662F\uFF1A\u65B0\u6A19\u7C64\u9801\u6216\u700F\u89BD\u5668\u7279\u6B0A\u9801\u9762\u7B49\uFF09","error.retry":"\u91CD\u8A66","error.reason":"\u932F\u8AA4\u539F\u56E0",retryAllButton:"\u91CD\u8A66\u5168\u90E8\u932F\u8AA4\u6BB5\u843D",errorTooltipTitle:"\u9EDE\u9078\u770B\u932F\u8AA4\u539F\u56E0",errorModalTitle:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u4F3C\u4E4E\u51FA\u4E86\u9EDE\u554F\u984C...",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u555F\u7528\u5FEB\u901F\u9023\u64CA3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8B6F\u6574\u500B\u8F38\u5165\u6846\u70BA{inputTargetLanguage}",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",deepLProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",deepLCustomDescription:"\u9700\u8981\u570B\u5916\u4FE1\u7528\u5361\uFF0C\u5728<1>DeepL\u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",deepLCustomName:"\u81EA\u8A02Auth Key",chooseProviderLabel:"\u9078\u64C7\u4E00\u500B\u670D\u52D9\u63D0\u4F9B\u8005",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6FPro \u6703\u54E1(\u63A8\u85A6)",openaiProDescription:"\u76EE\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u5165\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1",openaiCustomDescription:"\u53EF\u5728OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52D9\u7372\u53D6\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6587\u6A94",openaiCustomName:"\u81EA\u8A02API Key",goLoginOrAction:"(\u958B\u901A\u6703\u54E1\u6216\u53BB\u8A2D\u5B9A)",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",currentPlanDescriptionForFree:"\u76EE\u524D\u5957\u9910\uFF1A\u514D\u8CBB",currentPlanDescriptionForContinuous:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u81EA\u52D5\u7E8C\u8CBB",currentPlanDescriptionForAutoRenewCaceling:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u7BA1\u7406\u7E8C\u8CBB\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C\u5230\u671F\u5F8C\u5C07\u4E0D\u6703\u81EA\u52D5\u7E8C\u7D04\u3002
<1>\u9EDE\u6B64\u555F\u7528\u9023\u7E8C\u5305\u5E74",currentPlanDescriptionForOneTime:"\u76EE\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C07\u65BC {endAt} \u5230\u671F\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u5E74\u8CBB\u6216<2>\u6708\u8CBB\u6703\u54E1",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL, OpenAI, Claude, Gemini \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL, OpenAI, Claude \u548C Gemini \u7FFB\u8B6F",currentAccount:"\u76EE\u524D\u5E33\u6236",enableAutoSyncUserSettings:"\u555F\u7528\u591A\u88DD\u7F6E\u81EA\u52D5\u96F2\u7AEF\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8F38\u5165\u6846\u7FFB\u8B6F\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u525B\u525B\u900F\u904E\u5FEB\u901F\u9023\u64CA3 \u6B21\u7A7A\u767D\u9375\u89F8\u767C\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8F38\u5165\u6846\u7FFB\u8B6F\uFF0C\u8F38\u5165\u6846\u7684\u5167\u5BB9\u5C07\u7FFB\u8B6F\u70BA\u9810\u8A2D\u7684\u76EE\u6A19\u8A9E\u8A00\u3002\u900F\u904ECtrl+Z \u53EF\u4EE5\u64A4\u92B7\u7FFB\u8B6F\u3002

\u5982\u679C\u9019\u662F\u4E00\u500B\u5931\u8AA4\uFF0C\u4E0D\u7528\u64D4\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u672C\u6B21\u505C\u7528\uFF0C\u6216\u6C38\u4E45\u505C\u7528\u8F38\u5165\u6846\u7FFB\u8B6F\u3002",saveAndNotShowAgain:"\u5132\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u81EA\u8A02\u89F8\u767C\u7684\u5FEB\u6377\u9375\u548C\u9023\u64CA\u7684\u9593\u9694\u6642\u9593\uFF0C{learnMore}\u3002",learnMore:"\u9EDE\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7E7C\u7E8C\u555F\u7528\u8F38\u5165\u6846\u7FFB\u8B6F",autoRenewTrialSuffix:'\uFF08\u8A66\u7528\u4E2D\uFF0C\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1\uFF09',subtitle:"\u5F71\u7247\u5B57\u5E55",youtubeService:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5F71\u7247\u5B57\u5E55\u670D\u52D9","subtitle.disabledSubtitle":"\u6C38\u9060\u505C\u7528\u5F71\u7247\u5B57\u5E55\u529F\u80FD","subtitle.disabledSubtitleDescription":"\u5982\u679C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u548C\u5176\u4ED6\u64F4\u5145\u529F\u80FD\u6709\u885D\u7A81\uFF0C\u4F60\u53EF\u4EE5\u9078\u64C7\u6C38\u9060\u505C\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5F71\u7247\u5B57\u5E55\u529F\u80FD\u6216\u8005\u79FB\u9664\u5176\u4ED6\u885D\u7A81\u7684\u64F4\u5145\u529F\u80FD","subtitle.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576\u524D\u5DF2\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\u64AD\u653E\u5F71\u7247\u6642\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002","subtitle.preTranslation":"\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u4F86\u7FFB\u8B6F YouTube \u5B57\u5E55","subtitle.preTranslationDescription":"\u555F\u7528\u5F8C\u6703\u512A\u5148\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u63D0\u524D\u7FFB\u8B6F\u5B57\u5E55\uFF0C\u95DC\u9589\u5247\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u81EA\u5E36\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF1B\u8ACB\u6CE8\u610F\uFF0C\u7576\u539F\u5F71\u7247\u6C92\u6709\u5C0D\u61C9\u7684\u8B6F\u6587\u5B57\u5E55\u6642\uFF0C\u7121\u8AD6\u662F\u5426\u555F\u7528\u9019\u500B\u9078\u9805\uFF0C\u90FD\u6703\u4F7F\u7528\u4E0B\u9762\u6307\u5B9A\u7684\u7FFB\u8B6F\u670D\u52D9\u4F86\u7FFB\u8B6F\u5B57\u5E55\u3002","subtitle.humanSubtitlesPreferred":"\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55","subtitle.humanSubtitlesPreferredDescription":"\u7576\u5F71\u7247\u6709\u76EE\u6A19\u8A9E\u8A00\u4EBA\u5DE5\u5B57\u5E55\u6642\uFF0C\u512A\u5148\u4F7F\u7528\u4EBA\u5DE5\u5B57\u5E55\uFF08\u63A8\u85A6\uFF09","subtitle.bilingual":"\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.autoDisableSubtitle":"\u4E0D\u81EA\u52D5\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.hideQuickButton":"\u4E0D\u518D\u986F\u793A\u8A72\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButton":"\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u5FEB\u6377\u65B9\u5F0F","subtitle.showQuickButtonDescription":"\u5728\u5F71\u7247\u64AD\u653E\u5668\u53F3\u4E0B\u89D2\u63D0\u4F9B\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\u7684\u6377\u5F91",videoSubtitleTranslationDescription:"\u70BA\u5F71\u7247\u5B57\u5E55\u55AE\u7368\u6307\u5B9A\u4E00\u500B\u7FFB\u8B6F\u670D\u52D9",subtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u670D\u52D9\u7FFB\u8B6F\u5B57\u5E55\u4E2D\uFF0C\u8ACB\u7A0D\u7B49...\uFF08\u6C89\u6D78\u5F0F\u7FFB\u8B6F\uFF09",subtitleLoading:"\u6B63\u5728\u8F09\u5165\u5B57\u5E55...",bilingual:"\u96D9\u8A9E","field.action":"\u662F\u5426\u555F\u7528\u767E\u5EA6\u8853\u8A9E","description.action":"\u555F\u7528\u5F8C\u6703\u5728\u8ACB\u6C42\u4E2D\u52A0\u5165 action=1 \u7684\u53C3\u6578\uFF0C\u4EE5\u4FBF\u544A\u77E5\u767E\u5EA6\u555F\u7528\u8853\u8A9E\uFF0C<1>\u66F4\u591A\u8AAA\u660E\u8ACB\u53C3\u8003\u5B98\u65B9\u6587\u6A94",closeQuickTranslation:"\u95DC\u9589\u61F8\u6D6E\u7403","closeQuickTranslation.untilNext":"\u672C\u6B21\u95DC\u9589\u76F4\u5230\u4E0B\u6B21\u8A2A\u554F","closeQuickTranslation.currentWebsite":"\u7576\u524D\u7DB2\u7AD9\u7981\u7528","closeQuickTranslation.alwaysClose":"\u6C38\u4E45\u7981\u7528","closeQuickTranslation.settingOpen":"\uFF08\u53EF\u5728<1>\u8A2D\u5B9A\u9801\u958B\u555F\uFF09","closeQuickTranslation.cancel":"\u53D6\u6D88","closeQuickTranslation.confirm":"\u78BA\u5B9A","floatBall.translate":"\u9EDE\u9078\u7FFB\u8B6F\u8A72\u9801\u9762","floatBall.showOriginal":"\u9EDE\u9078\u5207\u63DB\u5230\u539F\u6587","floatBall.close":"\u95DC\u9589\u61F8\u6D6E\u7403","floatBallOptions.enableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F","floatBallOptions.enableDesc":"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528{touch}\u559A\u8D77\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5F37\u70C8\u5EFA\u8B70\u6536\u85CF\u672C\u8A2D\u5B9A\u9801","description.azureApiUrl":"\u586B\u5165\u81EA\u8A02\u7684API\u4F4D\u5740","floatBall.guideClickToTranslate":`\u9EDE\u9078\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u61F8\u6D6E\u7403 \u5373\u53EF\u5FEB\u901F\u7FFB\u8B6F`,"floatBall.iKnow":"\u6211\u77E5\u9053\u4E86",confirmSupportMouse:"\u555F\u7528\u50C5\u6ED1\u9F20\u6A21\u5F0F",confirmSupportMouseDescription:"\u76EE\u524D\u88DD\u7F6E\u652F\u63F4\u89F8\u63A7\u87A2\u5E55\u3002\u9810\u8A2D\u4F7F\u7528\u89F8\u63A7\u6A21\u5F0F\uFF0C\u555F\u7528\u6B64\u958B\u95DC\u5C07\u5207\u63DB\u81F3\u50C5\u6ED1\u9F20\u6A21\u5F0F\u3002",sampleTargetText:"\u9577\u591C\u5C07\u81F3\uFF0C\u6211\u5F9E\u4ECA\u958B\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002 \u6211\u5C07\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002 \u6211\u5C07\u4E0D\u6234\u5BF6\u51A0\uFF0C\u4E0D\u722D\u69AE\u5BF5\u3002 \u6211\u5C07\u76E1\u5FE0\u8077\u5B88\uFF0C\u751F\u6B7B\u65BC\u65AF\u3002",sampleSourceText:"Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",viewWithImmersiveTranslate:"\u96D9\u8A9E\u7248\u672C(\u6C89\u6D78\u5F0F\u7FFB\u8B6F)",errorReason:"\u932F\u8AA4\u539F\u56E0\uFF1A{message}","proQuotaExceededError.onetime7day":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"proQuotaExceededError.trial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaExceededError.nonTrial":'\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A

1. \u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9
2. \u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaExceededError.resetTime":"3. \u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",paragraphMinTextCountField:"\u7FFB\u8B6F\u6BB5\u843D\u6240\u9700\u7684\u6700\u5C11\u5B57\u7B26\u6578",paragraphMinTextCountDesc:"\u6CE8\u610F\uFF0C\u9019\u88E1\u6307\u7684\u5B57\u7B26\u9577\u5EA6\uFF0C\u6BD4\u5982\uFF1Ahello \u662F 5 \u500B\u5B57\u7B26\uFF0C\u8A2D\u5B9A\u70BA\u66F4\u5927\u7684\u503C\u53EF\u4EE5\u6E1B\u5C11\u4E0D\u5FC5\u8981\u7684\u5C0F\u6BB5\u843D\u7FFB\u8B6F",networkError:"\u7FFB\u8B6F\u670D\u52D9\u6216\u7DB2\u8DEF\u51FA\u73FE\u554F\u984C",notLogin:"\u672A\u767B\u5165","browser.toggleMouseHoverTranslateDirectly":"\u5728\u9801\u9762\u4E0A\u81E8\u6642\u555F\u7528\u6216\u95DC\u9589\u6ED1\u9F20\u61F8\u505C\u76F4\u63A5\u7FFB\u8B6F","browser.translateWithOpenAI":"\u81E8\u6642\u4F7F\u7528 OpenAI \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithDeepL":"\u81E8\u6642\u4F7F\u7528 DeepL \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGoogle":"\u81E8\u6642\u4F7F\u7528 Google \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithBing":"\u81E8\u6642\u4F7F\u7528\u5FAE\u8EDF\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithGemini":"\u81E8\u6642\u4F7F\u7528 Gemini \u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateWithTransmart":"\u81E8\u6642\u4F7F\u7528\u9A30\u8A0A\u7FFB\u8B6F\u7576\u524D\u9801\u9762","browser.translateInputBox":"\u7FFB\u8B6F\u7576\u524D\u8F38\u5165\u6846\u5167\u5BB9",shortcutSettings:"\u5FEB\u901F\u9375",shortcutSettingsTitle:"\u5FEB\u901F\u9375\u8A2D\u5B9A",confirmResetToDefaultSettings:"\u78BA\u8A8D\u8981\u6062\u5FA9\u8A72\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u8A2D\u5B9A\u55CE\uFF1F\uFF08\u50C5\u91CD\u7F6E\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u7684\u8A2D\u5B9A\uFF09","intro.hoverTitle":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D","intro.hoverDescription":"\u6ED1\u9F20\u61F8\u505C\u7FFB\u8B6F\u662F\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u88E1\u975E\u5E38\u91CD\u8981\u7684\u529F\u80FD\uFF0C\u53EA\u9700\u5C07\u6ED1\u9F20\u653E\u5728\u6BB5\u843D\u4E0A\uFF0C\u540C\u6642\u6309\u4E0B\u8A2D\u5B9A\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u81EA\u52D5\u7FFB\u8B6F\u7576\u524D\u6BB5\u843D\uFF08\u6CE8\u610F\uFF1A\u9810\u8A2D\u6C92\u6709\u555F\u7528\u54E6\uFF0C\u8ACB \u5728\u4E0B\u65B9\u8A2D\u5B9A\uFF09\uFF0C\u8A72\u4E92\u52D5\u7528\u65BC\u66F4\u597D\u7684\u66FF\u4EE3\u5283\u8A5E\u7FFB\u8B6F\uFF0C\u53E6\u5916\uFF0C\u6B64\u529F\u80FD\u4E5F\u5EE3\u6CDB\u61C9\u7528\u65BC\u90A3\u4E9B\u7121\u6CD5\u88AB\u8FA8\u8B58\u7684\u7FFB\u8B6F\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u5229\u7528\u8A72\u529F\u80FD\uFF0C\u5F37\u5236\u7FFB\u8B6F\u4EFB\u4F55\u6BB5\u843D\u3002","intro.floatBallTitle":"\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403","intro.floatBallDescription":"\u555F\u7528\u5F8C\uFF0C\u6703\u5728\u9801\u9762\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\uFF0C\u518D\u6B21\u9EDE\u9078\u5373\u53EF\u5207\u63DB\u56DE\u539F\u6587\u3002\u5728\u79FB\u52D5\u7AEF\uFF0C\u9577\u6309\u61F8\u6D6E\u7403\uFF0C\u53EF\u4EE5\u6253\u958B\u5FEB\u6377\u8A2D\u5B9A\u9762\u677F\u3002","intro.subtitleTitle":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u986F\u793A","intro.subtitleDescription":`\u555F\u52D5\u6B64\u529F\u80FD\u5F8C\uFF0C\u5F71\u7247\u64AD\u653E\u6642\u5C07\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\uFF08\u6CE8\u610F\uFF1A\u9664 YouTube \u5916\uFF0C\u60A8\u5FC5\u9808\u624B\u52D5\u958B\u555F\u539F\u5F71\u7247\u5E73\u53F0\u672C\u8EAB\u7684\u5B57\u5E55\u3002\u7531\u65BC\u6280\u8853\u9650\u5236\uFF0C\u67D0\u4E9B\u7DB2\u7AD9\u5728\u9996\u6B21\u6253\u958B\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6642\u53EF\u80FD\u9700\u8981\u5237\u65B0\u9801\u9762\u624D\u80FD\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002\u9664\u4E86\u5728\u672C\u8A2D\u7F6E\u9801\u9762\uFF0C\u60A8\u9084\u53EF\u4EE5\u5728\u8A2A\u554F\u652F\u6301\u7684\u5F71\u97F3\u5E73\u53F0\u6642\uFF0C\u53F3\u4E0A\u89D2\u6253\u958B\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u5FEB\u6377\u9762\u677F\u555F\u7528/\u95DC\u9589\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u529F\u80FD\uFF09 \u7576\u524D\u5DF2\u652F\u6301\u5728\u9019\u4E9B\u7DB2\u7AD9\u4F7F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF1A`,"desc.toggleMouseHoverTranslateDirectly":"\u6309\u4E0B\u9019\u500B\u5FEB\u901F\u9375\u5F8C\uFF0C\u5728\u9801\u9762\u4E0A\uFF0C\u53EA\u8981\u6ED1\u9F20\u6307\u5411\u4EFB\u4F55\u4E00\u6BB5\u6587\u5B57\uFF0C\u5C31\u6703\u81EA\u52D5\u7FFB\u8B6F\u9019\u6BB5\u6587\u5B57\u3002\u518D\u6309\u4E00\u6B21\u5FEB\u901F\u9375\uFF0C\u5C31\u53EF\u4EE5\u95DC\u9589\u9019\u500B\u81EA\u52D5\u7FFB\u8B6F\u529F\u80FD\u3002","shortcutGroup.main":"\u5E38\u7528\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.others":"\u66F4\u591A\u81EA\u5B9A\u7FA9\u529F\u80FD\u5FEB\u901F\u9375","shortcutGroup.shortcutsForTranslationServices":"\u7FFB\u8B6F\u670D\u52D9\u76F8\u95DC\u5FEB\u901F\u9375",browserShortcutsSucks:"\u7531\u65BC\u700F\u89BD\u5668\u5C0D\u8F38\u5165\u6846\u7684\u5FEB\u901F\u9375\u8FA8\u8B58\u4E0D\u6E96\u78BA\uFF0C\u6240\u4EE5\u8ACB\u624B\u52D5\u8F38\u5165\u5FEB\u901F\u9375\u7684\u540D\u5B57\uFF0C\u8F38\u5165\u5F8C\uFF0C\u9EDE\u9078\u7A7A\u767D\u8655\u5373\u53EF\u81EA\u52D5\u4FDD\u5B58\u3002\uFF08macOS \u88E1\u9762 Alt \u548C Option \u662F\u540C\u6A23\u7684\u9375\uFF0C\u5EFA\u8B70\u7D71\u4E00\u8F38\u5165 Alt\uFF09\u3002\u6BD4\u5982\uFF1A","shortcutGroup.touch":"\u89F8\u5C4F\u5C08\u7528\u624B\u52E2","shortcutGroup.mouse":"\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375\u914D\u7F6E","neverTranslateText.title":"\u4EE5\u4E0B\u55AE\u8A5E\u4FDD\u6301\u539F\u6587\uFF0C\u4E0D\u8981\u7FFB\u8B6F","neverTranslateText.description":"\u7531\u65BC\u67D0\u4E9B\u7FFB\u8B6F\u5F15\u64CE\u5C0D\u5C08\u6709\u540D\u8A5E\u8FA8\u8B58\u4E0D\u7406\u60F3\uFF0C\u4F60\u53EF\u4EE5\u5728\u6B64\u8655\u6DFB\u52A0\u55AE\u8A5E\uFF0C\u78BA\u4FDD\u5B83\u5011\u5728\u7FFB\u8B6F\u904E\u7A0B\u4E2D\u4E0D\u88AB\u8F49\u63DB\u3002\u8ACB\u6CE8\u610F\uFF0C\u6B64\u529F\u80FD\u5340\u5206\u5927\u5C0F\u5BEB\uFF0C\u4E26\u50C5\u652F\u6301\u4EE5\u7A7A\u683C\u5206\u9694\u7684\u55AE\u8A5E\u8A9E\u8A00\uFF08\u5982\u82F1\u8A9E\u3001\u6CD5\u8A9E\uFF09\uFF0C\u4E0D\u9069\u7528\u65BC\u65E5\u8A9E\u3001\u97D3\u8A9E\u7B49\u8A9E\u8A00","tagsInput.add":"+ \u6DFB\u52A0","desc.mouseHoverHoldKey":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u67D0\u500B\u6BB5\u843D\u4E0A\u6642\uFF0C\u540C\u6642\u6309\u4E0B\u53F3\u5074\u7684\u5FEB\u901F\u9375\uFF0C\u5373\u53EF\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5\u843D",mouseHoverCustomKeyTitle:"\u81EA\u5B9A\u7FA9\u6ED1\u9F20\u61F8\u505C\u5FEB\u901F\u9375",mouseHoverCustomKeyDescription:"\u4F60\u53EF\u4EE5\u81EA\u5B9A\u7FA9\u4E00\u500B\u6ED1\u9F20\u61F8\u505C\u7684\u7D44\u5408\u5FEB\u901F\u9375\uFF0C\u6BD4\u5982\uFF1A Alt+Z, Ctrl+E, Cmd+Alt+E \u6216\u8005\u76F4\u63A5 Cmd\uFF0C \u8ACB\u624B\u52D5\u8F38\u5165",mouseHoverShortcutPlaceholder:"\u8ACB\u624B\u52D5\u8F38\u5165",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u4FEE\u6539\u5FEB\u901F\u9375\u9700\u8981\u6253\u958B\u7BA1\u7406\u64F4\u5145\u529F\u80FD `about:addons`\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u300D-> \u300C\u7BA1\u7406\u5FEB\u901F\u9375\u300D",browserShortcutsNoteForChrome:"\u8ACB\u6CE8\u610F\uFF1A\u8981\u5728\u57FA\u65BCChrome\u5167\u6838\u7684\u700F\u89BD\u5668\u4E2D\u4FEE\u6539\u5FEB\u901F\u9375\uFF0C\u8ACB\u8A2A\u554F[\u7BA1\u7406\u64F4\u5145\u529F\u80FD] -> [\u7BA1\u7406\u5FEB\u901F\u9375]","desc.toggleTranslateTheMainPage":"\u50C5\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF\uFF0C\u7576\u4F60\u5728\u9032\u968E\u8A2D\u5B9A\u88E1\u555F\u7528\u4E86\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\u5F8C\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF","desc.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF0C\u9810\u8A2D\u60C5\u6CC1\u4E0B\uFF0C\u6211\u5011\u6703\u7FFB\u8B6F\u9801\u9762\u7684\u4E3B\u8981\u5340\u57DF\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u9019\u500B\u5FEB\u901F\u9375\u4F86\u5C08\u9580\u7FFB\u8B6F\u9801\u9762\u7684\u5168\u90E8\u5340\u57DF","browser.toggleOnlyTransation":"\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.toggleOnlyTransation":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u6307\u7684\u662F\u53EA\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002","browser.toggleTranslationMask":"\u5207\u63DB\u7576\u524D\u9801\u9762\u8B6F\u6587\u70BA\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","desc.interfaceLanguage":"\u4ECB\u9762\u8A9E\u8A00\u8A2D\u5B9A\u5F71\u97FF\u63A7\u5236\u9762\u677F\u7684\u986F\u793A\u8A9E\u8A00\uFF0C\u548C\u7FFB\u8B6F\u7684\u76EE\u6A19\u8A9E\u8A00\u7121\u95DC",mouseHoverHoldKey:"\u61F8\u505C\u7FFB\u8B6F\u89F8\u767C\u9375",clickToSeeQuickDemo:"30 \u79D2\u5FEB\u901F\u6559\u5B78\u5F71\u7247",shortcutDisableTooltip:"\u8ACB\u5728\u700F\u89BD\u5668\u63D0\u4F9B\u7684\u64F4\u5145\u529F\u80FD\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u5B9A\uFF0C\u66F4\u591A\u6307\u5F15\u8ACB\u67E5\u770B\u672C\u9801\u9762\u6700\u4E0A\u65B9\u7684\u8AAA\u660E",floatBallOptions:"\u61F8\u6D6E\u7403","subtitle.autoEnableSubtitle":"\u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55\uFF08\u76EE\u524D\u652F\u63F4\u7684\u6240\u6709\u5F71\u97F3\u5E73\u53F0\uFF09","floatBall.longPress":"\u9577\u6309\u53EF\u5FEB\u901F\u6253\u958B\u8A2D\u5B9A\u9762\u677F\u54E6",notLoginPro:"\u60A8\u9084\u672A\u767B\u9304\u60A8\u7684\u6703\u54E1\u5E33\u6236",upgradeToProErrorTitle:"\u8ACB\u5347\u7D1A\u70BA Pro \u6703\u54E1\u518D\u4F7F\u7528\u8A72\u7FFB\u8B6F\u670D\u52D9","description.baiduField":"\u652F\u6301\u7684\u9818\u57DF\u898B<1>\u9019\u88E1\uFF0C\u70BA\u7A7A\u5247\u8868\u793A\u4E0D\u6307\u5B9A\u9818\u57DF","widget.instruction":"\u4F7F\u7528\u8AAA\u660E","widget.translateFile":"PDF/ePub",buildSnapshots:"\u751F\u6210\u7DB2\u9801\u5FEB\u7167",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F{language}\u9801\u9762",alwaysTranslateThisSite:"\u7E3D\u662F\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",neverTranslateThisSite:"\u6C38\u4E0D\u7FFB\u8B6F\u8A72\u7DB2\u7AD9",loggedIn:"\u5DF2\u767B\u5165",touchShortcutsToggleTranslatePage:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u4F86\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslatePage":"\u8A2D\u5B9A\u5F8C\uFF0C\u5728\u79FB\u52D5\u88DD\u7F6E\u6642\uFF0C\u53EF\u4EE5\u540C\u6642\u7528 X \u500B\u624B\u6307\u89F8\u6478\u5C4F\u5E55\u3001\u5DE6\u53F3\u6ED1\u52D5\u6216\u9023\u7E8C\u9EDE\u9078\uFF0C\u89F8\u767C\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",touchShortcutsToggleTranslationMask:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u986F\u793A\u7FFB\u8B6F\u906E\u7F69/\u986F\u793A\u539F\u6587","desc.touchShortcutsToggleTranslationMask":"\u7FFB\u8B6F\u906E\u7F69\u662F\u6307\u8B6F\u6587\u6A23\u5F0F\u88E1\u7684\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09\uFF0C\u958B\u555F\u5F8C\u81E8\u6642\u5C0D\u8B6F\u6587\u4F7F\u7528\u6A21\u7CCA\u6548\u679C\uFF0C\u65B9\u4FBF\u5B78\u7FD2",touchShortcutsToggleTranslatePageOnlyTranslation:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u5207\u63DB\u96D9\u8A9E/\u50C5\u8B6F\u6587\u6A21\u5F0F","desc.touchShortcutsToggleTranslatePageOnlyTranslation":"\u53EA\u986F\u793A\u8B6F\u6587\u662F\u6307\u50C5\u986F\u793A\u8B6F\u6587\uFF0C\u5982\u679C\u7DB2\u9801\u9084\u6C92\u6709\u7FFB\u8B6F\u7684\u8A71\uFF0C\u5C07\u6703\u5207\u63DB\u6A21\u5F0F\u4E26\u7FFB\u8B6F\u3002",touchShortcutsToggleTranslateTouchElement:"\u8A2D\u5B9A\u89F8\u5C4F\u624B\u52E2\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","desc.touchShortcutsToggleTranslateTouchElement":"\u81EA\u5B9A\u7FA9\u4E00\u500B\u624B\u52E2\uFF0C\u5373\u53EF\u7FFB\u8B6F\u60A8\u6240\u5728\u7684\u4EFB\u4F55\u6BB5\u843D",touchShortcutsOff:"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478","multipleClick.2":"\u96D9\u64CA","multipleClick.3":"\u4E09\u9023\u64CA","multipleClick.4":"\u56DB\u9023\u64CA","slide.left":"\u5411\u53F3\u6ED1\u52D5","slide.right":"\u5411\u5DE6\u6ED1\u52D5",contact:"\u806F\u7D61\u6211\u5011","contact.description":"\u5982\u679C\u60A8\u6709\u4EFB\u4F55\u554F\u984C\u6216\u5EFA\u8B70\uFF0C\u6B61\u8FCE\u586B\u5BEB\u4E0B\u65B9\u8868\u55AE\u806F\u7D61\u6211\u5011\uFF0C\u6216\u8005\u767C\u9001\u90F5\u4EF6\u81F3 {email}\uFF0C\u6211\u5011\u6703\u76E1\u5FEB\u56DE\u8986\u60A8\u3002","font.none":"\u7121","font.Microsoft YaHei":"\u5FAE\u8EDF\u96C5\u9ED1","font.SimSun":"\u5B8B\u9AD4","font.NSimSun":"\u65B0\u5B8B\u9AD4","font.Microsoft JhengHei":"\u5FAE\u8EDF\u6B63\u9ED1\u9AD4","font.Source Han Serif":"\u601D\u6E90\u5B8B\u9AD4","font.Source Han Sans":"\u601D\u6E90\u9ED1\u9AD4","font.Source Han Sans CN":"\u601D\u6E90\u9ED1\u9AD4","font.Noto Sans SC":"\u601D\u6E90\u9ED1\u9AD4\u7C21\u9AD4","font.KaiTi":"\u6977\u9AD4","font.FangSong":"\u4EFF\u5B8B","font.PingFang SC":"\u860B\u65B9","font.STHeiti":"\u83EF\u6587\u9ED1\u9AD4","font.STKaiti":"\u83EF\u6587\u6977\u9AD4","font.STSong":"\u83EF\u6587\u5B8B\u9AD4","font.STFangsong":"\u83EF\u6587\u4EFF\u5B8B","font.STZhongsong":"\u83EF\u6587\u4E2D\u5B8B","font.STHupo":"\u83EF\u6587\u7425\u73C0","font.STXinwei":"\u83EF\u6587\u65B0\u9B4F","font.STLiti":"\u83EF\u6587\u96B8\u66F8","font.STXingkai":"\u83EF\u6587\u884C\u6977","font.Hiragino Sans GB":"\u51AC\u9752\u9ED1\u9AD4","font.Lantinghei SC":"\u862D\u4EAD\u9ED1","font.Hanzipen SC":"\u6F22\u5100\u7FE9\u7FE9\u9AD4","font.Hannotate SC":"\u6F22\u5100\u6CE8\u9ED1","font.Songti SC":"\u5B8B\u9AD4","font.Wawati SC":"\u5A03\u5A03\u9AD4","font.Weibei SC":"\u9B4F\u7891","font.Xingkai SC":"\u884C\u6977","font.Yapi SC":"\u96C5\u75DE","font.Yuanti SC":"\u5713\u9AD4","browser.toggleVideoSubtitlePreTranslation":"\u5207\u63DB\u96D9\u8A9E\u5B57\u5E55\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u8A2D\u5B9A","desc.toggleVideoSubtitlePreTranslation":"\u6309\u4E0B\u5F8C\uFF0C\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6703\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u8A2D\u5B9A\uFF0C\u518D\u6B21\u6309\u4E0B\u6703\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55\uFF0C\u6CE8\u610F\uFF1A\u8A72\u5FEB\u6377\u65B9\u5F0F\u4FEE\u6539\u7684\u662F\u5168\u5C40\u8A2D\u5B9A",videoSubtitlePreTranslationOn:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F",videoSubtitlePreTranslationOff:"\u5F71\u7247\u5B57\u5E55\u5C07\u512A\u5148\u4F7F\u7528\u539F\u5F71\u7247\u5167\u5EFA\u7684\u6A5F\u7FFB\u5B57\u5E55",translationFont:"\u8A2D\u5B9A\u5B57\u9AD4","translationFont.custom":"\u8F38\u5165\u81EA\u5B9A\u7FA9\u5B57\u9AD4","translationFont.customPlaceholder":"\u5B57\u9AD4","translationFont.notSupportErrorMessage":"\u8ACB\u6AA2\u67E5\u60A8\u8F38\u5165\u7684\u5B57\u9AD4\u540D\u7A31\u662F\u5426\u6B63\u78BA\uFF0C\u6216\u78BA\u8A8D\u8A72\u5B57\u9AD4\u5DF2\u5728\u60A8\u7684\u88DD\u7F6E\u4E0A\u5B89\u88DD\u3002","touch.mouse-translate":"\u7FFB\u8B6F\u6307\u5B9A\u6BB5\u843D","error.serveConfigError":"\u670D\u52D9\u914D\u7F6E\u932F\u8AA4","error.reloadPageOfSetting":"\u914D\u7F6E\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.googleLimitIp":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8C37\u6B4C\u670D\u52D9\u5DF2\u5C0D\u8A72IP\u5730\u5740\u9032\u884C\u9650\u6D41\uFF0C\u5EFA\u8B70\u60A8\u66F4\u63DB\u7DB2\u7D61\u7BC0\u9EDE\u3002","error.openAIFreeLimit":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u7576\u524D\u7684\u7FFB\u8B6F\u8ACB\u6C42\u983B\u7387\u5DF2\u9054\u5230\u6BCF\u5206\u9418\u6700\u591A 3 \u6B21\u7684\u4E0A\u9650\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002\uFF08\u9019\u662F OpenAI \u5B98\u65B9\u5C0D\u514D\u8CBB API Key \u7684\u9650\u5236\uFF0C\u82E5\u8981\u89E3\u9664\u6B64\u9650\u5236\uFF0C\u8ACB\u5728 OpenAI \u5F8C\u53F0\u7D81\u5B9A\u4FE1\u7528\u5361\u3002\uFF09","error.openAIExceededQuota":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF1A\u4F60\u7576\u524D\u7684 OpenAI \u5E33\u6236\u9918\u984D\u4E0D\u8DB3\uFF0C\u8ACB\u5728 OpenAI \u5B98\u65B9\u5F8C\u53F0\u9032\u884C\u5132\u503C\u6216\u8005\u7D81\u5B9A\u4FE1\u7528\u5361\u3002","error.429":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u8AAA\u660E\u8ACB\u6C42\u904E\u65BC\u983B\u7E41\u6216\u8D85\u51FA\u984D\u5EA6\u9650\u5236\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.403":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u66AB\u6642\u6C92\u6709\u6B0A\u9650\u8A2A\u554F\u8A72\u670D\u52D9\u3002","error.400":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u8ACB\u6C42\u53C3\u6578\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u76F8\u61C9\u914D\u7F6E\u3002","error.502":"\u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C \u670D\u52D9\u8D85\u6642\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002","error.proTokenInvalid":"\u82E5\u60A8\u662FPro\u7528\u6236\uFF0C\u8ACB\u767B\u5165\u5F8C\u518D\u4F7F\u7528Pro\u7FFB\u8B6F\u670D\u52D9","error.proUpgrade":"\u5347\u7D1A\u5F8C\uFF0C\u8ACB\u5237\u65B0\u9801\u9762\u518D\u6B21\u7FFB\u8B6F\u3002","error.configError":"\u914D\u7F6E\u6578\u64DA\u7570\u5E38","error.goReset":"\u524D\u5F80\u91CD\u7F6E",batchEdit:"\u5206\u6B21\u8907\u9078","translationServices.inherit":"\u8DDF\u96A8\u4E3B\u7FFB\u8B6F\u670D\u52D9","translationModeLang.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeLang.translation.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F","translationModeUrl.translation.title":"\u50C5\u8B6F\u6587\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeUrl.translation.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u57DF\u540D\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u50C5\u8B6F\u6587\u6A21\u5F0F",download_started:"\u4E0B\u8F09\u5DF2\u7D93\u958B\u59CB\uFF0C\u5982\u679C\u6C92\u6709\u81EA\u52D5\u4E0B\u8F09\uFF0C\u8ACB\u624B\u52D5\u9EDE\u9078",here:"\u9019\u88E1","error.serveUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u670D\u52D9\u63D0\u4F9B\u5546\u7684\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u5EFA\u8B70\u60A8\u5617\u8A66\u5237\u65B0\u9801\u9762\u6216\u901A\u904E<1>\u8A2D\u5B9A\u66F4\u63DB\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002\u82E5\u60A8\u662F<2>Pro\u6703\u54E1\uFF0C\u53EF\u4EE5\u9078\u64C7\u4F7F\u7528\u66F4\u70BA\u7A69\u5B9A\u7684 DeepL, OpenAI, Claude \u6216 Gemini \u7FFB\u8B6F\u670D\u52D9\uFF08<3>\u9EDE\u6B64\u514D\u8CBB\u9AD4\u9A57\uFF09\u3002 \u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002",detectServiceLoading:"\u6B63\u5728\u6AA2\u6E2C\u53EF\u7528\u7684\u7FFB\u8B6F\u670D\u52D9...",toggleToService:"\u5207\u63DB\u5230{service}\u4E26\u91CD\u8A66","error.gemini.429":"\u7576\u524D Gemini \u670D\u52D9\u7576\u524D\u627F\u8F09\u80FD\u529B\u5DF2\u9054\u4E0A\u9650\uFF0C\u8ACB\u60A8\u7A0D\u5F8C\u518D\u8A66\uFF0C\u6216\u8005\u5207\u63DB\u5230\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","translationServices.gemini":"Gemini","error.subscriptionExpiredTitle":"\u672A\u8A02\u95B1\u6703\u54E1\u6216\u5DF2\u904E\u671F","error.subscriptionExpired":"\u60A8\u7684\u6703\u54E1\u53EF\u80FD\u5DF2\u904E\u671F\u6216\u5C1A\u672A\u8A02\u95B1\uFF0C\u8ACB\u6AA2\u67E5\u60A8\u7684\u6703\u54E1\u72C0\u614B",geminiWarning:"\u6CE8\u610F\uFF1AGoogle \u63D0\u4F9B\u7684 Gemini \u7684\u514D\u8CBB\u670D\u52D9\u9650\u5236\u56B4\u683C\uFF0C\u53EF\u80FD\u6703\u88AB Google \u5224\u5B9A\u70BA\u7528\u6236\u5728\u4F7F\u7528\u591A\u500B Key \u4F86\u898F\u907F\u4ED6\u5011\u7684\u514D\u8CBB\u914D\u984D\u9650\u5236\uFF0C\u4E0D\u5EFA\u8B70\u4F7F\u7528\uFF0C\u5EFA\u8B70\u7B49\u5F85 Google \u672A\u4F86\u958B\u653E Gemini \u4ED8\u8CBB\u63A5\u53E3\u5F8C\u518D\u4F7F\u7528\u3002","floatBall.setting":"\u8A2D\u5B9A","floatBall.translateToLanguage":"\u9EDE\u9078\u7FFB\u8B6F\u70BA{language}",changeToDualTranslationMode:"\u5207\u63DB\u9810\u8A2D\u8B6F\u6587\u6A21\u5F0F\u70BA\u96D9\u8A9E\u5C0D\u7167",changeToOnlyTempTranslationMode:`\u7576\u524D\u70BA\u96D9\u8A9E\u5C0D\u7167 @@ -5537,7 +5537,7 @@ ass\u3001HTML\u3001TXT\u3001Markdown \u6587\u4EF6`,"description.multiplePrompt": {env.imt_sub_trans_field}: \u8B6F\u6587 - id: 2 {env.imt_sub_source_field}: Source - {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u548C\u5C0E\u822A\u689D\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04\u8207\u9802\u90E8\u5C0E\u822A\u83DC\u55AE"};var w5={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball + {env.imt_sub_trans_field}: \u8B6F\u6587`,"subtitle.quickButton.translationPosition":"\u8B6F\u6587\u4F4D\u7F6E","subtitle.quickButton.cyan":"\u9752\u8272","subtitle.quickButton.translationPositionTop":"\u539F\u6587\u4E0A\u65B9","subtitle.quickButton.translationPositionBottom":"\u539F\u6587\u4E0B\u65B9","subtitle.quickButton.yellow":"\u9EC3\u8272","subtitle.quickButton.black":"\u9ED1\u8272","subtitle.quickButton.white":"\u767D\u8272","subtitle.quickButton.setting":"\u8A2D\u5B9A","subtitle.quickButton.blue":"\u85CD\u8272","subtitle.quickButton.backgroundColor":"\u80CC\u666F\u984F\u8272","subtitle.quickButton.sourceFontSize":"\u539F\u59CB\u5B57\u9AD4\u5927\u5C0F","subtitle.quickButton.translationFontSize":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u5927\u5C0F","translationServices.claude":"Claude","subtitle.quickButton.sourceTextColor":"\u539F\u59CB\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.red":"\u7D05\u8272","subtitle.quickButton.translationTextColor":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u984F\u8272","subtitle.quickButton.magenta":"\u6D0B\u7D05\u8272","subtitle.quickButton.green":"\u7DA0\u8272","subtitle.quickButton.backgroundOpacity":"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",attachSubtitleTranslating:"\u6B63\u5728\u4F7F\u7528 {service} \u7FFB\u8B6F\u4E2D...","error.claude.403":"\u66AB\u7121\u6B0A\u9650\u8A2A\u554F\u670D\u52D9\uFF0C\u53EF\u80FD\u8207 Claude \u7684\u5730\u5340\u9650\u5236\u6709\u95DC\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u5207\u63DB\u60A8\u7684 IP \u5730\u5740\uFF0C\u6216\u8005\u4F7F\u7528\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9\u3002","browser.brandDescriptionForSafari":"\u3010\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u3011\u4E00\u6B3E\u514D\u8CBB\u7684\uFF08\u539F\u6587/\u8B6F\u6587\uFF09\u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F\u63D2\u4EF6\uFF0C\u540C\u6642\u652F\u6301PDF\u7FFB\u8B6F\u548CEPUB\u96FB\u5B50\u66F8\u7FFB\u8B6F\u4E14\u4FDD\u7559\u539F\u6587\u6A94\u6392\u7248\uFF0CYouTube/Netflix\u7B49\u5728\u7DDA\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u7FFB\u8B6F\uFF0C\u652F\u6301Deepl/Google\u7B49\u4E3B\u6D41\u7FFB\u8B6F\u670D\u52D9;","browser.PdfProFile":"AI \u9A45\u52D5\u7684 PDF Pro \u7FFB\u8B6F","browser.textTranslate":"\u6587\u672C\u7FFB\u8B6F\uFF08\u5C0D\u6BD4\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF09",touchShortcutsInputTranslate:"\u8A2D\u5B9A\u79FB\u52D5\u7AEF\u8F38\u5165\u6846\u589E\u5F37\u624B\u52E2","subtitle.quickButton.downloadSubtitle":"\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradePro":"\u60A8\u9084\u672A\u767B\u5165\u6216\u4E0D\u662F Pro \u6703\u54E1","subtitle.quickButton.downloadSubtitleNotFound":"\u672A\u627E\u5230\u8981\u4E0B\u8F09\u7684\u5B57\u5E55",upgradeToProWithProfile:"\u53BB\u767B\u5165\u6216\u5347\u7D1A\u70BA Pro \u6703\u54E1","subtitle.quickButton.tempEnableSubtitle":"\u50C5\u6B64\u6B21\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitle":"\u7E3D\u662F\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.quickButton.downloadSubtitleNotFoundDes":"\u8ACB\u6AA2\u67E5\u7576\u524D\u5F71\u7247\u662F\u5426\u5B58\u5728\u5B57\u5E55\u3001\u6216\u662F\u5426\u5DF2\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.downloadDisabledDes":"\u8ACB\u5148\u555F\u7528\u96D9\u8A9E\u5B57\u5E55\uFF0C\u96A8\u5F8C\u518D\u6B21\u9EDE\u9078\u4E0B\u8F09\u5B57\u5E55","subtitle.upgradeProMessage":"[\u5B57\u5E55\u4E0B\u8F09] \u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u529F\u80FD\uFF0C\u8ACB\u5148\u767B\u5165\u6216\u958B\u901A\u53EF\u514D\u8CBB\u8A66\u7528\u7684 Pro \u6703\u54E1\uFF0C\u7136\u5F8C\u5237\u65B0\u9801\u9762\u518D\u6B21\u5617\u8A66\u5373\u53EF","subtitle.enableDualSubtitleActionLabel":"\u7ACB\u5373\u555F\u7528\u96D9\u8A9E\u5B57\u5E55","subtitle.enableDualSubtitleModalTitle":"\u60A8\u9084\u672A\u555F\u7528\u96D9\u8A9E\u5B57\u5E55",goEditing:"\u53BB\u4FEE\u6539","translationServices.deeplx.introduction":"DeepL X",goSetting:"\u53BB\u8A2D\u5B9A",setting:"\u8A2D\u5B9A","subtitle.stylesSettingDescription":"\u50C5\u90E8\u5206\u7DB2\u7AD9\u652F\u63F4\uFF08\u5982 YouTube\uFF09","translationServices.bai.introduction":"\u767E\u5EA6\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.volcAlpha.introduction":"\u706B\u5C71\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.you.introduction":"\u6709\u9053\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.tenAlpha.introduction":"\u9A30\u8A0A\u7FFB\u8B6F Alpha \u7248\u672C",moreTranslationServices:"\u66F4\u591A\u7FFB\u8B6F\u670D\u52D9","translationServices.cai.introduction":"\u5F69\u96F2\u7FFB\u8B6F Alpha \u7248\u672C","translationServices.niu.introduction":"\u5C0F\u725B\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.azure.introduction":"\u5FAE\u8EDF Azure \u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u3002","subtitle.stylesSetting":"\u7DDA\u4E0A\u5F71\u7247\u96D9\u8A9E\u5B57\u5E55\u6A23\u5F0F\u8A2D\u5B9A","translationServices.mock2.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9 2\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.youdao.introduction":"\u7DB2\u6613\u6709\u9053\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.volc.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u706B\u5C71\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.d.introduction":"\u63A2\u7D22D\u7FFB\u8B6F\u670D\u52D9\u7684Alpha\u7248\u672C\uFF0C\u9AD4\u9A57\u6700\u524D\u6CBF\u7684\u7FFB\u8B6F\u6280\u8853\u548C\u5275\u65B0\u3002","translationServices.caiyun.introduction":"\u5F69\u96F2\u5C0F\u8B6F\u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u53EA\u652F\u63F4\u4E2D\u82F1\u65E5 3 \u7A2E\u8A9E\u8A00\u3002","translationServices.dpro.introduction":"\u5617\u8A66D Pro\u7684Canary\u7248\u672C\uFF0C\u4EAB\u53D7\u5C08\u696D\u7D1A\u7684\u7FFB\u8B6F\u670D\u52D9\u548C\u9818\u5148\u7684\u6280\u8853\u652F\u6301\u3002","translationServices.openl.introduction":"OpenL \u805A\u5408\u4E86\u591A\u500B\u7FFB\u8B6F\u5F15\u64CE\uFF0C\u4F46\u50F9\u683C\u8F03\u8CB4\u3002","translationServices.aliyun.introduction":"\u963F\u91CC\u96F2\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.transmart.introduction":"\u9A30\u8A0A\u6700\u65B0\u63A8\u51FA\u7684\u4E92\u52D5\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\u3002","translationServices.bing.introduction":"Edge \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u63F4\u591A\u7A2E\u8A9E\u8A00\u7684\u7FFB\u8B6F\u3002","translationServices.google.introduction":"Chrome \u700F\u89BD\u5668\u9810\u8A2D\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u514D\u8CBB\u7FFB\u8B6F\u670D\u52D9\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.mock.introduction":"\u6A21\u64EC\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7528\u65BC\u6E2C\u8A66\u548C\u958B\u767C\uFF0C\u4E0D\u63D0\u4F9B\u5BE6\u969B\u7FFB\u8B6F\u670D\u52D9\u3002","translationServices.tencent.introduction":"\u9A30\u8A0A\u63D0\u4F9B\u7684\u7FFB\u8B6F API\uFF0C\u548C\u9A30\u8A0A\u7FFB\u8B6F\u541B\u63D0\u4F9B\u7684\u670D\u52D9\u4E00\u81F4\u3002","translationServices.baidu.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u6A5F\u5668\u7FFB\u8B6F\u670D\u52D9\uFF0C\u652F\u6301\u591A\u7A2E\u8A9E\u8A00\uFF0C\u4F46\u662F\u9650\u901F\u8F03\u56B4\u683C\uFF0C\u4F7F\u7528\u9AD4\u9A57\u4E00\u822C\u3002","translationServices.claude.introduction":"Anthropic \u516C\u53F8\u63A8\u51FA\u7684 AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.yandex.introduction":"Yandex \u63A8\u51FA\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5728\u4FC4\u8A9E\u7FFB\u8B6F\u4E2D\u8868\u73FE\u8F03\u597D\u3002","translationServices.papago.introduction":"\u9AD4\u9A57\u4F86\u81EANAVER\u7684Papago\u7FFB\u8B6F\u670D\u52D9\uFF0C\u4EAB\u53D7\u7CBE\u6E96\u3001\u4EBA\u6027\u5316\u7684\u7FFB\u8B6F\u9AD4\u9A57\u3002","translationServices.gemini.introduction":"\u8C37\u6B4C\u63A8\u51FA\u7684AI \u5927\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.custom.introduction":"\u4F60\u53EF\u4EE5\u81EA\u884C\u64B0\u5BEB\u4E00\u500B\u517C\u5BB9\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7684\u6A19\u6E96 API \u7684\u4ECB\u9762\u4EE5\u63A5\u5165\u4EFB\u4F55\u5C1A\u672A\u53D7\u652F\u63F4\u7684\u7FFB\u8B6F\u670D\u52D9\uFF0C\u5177\u9AD4\u8ACB\u53C3\u8003\u63A5\u5165\u6587\u6A94","translationServices.deepl.introduction":"\u88AB\u8B7D\u70BA\u5168\u4E16\u754C\u6700\u7CBE\u6E96\u7684\u6A5F\u5668\u7FFB\u8B6F\uFF0C\u6BD4\u6700\u63A5\u8FD1\u4ED6\u5011\u7684\u7AF6\u722D\u5C0D\u624B<1>\u6E96\u78BA\u4E09\u500D\u4EE5\u4E0A\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F<2>\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002","translationServices.openai.introduction":"GPT \u6280\u8853\u6700\u521D\u5C31\u662F\u70BA\u7FFB\u8B6F\u800C\u8A95\u751F\u7684\uFF0C\u5B83\u88AB\u8CE6\u4E88\u4E86<1>\u7406\u89E3\u4E0A\u4E0B\u6587\u7684\u80FD\u529B\u3002OpenAI\u9A45\u52D5\u7684GPT\u662F\u6709\u53F2\u4EE5\u4F86\u6700\u667A\u80FD\u7684\u5927\u8A9E\u8A00\u6A21\u578B\uFF0C<2>\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u6703\u54E1\u53EF\u76F4\u63A5\u4F7F\u7528\u3002",onlineTransalteCompare:"\u7DDA\u4E0A\u5C0D\u6BD4\u7FFB\u8B6F\u670D\u52D9","browser.translateWithClaude":"\u81E8\u6642\u4F7F\u7528 Claude \u7FFB\u8B6F\u7576\u524D\u9801\u9762",translationServiceNav:"\u7FFB\u8B6F\u670D\u52D9",needActionLabel:"\u9700\u8A2D\u5B9A","subtitle.quickButton.moreSetting":"\u66F4\u591A\u8A2D\u5B9A",needSettingTip:"\u8A2D\u5B9A API Key \u4E4B\u5F8C\u624D\u80FD\u555F\u7528","subtitle.quickButton.textShadowType.raised":"\u7A81\u8D77","subtitle.quickButton.textShadowType.shadow":"\u9670\u5F71","subtitle.quickButton.textShadowType.depressed":"\u4E0B\u6C89","subtitle.quickButton.textShadowType.none":"\u7121",currentDefault:"\u76EE\u524D\u9810\u8A2D","subtitle.quickButton.textShadowType.outline":"\u908A\u6846","subtitle.quickButton.textShadowType":"\u5B57\u5143\u908A\u7DE3\u6A23\u5F0F",setDefault:"\u9EDE\u64CA\u8A2D\u70BA\u9810\u8A2D","subtitle.youtube.autoEnableSubtitle":"YouTube \u81EA\u52D5\u958B\u555F\u96D9\u8A9E\u5B57\u5E55","subtitle.youtube.groupTitle":"YouTube \u5C08\u5C6C\u8A2D\u5B9A","subtitle.youtube.autoEnableSubtitleDescription":"\u555F\u7528\u5F8C\uFF0C\u7576 YouTube \u5F71\u7247\u64AD\u653E\u7684\u6642\u5019\uFF0C\u6703\u81EA\u52D5\u986F\u793A\u96D9\u8A9E\u5B57\u5E55\u3002",enableEditTranslation:"\u81E8\u6642\u958B\u555F\u8B6F\u6587\u7DE8\u8F2F",disableEditTranslation:"\u95DC\u9589\u8B6F\u6587\u7DE8\u8F2F","aiAssistant.hot":"\u71B1\u5EA6","aiAssistant.loading":"\u6B63\u5728\u64CD\u4F5C","subtitle.quickButton.reset":"\u91CD\u8A2D","aiAssistant.common":"\u901A\u7528","aiAssistant.detail":"\u8AAA\u660E","model.customMoreModels":"\u81EA\u8A02\u6A21\u578B\u5217\u8868","aiAssistant.Uninstall":"\u5378\u8F09","aiAssistant.install":"\u5B89\u88DD","widget.pdfPro":"PDF \u5C08\u696D","field.assistant":"AI \u5C08\u5BB6","aiAssistant.auto":"\u667A\u6167\u9078\u64C7","widget.text":"\u6587\u672C\u7FFB\u8B6F","aiAssistant.more":"\u66F4\u591A\u7FFB\u8B6F\u5C08\u5BB6","aiAssistant.goToSite":"\u524D\u5F80\u5B98\u7DB2","more-models":"\u8A2D\u7F6E\u66F4\u591A\u6A21\u578B","widget.pdfProTooltip":"\u70BA\u6700\u8907\u96DC\u7684 PDF \u6587\u4EF6\u800C\u8A2D\u8A08","subtitle.resetStyle":"\u6062\u5FA9\u9810\u8A2D\u6A23\u5F0F","aiAssistant.handleError":"\u64CD\u4F5C\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.noData":"\u66AB\u7121 AI \u7FFB\u8B6F\u5C08\u5BB6\u6578\u64DA","widget.textTooltip":"\u6BD4\u8F03\u591A\u500B\u7FFB\u8B6F\u670D\u52D9","field_label.assistant":"\u4F60\u53EF\u4EE5\u6307\u5B9A\u4E00\u4F4D AI \u5C08\u5BB6\u4F86\u63D0\u4F9B\u7FFB\u8B6F\u7B56\u7565","aiAssistant.versionNoMatch":"\u63D2\u4EF6\u7248\u672C\u4E0D\u7B26\uFF0C\u8ACB\u81F3\u5B98\u7DB2\u4E0B\u8F09\u6700\u65B0\u7248\u672C","aiAssistant.moreAI":"\u8ACB\u6C42\u6216\u8CA2\u737B\u66F4\u591A AI \u5C08\u5BB6\uFF1F","aiAssistant.getDataError":"\u7372\u53D6 AI \u5C08\u5BB6\u6578\u64DA\u5931\u6557\uFF0C\u8ACB\u6AA2\u67E5\u7DB2\u8DEF\u5F8C\u91CD\u8A66","aiAssistant.versionNeedUpgrade":"\u6AA2\u6E2C\u5230\u63D2\u4EF6\u7248\u672C\u8F03\u4F4E\uFF0C\u90E8\u5206 AI \u5C08\u5BB6\u53EF\u80FD\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u524D\u5F80\u5B98\u7DB2\u66F4\u65B0\u63D2\u4EF6","model.addModelsDescription":"\u8ACB\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B\u540D\u7A31\uFF0C\u591A\u500B\u6A21\u578B\u7528\u82F1\u6587\u9017\u865F,\u5206\u9694\uFF0C\u7CFB\u7D71\u6703\u5728\u5217\u8868\u88E1\u8A18\u4F4F\u9019\u88E1\u6DFB\u52A0\u7684\u81EA\u5B9A\u7FA9\u6A21\u578B\uFF0C\u5982: gpt-3.5-turbo,gpt-4","aiAssistant.topBar":"\u901A\u904E\u5B9A\u5236 AI \u7FFB\u8B6F\u7B56\u7565(Prompt)\u53EF\u4EE5\u6709\u6548\u5730\u63D0\u9AD8\u7FFB\u8B6F\u8CEA\u91CF\u3002\u6211\u5011\u5C07\u9019\u4E9B\u7B56\u7565\u7A31\u70BA \u201CAI\u5C08\u5BB6\u201D \u2014\u2014\u672C\u8CEA\u4E0A\u662F\u4E00\u7CFB\u5217\u7CBE\u5FC3\u8A2D\u8A08\u7684\u63D0\u793A\u8A5E\u3002\u9019\u4E9B\u63D0\u793A\u8A5E\u516C\u958B\u5728<1>\u9019\u500B\u5009\u5EAB\u4E2D\uFF0C\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u8CA2\u737B\u3002\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u4E0B\u9762\u5B89\u88DD\u76F8\u61C9\u7684\u201CAI\u5C08\u5BB6\u201D\u5F8C\uFF0C\u5728\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u63D2\u4EF6\u7684\u9762\u677F\u4E2D\u9078\u64C7\u3010OpenAI\u3011\u6216\u5176\u4ED6 AI \u985E\u7FFB\u8B6F\u670D\u52D9(\u5982 Claude, Gemini)\uFF0C\u7136\u5F8C\u518D\u9078\u64C7\u4E0D\u540C\u7684AI\u5C08\u5BB6\u5373\u53EF\uFF0C\u9ED8\u8A8D\u7684\u7FFB\u8B6F\u7B56\u7565\u662F\u3010\u901A\u7528\u3011, \u9069\u5408\u5927\u591A\u6578\u5834\u666F\u3002","model.addModelsSeniorDescription":"\u652F\u63F4\u9AD8\u968E\u8A9E\u6CD5\uFF0C\u4F7F\u7528 + \u589E\u52A0\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 - \u4F86\u96B1\u85CF\u4E00\u500B\u6A21\u578B\uFF0C\u4F7F\u7528 -all \u4F86\u96B1\u85CF\u5168\u90E8\u5167\u5EFA\u6A21\u578B\uFF0C\u4F7F\u7528 \u6A21\u578B\u540D=\u5C55\u793A\u540D \u4F86\u81EA\u5B9A\u7FA9\u6A21\u578B\u7684\u5C55\u793A\u540D\uFF0C\u5982: +gpt-3.5-turbo,-gpt-4,gpt-4-turbo=gpt-4-super","error.serveProUnavailable":"\u60A8\u76EE\u524D\u6240\u4F7F\u7528\u7684 [{serverName}] \u670D\u52D9\u56E0\u7DB2\u8DEF\u9023\u63A5\u6216\u4F3A\u670D\u5668\u554F\u984C\u66AB\u6642\u7121\u6CD5\u8A2A\u554F\u3002\u53E6\u5916\uFF0C\u60A8\u4E5F\u53EF\u80FD\u9700\u8981\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u6216\u4EE3\u7406\u8A2D\u5B9A\u3002","field.maxTextGroupLengthPerRequestForSubtitle":"\u6BCF\u6B21\u5B57\u5E55\u8ACB\u6C42\u6700\u5927\u6BB5\u843D\u6578",serviceCustomName:"\u81EA\u8A02 Auth Key",serviceProDescription:"\u7576\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",serviceProName:"\u6C89\u6D78\u5F0F\u7FFB\u8B6F Pro \u6703\u54E1 (\u63A8\u85A6)",geminiCustomDescription:"\u5728 <1>Google \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u4EF6",claudeCustomDescription:"\u5728 <1>Claude \u5B98\u65B9\u958B\u901A\uFF0C\u9EDE\u9078\u67E5\u770B<2>\u6587\u6A94",serviceProDescriptionForNormal:"\u7121\u9700\u4EFB\u4F55\u8A2D\u5B9A\uFF0C\u6703\u54E1\u767B\u9304\u5F8C\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.quickButton.translationSetting":"\u8A2D\u5B9A\u8B6F\u6587","subtitle.quickButton.sourceFontFamily":"\u539F\u6587\u5B57\u9AD4","subtitle.quickButton.translationFontFamily":"\u7FFB\u8B6F\u6587\u5B57\u9AD4","subtitle.quickButton.sourceFontWeight":"\u539F\u6587\u5B57\u9AD4\u7C97\u7D30","subtitle.quickButton.sourceSetting":"\u539F\u59CB\u5B57\u9AD4\u8A2D\u7F6E","subtitle.quickButton.translationFontWeight":"\u7FFB\u8B6F\u6587\u5B57\u9AD4\u7C97\u7D30",enableAutoSyncAPIKey:"\u540C\u6642\u540C\u6B65\u654F\u611F\u4FE1\u606F\u5982 API Key\u3001Token \u7B49\u8A2D\u7F6E",proRightDescription:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u9EDE\u6B64<1>\u4E86\u89E3\u66F4\u591A",proRightOpenPro:"\u591A\u8A2D\u5099\u96F2\u540C\u6B65\u70BA Pro \u6703\u54E1\u5C08\u5C6C\u7684\u6B0A\u76CA\uFF0C\u8ACB\u958B\u901A Pro \u6703\u54E1\u5F8C\u518D\u4F7F\u7528","customThemeLabel.italics":"\u8A2D\u7F6E\u70BA\u659C\u9AD4","widget.cache":"\u6E05\u9664\u5FEB\u53D6","customThemeLabel.weight":"\u5B57\u9AD4\u7C97\u7D30","translationServices.custom-ai":"\u81EA\u8A02AI","translationServices.delete":"\u522A\u9664","field.name":"\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","field.namePlaceholder":"\u7FFB\u8B6F\u670D\u52D9\u540D\u7A31","translationServices.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72\u7FFB\u8B6F\u670D\u52D9\u55CE\uFF1F","translationServices.addCustomAI":"\u6DFB\u52A0\u517C\u5BB9 OpenAI \u4ECB\u9762\u7684\u81EA\u8A02 AI \u7FFB\u8B6F\u670D\u52D9\uFF1F","translationServices.deleteDefaultError":"\u7576\u524D\u7FFB\u8B6F\u670D\u52D9\u70BA\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9\uFF0C\u7121\u6CD5\u88AB\u522A\u9664\uFF0C\u8ACB\u5148\u66F4\u63DB\u9ED8\u8A8D\u7FFB\u8B6F\u670D\u52D9",cleanSuccess:"\u6E05\u7406\u5FEB\u53D6\u6210\u529F",watchIntroVideo:"\u67E5\u770B\u5F71\u7247\u793A\u7BC4","field_label.fallbackAssistant":"\u7576\u667A\u80FD\u9078\u64C7\u7121\u6CD5\u5339\u914D\u6642\uFF0C\u6307\u5B9A\u4F7F\u7528\u4E0B\u9762\u7684 AI \u5C08\u5BB6",subscribeEmail:"\u8A02\u95B1\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96FB\u5B50\u5831","translationServices.deepseek":"DeepSeek","translationServices.qianfan.introduction":"\u767E\u5EA6\u63A8\u51FA\u7684\u9996\u9801 AI \u5927\u6A21\u578B","translationServices.qianfan":"\u767E\u5EA6\u5343\u5E06\u5927\u6A21\u578B","translationServices.aliyun-bailian":"\u963F\u91CC\u96F2\u767E\u7149\u5927\u6A21\u578B","translationServices.deepseek.introduction":"\u5E7B\u65B9\u63A8\u51FA\u7684DeepSeek\u5927\u6A21\u578B","translationServices.aliyun-bailian.introduction":"\u963F\u91CC\u63A8\u51FA\u7684\u767E\u934A\u5927\u6A21\u578B","error.azure.401":"Azure \u670D\u52D9\u8FD4\u56DE\u932F\u8AA4\uFF0C\u53EF\u80FD\u662F\u7531\u65BC region (\u63A5\u53D7\u7684\u503C\u662F\uFF1Ajapaneast, global \u7B49) \u6216 APIKEY \u586B\u5BEB\u932F\u8AA4\uFF0C\u8ACB\u6AA2\u67E5\u5F8C\u91CD\u8A66\u3002","field.accessPoint":"\u63A5\u5165\u9EDE","translationServices.doubao":"\u8C46\u5305\u5927\u6A21\u578B","proQuotaError.solvedTitle":"\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","error.siteDisableManga":"\u7576\u524D\u6F2B\u756B\u5716\u7247\u7981\u6B62\u7FFB\u8B6F","guide.mangaProTip":"\u60A8\u73FE\u5728\u53EF\u4EE5\u901A\u904E\u9EDE\u9078\u6F2B\u756B\u61F8\u6D6E\u7403\u4F86\u7FFB\u8B6F\u6F2B\u756B\u3002",translationPosition:"\u539F\u6587\u5728\u5148\uFF0C\u8B6F\u6587\u5728\u5F8C","mangaQuotaError.solvedTitle":"\u6F2B\u756B\u7FFB\u8B6F\u984D\u5EA6\u8D85\u51FA\uFF0C\u60A8\u53EF\u4EE5\u9078\u64C7\u4EE5\u4E0B\u65B9\u5F0F\u89E3\u6C7A\uFF1A","proQuotaError.package":'\u8CFC\u8CB7 {translationService} \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.newPackage":'\u8CFC\u8CB7 \u984D\u5916\u6D41\u91CF\u5305',"proQuotaError.toggleAnotherService":"\u5207\u63DB\u5230 {anotherService} \u6216\u5176\u4ED6\u7FFB\u8B6F\u670D\u52D9","guide.mangaNoProTip":"Pro \u6703\u54E1\u73FE\u5728\u53EF\u4EE5\u7FFB\u8B6F\u6F2B\u756B\u4E86\uFF01","proQuotaError.trail":'\u7ACB\u523B\u5347\u7D1A\u70BA\u6B63\u5F0F\u6703\u54E1',"proQuotaError.onetime7day":'\u5347\u7D1A\u70BA\u6708\u5EA6/\u5E74\u5EA6\u6703\u54E1',"translationServices.doubao.introduction":"\u5B57\u7BC0\u8DF3\u52D5\u63A8\u51FA\u7684\u8C46\u5305\u5927\u6A21\u578B","mangaQuotaError.package":'\u8CFC\u8CB7 \u6F2B\u756B\u7FFB\u8B6F\u984D\u5916\u6D41\u91CF\u5305',"description.accessPoint":"\u9019\u88E1\u7684\u63A5\u5165\u9EDE\u6307\u7684\u662F\u8C46\u5305\u5927\u6A21\u578B\u4E2D\u5275\u5EFA\u7684\u6BCF\u500B\u63A8\u7406\u9EDE\u7684ID\uFF0C\u4F8B\u5982\uFF1Aep-20250512512616-kv2l4","proQuotaError.resetTime":"\u984D\u5EA6\u91CD\u7F6E\u6642\u9593\uFF1A{resetTime}",manga:"\u6F2B\u756B",translationPositionDescription:"\u958B\u555F\u5F8C\uFF0C\u6BCF\u500B\u6BB5\u843D\u7684\u8B6F\u6587\u5C07\u5728\u539F\u6587\u524D\u9762\uFF0C\u9ED8\u8A8D\u95DC\u9589\uFF0C\u5373\uFF1A\u8B6F\u6587\u5728\u6BCF\u4E00\u6BB5\u843D\u539F\u6587\u4E4B\u5F8C","floatBallOptions.mangaEnableDescPc":"\u555F\u7528\u9801\u9762\u61F8\u6D6E\u7403\u5F8C\uFF0C\u6703\u5728\u652F\u6301\u7684\u6F2B\u756B\u7AD9\u9EDE\u53F3\u5074\u986F\u793A\u4E00\u500B\u5FEB\u6377\u6F2B\u756B\u7FFB\u8B6F\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u7FFB\u8B6F\u6F2B\u756B\u3002","popup.mangaSiteSupport":"\u7576\u524D\u7DB2\u7AD9\u652F\u6301\u6F2B\u756B\u7FFB\u8B6F","intro.mangaDescription":"\u6F2B\u756B\u7FFB\u8B6F\u50C5 <1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u4F7F\u7528\u8AAA\u660E\uFF1A\u5728\u7576\u524D\u5DF2\u652F\u6301\u7684\u6F2B\u756B\u7DB2\u7AD9\u88E1\uFF0C\u7DB2\u9801\u5FEB\u6377\u7FFB\u8B6F\u61F8\u6D6E\u7403\u4E0B\u65B9\u6703\u51FA\u73FE\u4E00\u500B\u6F2B\u756B\u7FFB\u8B6F\u7684\u6309\u9215\uFF0C\u9EDE\u9078\u5373\u53EF\u958B\u555F\u6F2B\u756B\u7FFB\u8B6F\uFF09\uFF0C\u7576\u524D\u5DF2\u652F\u6301\u4EE5\u4E0B\u7DB2\u7AD9\u7684\u6F2B\u756B\u7FFB\u8B6F\uFF1A","intro.mangaTitle":"Pro Manga Translation (Beta)",helpToTranslate:"\u5354\u52A9\u7FFB\u8B6F\u4ECB\u9762","aiAssistant.matchesTitle":"\u5728\u4EE5\u4E0B\u7DB2\u7AD9\u81EA\u52D5\u4F7F\u7528\u7576\u524D\u5C08\u5BB6",feedbackOrMore:"\u8ACB\u6C42\u652F\u63F4\u66F4\u591A\u7DB2\u7AD9\u6216\u554F\u984C\u56DE\u994B\u3002","aiAssistant.matchesDescription":"AI \u5C08\u5BB6\u5FC5\u9808\u8A2D\u7F6E\u70BA\u3010\u667A\u80FD\u9078\u64C7\u3011\u4EE5\u4E0B\u8A2D\u7F6E\u624D\u751F\u6548","translationServices.hunyuan":"\u9A30\u8A0A\u6DF7\u5143\u5927\u6A21\u578B","translationServices.hunyuan.introduction":"\u9A30\u8A0A\u63A8\u51FA\u7684\u6DF7\u5143\u5927\u6A21\u578B","subtitle.ytAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55\u5206\u53E5\u57FA\u790E\u512A\u5316","subtitle.ytAsrDescription":"\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u9032\u884C\u521D\u6B65\u57FA\u790E\u5206\u53E5\u512A\u5316","manga.cleanCache":"\u6E05\u9664\u6F2B\u756B\u7DE9\u5B58","translationServices.siliconcloud.introduction":"SiliconCloud \u57FA\u65BC\u512A\u79C0\u7684\u958B\u6E90\u57FA\u790E\u6A21\u578B\uFF0C\u63D0\u4F9B\u9AD8\u6027\u50F9\u6BD4\u7684 GenAI \u670D\u52D9","field.aiAssistantName":"AI \u5C08\u5BB6\u540D\u7A31","aiAssistant.deleteConfirm":"\u78BA\u5B9A\u8981\u522A\u9664\u8A72 AI \u5C08\u5BB6\u55CE\uFF1F","aiAssistant.customAiAssistant":"\u81EA\u8A02 AI \u5C08\u5BB6","aiAssistant.addCustom":"\u6DFB\u52A0\u81EA\u8A02 AI \u5C08\u5BB6","subtitle.ytAIAsrProTooltip":"\u6B64\u529F\u80FD\u50C5\u9650 Pro \u7528\u6236\u4F7F\u7528\uFF0C<1>\u9EDE\u6B64\u5347\u7D1A\u70BA\u6703\u54E1","subtitle.ytAIAsr":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u5B57\u5E55 AI \u667A\u6167\u5206\u53E5\uFF08Beta\uFF09","subtitle.ytAsrDisableTooltip":"\u8ACB\u5148\u958B\u555F\u3010\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u7FFB\u8B6F YouTube \u5B57\u5E55\u3011\u9078\u9805\u3002","subtitle.ytAIAsrDescription":"\u91DD\u5C0D YouTube \u81EA\u52D5\u751F\u6210\u7684\u82F1\u6587\u5B57\u5E55\u63A1\u7528 AI \u667A\u6167\u5206\u53E5\u7B97\u6CD5\uFF0C\u4F7F\u5F97\u96D9\u8A9E\u5B57\u5E55\u66F4\u81EA\u7136\uFF0C\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002","browser.toggleTranslatePageOfficialPage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.translateText":'\u7FFB\u8B6F\u6587\u672C\uFF1A"{text}"',"translationServices.lingyiwanwu":"\u96F6\u4E00\u842C\u7269","description.siliconcloudCustomAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9ED8\u8A8D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548CSiliconCloud\u5408\u4F5C\u70BA\u60A8\u63D0\u4F9B\u7684\u514D\u8CBB\u5927\u6A21\u578B\u7FFB\u8B6F","translationServices.lingyiwanwu.introduction":"\u7531\u96F6\u4E00\u842C\u7269\u63A8\u51FA\u7684Yi \u7CFB\u5217\u5927\u8A9E\u8A00\u6A21\u578B","field.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F","description.enableRichTranslate":"\u555F\u7528\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4EE5\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\u3002","description.temperature":"\u63A1\u6A23\u767C\u6563\u5EA6\uFF0C\u503C\u8D8A\u5C0F\uFF0C\u751F\u6210\u7684\u5167\u5BB9\u8D8A\u56FA\u5B9A\u3002\u7576\u53D60\u6642\uFF0C\u6A21\u578B\u751F\u6210\u6642\u5E7E\u4E4E\u7E3D\u662F\u6703\u9078\u53D6\u6982\u7387\u6700\u5927\u7684Token\uFF08\u8A5E\u5143\uFF09\u3002","reportInfo.submit":"\u63D0\u4EA4","reportInfo.ok":"\u597D\u7684",reportTip:"\u56DE\u994B","reportInfo.submitFail":"\u63D0\u4EA4\u5931\u6557...","reportInfo.reasonDesc":"\u8ACB\u63CF\u8FF0\u60A8\u9047\u5230\u7684\u554F\u984C\uFF08\u5FC5\u586B\uFF09","reportInfo.submitSuccess":"\u63D0\u4EA4\u6210\u529F\uFF0C\u611F\u8B1D\u60A8\u7684\u53CD\u994B\uFF01","reportInfo.title":"\u7FFB\u8B6F\u9047\u5230\u554F\u984C\u4E86\uFF1F","reportInfo.attachLog":"\u5C07\u7576\u524D\u932F\u8AA4\u65E5\u8A8C\u53CD\u994B\u7D66\u6C89\u6D78\u5F0F\u7FFB\u8B6F","reportInfo.submitFailDes":"\u9047\u5230\u4E86\u4E00\u4E9B\u554F\u984C\uFF0C\u60A8\u53EF\u4EE5\u5617\u8A66\u91CD\u65B0\u53CD\u994B\uFF0C\u6216\u63DB\u500B\u6642\u9593\u518D\u6B21\u5617\u8A66\u3002","browser.translateWithCustom1":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(1)","browser.translateWithCustom2":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(2)","browser.translateWithCustom3":"\u66AB\u6642\u4F7F\u7528\u81EA\u8A02\u7FFB\u8B6F\u670D\u52D9\u7FFB\u8B6F\u76EE\u524D\u9801\u9762(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8A5E","aiAssistant.autoEnableAssistant":"\u81EA\u52D5\u555F\u7528AI \u5C08\u5BB6",tempChangeTransToService:"\u6B63\u5728\u4F7F\u7528{service} \u7FFB\u8B6F\u76EE\u524D\u9801\u9762",trustTypeError:"\u7DB2\u7AD9\u9650\u88FD\u6CB9\u7334\u8173\u672C\u63D0\u4F9B\u96D9\u8A9E\u5B57\u5E55\uFF0C\u5EFA\u8B70\u4F7F\u7528\u5916\u639B\u7A0B\u5F0F\u7248\u672C","translationServices.siliconcloud":"SiliconCloud \u7FFB\u8B6F","popup.upgrade":"\u5347\u7D1A","widget.webReport":"\u56DE\u994B\u7576\u524D\u9801\u9762\u7FFB\u8B6F\u554F\u984C","floatBall.upgrade":"\u8A66\u7528Pro \u6703\u54E1\uFF08\u9AD4\u9A57OpenAI, DeepL, PDF Pro, \u6F2B\u756B\u7FFB\u8B6F\u7B49\uFF09","floatBallOptions.disable":"\u7981\u7528\u61F8\u6D6E\u7403","popup.trial_pro_service":"\u8A66\u7528OpenAI, DeepL\u667A\u6167\u7FFB\u8B6F","reportInfo.tip":"\u8ACB\u586B\u5BEB\u554F\u984C\u63CF\u8FF0\u5F8C\u518D\u63D0\u4EA4","translationModeLang.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u8A9E\u8A00","translationModeUrl.translation.dual.title":"\u96D9\u8A9E\u6A21\u5F0F\u7684\u7DB2\u5740","translationModeLang.translation.dual.description":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F","translationModeUrl.translation.dual.description":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u4F7F\u7528\u96D9\u8A9E\u6A21\u5F0F",translationModePreferLabel:"\u7FFB\u8B6F\u504F\u597D",translationModePreferDesc:"\u9078\u64C7\u7FFB\u8B6F\u5F8C\u7684\u986F\u793A\u65B9\u5F0F\uFF1A\u96D9\u8A9E\u5C0D\u7167\u6216\u50C5\u986F\u793A\u8B6F\u6587",refreshPage:"\u91CD\u65B0\u6574\u7406\u9801\u9762",ctxInvalidatedError:"\u5916\u639B\u4E0A\u4E0B\u6587\u5931\u6548\u8ACB\u5237\u65B0\u9801\u9762\u91CD\u8A66","reportInfo.emailError":"\u90F5\u7BB1\u683C\u5F0F\u4E0D\u6B63\u78BA","reportInfo.email":"\u4FE1\u7BB1","subtitle.quickButton.orange":"\u6A58\u8272","translationServices.zhipu":"\u667A\u8B5C GLM \u7FFB\u8B6F","description.zhipuCustomAPIKey":"\u975E\u514D\u8CBB\u6A21\u578B\u9700\u8981\u586B\u5BEB<1>\u667A\u8B5C\u5E73\u53F0\u7533\u8ACB\u7684\u5BC6\u9470\u5F8C\u624D\u53EF\u7528\uFF0C\u8A73\u60C5\u53C3\u8003<2>\u6559\u7A0B","description.zhipuFreeAPIKey":"\u53EF\u9078\uFF0C\u4E0D\u586B\u5247\u9810\u8A2D\u4F7F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u548C<1>\u667A\u8B5C \u5408\u4F5C\u70BA\u60A8\u514D\u8CBB\u63D0\u4F9B\u7684glm-4-flash, \u5982\u9700\u4F7F\u7528\u81EA\u5DF1\u7684API Key\uFF0C\u8ACB\u53C3\u8003<2>\u6B64\u6587\u4EF6","translationServices.zhipu.introduction":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u5B98\u65B9\u5408\u4F5C\u5925\u4F34\u300C\u667A\u8B5C\u300D\u63A8\u51FA\u7684 GLM \u5927\u6A21\u578B\uFF0C\u6240\u6709\u4F7F\u7528\u8005\u53EF\u76F4\u63A5\u514D\u8CBB\u4F7F\u7528\u5176 GLM-4-Flash \u6A21\u578B\u3002","glm-4-flash (free)":"glm-4-flash (\u514D\u8CBB)",mouseHoldKeyPressHold:"+ \u9577\u6309\u6ED1\u9F20\u5DE6\u9375","browser.translateMangaMenuId":"\u7FFB\u8B6F\u5716\u7247/\u9084\u539F\u5716\u7247",translateFail:"\u7FFB\u8B6F\u5931\u6557","floatBallOptions.enableManga":"\u555F\u7528\u6F2B\u756B\u7FFB\u8B6F\u61F8\u6D6E\u7403","imageTools.translateImage":"\u9EDE\u9078\u7FFB\u8B6F\u5716\u7247","image.blockToolsUrls":"\u7981\u7528\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u7DB2\u7AD9","closeImageTools.title":"\u95DC\u9589\u5716\u7247\u7FFB\u8B6F","image.enableToolsDes":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","image.enableTools":"\u7576\u6ED1\u9F20\u61F8\u505C\u5728\u5716\u7247\u4E0A\u6642\u986F\u793A\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215","imageTools.resetImage":"\u9EDE\u9078\u986F\u793A\u539F\u5716","image.imageTranslate":"Pro \u5716\u7247\u7FFB\u8B6F( Beta)","image.imageTranslateDes":"\u5716\u7247\u7FFB\u8B6F\u50C5<1>Pro \u6703\u54E1\u53EF\u7528\u3002

\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\u9EDE\u64CA\u9F20\u6A19\u53F3\u9375\u4E26\u9078\u64C7\u201C\u7FFB\u8B6F\u5716\u7247\u201D\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002\u6B64\u5916\uFF0C\u5982\u60A8\u5DF2\u8A2D\u7F6E\u9F20\u6A19\u61F8\u505C\u7FFB\u8B6F\u6BB5\u843D\u5FEB\u6377\u9375\uFF0C\u4E5F\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u9F20\u6A19\u61F8\u505C\u7684\u5FEB\u6377\u9375\u7FFB\u8B6F\u5716\u7247\u3002\u70BA\u4E86\u65B9\u4FBF\u4F7F\u7528\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u555F\u7528\u4E0B\u65B9\u7684\u9F20\u6A19\u61F8\u505C\u5FEB\u6377\u7FFB\u8B6F\u6309\u9215\uFF0C\u555F\u7528\u4E4B\u5F8C\uFF0C\u5C07\u9F20\u6A19\u61F8\u505C\u5728\u4EFB\u4F55\u5716\u7247\u4E0A\uFF0C\u5373\u53EF\u770B\u5230\u201C\u5FEB\u6377\u7FFB\u8B6F\u201D\u6309\u9215\uFF0C\u9EDE\u64CA\u6B64\u6309\u9215\u5373\u53EF\u9032\u884C\u7FFB\u8B6F\u3002","image.blockToolsUrlsDes":"\u9047\u5230\u4E0B\u5217\u7DB2\u7AD9\u6642\u4E0D\u5728\u5716\u7247\u4E0A\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215",mangaAndImage:"\u6F2B\u756B/\u5716\u7247",translateSuccess:"\u7FFB\u8B6F\u6210\u529F",neverShowFuture:"\u4EE5\u5F8C\u4E0D\u518D\u986F\u793A",sameLangNoTranslate:"\u60A8\u8A2D\u5B9A\u7684\u76EE\u6A19\u8A9E\u8A00\u548C\u8A72\u7DB2\u9801\u8A9E\u8A00\u4E00\u81F4\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u5167\u5BB9\u7121\u6CD5\u88AB\u7FFB\u8B6F",sameLangCheckDescription:"\u555F\u7528\u5F8C\uFF0C\u82E5\u76EE\u6A19\u8A9E\u8A00\u8207\u9801\u9762\u539F\u6587\u8A9E\u8A00\u76F8\u540C\uFF0C\u5C07\u63D0\u793A\u7121\u6CD5\u9032\u884C\u7FFB\u8B6F",sameLangCheck:"\u5075\u6E2C\u9801\u9762\u8A9E\u8A00\u8207\u76EE\u6A19\u8A9E\u8A00\u662F\u5426\u76F8\u540C","imageState.translating":"\u7FFB\u8B6F\u4E2D","imageState.reading":"\u8B80\u53D6\u4E2D","imageState.generating":"\u751F\u6210\u4E2D","imageState.detectingRecognizing":"\u8B58\u5225\u4E2D","imageState.loading":"\u8655\u7406\u4E2D","image.toolsDelayTimeDes":"\u6ED1\u9F20\u61F8\u505C\u591A\u4E45\u5F8C\u986F\u793A\u5716\u7247\u7FFB\u8B6F\u6309\u9215","image.toolsDelayTime":"\u986F\u793A\u5716\u7247\u5FEB\u901F\u7FFB\u8B6F\u6309\u9215\u7684\u5EF6\u9072\u6642\u9593(\u6BEB\u79D2)","imageState.pending":"\u6392\u968A\u4E2D","imageState.gifNotSupported":"\u4E0D\u652F\u63F4 GIF",orCustom:"\u6216\u81EA\u8A02\u7FA9","description.aiDualEnableRichTranslate":"\u958B\u555F\u5BCC\u6587\u672C\u7FFB\u8B6F\u53EF\u4FDD\u7559\u539F\u6587\u7684\u9023\u7D50\u548C\u6A23\u5F0F\u6548\u679C\uFF08\u6CE8\u610F\uFF1AAI \u7FFB\u8B6F\u6A21\u578B\u4E0B\u555F\u7528\u5BCC\u6587\u672C\u53EF\u80FD\u5F71\u97FF\u7FFB\u8B6F\u8CEA\u91CF\uFF0C\u56E0\u6B64\u96D9\u8A9E\u6A21\u5F0F\u9ED8\u8A8D\u95DC\u9589\u6B64\u529F\u80FD\uFF09",navHeadEnableTranslate:"\u555F\u7528\u5074\u908A\u6B04\u7FFB\u8B6F",navHeadEnableTranslateDescription:"\u555F\u7528\u5F8C\u5247\u6703\u7FFB\u8B6F\u7DB2\u9801\u7684\u5074\u908A\u6B04",disableNavTranslate:"\u95DC\u9589\u5074\u908A\u6B04\u7FFB\u8B6F",enableNavTranslate:"\u958B\u555F\u5074\u908A\u6B04\u7FFB\u8B6F"};var Sv={nologin:"Not logged in",loginForSafari:"Sign In or Sign Up",login:"Log In",goLogin:"Sign In",manageAccount:"Manage Account",openPremium:"Upgrade to Pro",logout:"Logout",lineBreakMaxTextCount:"Maximum characters per sentence after line break","translate-pdf":"Translate PDF","noSupportTranslate-pdf":"This script is not supported. Please use a plugin.","translate-firefox-local-pdf":"Go to upload PDF",enableLineBreak:"Enable automatic line wrapping for long paragraphs",help:"Help",enableLineBreakDescription:"After activating, insert line breaks at the end of each sentence in lengthy paragraphs for improved readability.","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate - Translate Web & PDF","browser.brandDescription":"Free Translate Website, Translate PDF & Epub eBook, Translate Video Subtitles in Bilingual","browser.toggleTranslatePage":"Translate to {targetLanguage}","browser.toggleTranslateTheWholePage":"Translate entire page/Display original text","browser.toggleTranslateToThePageEndImmediately":"Translate instantly to the bottom of the page/Display original text","browser.toggleTranslateTheMainPage":"Translate main page /Display original text","browser.shareToDraft":"Share Bilingual Page","browser.openOptionsPage":"Open Settings Page","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-books","browser.openEbookBuilder":"Create Bilingual EPUB E-books","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.translateLocalSubtitleFile":"Translate Local Subtitle File",confirmResetConfig:"Are you sure you want to reset settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Add Translation to Right-Click Menu",toggleBeta:"Enable Beta Testing Features",betaDescription:"Enable experimental features and test translation services. Join the <1>Telegram group for more information.",translationLineBreakSettingDescription:"Always Wrap is suitable for layouts with less content, providing a neater appearance. (For longer paragraphs with over {count} characters, use Smart Wrap for a more space-efficient display.)",tempTranslateDomainTitle:"Temporarily Activate Website Translation Time",tempTranslateDomainDescription:"When manually translating a webpage, temporarily enable automatic translation for the site. You can set a temporary duration.",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",addUrlDescription:"You can specify domain names, and also use wildcard characters, such as: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import from file",export:"Export to file",toggleDebug:"Print debug logs to console",mouseHoldKey:"+ {key} translate/restore this paragraph",mouseHoldKeyAuto:"immediately translate this paragraph",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate/restore this paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"Reset all settings successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",advanced:"Advanced Settings",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"After opening a webpage, do you want to translate to the bottom of the page immediately?",feedback:"Feedback",toggleTranslatePage:"Translate webpage/Show original text",translateToThePageEndImmediatelyDescription:"Once enabled, upon entering a webpage, it will immediately translate the content from the top to the bottom. If disabled, it will translate as you read. (Not recommended to enable)","translate all areas of the page":"Should all areas of the webpage be translated?",translationAreaDescription:"Once enabled, all areas of the entire webpage will be translated. If disabled, the default smart recognition will be used to translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Translate the first few characters of the page directly, without waiting to scroll to the visible area.","interface language":"Interface language",reset:"Reset",more:"More",moreOptions:"Expand for more custom settings",translateTheWholePage:"Translate entire page",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Bilingual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"smart translate the main areas","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly support the interface of the Tampermonkey extension (such as obtaining version information of Tampermonkey scripts). Please use another <1>browser that supports Tampermonkey extensions, such as Firefox.",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:'The translation service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through settings. If you are a Pro member, you can choose to use more stable translation services such as DeepL or OpenAI, Claude, Gemini. Also, you may need to check your network or proxy settings and try again.',canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha feature enabled successfully",disableAlphaSuccess:"Alpha feature has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(go to settings)",goSettings:"go to settings",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",autoEnableSubtitle:"Auto-enable bilingual captions",add:"Add","add url":"Add URL",edit:"Edit",pickAll:"Select All","translate other languages into specific language":"Translate into the language you wish the content to be translated into.","select translation service":"Select a translation service","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",allowCacheTranslations:"Enable local translation caching (reduce translation requests for repeated paragraphs)","translation display":"Translation display style","select diplay style":"See below for examples of different translation styles",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",floatBallOptions:"Floating Button","floatBallOptions.enable":"Enable Floating Ball","floatBallOptions.blockUrls":"Blocked Websites","floatBallOptions.add":"Add","floatBallOptions.blockUrlDesc":"Don\u2019t show the floating ball on these websites","floatBallOptions.clickType":"Click Behavior","floatBallOptions.clickTypeDesc":"What happens when you click the floating ball icon","floatBallOptions.clickPopup":"Display Translation Panel","floatBallOptions.clickTranslate":"Translate/Show Original Text","floatBallOptions.fixedPosition":"Fixed location","floatBallOptions.fixedPositionDesc":"Is the floating ball on the left or right side of the window?","floatBallOptions.fixedPositionLeft":"Left side","floatBallOptions.fixedPositionRight":"Right side",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dotted lines","translationTheme.dotted":"Dotted lines","translationTheme.dashedBorder":"Dotted Border","translationTheme.solidBorder":"Solid Border","translationTheme.underline":"Straight line","translationTheme.mask":"Blur effect (learning mode)","translationTheme.opacity":"Transparency effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weaken","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dotted lines","translationTheme.nativeDashed":"System built-in dotted lines","translationTheme.nativeDotted":"System built-in dotted lines","translationTheme.nativeUnderline":"System built-in straight lines","translationTheme.wavy":"wavy lines","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeepLX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.yandex":"Yandex","translationServices.gemini":"Gemini","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",confirm:"Save",cancel:"Cancel",delete:"Delete",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",authFail:"Authorization Failed",syncTitle:"Manual Backup Management",import_hint:"Import",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",importSuccess:"Upload Success",importFail:"Import Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that we can all more easily and pleasantly access the vast foreign language information on the Internet \u2764\uFE0F You can choose to subscribe to <6>Pro membership to use the ready-to-use DeepL, OpenAI, Claude, Gemini translation.

You can follow our <3>Twitter, <4>Telegram channel, WeChat official account, WeChat communication group, or the <5>email subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free. We hope that everyone can easily and joyfully access the vast foreign language information on the Internet \u2764\uFE0F.

Follow us on <3>Twitter, <4>Telegram channel, WeChat public account, WeChat community group, or subscribe to updates via <5>email below.",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",feedbackAndJoin:"Feedback",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",isTranslateTitleDescription:"When enabled, the webpage title will be translated",verifyService:"Verify service",verified:"Successful","field.langs":"Supported Language Code","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"When the number of requests exceeds the limit, it will enter a queue state until the beginning of the next second.","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"The dialogue sent to {service} as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"The default is: general. It can only be set when domain translation is activated in the Youdao API console, and the supported domains can be seen <1>Here ","field.scene":"Scenarios","description.scene":"The default is: general. It can be set only if the Alibaba Cloud API console has the Machine Translation Professional Edition enabled. Supported scenes can be found <1>here.","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please add a specific URL with a path, <1>more instructions",enabledExtension:"Enable extensions",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter the name of the custom model",inputOptions:"Enhanced input box",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"Enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter character for partial translation of the input box",inputStartingTriggerKeyDescription:"When you don\u2019t need to translate the entire input box, the delimiter allows you to only translate the part from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means to only translate the part from {startingKey}ja to the end of the input box",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting does not require a prefix, so the partial text translation function of the input box cannot be used temporarily",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Quickly hitting {trailingKey} 3 times will start the translation",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time for the end of input combo trigger (milliseconds)",spaceKey:"",noneKey:"No prefix needed, translate the entire text box directly",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement on the following URLs",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",inputHelperInfo:'Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001".

Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.',reloadCurrentPage:"Waiting to inject into the page... If there is no response for a long time, please try refreshing the page.",noLocalFilePermissionForPDF:"No permission to read local files temporarily, please click the button above and then import local files",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate this page (possible reasons: new tab or browser privilege pages, etc.)","error.retry":"Retry","error.reason":"Reason",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Oops, something went wrong",disableOnce:"Disable Once",disableGlobal:"Disable Forever",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"\u201CEnable quick hit 3 times {trailingKey}, directly translate the entire input box into {inputTargetLanguage}",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",daily:"Daily Renewal",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"The current plan: {plan}, will expire on {endAt}. After expiration, it will not be automatically renewed.
<1>Click here to enable continuous annual renewal",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly or pro membership",upgradeToPro:"Upgrade to Pro","popup.openPro":"After upgrading to Pro membership, you can enjoy DeepL, OpenAI, Claude, Gemini translations. Click here to upgrade.","popup.openProForPro":"You are a Pro member, you can directly use DeepL, OpenAI, Claude, and Gemini for translation.",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You just triggered the translation of the immersive translate input box by quickly tapping the space bar 3 times. The content of the input box will be translated into the default target language. You can undo the translation with Ctrl+Z.

If this was a mistake, don't worry, you can choose to disable it this time, or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show prompt again",disableInputTranslationTips:"* You can also customize the triggered shortcut keys and the interval time between combos in {option}, {learnMore}.",learnMore:"Click here to learn more",continueEnalbeInputTranslation:"Continue to enable input translation",autoRenewTrialSuffix:'(In trial, Upgrade to paid Pro now)',subtitle:"Video Subtitles",youtubeService:"Video Subtitle Translation Service","subtitle.disabledSubtitle":"Disable Video Subtitle Feature Permanently ","subtitle.disabledSubtitleDescription":"If the video subtitles of immersive translate conflict with other extensions, you can choose to permanently disable the video subtitle function of immersive translation or uninstall other conflicting extensions","subtitle.autoEnableSubtitleDescription":"Once enabled, bilingual subtitles will automatically appear when playing videos on all supported video platforms.","subtitle.preTranslation":"Use immersive translate to translate YouTube subtitles.","subtitle.preTranslationDescription":"Once enabled, the translation service specified below will be prioritized to translate subtitles in advance, and if turned off, the machine-translated subtitles from the original video will be prioritized; please note that when the original video does not have corresponding translated subtitles, regardless of whether this option is enabled or not, the translation service specified below will be used to translate subtitles.","subtitle.humanSubtitlesPreferred":"Use manual subtitles first","subtitle.humanSubtitlesPreferredDescription":"When the video has manual subtitles in the target language, prioritize using manual subtitles (recommended)","subtitle.bilingual":"Bilingual","subtitle.quickButton.autoDisableSubtitle":"Disable Auto Bilingual","subtitle.quickButton.hideQuickButton":"Hide This Shortcut","subtitle.showQuickButton":"Display bilingual subtitles shortcut","subtitle.showQuickButtonDescription":"Provide a shortcut to enable bilingual subtitles in the lower right corner of the video player.",videoSubtitleTranslationDescription:"Specify a separate translation service for video subtitles.",subtitleTranslating:"Immersive Translate is using {service} to translate subtitles...",subtitleLoading:"Loading subtitles...",bilingual:"Bilingual","field.action":"Enable Baidu terminology?","description.action":"After enabling, an action=1 parameter will be added to the request to inform Baidu to enable terminology. <1>For more explanation, please refer to the [official documentation]",closeQuickTranslation:"Close Floating Button","closeQuickTranslation.untilNext":"Close this time until the next visit","closeQuickTranslation.currentWebsite":"Disable the current website","closeQuickTranslation.alwaysClose":"Permanently disable","closeQuickTranslation.settingOpen":"(Can be activated in <1>Settings Page)","closeQuickTranslation.cancel":"Cancel","closeQuickTranslation.confirm":"confirm","floatBall.translate":"Click to translate this page","floatBall.close":"Close Floating Button","floatBallOptions.enableDescPc":"When you enable the floating button, a translation button appears on the right. Click it to translate","floatBallOptions.enableDesc":"After you turn off the floating button, you can bring it back with {touch}. To avoid losing the floating button by accidentally turning it off, it is highly recommended you bookmark this settings page.","description.azureApiUrl":"Enter the custom API interface address","floatBall.guideClickToTranslate":`Click the floating ball to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enable Mouse Support",confirmSupportMouseDescription:"The current browser does not support mouse functions, do you want to forcibly enable mouse support?",sampleTargetText:"Night is coming, I will start watching from now on until death. I will not marry, not seal the land, not have children. I will not wear a crown, not fight for glory. I will be loyal to my duty, life and death.",sampleSourceText:"\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",viewWithImmersiveTranslate:"Bilingual Version (Immersive Translation)",errorReason:"Error reason: {message}","proQuotaExceededError.onetime7day":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Upgrade to a monthly/yearly membership',"proQuotaExceededError.trial":'You can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Immediately upgrade to a full membership',"proQuotaExceededError.nonTrial":', you can choose the following solutions:

1. Switch to {anotherService} or other translation services
2. Purchase {translationService} additional traffic package',"proQuotaExceededError.resetTime":"3. Quota Reset Time: {resetTime}",paragraphMinTextCountField:"Minimum character count for paragraph translation",paragraphMinTextCountDesc:"Note, this refers to the character length, for example: 'hello' is 5 characters, setting a higher value can reduce unnecessary translations of small paragraphs",networkError:"Translation service or network problem",notLogin:"Guest","browser.toggleMouseHoverTranslateDirectly":"Temporarily enable or disable direct translation by mouse hover on the page","browser.translateWithOpenAI":"Temporarily translate the current page with OpenAI","browser.translateWithDeepL":"Temporarily translate the current page with DeepL","browser.translateWithGoogle":"Temporarily translate the current page with Google","browser.translateWithBing":"Temporarily translate the current page with Microsoft Translator","browser.translateWithGemini":"Temporarily translate the current page with Gemini","browser.translateWithTransmart":"Temporarily translate the current page with Tencent Translator","browser.translateInputBox":"Translate the content of the current input box",shortcutSettings:"Shortcuts",shortcutSettingsTitle:"Shortcut Settings",confirmResetToDefaultSettings:"Confirm to reset this translation service to default settings? (Only resets settings for the current translation service)","intro.hoverTitle":"Mouse Hover Translation of the Current Paragraph","intro.hoverDescription":"Mouse hover translation is an important and easy-to-use feature in immersive translation. Simply hover the mouse over a paragraph and press the set shortcut to automatically translate it (not enabled by default, please set below). This interaction is a better alternative to word-selection translation, as it's more intuitive and convenient. Additionally, this function is widely used in areas we can't recognize, allowing you to force-translate any paragraph.","intro.floatBallTitle":"Quick Translation Floating Button","intro.floatBallDescription":"Once enabled, a quick translation button appears on the right side of the page. Click to translate, and click again to switch back to the original text. On mobile, long-press the floating button to open the quick settings panel.","intro.subtitleTitle":"Bilingual Subtitles for Online Videos","desc.toggleMouseHoverTranslateDirectly":"Press this shortcut to automatically translate any text under the mouse pointer on the page. Press again to turn off this auto-translation feature.","shortcutGroup.main":"Common Function Shortcuts","shortcutGroup.others":"More Custom Function Shortcuts","shortcutGroup.shortcutsForTranslationServices":"Shortcuts for Translation Services",browserShortcutsSucks:"Due to browsers' inaccurate recognition of shortcuts in input boxes, please manually enter the name of the shortcut. After entering, click on a blank space to auto-save. (In macOS, Alt and Option are the same key, so it's recommended to enter Alt). For example:","shortcutGroup.touch":"Touch Screen Specific Gestures","shortcutGroup.mouse":"Mouse Hover Shortcut Configuration","neverTranslateText.title":"Keep the following words untranslated","neverTranslateText.description":"Due to some translation engines' poor recognition of proper nouns, you can add words here to ensure they remain untranslated during the process. Please note, this feature is case-sensitive and only supports space-separated word languages (like English, French), not suitable for languages like Japanese, Korean, etc.","tagsInput.add":"+ Add","desc.mouseHoverHoldKey":"While hovering the mouse over a paragraph, press the shortcut key on the right to directly translate it",mouseHoverCustomKeyTitle:"Customize Mouse Hover Shortcut Key",mouseHoverCustomKeyDescription:"You can customize a combination shortcut key for mouse hover, like: Alt+Z, Ctrl+E, Cmd+Alt+E or just Cmd. Please enter manually",mouseHoverShortcutPlaceholder:"Please enter manually",browserShortcutsNoteForFirefox:"For Firefox, modify shortcuts by opening the extensions management page `about:addons`, then click 'Settings' -> 'Manage Shortcuts'",browserShortcutsNoteForChrome:"Note: To modify shortcuts in Chrome-based browsers, visit [Extensions Management Page] -> [Manage Shortcuts]","desc.toggleTranslateTheMainPage":"Translate only the main area of the page. If you have enabled translating all areas in advanced settings, use this shortcut to specifically translate the main area","desc.toggleTranslateTheWholePage":"Translate the entire page area. By default, we translate the main area of the page, use this shortcut to specifically translate the entire area","browser.toggleOnlyTransation":"Switch to /translation-only mode","desc.toggleOnlyTransation":'"Only translation mode" refers to only displaying the translation. If the webpage has not been translated yet, it will switch modes and translate.',"browser.toggleTranslationMask":"Toggle blur effect on translated text (learning mode) for the current page","desc.interfaceLanguage":"The interface language setting affects the language of the control panel display and is unrelated to the target language of the translation",mouseHoverHoldKey:"Mouse Hover Translation Trigger Key",clickToSeeQuickDemo:"30-second Quick Tutorial Video",shortcutDisableTooltip:"Please set in the browser's extension shortcut key management page, for more guidance, see the instructions at the top of this page","subtitle.autoEnableSubtitle":"Enable Bilingual (supported on all current video platforms)",notLoginPro:"You have not logged in to your member account",upgradeToProErrorTitle:"Please upgrade to Pro member before using this translation service","description.baiduField":"See supported fields <1>here; if empty, it means no specific field is designated","widget.instruction":"Usage",buildSnapshots:"Snapshot",alwaysTranslateSomeLanguage:"Always translate {language} pages",alwaysTranslateThisSite:"Always translate this site",neverTranslateThisSite:"Never translate this site",loggedIn:"Logged in","widget.translateFile":"PDF/ePub",touchShortcutsToggleTranslatePage:"Set touch gestures to translate web pages/show original text","desc.touchShortcutsToggleTranslatePage":"Once set, on mobile devices, you can touch the screen with X fingers, swipe left and right or tap continuously to trigger translation of web pages/show original text",touchShortcutsToggleTranslationMask:"Set touch gestures to display translation mask/show original text","desc.touchShortcutsToggleTranslationMask":"Translation mask refers to the blur effect in the translation style (learning mode). When activated, it temporarily applies a blur effect to the translated text, facilitating learning",touchShortcutsToggleTranslatePageOnlyTranslation:"Set touch screen gesture to switch between translation-only mode.","desc.touchShortcutsToggleTranslatePageOnlyTranslation":'"Only translation" means that only the translated text will be displayed. If the webpage has not been translated yet, the mode will be switched and it will be translated.',touchShortcutsToggleTranslateTouchElement:"Set touch gestures to translate a specified paragraph","desc.touchShortcutsToggleTranslateTouchElement":"Customize a gesture to translate any paragraph you're on",touchShortcutsOff:"Off","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch","font.none":"Unset","multipleClick.2":"Double click","multipleClick.3":"Triple click","multipleClick.4":"Quadruple click","slide.left":"Slide right","slide.right":"Slide left","browser.toggleVideoSubtitlePreTranslation":"Switch Video Subtitles with Immersive Translation Feature",contact:"Contact","contact.description":"If you have any questions or suggestions, please contact us via filling out the form below or sending an email to {email}","desc.toggleVideoSubtitlePreTranslation":"After pressing, video bilingual subtitles will prioritize immersive translation settings. Pressing again will prioritize the auto-translated subtitles originally provided with the video. Note: This shortcut modifies the global settings",videoSubtitlePreTranslationOn:"Video subtitles will prioritize immersive translation",videoSubtitlePreTranslationOff:"Video subtitles will prioritize the auto-translated subtitles originally provided with the video",translationFont:"Set Font","translationFont.custom":"Enter Custom Font","translationFont.customPlaceholder":"Font","translationFont.notSupportErrorMessage":"Please check if the font name you entered is correct, or confirm that the font is installed on your device.","touch.mouse-translate":"Translate Paragraph","error.serveConfigError":"Service configuration error","error.reloadPageOfSetting":"After configuring, please refresh the page to translate again.","error.googleLimitIp":"Service returned an error, Google services have limited the flow for this IP address, it is recommended to change the network node.","error.openAIFreeLimit":"Service returned an error, the current translation request frequency has reached the maximum of 3 times per minute, please try again later. (This is the limit imposed by OpenAI official on free API Keys, to remove this limit, please bind a credit card in the OpenAI backend.)","error.openAIExceededQuota":"Service returned an error: your current OpenAI account balance is insufficient, please recharge or bind a credit card in the OpenAI official backend.","error.429":"Service returned an error, indicating too frequent requests or exceeding the quota limit, please try again later.","error.403":"Service returned an error, temporarily no permission to access the service.","error.400":"Service returned an error, request parameter error, please check the corresponding configuration.","error.502":"Service returned an error, service timeout, please try again later.","error.proUpgrade":"After upgrading, please refresh the page to translate again.","error.configError":"Configuration data anomaly","error.goReset":"Go to Reset",batchEdit:"Batch Edit","translationServices.inherit":"Inherit","translationModeLang.translation.title":"Language for Translation-Only Mode","translationModeLang.translation.description":"Translation-only mode will be automatically used when the page language is one of the following","translationModeUrl.translation.title":"URLs for Translation-Only Mode","translationModeUrl.translation.description":"Translation-only mode will be automatically used for websites with the following domains",download_started:"The download has begun, if it does not start automatically, please click manually.",here:"Here","error.serveUnavailable":"The [{serverName}] service you are currently using is temporarily unavailable due to network connection or service provider issues. It is recommended that you try refreshing the page or switch to another translation service through <1>Settings. If you are a <2>Pro member, you can choose to use more stable translation services such as DeepL, OpenAI, Claude or Gemini (<3>click here for a free trial). Additionally, you may need to check your network or proxy settings.",detectServiceLoading:"Detecting available translation services...",toggleToService:"Change to {service}","error.gemini.429":"The current Gemini service has reached its capacity limit. Please try again later, or switch to another translation service.","languages.auto":"Auto",geminiWarning:"Note: The free service provided by Google for Gemini is strictly limited and may be judged by Google as users using multiple Keys to evade their free quota restrictions. It is not recommended to use it. It is suggested to wait for Google to open the paid interface of Gemini in the future before using it.","floatBall.setting":"Settings",changeToOnlyTempTranslationMode:"Show Translation only",changeToDualTempTranslationMode:"Show Bilingual Translation","transitionMode.translation":"Only the translation","options.navbar.installApp":"Install mobile APP","options.navbar.translateFile":"Translate Document","subtitle.transitionMode":"Bilingual Video Subtitles/Translation Only Settings","transitionMode.dual":"Bilingual Comparison","transitionMode.inherit":"Maintain consistency with the system's default translation display mode.","subtitle.transitionModeDescription":"Set the video subtitles to bilingual comparison or translation-only mode.",translateFileTooltip:"Translate PDF, ePub, docx, srt, ass, HTML, TXT, and Markdown files.","description.multiplePrompt":`When the number of paragraphs is greater than 1, the dialogue sent to {service} as a user, where {{from}} represents the language of the paragraph, {{to}} represents the target language, {{yaml}} is the paragraph content we wrapped in yaml format. If you have a custom Prompt requirement, you need to ensure that every item in the YAML result of AI response contains the {env.imt_trans_field} field. {{imt_trans_field}} is the translated text field name we hope AI to respond, the default is {env.imt_trans_field}, {{imt_source_field}} is the original text field name we pass to AI, the default is {env.imt_source_field}, the example result is:

- id: 1 {env.imt_trans_field}: Translation - id: 2 @@ -5550,20 +5550,20 @@ to translate quickly`,"floatBall.iKnow":"Got it",confirmSupportMouse:"Force Enab Currently, dual-language subtitles are supported on these websites:`,"translationServices.siliconcloud":"SiliconCloud","translationServices.zhipu":"Zhipu BigModel","translationServices.zhipu.introduction":'Immersive Translate official partner "Zhipu" has launched the GLM large model, and all users can use its GLM-4-Flash model for free directly.',"translationServices.siliconcloud.introduction":"SiliconCloud offers cost-effective GenAI services based on excellent open-source foundational models.","aiAssistant.customAiAssistant":"Custom AI Expert","aiAssistant.addCustom":"Add custom AI experts","field.aiAssistantName":"AI Expert Names","aiAssistant.deleteConfirm":"Are you sure you want to delete this AI expert?","subtitle.ytAsrDisableTooltip":"Enable the [Use Immersive Translate for YouTube subtitles] option first","subtitle.ytAIAsr":"Immersive Translation Bilingual Subtitles AI Smart Segmentation (Beta)","subtitle.ytAIAsrDescription":"The AI intelligent sentence segmentation algorithm is applied to YouTube's automatically generated English subtitles, making bilingual subtitles more natural, available only to <1>Pro members.","subtitle.ytAsr":"Basic Clause Optimization for Immersive Translation of Bilingual Subtitles","subtitle.ytAsrDescription":"Basic clause optimization of automatically generated English subtitles for YouTube","subtitle.ytAIAsrProTooltip":"This feature is only available to Pro users, <1>click here to upgrade to a member.","browser.toggleTranslatePageOfficialPage":"Translate Webpage/Show Original Text","translationServices.lingyiwanwu":"01.AI","description.siliconcloudCustomAPIKey":"Optional, if not filled in, the default immersive translation and collaboration with <1>SiliconCloud will be used to provide you with free large model translation.","field.enableRichTranslate":"Enable rich text translation","description.temperature":"Sampling divergence, the smaller the value, the more fixed the generated content. When set to 0, the model will almost always choose the token with the highest probability during generation.","reportInfo.ok":"Okay",reportTip:"Feedback","reportInfo.submit":"Submit","reportInfo.submitFail":"Submission failed...","reportInfo.reasonDesc":"Please describe the problem you encountered (required).","reportInfo.submitSuccess":"Submission successful, thank you for your feedback!","reportInfo.attachLog":"Feed the current error log back to immersive translation.","reportInfo.submitFailDes":"Encountered some issues, you can try to provide feedback again, or try again at another time.","browser.translateText":'Translate "{text}"',"reportInfo.title":"Encountered a problem?","translationServices.lingyiwanwu.introduction":"The Yi series of large language models launched by 01.AI,","translationServices.hunyuan":"Tencent Hunyuan","description.prompt":"Prompt sent as user to {service}, where {{text}} denotes the text content of the paragraph, {{from}} denotes the language of the paragraph, {{to}} denotes the target language, {{content_type}} denotes the type of the original text, with possible values of `html` or `text`, and {{html_only}} is a value that will only be present if the original contains the html tag. The value of {{html_only}} is only available if the original text contains html tags.","browser.translateWithCustom1":"Temporary use of custom translation services to translate the current page(1)","browser.translateWithCustom2":"Temporary use of custom translation services to translate the current page(2)","browser.translateWithCustom3":"Temporary use of custom translation services to translate the current page(3)","aiAssistant.promptDetails":"\u63D0\u793A\u8BCD","aiAssistant.autoEnableAssistant":"Automatically enable AI experts",tempChangeTransToService:"Translating the current page using {service}",trustTypeError:"This site does not allow user script to provide bilingual subtitles. It is recommended to use the extension.","floatBallOptions.disable":"Disable floating ball","popup.upgrade":"Upgrade","widget.webReport":"Feedback on current page translations","floatBall.upgrade":"Try Pro (Experience OpenAI, DeepL, PDF Pro, Comic Translation, etc.)","popup.trial_pro_service":"Try OpenAI, DeepL, etc.","reportInfo.tip":"Fill in the description before submitting.","translationModeLang.translation.dual.description":"Bilingual mode is automatically used when the page language is one of the following languages","translationModeUrl.translation.dual.description":"Bilingual mode is automatically used when the site is for the following domains","translationModeUrl.translation.dual.title":"Web site of the bilingual model","translationModeLang.translation.dual.title":"Languages in bilingual mode",translationModePreferLabel:"Translation Mode",translationModePreferDesc:"Choose how the translated text is displayed: bilingual or translation only.","reportInfo.email":"Email",refreshPage:"refresh page",ctxInvalidatedError:"Plugin context is not working please refresh the page and try again!","reportInfo.emailError":"Incorrect mailbox format","subtitle.quickButton.orange":"Orange","glm-4-flash (free)":"glm-4-flash (Free)","description.zhipuCustomAPIKey":"Non-free models need to fill in the <1>Wisdom Spectrum platform application of the key to be available, for details, refer to the <2>tutorial .","description.zhipuFreeAPIKey":"Optional, if you don't fill in the blank, the default is to use Immersive Translate and glm-4-flash which is provided free of charge by <1>BigModel, if you want to use your own API Key, please refer to <2>this document.",mouseHoldKeyPressHold:"+ Hold left click","browser.translateMangaMenuId":"Translate image/restore image","image.blockToolsUrlsDes":"The image shortcut translation buttons are not displayed on images when the following websites are encountered","image.enableTools":"Show shortcut translation button when hovering over an image","image.enableToolsDes":"Show shortcut translation button when hovering over an image","closeImageTools.title":"Turn off image translation",translateFail:"Failed","imageTools.resetImage":"Show Original",translateSuccess:"Success","imageTools.translateImage":"Translate Image",mangaAndImage:"Comics/Images","image.blockToolsUrls":"Disable image shortcut translation buttons for websites","image.imageTranslate":"Pro Image Translation (Beta)","image.imageTranslateDes":`Image translation is only available for Pro members. -To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)"};var XP=[{code:"zh-CN",messages:x5},{code:"zh-TW",messages:T5},{code:"en",messages:w5}],sd=Z()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Mi={};for(let e of XP)Mi[e.code]=e.messages;function $P(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=tR(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:P+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function E5(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function eR(e,t,n,r){if(!Mi.hasOwnProperty(t)&&!Mi.hasOwnProperty(n))return e;let a=E5(Mi,t,e);return a===e&&t!==n&&(a=E5(Mi,n,e)),$P(a,r)}function tR(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return eR(t,e,"en",n)}function A5(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function k5(e){return new Date(e).getTime()}var V=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return Ya.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:$c,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:$c,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

+To translate an image, right-click on any image and select 'Translate Image'. Additionally, if you have set up a hotkey for hover translation of paragraphs, you can use the same hotkey to translate images. For convenience, you can also enable the hover quick translation button below. Once enabled, when you hover over any image, you'll see a 'Quick Translate' button - click it to translate.`,"floatBallOptions.enableManga":"Enable Manga Translation Hoverball",sameLangCheck:"Detect page and target language match",sameLangCheckDescription:"When enabled, shows a notification if the target language is the same as the original page language, indicating translation is unnecessary",sameLangNoTranslate:"The target language you've set matches the webpage language, which may result in untranslatable content",neverShowFuture:"Don't show this again","imageState.reading":"Scanning","imageState.loading":"Loading","imageState.detectingRecognizing":"Recognizing","imageState.translating":"Translating","imageState.generating":"Generating","image.toolsDelayTime":"Quick Translation Button Delay (ms)","image.toolsDelayTimeDes":"Hover delay before showing translation button","imageState.pending":"Queueing...","imageState.gifNotSupported":"GIF not supported",orCustom:"or custom",navHeadEnableTranslate:"Enable Sidebar & Navbar Translation",navHeadEnableTranslateDescription:"Automatically translate the website's sidebar and navbar","description.enableRichTranslate":"Enable rich text translation to preserve original links and styles","description.aiDualEnableRichTranslate":"Enable rich text translation to preserve original links and styles (Note: Enabling rich text in AI translation mode may affect translation quality, therefore it's disabled by default in dual-language mode)",disableNavTranslate:"Close sidebar translation",enableNavTranslate:"Enable sidebar translation"};var JP=[{code:"zh-CN",messages:xv},{code:"zh-TW",messages:Tv},{code:"en",messages:Sv}],sd=J()?["zh-CN","zh-TW","en"]:["zh-CN","zh-TW","en","ja","ar","de","es","fa","fr","hi","it","ru","ko","pt-PT","pt-BR","tr"],Mi={};for(let e of JP)Mi[e.code]=e.messages;function XP(e,t){let n=e;return t&&Object.keys(t).forEach(r=>{let a=t[r];if(a===void 0)return;let i=e_(r);if(typeof a=="object"||i){let o=a;i&&typeof o=="string"&&(o={tag:"a",href:o,target:"_blank",class:P+"-link"});let s=`<${r}>`,u=n.indexOf(s);if(u!==-1){let l=o.tag||"a",c=n.indexOf(``);if(c!==-1){let m=n.substring(u+s.length,c),g=Object.keys(o).filter(p=>p!=="tag").map(p=>`${p}="${o[p]}"`).join(" ");n=n.replace(`${s}${m}`,`<${l} ${g}>${m}`)}}}else if(a){let o=new RegExp("{"+r+"}","gm");n=n.replace(o,a.toString())}}),n}function wv(e,t,n){let r=e[t];if(!r)return n;if(!n)return"";let a=n.split("."),i="";do{i+=a.shift();let o=r[i];o!==void 0&&(typeof o=="object"||!a.length)?(r=o,i=""):a.length?i+=".":r=n}while(a.length);return r}function QP(e,t,n,r){if(!Mi.hasOwnProperty(t)&&!Mi.hasOwnProperty(n))return e;let a=wv(Mi,t,e);return a===e&&t!==n&&(a=wv(Mi,n,e)),XP(a,r)}function e_(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}function Pe(e,t,n){return QP(t,e,"en",n)}function Ev(e,t){let n=new Date(e),r=n.getFullYear().toString(),a=(n.getMonth()+1).toString().padStart(2,"0"),i=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0"),u=n.getSeconds().toString().padStart(2,"0");return t.replace("YYYY",r).replace("MM",a).replace("DD",i).replace("HH",o).replace("mm",s).replace("ss",u)}function Av(e){return new Date(e).getTime()}var W=class extends Error{status;constructor(t,n){if(t&&n){super(n),this.name=t;return}super(t)}initNetWork(t){return t&&(this.status=t),this}initStack(t){return t&&(this.stack=t),this}initData(t){return this.data=t,this}data;getCustomPrefix(t){let n=this.getTranslationServiceName(t);return $a.includes(n)&&t.config.translationServices[n]?.provider==="custom"?"Custom ":""}getTranslationServiceName(t){return this.data?.translationService||t.translationService}uiConfig(t){if(!this.message)return{};let n=null;if(n=this.handleContextInvalidatedError(t)||this.handleMangaError(t)||this.handleProQuota(t)||this.handleUnavailableError(t)||this.handleProUser(t)||this.handleServiceMissingConfig(t)||this.handleNetwork(t)||this.handleFetchError(t),!n){let r=Pe.bind(null,t.config.interfaceLanguage),a=this.getErrorMsg();n={type:"error",title:`[${this.getCustomPrefix(t)}${r("translationServices."+this.getTranslationServiceName(t))}] `+r("networkError"),errMsg:r("error.serveUnavailable",{serverName:r("translationServices."+this.getTranslationServiceName(t)),1:Qc,2:Y+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Y+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+r("errorReason",{message:a}),action:"changeService"}}return n}getErrorMsg(){return this.status?this.status<0?this.message:`${this.status}: ${this.message}`:this.message}handleUnavailableError(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.message.startsWith("bingAuth"),a=this.data?.translationService==="transmart"&&this.message.startsWith("Server is busy now");if(r||a)return this.message=this.message.replace("bingAuth:",""),{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Qc,2:Y+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Y+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:this.message}),action:"changeService"}}handleServiceMissingConfig(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.endsWith(" are required")||this.message.includes("You didn't provide an API key"))return{type:"configError",title:n("error.serveConfigError"),errMsg:this.getErrorMsg()+"

"+n("error.reloadPageOfSetting"),action:"setting"}}handleNetwork(t){let n=Pe.bind(null,t.config.interfaceLanguage),r="retry",a="network",i=`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError");if(!this.status||this.status<0)return;let o=this.getErrorMsg();return this.status===429?this.data?.translationService=="google"?o=`${n("error.googleLimitIp")}

${o}`:this.data?.translationService=="openai"&&(this.message.indexOf("Limit: 3 / min")>=0||this.message.includes("rate_limit_exceeded")&&this.message.includes("Limit 3"))?o=`${n("error.openAIFreeLimit")}

${o}`:this.data?.translationService=="openai"&&this.message.includes("You exceeded your current quota")?o=`${n("error.openAIExceededQuota")}

- ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:$c,2:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Q+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if(Ya.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:P,href:_2})];Gf(t.user,a,n);let i=n("errorReason",{message:` + ${o}`:this.data?.translationService=="gemini"&&this.message.includes("RESOURCE_EXHAUSTED")?o=`${n("error.gemini.429")}

${o}`:o=`${n("error.429")}

${o}`:this.status===403?this.data?.translationService=="claude"?o=`${n("error.claude.403")}

${o}`:o=`${n("error.403")}

${o}`:this.status===400?o=`${n("error.400")}

${o}`:this.status===502?o=`${n("error.502")}

${o}`:this.status===404?o.includes("User subscription not found")&&(o=`${n("error.subscriptionExpired")}

${o}`,r="setting",a="configError",i=n("error.subscriptionExpiredTitle")):this.status===401&&this.data?.translationService==="azure"&&(o=`${n("error.azure.401")}

${o}`),{type:a,title:i,errMsg:o,action:r}}handleFetchError(t){let n=Pe.bind(null,t.config.interfaceLanguage);if(this.status!==-999)return;let r=this.getErrorMsg();return{type:"network",title:`[${this.getCustomPrefix(t)}${n("translationServices."+this.getTranslationServiceName(t))}] `+n("networkError"),errMsg:n("error.serveUnavailable",{serverName:n("translationServices."+this.getTranslationServiceName(t)),1:Qc,2:Y+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error",3:Y+"pricing/?utm_source=extension&utm_medium=webpage&utm_campaign=service_error"})+"

"+n("errorReason",{message:r}),action:"changeService"}}handleProUser(t){let n=Pe.bind(null,t.config.interfaceLanguage),r=this.getTranslationServiceName(t);if($a.find(i=>i===r)){if(this.message.indexOf("token invalid")>=0||this.message.indexOf("Login required")>=0)return{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("activate Pro")>=0)return t.user?{type:"upgrade",title:n("upgradeToProErrorTitle"),errMsg:n("error.proUpgrade"),action:"upgrade"}:{type:"notLogin",title:n("notLoginPro"),errMsg:n("error.proTokenInvalid"),action:"login"};if(this.message.indexOf("subscription not found")>=0)return{type:"subscriptionExpires",title:n("error.subscriptionExpiredTitle"),errMsg:n("error.subscriptionExpired"),action:"upgrade"};if(t.config.translationServices?.[r]?.provider=="pro"){let i=this.getErrorMsg();return{type:"network",title:"",errMsg:n("error.serveProUnavailable",{serverName:n("translationServices."+r)})+"

"+n("errorReason",{message:i}),action:"changeProService"}}}}handleMangaError(t){if(this.name!="manga")return;let n=Pe.bind(null,t.config.interfaceLanguage);if(this.message.includes("Comics quota exceeded")){let a=[n("mangaQuotaError.package",{brandId:P,href:F2})];Vf(t.user,a,n);let i=n("errorReason",{message:` ${n("mangaQuotaError.solvedTitle")}

${a.map((o,s)=>`${s+1}. ${o}`).join("
")} - `});return{type:"ProQuotaExceeded",title:n("intro.mangaTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=q2,i?o.push(r("proQuotaError.trail",{brandId:P,href:zg})):o.push(r("proQuotaError.newPackage",{brandId:P,href:s})),Gf(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")} + `});return{type:"ProQuotaExceeded",title:n("intro.mangaTitle"),errMsg:i,action:"none"}}if(this.message.includes("quota exceeded")){let a=this.getProQuotaError(t,this.message);return{type:"networkError",title:n("intro.mangaTitle"),errMsg:a,action:"none"}}if(this.message.includes("Tainted canvases may not be exported"))return{type:"networkError",title:n("intro.mangaTitle"),errMsg:n("error.siteDisableManga"),action:"none"};let r=n("errorReason",{message:this.message});return{type:"networkError",title:n("intro.mangaTitle"),errMsg:r,action:"none"}}handleProQuota(t){if(!this.message.includes("ProQuota:")||!t.user?.subscription)return;let n=!1;this.message.includes("NewProQuota")?(n=!0,this.message=this.message.replace("NewProQuota:","")):this.message=this.message.replace("ProQuota:","");let r=this.message;try{r=JSON.parse(this.message).error}catch{}return{type:"ProQuotaExceeded",title:"",errMsg:n?this.getNewProQuotaError(t,r):this.getProQuotaError(t,r),action:"changeProService"}}handleContextInvalidatedError(t){return this.name!=="contextInvalidated"?void 0:{type:"ContextInvalidated",title:"",errMsg:Pe.bind(null,t.config.interfaceLanguage)("ctxInvalidatedError"),action:"refreshPage"}}getNewProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{isTrial:i}=a,o=[],s="";s=H2,i?o.push(r("proQuotaError.trail",{brandId:P,href:qg})):o.push(r("proQuotaError.newPackage",{brandId:P,href:s})),Vf(t.user,o,r);let u=n+`${r("proQuotaError.solvedTitle")}

- ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:P,href:t0}));else{let m="";u=="AI"?m=j2:m=H2,o?l.push(r("proQuotaError.trail",{brandId:P,href:zg})):l.push(r("proQuotaError.package",{brandId:P,href:m,translationService:u})),Gf(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")} + ${o.map((l,c)=>`${c+1}. ${l}`).join("
")}`;return r("errorReason",{message:u})}getProQuotaError(t,n){let r=Pe.bind(null,t.config.interfaceLanguage),a=t.user.subscription,{subscriptionType:i,isTrial:o}=a,s=this.getTranslationServiceName(t)=="deepl"?"OpenAI":"Deepl",u=this.getTranslationServiceName(t)=="deepl"?"Deepl":"AI",l=[r("proQuotaError.toggleAnotherService",{anotherService:s})];if(i=="onetime_7day")l.push(r("proQuotaError.onetime7day",{brandId:P,href:t0}));else{let m="";u=="AI"?m=U2:m=j2,o?l.push(r("proQuotaError.trail",{brandId:P,href:qg})):l.push(r("proQuotaError.package",{brandId:P,href:m,translationService:u})),Vf(t.user,l,r)}let c=n+`${r("proQuotaError.solvedTitle")}

- ${l.map((m,g)=>`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function Gf(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||k5(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:A5(i,"YYYY-MM-DD HH:mm:ss")}))}function ud(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function D5(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function L5(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function ld(e){let{mimeType:t,base64:n}=nR(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await qp(M5.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await M5(e);return t}async function M5(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=ud(e.body):r=="urlSearchParams"?a.body=D5(e.body):r=="blob"&&e.body&&(a.body=ld(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new V("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new V("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let b=m.result;p(b)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of rR(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` -`))>=0;){let b=c.slice(0,f).trim();if(c=c.slice(f+1),b.startsWith("event:")||b==="")continue;let y="";if(b.startsWith("data:")&&(y=b.slice(5).trim()),y==="[DONE]")break;let h;try{h=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=h}}return m}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new V("fetchError",g).initNetWork(l.status)}}async function*rR(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var aR="";function Ms(){return aR||globalThis.navigator.userAgent}function Tl(){return Ms().includes("ImtFxiOS")}function P5(){let t=Ms().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Kf(){return Ms().includes("ImtFxAndroid")}function R5(){let e=Ms();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function I5(){let t=Ms().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Pi(){let e=Ms();if(Tl()||Kf()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var cd=function(){return cd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,iR()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function wl(e){return e.then(void 0,function(){}),e}function sR(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function lR(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function cR(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function Ri(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function _r(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Ps(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function xr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];_t(e,t),_r(e,dR),t[1]=e[0]>>>1,_t(e,t),_r(e,mR),t[1]=e[0]>>>1,_t(e,t)}var dd=[2277735313,289559509],md=[1291169091,658871167],O5=[0,5],gR=[0,1390208809],pR=[0,944331445];function fR(e,t){var n=cR(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function hR(e){var t;return cd({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` -`)},e)}function bR(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function yR(e){return typeof e!="function"}function vR(e,t){var n=wl(new Promise(function(r){var a=Date.now();F5(e.bind(null,t),function(){for(var i=[],o=0;o=4}function SR(){var e=window,t=navigator;return Tr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!J5()}function fd(){var e=window,t=navigator;return Tr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function $r(){var e=window,t=navigator;return Tr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function t4(){var e=window,t=e.HTMLElement,n=e.Document;return Tr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function El(){var e=window;return bR(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Z5(){var e,t,n=window;return Tr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function xR(){var e=window;return Tr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function TR(){var e=window;return Tr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Al(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return Tr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function wR(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Tr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function ER(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function AR(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function n4(){var e=fd(),t=Z5(),n=window,r=navigator,a="connection";return e?Tr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?Tr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function kR(){return MR()?-4:DR()}function DR(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(LR())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=PR(a),u=s[0],l=s[1],c=wl(u.then(function(m){return RR(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function LR(){return $r()&&!t4()&&!TR()}function MR(){return $r()&&Al()&&El()}function PR(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(N5("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(Y5(f)&&wl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(N5("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function RR(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function lI(){var e=new Date().getFullYear();return Math.max(Xr(new Date(e,0,1).getTimezoneOffset()),Xr(new Date(e,6,1).getTimezoneOffset()))}function cI(){try{return!!window.sessionStorage}catch{return!0}}function dI(){try{return!!window.localStorage}catch{return!0}}function mI(){if(!(J5()||SR()))try{return!!window.indexedDB}catch{return!0}}function gI(){return!!window.openDatabase}function pI(){return navigator.cpuClass}function fI(){var e=navigator.platform;return e==="MacIntel"&&$r()&&!t4()?wR()?"iPad":"iPhone":e}function hI(){return navigator.vendor||""}function bI(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function SI(){return $r()||n4()}function xI(e){var t;return Jr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Zr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},j5(r),u=0;u`${g+1}. ${m}`).join("
")}`;return r("errorReason",{message:c})}};function Vf(e,t,n){if(!e||!e?.subscription)return;let r=e?.subscription,{isTrial:a,openAITokenUsedCountResetTime:i,subscriptionTo:o}=r;!a&&(r.cancelAtPeriodEnd==="false"||Av(o)>i)&&t.push(n("proQuotaError.resetTime",{resetTime:Ev(i,"YYYY-MM-DD HH:mm:ss")}))}function ud(e){if(!e)return e;let t=new FormData;return Object.entries(e).forEach(([n,r])=>{t.append(n,r)}),t}function kv(e){if(!e)return e;let t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{if(Array.isArray(r))for(let a of r)t.append(n,a);else t.append(n,r)}),t.toString()}function Dv(e){let t=new FileReader,n=new Promise((r,a)=>{t.onload=function(){let i=t.result;r(i)},t.onerror=function(){a(t.error)}});return t.readAsDataURL(e),n}function ld(e){let{mimeType:t,base64:n}=t_(e),r=atob(n),a=[],i=512;for(let s=0;s0)try{t=await Hp(Lv.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Lv(e);return t}async function Lv(e){e.body;let{url:t,responseType:n,requestType:r,...a}=e;n||(n="json"),r||(r="json"),a={mode:"cors",...a},r=="formData"?a.body=ud(e.body):r=="urlSearchParams"?a.body=kv(e.body):r=="blob"&&e.body&&(a.body=ld(e.body));let i=!0;e.fetchPolyfill&&(i=!1);let o=e.fetchPolyfill||fetch,s=3e4,u;if(e.timeout&&(s=e.timeout),i){let c=new AbortController,m=c.signal;u=setTimeout(()=>{c.abort()},s),a.signal=m}let l;try{l=await o(t,a)}catch(c){k.debug("fetch error",t,c);let m=c.message||"Unknown Error";throw new W("fetchError",m).initNetWork(-999).initStack(c.stack)}finally{u&&clearTimeout(u)}if(l.ok&&l.status>=200&&l.status<400){if(n=="HEAD"){if(l.url!==t)throw new W("fetchError","redirect url:"+l.url);return l.statusText}if(n==="json")return await l.json();if(n==="text")return await l.text();if(n==="raw"){let c=await l.text(),m=Object.fromEntries([...l.headers.entries()]),g=l.url;return g||(l.headers.get("X-Final-URL")?g=l.headers.get("X-Final-URL"):g=t),{body:c,headers:m,status:l.status,statusText:l.statusText,url:g}}else if(n==="base64"){let c=await l.blob(),m=new FileReader,g=new Promise((p,f)=>{m.onload=function(){let b=m.result;p(b)},m.onerror=function(){f(m.error)}});return m.readAsDataURL(c),g}else if(n==="stream"){let c="",m;if(l.body&&l.body instanceof ReadableStream)for await(let g of n_(l.body)){let p=new TextDecoder().decode(g);c+=p;let f;for(;(f=c.indexOf(` +`))>=0;){let b=c.slice(0,f).trim();if(c=c.slice(f+1),b.startsWith("event:")||b==="")continue;let y="";if(b.startsWith("data:")&&(y=b.slice(5).trim()),y==="[DONE]")break;let h;try{h=JSON.parse(y??"")}catch(v){k.debug("json error",v);continue}m=h}}return m}}else{let c;try{c=await l.text()}catch(b){k.error("parse response failed",b)}c&&k.error("fail response",c);let m="";c&&(m=c.slice(0,500));let g=m,f=new URL(t).hostname.endsWith(`.${et}`);throw t.endsWith("edge.microsoft.com/translate/auth")&&(g="bingAuth:"+m),f&&(m.includes("quota exceeded")&&(g="ProQuota:"+m),m.includes("translation quota reached")&&(g="NewProQuota:"+m)),new W("fetchError",g).initNetWork(l.status)}}async function*n_(e){let t=e.getReader();try{for(;;){let{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}var r_="";function Ms(){return r_||globalThis.navigator.userAgent}function Sl(){return Ms().includes("ImtFxiOS")}function Mv(){let t=Ms().match(/ImtFxiOS\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Kf(){return Ms().includes("ImtFxAndroid")}function Pv(){let e=Ms();return/ImtFxAndroid\/(\d+\.\d+\.\d+)\/google/.test(e)}function _v(){let t=Ms().match(/ImtFxAndroid\/(\d+\.\d+\.\d+)/);return t?t[1]:null}function Pi(){let e=Ms();if(Sl()||Kf()){let t=e.match(/Imt[\w/.]+/);if(t){let n=t[0].split("/"),r=n[0];return n[2]&&(r+="_"+n[2]),{name:r,version:n[1]}}}return null}var cd=function(){return cd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=a+n?(a=o,[4,a_()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++i,[3,1];case 4:return[2,r]}})})}function wl(e){return e.then(void 0,function(){}),e}function o_(e,t){for(var n=0,r=e.length;n=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function u_(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(g,p){o[g]=o[g]||[],o[g].push(p)};;){var l=s.exec(a[2]);if(!l)break;var c=l[0];switch(c[0]){case".":u("class",c.slice(1));break;case"#":u("id",c.slice(1));break;case"[":{var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(c);if(m)u(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,o]}function l_(e){for(var t=new Uint8Array(e.length),n=0;n127)return new TextEncoder().encode(e);t[n]=r}return t}function _i(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i+l,g+=p>>>16,p&=65535,g+=a+u,m+=g>>>16,g&=65535,m+=r+s,c+=m>>>16,m&=65535,c+=n+o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Or(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,i=e[1]&65535,o=t[0]>>>16,s=t[0]&65535,u=t[1]>>>16,l=t[1]&65535,c=0,m=0,g=0,p=0;p+=i*l,g+=p>>>16,p&=65535,g+=a*l,m+=g>>>16,g&=65535,g+=i*u,m+=g>>>16,g&=65535,m+=r*l,c+=m>>>16,m&=65535,m+=a*u,c+=m>>>16,m&=65535,m+=i*s,c+=m>>>16,m&=65535,c+=n*l+r*u+a*s+i*o,c&=65535,e[0]=c<<16|m,e[1]=g<<16|p}function Ps(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<>>32-t,e[1]=e[1]<>>32-t):(t-=32,e[0]=e[1]<>>32-t,e[1]=n<>>32-t)}function Sr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<>>1];Bt(e,t),Or(e,c_),t[1]=e[0]>>>1,Bt(e,t),Or(e,d_),t[1]=e[0]>>>1,Bt(e,t)}var dd=[2277735313,289559509],md=[1291169091,658871167],Bv=[0,5],m_=[0,1390208809],g_=[0,944331445];function p_(e,t){var n=l_(e);t=t||0;var r=[0,n.length],a=r[1]%16,i=r[1]-a,o=[0,t],s=[0,t],u=[0,0],l=[0,0],c;for(c=0;c>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function f_(e){var t;return cd({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` +`)},e)}function h_(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function b_(e){return typeof e!="function"}function y_(e,t){var n=wl(new Promise(function(r){var a=Date.now();Rv(e.bind(null,t),function(){for(var i=[],o=0;o=4}function C_(){var e=window,t=navigator;return wr(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Yv()}function fd(){var e=window,t=navigator;return wr(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Qr(){var e=window,t=navigator;return wr(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function e4(){var e=window,t=e.HTMLElement,n=e.Document;return wr(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function El(){var e=window;return h_(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Zv(){var e,t,n=window;return wr(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function x_(){var e=window;return wr([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function T_(){var e=window;return wr(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Al(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return wr([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function S_(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return wr(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function w_(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function E_(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function t4(){var e=fd(),t=Zv(),n=window,r=navigator,a="connection";return e?wr([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new window.Audio)])>=2:t?wr(["onorientationchange"in n,"orientation"in n,/android/i.test(navigator.appVersion)])>=2:!1}function A_(){return L_()?-4:k_()}function k_(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(D_())return-1;var n=4500,r=5e3,a=new t(1,r,44100),i=a.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=a.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(a.destination),i.start(0);var s=M_(a),u=s[0],l=s[1],c=wl(u.then(function(m){return P_(m.getChannelData(0).subarray(n))},function(m){if(m.name==="timeout"||m.name==="suspended")return-3;throw m}));return function(){return l(),c}}function D_(){return Qr()&&!e4()&&!T_()}function L_(){return Qr()&&Al()&&El()}function M_(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise(function(s,u){var l=!1,c=0,m=0;e.oncomplete=function(f){return s(f.renderedBuffer)};var g=function(){setTimeout(function(){return u(Ov("timeout"))},Math.min(r,m+a-Date.now()))},p=function(){try{var f=e.startRendering();switch(Gv(f)&&wl(f),e.state){case"running":m=Date.now(),l&&g();break;case"suspended":document.hidden||c++,l&&c>=t?u(Ov("suspended")):setTimeout(p,n);break}}catch(b){u(b)}};p(),i=function(){l||(l=!0,m>0&&g())}});return[o,i]}function P_(e){for(var t=0,n=0;n=0?"+":"").concat(r)}function uR(){var e=new Date().getFullYear();return Math.max(Xr(new Date(e,0,1).getTimezoneOffset()),Xr(new Date(e,6,1).getTimezoneOffset()))}function lR(){try{return!!window.sessionStorage}catch{return!0}}function cR(){try{return!!window.localStorage}catch{return!0}}function dR(){if(!(Yv()||C_()))try{return!!window.indexedDB}catch{return!0}}function mR(){return!!window.openDatabase}function gR(){return navigator.cpuClass}function pR(){var e=navigator.platform;return e==="MacIntel"&&Qr()&&!e4()?S_()?"iPad":"iPhone":e}function fR(){return navigator.vendor||""}function hR(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tm.length*.6}),s.sort(),[2,s]}})})}function CR(){return Qr()||t4()}function xR(e){var t;return Zr(this,void 0,void 0,function(){var n,r,a,i,u,o,s,u;return Jr(this,function(l){switch(l.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),i={},Uv(r),u=0;u')}function OI(){return navigator.pdfViewerEnabled}function NI(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function UI(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(jI())return-3;try{return e.canMakePayments()?1:0}catch(t){return HI(t)}}var jI=BR;function HI(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function qI(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var $5=-1,ev=-2,zI=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),VI=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),WI=["FRAGMENT_SHADER","VERTEX_SHADER"],GI=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],tv="WEBGL_debug_renderer_info",KI="WEBGL_polygon_mode";function YI(e){var t,n,r,a,i,o,s=e.cache,u=nv(s);if(!u)return $5;if(!av(u))return ev;var l=rv()?null:u.getExtension(tv);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function QI(e){var t=e.cache,n=nv(t);if(!n)return $5;if(!av(n))return ev;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(K5,"/npm-monitoring"),!0),e.send()}catch{}}function mF(e){var t;return e===void 0&&(e={}),Jr(this,void 0,void 0,function(){var n,r,a;return Zr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&dF(),n=e.delayFallback,r=e.debug,[4,lF(n)];case 1:return i.sent(),a=tF({cache:{},debug:r}),[2,cF(a,r)]}})})}var r4={load:mF,hashComponents:iv,componentsToDebugString:sF};async function Ii(){let e=await Bt("fakeUserId","");e||(e=await Eo("fakeUserId",""),e&&await Je("fakeUserId",e));let t=new Date,n=await Bt("installedAt","");return n||(n=await Eo("installedAt",""),n&&await Je("installedAt",n)),e?n||(n=new Date(0).toISOString(),await Je("installedAt",n)):(e=await pF(64),await Je("fakeUserId",e)),n||(n=t.toISOString(),await Je("installedAt",n)),{fakeUserId:e,installedAt:n}}var gF=10;async function Fs(){let e=await Bt("userTag","");if(e)return e;let{fakeUserId:t}=await Ii(),r=t.charCodeAt(0)%gF;return e=String.fromCharCode(r+"a".charCodeAt(0)),await Je("userTag",e),e}function kl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):fF(i,e)}catch{return kl(64)}}function fF(e,t=32){let n="";for(let a=0;a{}),vd)}async function Dl(e,t){try{let n=Te(),r=n.INSTALL_FROM==="firefox_store";if(Pi()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=Z(),o=St(),s=n.PROD==="1",u=On(),l=new Date,{fakeUserId:c,installedAt:m}=await Ii(),g=await Fs(),p=await Bs(),f=await _s(),b=new Date(m),y=Fi(b),h=Fi(l),v=y===h,C=24*60*60*1e3,x=l.getTime()-b.getTime()<7*C,S=l.getTime()-b.getTime()<30*C,T=l.getTime()-b.getTime()<365*C,w=qu(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=ys.parse(A),M=e.map(I=>{let R=I.params||{};if(D.os&&(R.os_name=D.os.name||"unknown",R.os_version=D.os.version||"unknown",R.os_version_name=D.os.versionName||"unknown"),D.browser){R.browser_name=D.browser.name||"unknown",R.browser_version=D.browser.version||"unknown";let B=Pi();B&&(R.browser_name=B.name,R.browser_version=B.version)}if(D.platform&&(R.platform_type=D.platform.type||"unknown"),D.engine&&(R.engine_name=D.engine.name||"unknown",R.engine_version=D.engine.version||"unknown"),u&&(R.version=u),n.INSTALL_FROM&&(R.install_from=n.INSTALL_FROM),y){R.install_day=hd(b);let B=yd(b);R.install_week=`${B.year}${B.week}`}return R.userscript=i.toString(),v?R.is_new_user_today="1":R.is_new_user_today="0",R.is_new_user_this_week=x?"1":"0",R.is_new_user_this_month=S?"1":"0",R.is_new_user_this_year=T?"1":"0",o?R.main_frame=0:R.main_frame=1,g&&(R.ab_tag=g),p&&(R.ab_group=p),R.campaign=f||"none",{...I,params:R}});w.forEach(async I=>{let R=await Ll({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&yF(c,M)}catch{}}async function bF(e){return await hF().sendMessage("background:main",e)}function Ll(e){return Rc()?td({method:"request",data:e}):Z()||Pc()?(e.fetchPolyfill=globalThis.GM_fetch,Br(e)):bF({method:"fetch",data:e})}function yF(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=bd(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Ll({url:zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var Cd={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} + `.concat(t[u]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(u)}}}function SR(){for(var e=0,t=["rec2020","p3","srgb"];e')}function BR(){return navigator.pdfViewerEnabled}function OR(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function NR(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(UR())return-3;try{return e.canMakePayments()?1:0}catch(t){return jR(t)}}var UR=I_;function jR(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function HR(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var Xv=-1,Qv=-2,qR=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),zR=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),WR=["FRAGMENT_SHADER","VERTEX_SHADER"],VR=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],e5="WEBGL_debug_renderer_info",KR="WEBGL_polygon_mode";function GR(e){var t,n,r,a,i,o,s=e.cache,u=t5(s);if(!u)return Xv;if(!r5(u))return Qv;var l=n5()?null:u.getExtension(e5);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=u.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=u.getParameter(u.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:l?(i=u.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((o=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||o===void 0?void 0:o.toString())||""}}function $R(e){var t=e.cache,n=t5(t);if(!n)return Xv;if(!r5(n))return Qv;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),i=[],o=[],s=[],u=[],l=[];if(a)for(var c=0,m=Object.keys(a);c=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Kv,"/npm-monitoring"),!0),e.send()}catch{}}function dI(e){var t;return e===void 0&&(e={}),Zr(this,void 0,void 0,function(){var n,r,a;return Jr(this,function(i){switch(i.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&cI(),n=e.delayFallback,r=e.debug,[4,uI(n)];case 1:return i.sent(),a=eI({cache:{},debug:r}),[2,lI(a,r)]}})})}var n4={load:dI,hashComponents:a5,componentsToDebugString:oI};async function Ri(){let e=await Ft("fakeUserId","");e||(e=await Eo("fakeUserId",""),e&&await Ze("fakeUserId",e));let t=new Date,n=await Ft("installedAt","");return n||(n=await Eo("installedAt",""),n&&await Ze("installedAt",n)),e?n||(n=new Date(0).toISOString(),await Ze("installedAt",n)):(e=await gI(64),await Ze("fakeUserId",e)),n||(n=t.toISOString(),await Ze("installedAt",n)),{fakeUserId:e,installedAt:n}}var mI=10;async function Is(){let e=await Ft("userTag","");if(e)return e;let{fakeUserId:t}=await Ri(),r=t.charCodeAt(0)%mI;return e=String.fromCharCode(r+"a".charCodeAt(0)),await Ze("userTag",e),e}function kl(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;aArray.from(new Uint8Array(o)).map(l=>l.toString(16).padStart(2,"0")).join("").substring(0,e)):pI(i,e)}catch{return kl(64)}}function pI(e,t=32){let n="";for(let a=0;a{}),vd)}async function Dl(e,t){try{let n=Se(),r=n.INSTALL_FROM==="firefox_store";if(Pi()?.name?.startsWith("ImtFx")&&(r=!1),r)return;let i=J(),o=xt(),s=n.PROD==="1",u=On(),l=new Date,{fakeUserId:c,installedAt:m}=await Ri(),g=await Is(),p=await Fs(),f=await Bs(),b=new Date(m),y=Ii(b),h=Ii(l),v=y===h,C=24*60*60*1e3,T=l.getTime()-b.getTime()<7*C,x=l.getTime()-b.getTime()<30*C,S=l.getTime()-b.getTime()<365*C,w=qu(),A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let D=ys.parse(A),M=e.map(R=>{let _=R.params||{};if(D.os&&(_.os_name=D.os.name||"unknown",_.os_version=D.os.version||"unknown",_.os_version_name=D.os.versionName||"unknown"),D.browser){_.browser_name=D.browser.name||"unknown",_.browser_version=D.browser.version||"unknown";let F=Pi();F&&(_.browser_name=F.name,_.browser_version=F.version)}if(D.platform&&(_.platform_type=D.platform.type||"unknown"),D.engine&&(_.engine_name=D.engine.name||"unknown",_.engine_version=D.engine.version||"unknown"),u&&(_.version=u),n.INSTALL_FROM&&(_.install_from=n.INSTALL_FROM),y){_.install_day=hd(b);let F=yd(b);_.install_week=`${F.year}${F.week}`}return _.userscript=i.toString(),v?_.is_new_user_today="1":_.is_new_user_today="0",_.is_new_user_this_week=T?"1":"0",_.is_new_user_this_month=x?"1":"0",_.is_new_user_this_year=S?"1":"0",o?_.main_frame=0:_.main_frame=1,g&&(_.ab_tag=g),p&&(_.ab_group=p),_.campaign=f||"none",{...R,params:_}});w.forEach(async R=>{let _=await Ll({responseType:"text",url:R,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:M})})}),t&&bI(c,M)}catch{}}async function hI(e){return await fI().sendMessage("background:main",e)}function Ll(e){return _c()?td({method:"request",data:e}):J()||Pc()?(e.fetchPolyfill=globalThis.GM_fetch,Br(e)):hI({method:"fetch",data:e})}function bI(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};r?.install_day&&(r.install_day=bd(r.install_day)),r.temp_translate_domain_minutes&&(r.temp_translate_domain_minutes=parseInt(r.temp_translate_domain_minutes.toString())),r.site_host&&delete r.site_host;let a=Date.now()+(Math.random()*100).toFixed(0);Ll({url:zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var Cd={resaleVersion:"1.10.2",immediateTranslationTextCount:4999,translationStartMode:"dynamic",domReadyDetectTimeout:3e3,translationService:"bing",mouseModifierKeyPressTimeout:400,sameLangCheck:!0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","x.com","*.twitter.com","*.x.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*","https://app.immersivetranslate.cn/pdf*","https://bsky.app"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},aiAssistantIds:["paraphrase","twitter","tech","reddit","paper","news","music","medical","legal","github","game","ecommerce","financial","fiction","ao3","ebook","fiction","design","web3","bilingual-mix"],interval:36e5,beta:!1,cache:!0,enableAiAssistant:!0,enableSelfServiceReport:!0,enablePerformanceReport:!0,performanceBlockUrls:["https://www.chase.com","https://www.bankofamerica.com","https://www.wellsfargo.com","https://www.citi.com","https://www.usbank.com","https://www.pnc.com","https://www.capitalone.com","https://www.tdbank.com","https://www.hsbc.co.uk","https://www.barclays.co.uk","https://www.lloydsbank.com","https://www.natwest.com","https://www.santander.co.uk","https://www.nationwide.co.uk","https://www.deutsche-bank.de","https://www.commerzbank.de","https://www.dzbank.de","https://www.ing.de","https://www.hypovereinsbank.de","https://www.bnpparibas.fr","https://www.credit-agricole.fr","https://www.societegenerale.fr","https://www.lcl.fr","https://www.labanquepostale.fr","https://www.bk.mufg.jp","https://www.smbc.co.jp","https://www.mizuhobank.com","https://www.resonabank.co.jp","https://www.shinseibank.com","http://www.icbc.com.cn","http://www.ccb.com","https://www.boc.cn","http://www.abchina.com","http://www.cmbchina.com","http://www.psbc.com","http://www.cebbank.com","http://www.cmbc.com.cn","http://www.citicbank.com","http://www.spdb.com.cn","http://www.bankcomm.com","http://www.cib.com.cn","http://www.hxb.com.cn","http://www.cbhb.com.cn","http://www.czbank.com","http://www.bankofbeijing.com.cn","http://www.bankofshanghai.com","http://www.hfbank.com.cn","http://www.gdb.com.cn","http://www.pingan.com","https://www.rbcroyalbank.com","https://www.td.com","https://www.scotiabank.com","https://www.cibc.com","https://www.bmo.com","https://www.commbank.com.au","https://www.westpac.com.au","https://www.anz.com.au","https://www.nab.com.au","https://www.macquarie.com.au","https://www.sbi.co.in","https://www.icicibank.com","https://www.hdfcbank.com","https://www.axisbank.com","https://www.pnbindia.in","https://www.bb.com.br","https://www.itau.com.br","https://www.bradesco.com.br","https://www.santander.com.br","https://www.caixa.gov.br","https://www.sberbank.ru","https://www.vtb.ru","https://www.gazprombank.ru","https://www.alfabank.ru","https://www.rshb.ru","https://www.bancosantander.es","https://www.bbva.es","https://www.caixabank.es","https://www.bankia.es","https://www.sabadell.com","https://www.unicredit.it","https://www.intesasanpaolo.com","https://www.mps.it","https://www.ubibanca.com","https://www.bancobpm.it","https://www.ing.nl","https://www.rabobank.nl","https://www.abnamro.nl","https://www.volksbank.nl","https://www.triodos.nl","https://www.ubs.com","https://www.credit-suisse.com","https://www.raiffeisen.ch","https://www.zkb.ch","https://www.postfinance.ch"],proOpenaiModels:["gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"],rtlLanguages:["ar","arc","az","dv","he","ckb","fa","ur"],translationMode:"dual",translationModeUrlPattern:{dualMatches:[],translationMatches:["https://app.immersivetranslate.com/pdf/"]},translationModeLanguagePattern:{dualMatches:[],translationMatches:[]},translationLanguagePairs:["zh-CN:zh-TW","zh-TW:zh-CN"],autoTranslateParams:["_immersive_translate_auto_translate","crosearch_translate","bilin_translate"],enabled:!0,minVersion:"0.6.2",showOpenaiOnSafari:!0,showUnconfiguredTranslationServiceInPopup:!0,donateUrl:"https://immersivetranslate.com/pricing",uninstallUrl:"https://onboarding.immersivetranslate.com/uninstall",feedbackUrl:"https://github.com/immersive-translate/immersive-translate/issues",arxivRule:{injectContainerSelector:".extra-services .full-text ul",officialHtmlSelector:"#latexml-download-link",validBefore:"2023-10-31",validOnlySelector:".download-format",detectOrders:["https://arxiv.org/html","https://ar5iv.labs.arxiv.org/html"],matches:["https://arxiv.org/abs/*"]},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},popupConfig:{enableTrialPro:!0,trialProShowLimit:20},discountActivity:{enable:!0,upgradeShowCountCacheKey:"upgradeDiscountActivity20241111",upgradeShowLimit:20,start:"2024-10-31T16:00:00.000Z",end:"2024-11-10T16:00:00.000Z",titleI18n:{"zh-CN":"50%OFF","zh-TW":"50%OFF",en:"50%OFF"},popupUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_discount",floatBallUrl:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount",tipsI18n:{"zh-CN":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E74 50% OFF\uFF01\u7EED\u8D39 30% OFF\uFF01","zh-TW":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u5341\u4E00\u5E74\u5EA6\u5927\u4FC3\uFF08\u53F2\u4E0A\u6700\u4F4E\uFF09\uFF01 \u9996\u5E7450% OFF\uFF01 \u7E8C\u8CBB30% OFF\uFF01",en:"Black Friday Sale (All-time Low)! 50% OFF First Year, 30% OFF renewals!"}},supportedMangaSites:["https://www.pixiv.net/manga[Pixiv][chrome,firefox]","https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://readcomiconline.li[ReadComicOnline][chrome]","https://readcomic.me[ReadComic][chrome]","https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS]","https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtAndroid]","https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://mangabuddy.com/[MANGABUDDY][chrome]","https://e-hentai.org/[E-Hentai][chrome,firefox,safari,imtAndroid]","https://nhentai.net[nHentai][chrome,firefox,safari]","https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid]","https://www.idmzj.com[\u52A8\u6F2B\u4E4B\u5BB6]","https://jmanga.org[Jmanga][chrome,firefox,safari,imtAndroid]","https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://wnacg.com[Wnacg][chrome,firefox,safari]","https://vw.mangaz.com[MangaZ][chrome,firefox]","https://pash-up.jp[PASH UP][chrome]","https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid]","https://asuracomic.net[Asura Scans][chrome,firefox,safari]","https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid]","https://manhwaclan.com[Manhwaclan][chrome,firefox,safari]","https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS]","https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid]","https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid]","https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid]","https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS]","https://mangaflame.org/[Mangaflame][chrome,firefox,safari,imtAndroid]","https://templetoons.com/[Templetoons][chrome,firefox,safari]","https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid]","https://comic-action.com/[Comic-action][chrome,firefox,safari]","https://m.ac.qq.com/[\u817E\u8BAF\u52A8\u6F2B][chrome,firefox,safari]","https://www.mangajikan.com/[Mangajikan][chrome,firefox,safari]","https://Komiku.com/[komiku][chrome,firefox,safari]","https://www.mangakoinu.com/[Mangakoinu][chrome,firefox,safari]","https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari]","https://syosetu.si/[Syosetu][chrome,firefox,safari]","https://comick.io/[Comick][chrome,firefox,safari]","https://klmanga.rs/[Klmanga][chrome,firefox,safari]"],supportedVideoSubtitleSites:["https://www.youtube.com[Youtube]","https://tv.youtube.com[TV Youtube]","https://www.youtubekids.com[Youtube Kids]","https://www.netflix.com[NetFlix]","https://www.primevideo.com[PrimeVideo]","https://twitter.com[Twitter Spaces]","https://play.max.com[HBO Max]","https://www.hbogoasia.tw[HBO GO]","https://vimeo.com/watch[Vimeo]","https://www.khanacademy.org/[Khan Academy]","https://www.coursera.org/[Coursera]","https://www.udemy.com/[Udemy]","https://www.bloomberg.com[Bloomberg]","https://nebula.tv/videos[Nebula]","https://www.bilibili.com[Bilibili]","https://www.ted.com/[TED]","https://frontendmasters.com[FrontendMasters]","https://learn.codewithchris.com[CodeWithChris]","https://www.edx.org[edX]","https://www.skillshare.com/[Skillshare]","https://www.bbc.com/[BBC]","https://www.disneyplus.com/[Disney+]","https://www.ardmediathek.de/[ARD Mediathek]","https://www.itv.com/[ITV]","https://www.domestika.org/[Domestika]","https://www.artstation.com/learning[ArtStation]","https://www.zdf.de[ZDF]","https://www.masterclass.com[MasterClass]","https://learn.microsoft.com[Learn Microsoft]","https://home.mindvalley.com[Mindvalley]","https://iview.abc.net.au/[iview]","https://www.nma.art/[nmaArt]","https://developer.apple.com[Developer Apple]","https://egghead.io/[egghead.io]","https://www.viu.com/[Viu]","https://cn.linkedin.com/[LinkedIn]","https://www.kanopy.com/[Kanopy]","https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]","https://threejs-journey.com/[three.js journey]","https://www.iflix.com/[WeTV iflix]","https://www.hulu.com/[Hulu]","https://www.espn.com/[ESPN]","https://www.imdb.com/[IMDb]","https://www.rottentomatoes.com/[Rotten Tomatoes]","https://fmovies24.to/[FMovies]","https://bflixhd.to/[Bflixhd]","https://hianime.to/[Hianime]","https://www.iq.com/[iQIYI]","https://www.youku.tv/[Youku]","https://www.dailymotion.com/[Dailymotion]","https://www.paramountplus.com/[Paramount Plus]","https://www.starz.com/[starz]","https://pluto.tv/[pluto]","https://movie-web-me.vercel.app/[movie-web]","https://www.unrealsenseiacademy.com/[Unreal Sensei]","https://learn.deeplearning.ai[DeepLearning.ai]","https://piped.video/[Piped.Video]","https://southampton.cloud.panopto.eu[University of Southampton]","https://vk.com/video[VK Video]","https://www.comsol.com/video[COMSOL]","https://themotionmagic.com/[The Motion Magic]","https://www.svtplay.se/[SVT Play]","https://www.osmosis.org/[Osmosis]","https://www.dr.dk/[DR]","https://www.pbs.org/[PBS]","https://www.viki.com/[Viki]","https://play.aetv.com/[A&E]","https://w.mgtv.com/[MGTV]","https://dev.epicgames.com/[DevEpicGames]","https://app.zoom.us/[ZOOM]","https://teams.live.com/[TEAM]","https://meet.google.com/[Google Meet]","https://weverse.io/[Weverse]","https://academy.zenva.com[Zenva Academy]","https://courses.kevinpowell.co[Kevin Powell]","https://www.fau.tv[Fau TV]","https://www.thaipbs.or.th/[Thai PBS]","https://gorails.com/[GORAILS]","https://quantra.quantinsti.com/[QUANTRA]","https://www.gaia.com/[Gaia]","https://www.rtve.es[RTVE.es]","https://www.amazon.com/[Amazon]","https://www.kika.de[KIKA]","https://www.jove.com[Jove]","https://asu.instructure.com/[ASU]","https://f1tv.formula1.com/[F1tv]","https://www.patreon.com[Patreon]","https://www.cbsnews.com[CBS NEWS]","https://khflix.com[Khflix]","https://donghuaworld.com[Donghuaworld]","https://projector.datacamp.com[Datacamp]","https://urplay.se[Urplay]","https://www.ganjingworld.com[Ganjingworld]","https://app.lecturio.com[Lecturio]","https://www.gagaoolala.com[Gagaoolala]","https://curiositystream.com[curiositystream]","https://tv.nrk.no[NRK TV]","https://tubitv.com[TUBI]","https://www.tiktok.com[TikTok]","https://www.barrons.com/[BARRONS]","https://courses.mitxonline.mit.edu/[MITXONLINE]"],isShowContextMenu:!0,enableInputTranslation:!0,enableFloatShare:!0,isShowInputTranslationConsent:!0,enableShowFloatingBallGuide:!0,verifyRequestTimeout:5e3,inactiveDays:21,enableInputTranslationWithoutTriggerKey:!0,enableRenderHtmlTag:!1,enableEditTranslation:!1,autoSelectTargetLanguageAfterInstalledAt:"2024-01-04",defaultAlwaysTranslatedUrls:["twitter.com","x.com","www.reddit.com","www.kadaza.com","en.wikipedia.org","*.medium.com","news.ycombinator.com"],spVersion:"1.11.5",ispVersion:"1.0.5",gspVersion:"1.0.6",modifiedBySystem:!1,enableDefaultAlwaysTranslatedUrls:!0,isChangedAlwaysTranslatedUrls:!1,inputTranslationUrlPattern:{matches:[],excludeMatches:[]},excludeTranslationHtmlTags:["textarea","input","body","marquee"],translationPosition:"after",inputTranslationService:"inherit",inputTranslationBlockUrls:["*.larkoffice.com","*.larksuite.com","www.notion.so","www.figma.com/file/*","*.lanhuapp.com","https://*.immersivetranslate.com/text*"],inputStyleBlockUrls:[],inputTargetLanguage:"en",inputStartingTriggerKey:"/",inputTrailingTriggerKey:"space",inputTrailingTriggerKeyRepeatTimes:3,inputTrailingTriggerKeyTimeout:200,inputTrailingMobileTriggerKeyTimeout:300,mutationBlockUrls:["*.larkoffice.com","*.larksuite.com"],monkeyH5FloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},pcFloatBall:{enable:!0,blockUrls:["*immersivetranslate.com/preview","*.immersivetranslate.com/download-subtitle*"],guideBlockUrls:["https://onboarding.immersivetranslate.com*","https://immersivetranslate.com/accounts/login*","https://immersivetranslate.cn/accounts/login*"],clickType:"translate",afterInstalledAt:"2023-10-28",fixedPosition:"right",upgradeVisible:!0,upgradeShowLimit:20},floatBallTooltipRule:{mainBtnTooltipImmediateShowCount:5,mainBtnTooltipDelayTime:800,h5MainBtnTooltipMaxShowCount:1},pcFloatBallMainBtnTooltipShownCount:0,h5FloatBallMainBtnTooltipShownCount:0,inputLanguageCodeAlias:{en:["\u82F1\u6587","\u82F1\u8BED"],"zh-CN":["zh","zh-Hant","\u4E2D\u6587"],"zh-TW":["zht","zh-Hant","\u7E41\u4E2D"],ja:["\u65E5\u8BED","\u65E5\u6587"],ko:["\u97E9\u8BED","\u97E9\u6587"],fr:["\u6CD5\u8BED","\u53D1\u6587"],es:["\u897F\u73ED\u7259\u8BED","\u897F\u8BED"],ru:["\u4FC4\u8BED","\u4FC4\u6587"],bo:["\u85CF\u8BED"]},inputStartingTriggerKeyAlias:{"/":["\u3001","slash"],".":["\u3002","period"],",":["\uFF0C","comma"],space:[" "],";":["\uFF1B","semicolon"],":":["\uFF1A"]},blockUrls:["https://dash.immersivetranslate.com/*","https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.183:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","https://silverbullet.md/","googleads.g.doubleclick.net","s1.hdslb.com","oapi.dingtalk.com","login.dingtalk.com","imasdk.googleapis.com","acdn.adnxs.com","pos.baidu.com","js-sec.indexww.com","g.alicdn.com","ads.pubmatic.com","challenges.cloudflare.com","accounts.google.com","images-na.ssl-images-amazon.com","tpc.googlesyndication.com","js.stripe.com","acdn.adnxs-simple.com","s.union.360.cn","s.amazon-adsystem.com","www.recaptcha.net","s7.addthis.com","z.moatads.com","https://www.marketwatch.com/static_html/daa-min.html","tr.snapchat.com","ct.pinterest.com","*.moatads.com","secure-us.imrworldwide.com","static.noeyeon.click","widgets.outbrain.com","www.dianomi.com/smartads.epl","secure-assets.rubiconproject.com","eus.rubiconproject.com","eus.rubiconproject.com","i.liadm.com","eb2.3lift.com","googleads.g.doubleclick.net","https://www.google.com/recaptcha/*","ad.doubanio.com","datawrapper.dwcdn.net","*://*/*\\.svg","file://*/*\\.xml","file://*/*\\.svg"],telemetry:!0,loadingTheme:"spinner",canary:!1,cacheCleanIntervalDay:1,cacheMaxAgeDay:30,translationThemePatterns:{},translationLanguagePattern:{matches:[],excludeMatches:[]},translationServices:{volcAlpha:{placeholderDelimiters:["{","}","b"]},volc:{placeholderDelimiters:["{","}","b"]},tencent:{placeholderDelimiters:["{","}","b"]},google:{defaultVisible:!0,requestTimeout:15e3,retry:1,placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}","b"],maxTextGroupLengthPerRequest:50,enableRichTranslate:!0},transmart:{limit:20,defaultVisible:!0,defaultHiddenLangs:["zh-TW"],requestTimeout:1e4,placeholderDelimiters:["#","#"],translatedPlaceholderDelimiters:["#\\s?","\\s?#"],enableRichTranslate:!0},baidu:{placeholderDelimiters:["#","#"]},cai:{placeholderDelimiters:["{","}"]},caiyun:{placeholderDelimiters:["{","}"]},youdao:{placeholderDelimiters:["\u{1F6A0}","\u{1F6A0}"]},aliyun:{placeholderDelimiters:["{{","}}","b"]},deepl:{visible:!0,immediateTranslationTextCountForImmersiveDeepl:5e4,requestTimeout:15e3,maxTextLengthPerRequest:1800,maxTextGroupLengthPerRequest:50,qualityDelimiterBetaV3:"",qualityNoSymoblBetaV3:"",""],limit:100},custom:{placeholderDelimiters:["{","}"]},bing:{defaultVisible:!0,maxTextLengthPerRequest:1800,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0,enableRichGlossaries:!0,richTag:"c"},yandex:{defaultVisible:!0,maxTextLengthPerRequest:1e3,requestTimeout:1e4,retry:1,placeholderDelimiters:["","","b"],enableRichTranslate:!0},deeplx:{limit:3,enableRichTranslate:!1,placeholderDelimiters:["@","#"]},d:{immediateTranslationTextCount:0,placeholderDelimiters:["@","#"]},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},ai:{env:{html_only:", if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.",imt_source_field:"text",imt_trans_field:"text",imt_sub_source_field:"text",imt_sub_trans_field:"translation_text",imt_yaml_item:`- id: {{id}} {{imt_source_field}}: {{text}}`,imt_subtitle_yaml_item:`- id: {{id}} {{imt_sub_source_field}}: {{text}}`,normal_result_yaml_example:` Input: @@ -5806,19 +5806,19 @@ Translate the content to {{to}} Language: %% -`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{sideHead:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{sideHead:"1","default-translate":"no"},nav:{sideHead:"1","default-translate":"no"}},navHeadEnableTranslate:!0,selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.5]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` +`,assistantId:"common"},deepseek:{extends:"ai",name:"deepseek",model:"deepseek-chat",limit:1,apiUrl:"https://api.deepseek.com/chat/completions",provider:"custom",enableRichTranslate:!1},"aliyun-bailian":{extends:"ai",name:"aliyun-bailian",model:"qwen-long",provider:"custom",limit:1.5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"},doubao:{extends:"ai",name:"doubao",model:"",provider:"custom",limit:10,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://ark.cn-beijing.volces.com/api/v3/chat/completions"},hunyuan:{extends:"ai",name:"hunyuan",provider:"custom",limit:2,model:"hunyuan-standard"},siliconcloud:{extends:"ai",name:"siliconcloud",provider:"custom",limit:10,model:"Qwen/Qwen2-7B-Instruct",apiUrl:"https://api.siliconflow.cn/v1/chat/completions",defaultVisible:!0,defaultHiddenLangs:["zh-TW"]},lingyiwanwu:{extends:"ai",name:"lingyiwanwu",model:"yi-medium",provider:"custom",limit:5,maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://api.lingyiwanwu.com/v1/chat/completions",enableRichTranslate:!0,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0},zhipu:{extends:"ai",name:"zhipu",model:"glm-4-flash",defaultVisible:!0,defaultHiddenLangs:["zh-TW"],provider:"custom",limit:10,bodyConfigs:{temperature:.01,top_p:.1,max_tokens:2048},ignoreResRegexs:["^\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8F93\u5165\u6216\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5305\u542B\u4E0D\u5B89\u5168\u6216\u654F\u611F\u5185\u5BB9"],maxTextGroupLengthPerRequestForSubtitle:1,apiUrl:"https://open.bigmodel.cn/api/paas/v4/chat/completions",enableRichTranslate:!1,dualEnableRichTranslate:!1,translationEnableRichTranslate:!0,enableFallback:!0}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:"",shareToDraft:"",toggleMouseHoverTranslateDirectly:""},tempTranslateDomainMinutes:0,translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","x.com","www.tumblr.com","*.twitter.com","*.x.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com","https://bsky.app","store.steampowered.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},selectTranslationFont:"",translationFonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"],generalRule:{_comment:"",longBuildDomLength:3e3,longBuildPageLength:30,repeatTranslateNum:0,detectTextBufferLength:0,smallCodeLength:30,domPurifyAddTags:["iframe","button","select","option","mjx-container","mjx-math","use","d-math","mathml","asciimath","latex","mathmlword","semantics","annotation-xml","annotation","ci"],isTranslateWhenServiceChanged:!0,excludeSelectorsRegexes:{"td,th":["^[a-zA-Z0-9\\-_.]+$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"td,th":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[a-zA-Z0-9\\-_.]+)+$","^Model$","^[a-z]+-[0-9]+B\\*?$"],"[default-translate] a":["/^.{0,50}$/"]},skipBuildContainerSelectors:["br","hr","em"],glossaries:[{k:"LLM",v:""},{k:"LLMs",v:""}],excludeRegexps:["(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)","(||||||||||
|
)"],"excludeRegexps.remove_v.[1.7.5]":["(||||||||||
|
)"],detectionServiceOrder:["google","bing","transmart"],detectParagraphLanguage:!1,paragraphFirstLetterFontSize:35,toastErrorMinTimes:20,enableSubtitle:!1,"subtitle.autoEnableSubtitle":!1,disableNewTextTranslate:!1,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",inputExecCommandDeleteEnable:!1,inputConfig:{clearContentEnable:!0,execCommandDeleteEnable:!1},mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan","rw-highlight","web-highlight","font.immersive-translate-target-wrapper *","pre","pre code",".uacc-clickable"],mutationExcludeContainsSelectors:["msreadoutspan","[class*='rgh-seen-']","[isInvalidTag]","mh","body","relin-hc","x-p","app-keyword-content"],atomicBlockSelectors:["relin-hc","x-p","app-keyword-content"],ignoreRichSelectors:["relin-hc","x-p","ruby","xqdd_highlight_new_word","rw-highlight","hypothesis-highlight"],shareConfig:{injectCss:!0,removeSelectors:["noscript","script"]},mutationConfig:{consumeTimeout:100,buildTimeout:100,checkSelfUpdate:!0},imageRule:{blockToolsUrls:["www.figma.com"],enable:!0,mangaTranslator:"auto",commonTranslator:"bing",enableTools:!1,hoverMinWidth:100,hoverMinHeight:100,toolsMinWidth:280,toolsMinHeight:280,concurrency:2,queryIntervalTime:1e3,errorTimes:3,errorInterval:5e3,enableImageTranslation:"pro",toolsDelayTime:1500,latinLang:["en","fr","es","pt","pt-br","it"]},useIframePostMessage:!1,searchEnhancementConfig:[],injectedCss:[".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;}",".immersive-translate-target-wrapper[dir='rtl'] [data-immersive-translate-class-bak*='block-wrapper'] {display:block;}",".immersive-translate-target-wrapper {word-break: break-word;}",`[imt-state="translation"] .immersive-translate-target-wrapper[dir='rtl'] {display:inline-block;}`],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},subtitleRule:{isInject:!0,autoEnableSubtitle:!1,preTranslation:!1,humanPreferred:!0,disabled:!1,hookType:"xhr",showQuickButton:!0,backgroundColor:"#080808",backgroundOpacity:"75",sourceTextColor:"#FFFFFF",translationTextColor:"#FFFFFF",sourceFontSize:"100",translationMode:"dual",translationPosition:"bottom",textShadowType:"none",translationFontSize:"100",sourceFontFamily:"none",translationFontFamily:"none",sourceFontWeight:"400",translationFontWeight:"400",translateGroupCount:5,autoSwitchSubtitleWithSameLanguage:!0,youtubeAutoEnableSubtitleAfterInstalledAt:"2024-04-25",velocityGroup:[1,3,20],fonts:["Microsoft YaHei","SimSun","NSimSun","SimHei","Microsoft JhengHei","KaiTi","FangSong","PingFang SC","STHeiti","STKaiti","STSong","STFangsong","STZhongsong","STHupo","STXinwei","STLiti","STXingkai","Hiragino Sans GB","Lantinghei SC","Hanzipen SC","Hannotate SC","Songti SC","Wawati SC","Weibei SC","Xingkai SC","Yapi SC","Yuanti SC","Arial Unicode MS","MingLiU-ExtB","Malgun Gothic","Arial","Calibri","Cambria","Candara","Consolas","Constantia","Corbel","Courier New","Georgia","Lucida Console","MingLiU","PMingLiU","MingLiU_HKSCS","Meiryo","MS Gothic","MS PGothic","MS UI Gothic","MS Mincho","MS PMincho","Segoe UI","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Gulim","Dotum","Batang","Gungsuh","San Francisco","Helvetica Neue","Hiragino Mincho ProN","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Mincho","Geeza Pro","Al Nile","Tehran","Devanagari MT","Kohinoor Devanagari","Apple SD Gothic Neo","Nanum Gothic","Consolas","Ubuntu Mono","Inconsolata","Source Code Pro","Source Han Serif","Source Han Sans CN","Source Han Sans","Noto Sans SC","Ubuntu Mono","Inconsolata","Source Code Pro"]},ytAsrConfig:{enable:!0,wordsRegex:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.",langsConfig:{base:{isSpaceLang:!1,splitConfig:{minInterval:1e3,maxWords:17},mergeConfig:{minInterval:1500,maxWords:19}},en:{isSpaceLang:!0,splitConfig:{symbolBreakWords:["mhm","um",">>","- "],breakMiniTime:300,breakWords:["mhm","um",">>","- ","in fact","such as","or even","get me","well i'm","i didn't","i know","i need","i will","i'll","i mean","you are","what does","no problem","as we","if you","hello","okay","oh","yep","yes","hey","hi","yeah","essentially","because","and","but","which","so","where","what","now","or","how","after"],skipWords:["uh"]},mergeConfig:{endWords:["in","is","and","are","not","an","a","some","the","but","our","for","of","if","his","her","my","noticed","come","mean","why","this","has","make","gpt","p.m","a.m"],startWords:["or","to","in","has","of","are","is","lines","with","days","years","tokens"]},endCompatibleConfigs:[{minInterval:1e3,minWordLength:3,sentenceMinWord:20},{minInterval:1500,minWordLength:1,sentenceMinWord:20}]}},aiEnable:!0,aiSupportLanguages:["en"]},bodyRule:{enable:!0,maxBodyScreenLength:25,preSelectors:["h1"],articleChildTags:["P"],articleChildTagsNum:4,bodyIsRoot:!1,humanPreferred:!0,preTranslation:!0,xpathRule:["name:P"]},"bodyRule.add_v.[1.4.9]":{enable:!0},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!1,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,pdfUrlExtractRule:{},isTransformPreTagNewLine:!1,likePreSelectors:["pre"],urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".math-block",".MathJax_Preview",".MathJax_Display",".math-container",".MathJax",".MathJax_SVG",'[aria-labelledby^="MathJax-SVG"]',".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline","span.math-inline",".reference-citations",".code"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,lineBreakRegexStr:"etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.",globalAttributes:{"x-p":{translate:"unset;"}},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{header:"1","default-translate":"no"},"footer:last-of-type":{"default-translate":"no"},"nav:last-of-type":{side:"1","default-translate":"no"},nav:{side:"1","default-translate":"no"}},preTranslateLimiter:{keys:["side","header"],"side.selectors":["nav","aside"],"side.enableTranslate":!0,"header.selectors":["header"],"header.enableTranslate":!1},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:["[default-translate]"],additionalExcludeSelectors:['[contenteditable="true"]',".uacc-clickable","#monica-content-root","#immersive-translate-popup",".social-share",".breadcrumbs",".post__footer",".btn",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code",".enlighter-code",".rc-CodeBlock","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","material-icon","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","span[class^=material-symbols-]","h1 br","h2 br","h3 br","h4 br",".easyscholar-ranking"],translationClasses:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","BUTTON","BASE","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE","RELIN-TARGET"],"excludeTags.remove_v.[1.4.9]":["BUTTON"],"additionalExcludeSelectors.remove_v.[1.4.9]":[".btn"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP","math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt","d-math"],"rich.stayOriginalTags.remove":["CODE","SUP","SUB"],"rich.stayOriginalTags.remove_v.[1.8.3]":["SUP","SUB"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","NOBR","XQDD_HIGHLIGHT_NEW_WORD","RW-HIGHLIGHT","HYPOTHESIS-HIGHLIGHT"],additionalInlineTags:[],extraInlineSelectors:["p > a span","p > span a span",'a[data-testid="Link"] span'],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted",".rw-highlight","ruby *","p > button"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body","option","ul > li","label","button","[class*='menu-button']","br"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","SELECT","OPTION","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,touchShortcutsToggleTranslatePage:"fingers.4",touchShortcutsInputTranslate:"touchShortcutsOff",touchShortcutsToggleTranslationMask:"touchShortcutsOff",touchShortcutsToggleTranslatePageOnlyTranslation:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElement:"touchShortcutsOff",touchShortcutsToggleTranslateTouchElementPreferenceKey:"slide.left",mouseHoverHoldKey:"Off",mouseHoverPreferenceKey:"Ctrl",mousePressHoldTranslateDelay:800},rules:[{id:"isSubtitleBuilder",isSubtitleBuilder:!0,pageType:"subtitleBuilder",selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:"","bodyRule.add":{enable:!1}},{id:"isEbook",isEbook:!0,pageType:"ebookReader",isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],"bodyRule.add":{enable:!1},paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span",detectTextBufferLength:80},{id:"pdf",isPdf:!0,isTranslateTitle:!1,pageType:"pdfReader",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],enableRichTranslate:!1,matches:["https://app.immersivetranslate.com/pdf","https://app.immersivetranslate.cn/pdf","https://app.immersivetranslate.com/pdf/","https://app.immersivetranslate.cn/pdf/","https://app.immersivetranslate.com/pdf/*","https://app.immersivetranslate.cn/pdf/*","https://app.infread.com/pdf/*","http://localhost:38001/pdf*"],detectTextBufferLength:80,"additionalExcludeSelectors.remove":['[contenteditable="true"]'],isTranslateWhenServiceChanged:!1,translationMode:"translation",skipEditableCheck:!0,selectors:["#viewerContainer p"],"bodyRule.add":{enable:!1},injectedCss:[".immersive-translate-target-wrapper {display: contents!important;position:absolute;}",".immersive-translate-target-wrapper br {display: none;!important;}",".immersive-translate-target-wrapper span {position: relative;!important;}",".immersive-translate-error-wrapper {padding:0px !important;margin:0px !important;}","font {line-height: 0!important;}",".immersive-translate-target-translation-block-wrapper {display: unset!important;}"],"globalAttributes.add":{"[class='textLayer']":{translate:"no"}},mutationExcludeContainsSelectors:["font.immersive-translate-target-wrapper"],"shareConfig.add":{removeSelectors:["noscript","script",".toolbar","#sidebarContainer",'[class="page"]',".editorParamsToolbar",".image-mode",".im_db",".im_cb"]},wrapperPrefix:"",isInjectVersion:!0,excludeSelectorsRegexes:{p:["/^$/"]}},{id:"sci-hub.pdfWebPage",matches:["sci-hub.*","www.scihubmirror.com","*.sci-hub.*"],excludeMatches:["https://x.sci-hub.org.cn/scholar"],waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"#pdf",attribute:"src"}},{id:"ieeexplore.pdfWebPage",matches:"https://ieeexplore.ieee.org/stamp/stamp.jsp",waitForSelectorsTimeout:1,pdfUrlExtractRule:{selector:"body > iframe",attribute:"src"}},{id:"isEbookBuilder",matches:["https://app.immersivetranslate.com/ebook/make/","https://app.immersivetranslate.cn/ebook/make/","https://app.infread.com/ebook/make/","http://localhost:38001/ebook/make/"],isEbookBuilder:!0,pageType:"ebookBuilder",toastErrorMinTimes:500,isTranslateWhenServiceChanged:!1,isTranslateTitle:!1,detectTextBufferLength:80,targetWrapperTag:"span",isInjectVersion:"true",enableRichTranslate:!0,selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],injectedCss:[".immersive-translate-target-translation-block-wrapper {display:block;}"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code","[default-translate]"],"bodyRule.add":{enable:!1},isInjectMeta:!0,paragraphMinTextCount:1,paragraphMinWordCount:1,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0,isInjectMeta:!0},{id:"immersivePreview",matches:["https://immersivetranslate.com/preview*","https://immersivetranslate.cn/preview*","https://test.immersivetranslate.com/preview*","https://immersivetranslate.com/drafts*","https://immersivetranslate.cn/drafts*","https://test.immersivetranslate.com/drafts*"],isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"pro-pdf",matches:["https://*.immersivetranslate.com/pdf-pro*"],pageType:"pdfProReader",excludeSelectors:["table",".mmd-context-menu"],"injectedCss.add":[".immersive-translate-target-wrapper {white-space: unset;}","[data-immersive-translate_rtl] #preview {text-align: right;}","* {text-decoration:unset;}"],excludeSelectorsRegexes:{"[class='inline-tabular'] > table > tbody > tr > td":["^[A-Z0-9\\-_.]{0,10}$","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectorsRegexes.add_v.[1.5.7]":{"[class='inline-tabular'] > table > tbody > tr > td":["/^[A-Z0-9\\-_.]+$/g","^[0-9,]+\\s+tokens$","^Up to [a-zA-Z]*\\s+\\d*$","^(/[A-Z0-9\\-_.]+)+$"]},"excludeSelectors.remove.[1.4.8]":["table"],"extraInlineSelectors.add":[".sub-table",".sub-table td",".sub-table tr"],detectTextBufferLength:80,detectParagraphLanguage:!0,isInjectVersion:!0,isInjectMeta:!0,toastErrorMinTimes:500,waitForSelectorsTimeout:1,"detectParagraphLanguage.add.[1.4.8]":!1},{id:"common.pdfWebPage",waitForSelectorsTimeout:1,selectorMatches:["embed[type='application/pdf']"]},{id:"download-subtitle",matches:["https://*.immersivetranslate.com/download-subtitle*"],pageType:"downloadSubtitle",allowThirdPartyTranslate:!0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1},{id:"onboarding",matches:["https://onboarding.immersivetranslate.com","https://test-onboarding.immersivetranslate.com"],allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,blockMinTextCount:0,blockMinWordCount:0},{id:"immersive",matches:["https://immersivetranslate.com","https://immersivetranslate.cn","https://test.immersivetranslate.com","https://app.immersivetranslate.com","https://app.immersivetranslate.cn","https://test-app.immersivetranslate.com","http://localhost:38001","https://ai.immersivetranslate.com","https://test-ai.immersivetranslate.com","https://app.infread.com"],"excludeSelectors.add":["#imt-navbar *"],blockMinTextCount:0,blockMinWordCount:0,allowInnerInvoke:!0,isInjectVersion:!0,isInjectMeta:!0,waitForSelectorsTimeout:1,longBuildPageLength:1e3,"excludeTags.remove":["PRE"]},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],longBuildPageLength:1e3,"mutationExcludeSelectors.add":["body"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com","patchwork.kernel.org","lists.apache.org","manned.org","bugs.webkit.org","bugzilla.mozilla.org","scriptbin.works","bugs.gentoo.org","lwn.net/Articles/*","docs.haproxy.org","*.freebsd.org","www.oreilly.com/openbook/opensources/book/*","gamefaqs.gamespot.com","bugs.java.com/bugdatabase/view_bug.do","rachelsenglish.com","privatter.net"],isTransformPreTagNewLine:!0,longBuildPageLength:1e3},{id:"preCodeSites",matches:["taylor.town","www.flatpanelshd.com","www.rarlab.com"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"shopee",matches:"seller.shopee.*",isTransformPreTagNewLine:!0,"globalStyles.add":{".ellipsis-content":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"],"likePreSelectors.add":["CODE"],"stayOriginalTags.remove":["CODE"]},{id:"xiapi",matches:"*.xiapibuy.*","globalStyles.add":{".WBVL_7,.tauwWr.jqRqhn":"-webkit-line-clamp:unset;max-height:unset;height:unset;"}},{id:"fanbox",matches:["*.fanbox.cc"],isTransformPreTagNewLine:!0,"likePreSelectors.add":["[class^='Body__PostBodyText']"],"mutationExcludeSelectors.add":["[class^='Body__PostBodyText']"]},{id:"fenoxo",matches:"www.fenoxo.com","likePreSelectors.add":[".mainText"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block !important; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],"globalStyles.add":{".no-article-text-sister-projects li":"height:unset;"},"bodyRule.add":{bodySelector:"#content",articleSelector:"#bodyContent"}},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","pro.twitter.com","https://platform.twitter.com/embed*","x.com","mobile.x.com","tweetdeck.x.com","pro.x.com","https://platform.x.com/embed*"],excludeMatches:["https://twitter.com/i/premium_sign_up","https://twitter.com/settings/subscription","https://twitter.com/jobs/*","https://x.com/i/premium_sign_up","https://x.com/settings/subscription","https://x.com/settings/account","https://x.com/jobs/*"],switchTranslateRestart:!0,additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a",".DocsMarkdown--link-external-icon"],"rich.additionalStayOriginalSelectors.remove":['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']","[class='css-175oi2r r-1wbh5a2 r-dnmrzs']"],"extraBlockSelectors.add":['[data-testid="tweetText"] div.r-6koalj'],"injectedCss.add":[".r-h9hxbl{width:unset;}"],"likePreSelectors.add_v.[1.11.5]":["[data-testid=tweetText]"],isTransformPreTagNewLine:!0,extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,repeatTranslateNum:0,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]","[data-testid='twitterArticleReadView']","[aria-label='Grok']"],"subtitleRule.add":{type:"live",isInject:!1,injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }"],liveSubtitleRule:{containerSelector:".css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox']",reportSelector:".css-175oi2r.r-1awozwy.r-173mn98.r-1mf7evn.r-7e3msg",textSelectors:[`.css-175oi2r.r-13awgt0.r-1pi2tsx.r-13qz1uu > [role='listbox'] .css-175oi2r.r-13awgt0.r-1lzbym2 > [dir="ltr"] > span`],mutationChangeDelay:1e3}},"subtitleRule.add_v.[1.2.1]":{type:"twitter",videoPlayerSelector:"video",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#layers[style='z-index: 1;'] [style='height: 100px;'] { height: 400px !important; }","video::cue {white-space: pre-line;}"]},"imageRule.add":{opImageType:"append",imageStyle:"opacity:1;position:unset;"}},{id:"zoom-asu",matches:["*.zoom.us/rec/*"],"excludeSelectors.add":[".player-share .video-js"],"mutationExcludeSelectors.add":[".player-share .video-js *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"xhr",injectedCss:[".video-js .vjs-text-track-display .vjs-text-track-cue > div { white-space: unset !important; }"],subtitleUrlRegExp:"rec/play/vtt",quickButtonRule:{appendSelector:".vjs-extend-control",insertBeforeSelector:".vjs-captions-control",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window { direction: rtl; }"]}},{id:"zoom",matches:["*.zoom.us"],"excludeSelectors.add":[".live-transcription-subtitle__box"],"mutationExcludeSelectors.add":[".live-transcription-subtitle__box *"],"extraInlineSelectors.add":[".live-transcription-subtitle__item"],"subtitleRule.add":{type:"live",injectedCss:[".live-transcription-subtitle__item { max-height: none !important; }","#live-transcription-subtitle {flex-direction: column;color: white;}"],liveSubtitleRule:{containerSelector:".live-transcription-subtitle__box",textSelectors:[".live-transcription-subtitle"],reportSelector:".meeting-client-inner",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] #live-transcription-subtitle font {direction: rtl;}"]}},{id:"team",matches:["teams.live.com"],"excludeSelectors.add":[".ui-box .ui-box[class='ui-box']"],"mutationExcludeSelectors.add":[".ui-box .ui-box[class='ui-box'] *"],"extraInlineSelectors.add":["[data-tid='closed-caption-text']"],"subtitleRule.add":{type:"live",injectedCss:[".fui-Flex.___8puuoi0.f22iagw.f18w1nra.f1en88kg { flex-direction: column !important; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".ui-box .ui-box[class='ui-box']",textSelectors:["[data-tid='closed-caption-text']"],reportSelector:"[data-tid='closed-captions-renderer']",mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"googleMeet",matches:["meet.google.com"],"excludeSelectors.add":[".iOzk7[jsname='dsyhDe']",".nMcdL.bj4p3b"],"mutationExcludeSelectors.add":[".iOzk7[jsname='dsyhDe'] *"],"extraInlineSelectors.add":[".bh44bd.VbkSUe",".bYevke.wY1pdd"],"subtitleRule.add":{type:"live",injectedCss:[".bYevke.wY1pdd { font-size: 1.2rem !important; }","font.immersive-translate-target-wrapper { font-size: 1.2rem; display: inline-block; padding-left: 55px; }","font.immersive-translate-target-wrapper br { display: none; }"],liveSubtitleRule:{containerSelector:".iOzk7[jsname='dsyhDe']",textContentSelector:".bYevke.wY1pdd",reportSelector:".iOzk7[jsname='dsyhDe']",mutationChangeDelay:1e3,findParentBlockDepth:5,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"tiktok-video",matches:["www.tiktok.com"],"excludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"]'],"mutationExcludeSelectors.add":['[class*="DivVideoClosedCaptionContainer"] *'],"subtitleRule.add":{type:"live",liveSubtitleRule:{containerSelector:'[class*="DivVideoClosedCaptionContainer"]',textSelectors:['[class*="DivVideoClosedCaption "]'],reportSelector:'[class*="DivLeftContainer"]',mutationChangeDelay:1e3,enableTriggerTranslate:!0},rtlInjectedCss:["[data-immersive-translate_rtl] font.immersive-translate-target-wrapper {direction: rtl;}"]}},{id:"openrouter",matches:"openrouter.ai",excludeSelectors:[".line-clamp-1.text-lg",".text-muted-foreground.text-sm.col-span-4.text-right","div[title='Tokens this week']",".text-green-600.font-medium",".text-xl.text-slate-11","button[role='tab']"],globalStyles:{"button.text-primary-foreground":"height: 100%;white-space: normal;word-wrap: break-word;"}},{id:"hoyolab",matches:"www.hoyolab.com","excludeTags.remove":["PRE"],excludeSelectors:[".reply-card__nickname",".mhy-user-card__name",".mhy-account-title__name"],"extraBlockSelectors.add":[".reply-card__content__detail p:first-child",".reply-card-inner-reply__content > p:first-child"]},{id:"chatter.hume.ai",matches:"chatter.hume.ai","extraInlineSelectors.add":["[class*=' flex-wrap'] > span"]},{id:"threads",matches:"www.threads.net",stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x40hh3e.xrvj5dj.xxfwaov",".x6s0dn4.x78zum5",".xpvyfi4.x1xdureb.x1agbcgv",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{"span,.x569fbc":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],"extraBlockSelectors.add":["span.comment-copy"],globalStyles:{".s-post-summary--content-excerpt":"-webkit-line-clamp:unset;"},"excludeSelectors.add":[".votecell","header","#footer","#question-header + div","div.postcell div.mb0","div[id^=comments-link-]","#answers-header",".new-post-login",".form-submit","a[href='/questions/ask']","#left-sidebar","a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]",".s-post-summary--stats",".s-post-summary--meta"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],"additionalExcludeSelectors.add":[".qu-zIndex--action_bar"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container",".media-gallery .usertext",".expando .usertext"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]","[data-testid='post-title-text']",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=comment]",".RichTextJSON-root","[slot=title]","[slot=text-body]","p.title > a","[role=main] .md-container",".room-message-text",".crosspost-title","div.md[id^=t3_]"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},waitForSelectors:["[data-testid=post_author_link]"],"inputConfig.add":{clearContentEnable:!1}},{id:"reddit",matches:"www.reddit.com",selectors:["#search-results-tab-slot","h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-testid='post-title-text']","[data-testid=search-subreddit-desc-text]","[slot=comment]","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","[slot=text-body]","p.title > a","[role=main] .md-container","#-post-rtjson-content",".RichTextJSON-root","[slot='title']",".room-message-text"],excludeSelectors:[".text-neutral-content-weak"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none","[class*='line-clamp']":"-webkit-line-clamp: unset"},"initialGlobalAttributes.add":{"a.inset-0":{style:"inset: unset;"}}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]","[class^=refinitiv-promo-bar__container]","[data-testid=ResponsiveAdSlot]","[data-testid=SiteHeader]","[data-testid=HomeTickerV2]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/","https://github.com/features/*","https://github.com/codespaces","https://github.com/customer-stories/*"],mutationExcludeSelectors:[".react-blob-sticky-header *"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper",".new-feed-onboarding-notice","article section[aria-label='card content'] > div > div > div > div:nth-child(2)",".TimelineItem-body > .Link--primary",'[role="navigation"] p','[data-testid="commit-row-item"] h4',".font-mktg",".search-title,.search-match",".pinned-item-desc","#repo-content-turbo-frame .markdown-title","[app-name='blackbird-search'] [data-hpc='true']",".topic-box > a > p:nth-of-type(2)"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box","[data-testid^='breadcrumbs']"],"extraBlockSelectors.add":[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],"stayOriginalSelectors.add":[".issue-link"],detectParagraphLanguage:!0,globalStyles:{".TimelineItem-body .Link--primary":"-webkit-line-clamp: unset;"}},{id:"github-blog",matches:["github.blog"],injectedCss:["font {word-break: break-all !important;}"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"mfacebook",matches:"m.facebook.com",selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span","[data-type=container][data-mcomponent=MContainer][class='m displayed'] .native-text","[data-mcomponent=ServerTextArea] .native-text"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]","[role=button]"],translationMode:"translation",detectParagraphLanguage:!0},{id:"facebook",matches:"*.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]","[data-pagelet=BizInboxMessengerMessageListContainer] span","[data-pagelet=BizInboxContextCardDetail] span"],"excludeSelectors.add":["[data-ad-comet-preview=message] [role=button]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],translationClasses:["immersive-translate-text"],"injectedCss.add":["._4ik4._4ik5 {max-height:unset!important;}"],skipTrailTextRegex:"\u2026",detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".yt-spec-button-view-model",".yt-core-attributed-string > span",".yt-core-attributed-string",".title"],skipDynamicMarkSelectors:["ytm-comment-replies-renderer"],shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"excludeTags.remove":["BUTTON"],additionalExcludeSelectors:[".ytp-caption-window-container","text",".imt-caption-container"],"mutationExcludeSelectors.add":[".imt-caption-container *"],"excludeSelectors.add":[".ytm-badge-and-byline-item-byline"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",injectedCss:["#player-shorts-container .ytp-caption-window-bottom {top: 40px; bottom: unset!important;}"],videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",translationOnlyPattern:["m.youtube.com/live*","m.youtube.com/watch*","m.youtube.com/embed*","m.youtube.com/shorts*"],rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}"],injectedGlobalCSS:[".caption-window {display: none;} ","shorts-video #immersive-translate-caption-window { height: 150px;}"]}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],"extraBlockSelectors.add":[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,shareConfig:{injectCss:!1,removeSelectors:["iron-iconset-svg","iframe","ytd-watch-next-secondary-results-renderer","noscript","script"]},"additionalExcludeSelectors.add":[".ytp-caption-window-container","text",".imt-caption-container","ytd-button-renderer"],globalStyles:{"#video-title,h1.ytd-watch-metadata,.ytd-video-renderer,.yt-lockup-metadata-view-model-wiz__title":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title,.ShortsLockupViewModelHostOutsideMetadataTitle":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}",".immersive-translate-target-wrapper {text-align: left;}",".immersive-translate-target-wrapper[dir=rtl] {text-align: right;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","yt-formatted-string.span","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","yt-attributed-string > span","ytd-notification-renderer .message","#message",".yt_to_text_transcript_text","video-summary-content-view-model",".yt-core-attributed-string","#title",".product-item-title",".product-item-price"],"extraBlockSelectors.add":["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],"likePreSelectors.add_v.[1.11.7]":["#description-inline-expander .yt-core-attributed-string span","#content-text span"],isTransformPreTagNewLine:!0,"mutationExcludeSelectors.add":[".imt-caption-container *"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube.com/live*","www.youtube.com/watch*","www.youtube.com/embed*","www.youtube.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player.paused-mode .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player.paused-mode video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player.paused-mode",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"youtubekids",matches:["www.youtubekids.com"],blockMinTextCount:0,blockMinWordCount:0,mainFrameMinTextCount:0,mainFrameMinWordCount:0,detectParagraphLanguage:!0,lineBreakMaxTextCount:0,isTranslateTitle:!1,observeUrlChange:!0,globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;",".details.ytk-compact-video-renderer":"height: unset;",".primary-text.ytk-compact-video-renderer":"-webkit-line-clamp: unset;max-height: unset;"},"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player.playing-mode,.html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtubekids.com/live*","www.youtubekids.com/watch*","www.youtubekids.com/embed*","www.youtubekids.com/shorts*"],subtitleButtonSelector:".html5-video-player.playing-mode .ytp-subtitles-button,.html5-video-player .ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:"#player-controls-right",insertBeforeSelector:"#cc-button"},videoSelector:".html5-video-player.playing-mode video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player.playing-mode,.html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 0; bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]},allowTempEnableSubtitle:!0}},{id:"tvYoutube",matches:"tv.youtube.com",mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"youtube",preTranslation:!0,humanPreferred:!1,subtitleUrlRegExp:"(/api/timedtext|videoplayback\\?expire.*text)",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["tv.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;} #immersive-translate-quick-button-container {font-size: 12px;z-index:1001;}"],quickButtonRule:{appendSelector:".ypcs-control-buttons-right",insertBeforeSelector:".ypcs-control-buttons-right .ypcs-volume-control-slot"},videoSelector:".html5-video-player video,.html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"youtube-subtitle",matches:["www.youtube-nocookie.com","music.youtube.com"],"extraBlockSelectors.add":[".caption-visual-line"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":[".captions-text",".ytp-caption-segment"],"subtitleRule.add":{type:"youtube",subtitleUrlRegExp:"/api/timedtext",translateSelectors:[".caption-window",".caption-visual-line"],videoPlayerSelector:".html5-video-player",loadingContainerSelector:".ytp-caption-window-container",videoADSelector:".ytp-ad-player-overlay",translationOnlyPattern:["www.youtube-nocookie.com/embed*","music.youtube.com/watch*"],subtitleButtonSelector:".ytp-subtitles-button",languageSelector:".ytp-menuitem-label",injectedCss:["#shorts-player .ytp-caption-window-bottom {top: 2%; bottom: unset!important;}"],quickButtonRule:{appendSelector:".ytp-chrome-controls",insertBeforeSelector:".ytp-right-controls"},videoSelector:".html5-video-player video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".html5-video-player",injectedCSS:[".imt-caption-container {z-index:40;}",".imt-caption-window {margin-bottom: 2%;}"],injectedGlobalCSS:[".caption-window {display: none;} ","#shorts-player #immersive-translate-caption-window { height: 20%;}",".html5-video-player:not(.ytp-autohide) #immersive-translate-caption-window {bottom: 60px;}"]}}},{id:"instagramMessage",matches:["https://www.instagram.com/direct/*"],wrapperPrefix:"
",selectors:["div[dir=auto].html-div"]},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,excludeSelectors:["hr+div span[dir=auto][style] > span"],"additionalExcludeSelectors.remove_v.[1.4.9]":["h1 br"],selectors:["h1","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","div > div[dir=auto]","div:not([class]) > div > div:nth-child(2)"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y","ul li h3+div span[dir=auto]","hr+div span[dir=auto][style]","span[dir=auto] > div > span","div > h1[dir=auto]"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:[".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;","[class*='_hideSelectio']":"overflow: scroll;"},"extraBlockSelectors.add":[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"],richMoreWordPercent:.8},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page","#welcome_center",".gad_overview_articles_wrapper",".library_article_text h4",".header_name"],excludeMatches:["https://www.inoreader.com/features*","https://www.inoreader.com/blog*","https://www.inoreader.com/discover*","https://www.inoreader.com/contact*","https://www.inoreader.com/pricing*","https://www.inoreader.com/enterprise*"],observeUrlChange:!1,globalStyles:{".article_title_link,.library_article_text h4,.gadget_overview_article_title,.article_magazine_title_link,.reader_pane_view_style_2 .column_view_title":"-webkit-line-clamp: unset;max-height: unset;",".article_tile_content_wraper,div.article_tile":"overflow:auto",".article_header_title":"white-space:normal;max-height: unset;",".article_header_title span":"display:flex !important;flex-direction: column;",".ar.article_no_thumbnail":"height:unset;",".view_style_2 #reader_pane .ar .article_header_text .column_view_info":"position:relative!important;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion",".gs_rt"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"],detectParagraphLanguage:!0},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views","center table",".message"],globalStyles:{"[role='listitem'] > div":"height:auto!important;white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm",".ZfoST.VlT6S.azUpZ"],translationMode:"translation"},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*","excludeSelectors.add":[".styles_extraInfo__Xs_5Y",'[data-test="show-more-shoutouts-button"]',".styles_buttons__kKy_S",".styles_count___6_8F"],globalStyles:{"h5 + p":"height:unset;",'.noOfLines-1,.noOfLines-2,.noOfLines-3,.styles_noOfLines-2__k_Ta_,[data-test="post-name-481116"]':"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*","stayOriginalTags.add":["[class^='MathJax']"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]","div[class^=messagesPopout]","[class^='embedTitle']","[class^='embedDescription']","[class^='promptContent']"],"excludeSelectors.add":["[class*='username']","[class*='repliedMessage']"],"extraBlockSelectors.add":["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"main div[class^=headerText]":"max-height: unset;","main div[class^=message]":"max-height: unset;","main div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: unset;line-height: unset;"},enableRichTranslate:!1,detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2,enableInputDeepActive:!0},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],"extraBlockSelectors.add":[".message.spoilers-container em",".message.spoilers-container strong"],excludeSelectors:[".time",".peer-title",".document-wrapper",".message.spoilers-container custom-emoji-element"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta",".vjs-text-track-display","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/subtitles/.*\\.(vtt|webvtt)$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-js",injectedGlobalCSS:[".vjs-text-track-display {display: none;}",".captions-text: {margin-bottom: 10%;}"]}}},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"],"inputConfig.add":{tutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",tutorialsSelectors:["textarea#APjFqb"]}},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb",".B6fmyf.byrV5b.Mg1HEd"],"extraBlockSelectors.add":[".MUFPAc"],"additionalExcludeSelectors.add":["[jscontroller='UsftYd']"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body",".interview-body",".post-page__content"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"],excludeSelectors:[".notion-code-block"]},{id:"notion_so",matches:["www.notion.so"],injectedCss:["[aria-label='Templates'] font br {display:none;}"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"},"bodyRule.add":{bodySelector:"[data-qa='ArticleList-Item']",articleSelector:"[data-qa='GenericArticle-Content']",xpathRule:["datatype:p"]}},{id:"lesswrong",matches:"www.lesswrong.com","excludeSelectors.add":[".PostsPagePostHeader-authorAndSecondaryInfo",".Answer-answerHeader","time",".CommentsItemMeta-root",".CommentsListMeta-root",".CommentsTableOfContents-tocPostedAt",".CommentsTableOfContents-commentAuthor",".CommentBottom-bottom"],"extraBlockSelectors.add":["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],"globalAttributes.add":{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"},"excludeSelectors.add":["#GlobalNavigation","#GlobalFooter",".LiveBlogHeader-timestampAndShareBarContainer",".LiveBlogHeader-liveUpdatesPill"]},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],"extraBlockSelectors.add":[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*","extraBlockSelectors.add":[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"},"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:".+/([a-z0-9-]+)$"},videoSelector:".plyr__video-wrapper video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".plyr--video",injectedGlobalCSS:""},quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:'[data-plyr="captions"]'}}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],"extraBlockSelectors.add":[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav.player",matches:["https://netflavns1.com","https://embedrise.com"],mainFrameMinTextCount:0,"subtitleRule.add":{type:"av2",avSerial:{type:"url",regexStr:"code=([a-z0-9-]+)"},videoSelector:"#vplayer video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vplayer"},quickButtonRule:{appendSelector:"#vplayer .jw-button-container",insertBeforeSelector:"#vplayer .jw-button-container .jw-icon-cc"}}},{id:"netflav",matches:["https://netflav*.com/*"],globalStyles:{".grid_title":"max-height:unset;"},"extraBlockSelectors.add":[".genre_filter_item","button"],"subtitleRule.add":{type:"av2",avSerial:{type:"selector",selector:".videodetail_2_field_values",serialAttachIframe:"#iframe-block"}}},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},"globalAttributes.add":{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com","*.weibo.*"],excludeMatches:["passport.weibo.com/sso/signin*"],selectors:["div[class^='detail_wbtext']",".weibo-text"],"stayOriginalSelectors.add":[".expand"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols"],selectors:["h1","h2","h3","article section","[aria-hidden='false'] pre","article p",".postMetaInline","a .u-fontSize24"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai",".hx.hy.hz.ia.ib.ab",".qb.ab",".ai.bn.n.mj",".speechify-ignore"],globalStyles:{"h2,h3":"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"},injectedCss:[".u-lineClamp4,.u-lineClamp3,.u-lineClamp2 {-webkit-line-clamp:unset!important;max-height:unset!important;}"]},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"primevideo",matches:["www.primevideo.com","https://*.amazon.co.*/*video*","https://*.amazon.com/*video*"],"excludeSelectors.add":["#dv-web-player"],"mutationExcludeSelectors.add":["#dv-web-player *"],"subtitleRule.add":{type:"ebutt",hookType:"xhr",enableHookDownload:!0,subtitleUrlRegExp:"\\.ttml2$",loadingContainerSelector:"#dv-web-player",quickButtonRule:{appendSelector:'[class*="infobar-container"] > div > div:nth-child(3)'},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; }"]}},{id:"amazon",matches:"www.amazon.*",paragraphMinTextCount:4,paragraphMinWordCount:2,repeatTranslateNum:3,"extraBlockSelectors.add":[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='-star ']","[data-hook='acr-average-stars-rating-text']",".a-color-price"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr"}},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer",".vjs-text-track-display"],"bodyRule.add":{bodySelector:"main article",articleSelector:".body-content"},"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"webvtt$",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"}}},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],"extraBlockSelectors.add":["span.captions","span[id^=cap]"],"excludeSelectors.add":[".bibliography"],"globalAttributes.add":{"#abspara0010 br":{style:"display:none;"}},"bodyRule.add":{bodySelector:"article"},"injectedCss.add":["h2 {font-size:unset;}"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com","extraBlockSelectors.add":"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` `},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body","extraBlockSelectors.add":["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"],"extraBlockSelectors.add":[".mp-nav a"],isTransformPreTagNewLine:!0},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"},"excludeSelectors.add":["thead"]},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:["chat.openai.com","chatgpt.com"],excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__Tz3HQ *",".MarkdownLink_linkifiedLink__KxC9G","menu","aside"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__Tz3HQ",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3},globalStyles:{"[class^='BotListItem_botDescription']":"-webkit-line-clamp: unset;"}},{id:"janitorai",matches:["https://janitorai.com"],excludeSelectors:["[data-testid=virtuoso-scroller] .css-10c6i1g *"],aiRule:{streamingSelector:"button[aria-label=Cancel]",messageWrapperSelector:"[data-testid=virtuoso-scroller] .css-10c6i1g",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1500}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"steamcommunity.com",globalStyles:{".forum_topic,.rightbox_list_option":"height:auto;",".forum_topic_name":"white-space:normal;line-height: 1.25rem; padding: 6px 20px 0 0;",".forum_topic_op":"clear: left; padding: 0 0 6px 2rem;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampoweredApp",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content",".ModalOverlayContent"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"steampowered",matches:"store.steampowered.com",detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeMatches:"https://www.nature.com/articles/*.pdf",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:["https://www.webofscience.com/*","https://webofscience.clarivate.*/*","www-webofscience-com-*.*","webofscience-clarivate*.*","*.ustc.edu.*/*wos*"],globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},"excludeSelectors.add":["app-custom-breadcrumbs",".summary-left-panel",".authors","app-full-record-keywords mark","mat-sidenav","[name=pubdate]","[data-ta^=Summary-]","app-summary-authors",".search-text",".mat-drawer-inner-container","[class*='sidenav-panel']"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],"extraBlockSelectors.add":["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://*.jetbrains.com","extraBlockSelectors.add":["[data-test=prompt]"],"additionalExcludeSelectors.add":[".comment__info"],"globalStyles.add":{".card p,.card h4":"-webkit-line-clamp:unset;"}},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"openaiDocs",matches:"https://platform.openai.com/docs*","excludeSelectors.add":[".pheader"]},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails","#_nav_group_README","p.SearchSnippet-infoLabel"]},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com","extraBlockSelectors.add":["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],"extraBlockSelectors.add":"font[face=verdana]",enableRichTranslate:!1},{id:"im.zendesk",matches:"https://immersivetranslate.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"],"excludeSelectors.add":["blockquote"]},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;",".lt2ar2q.EhHcMiw":"height:unset; max-height: unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/","extraBlockSelectors.add":[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexity",matches:"https://www.perplexity.ai",excludeMatches:["https://www.perplexity.ai/hub/*","https://www.perplexity.ai/onboarding","https://www.perplexity.ai/enterprise*"],globalStyles:{"[class*=line-clamp]":"-webkit-line-clamp: unset !important;"},"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3},additionalStayOriginalSelectors:["a.citation","[class='my-md pb-xs pt-sm']"],selectors:[".prose",".my-md",".line-clamp-2",".line-clamp-1","[data-testid=thread-title]","[class='rounded-md duration-150']"]},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"urlChangeDelay",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*","https://platform.openai.com/docs/*","docs.oracle.com","docs-cortex.paloaltonetworks.com","forum.m5stack.com/topic/*","community.m5stack.com/topic/*"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u91CD\u590D\u7FFB\u8BD1\u95EE\u9898"},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{"globalAttributes.add":{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],"excludeSelectors.add":["footer:last-of-type","nav","header div.subtitle-2.w-full"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}},"extraInlineSelectors.add":[".term-wrapper","span.description"]},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],"additionalExcludeSelectors.add":[".username",".post-infos",".topic-category",".topic-timeline",".topic-map",".topic-list-header",".number",".activity"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout,.SelectedEntryScroller > div":"height:unset !important;",".EntrySummary--u4,.EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text","[role=list]"],wrapperPrefix:` -`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{generalSetting:{startKey:"start",endKey:"end",textKey:"text",timeDivisor:1e3},attachRule:{appendSelector:".video-wrapper",injectedGlobalCSS:[".closed-captions {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 15%;}"]}}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};function er(e){if(e.beta)return!1;if(je()&&e.spVersion)return Bi(Pr(),e.spVersion);if(R5()&&e.gspVersion){let t=I5();if(t)return Bi(t,e.gspVersion)}if(Tl()&&e.ispVersion){let t=P5();if(t)return Bi(t,e.ispVersion)}return!1}function Bi(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Ml(e){e.message?.indexOf("token invalid")>=0&&(tt.remove(mt),xl())}async function ur(e){let n=(await Ze())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),CF(a.toString())}function CF(e){try{je()?Ea(e):globalThis.open(e)}catch{globalThis.open(e)}}function uv(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function lv(e){return At(e)}function Sd(e){return e?e.map(n=>{let r=SF(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=_i();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function SF(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function xd(e){return Array.isArray(e)?e:e?[e]:[]}function qn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Jt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Td(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function wd(e,t){let n={...e};return pv(n,t),xF(n,t),n}function gv(e,t,n){let r={...e};return Aa({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Aa({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function xF(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;pv(e,a)}function Aa({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=cv(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,b]=cv(i);o=g+"."+p,s=f,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=xd(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!dv(u))return;m=a4(c,l)}else if(s=="remove_v"){if(!dv(u))return;m=mv(c,l)}else s==="add"?m=a4(c,l):s=="remove"&&(m=mv(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=a4(c,l):m=l,r(o,m)})}function pv(e,t){return Aa({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function a4(e,t){let n;if(Array.isArray(e)){let r=xd(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function cv(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function dv(e){let t=On();return e&&Bi(t,e)}function mv(e,t){if(Array.isArray(e)){let n=xd(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var fv="userConfig",Ed="userPromptPool",Ad="userObjectPool";async function kd(){let e=await Sv(fv)||{},t=await Do(Ed)||{},n=await Do(Ad)||{};return TF(e,t,n)}async function hv(e){let{userConfig:t,promptPool:n,objectPool:r}=await i4(e);await Cv(fv,t),await Qr(Ed,n),await Qr(Ad,r)}function i4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return bv(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),yv(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function TF(e,t,n){return bv(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),yv(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function bv(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function yv(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Oi(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=vv(r);for(let o of i)delete a[o]}),n}function o4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=vv(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function vv(e){let t=Yr[e]?.allProps||[];e.startsWith("custom-ai")&&(t=Ts.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Lo(){if(Ae.PROD==="1")return{};let e={};if(Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ae.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ae.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ae.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ae.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ae.DEEPL_PROXY_ENDPOINT),Ae.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ae.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ae.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ae.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ae.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ae.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ae.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ae.MOCK==="1"&&(t.translationService="mock"),t}async function Mt(){let e=await j.storage.local.get(ts);if(e[ts]){let t=e[ts],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await kt(i),i}else return{}}async function kt(e){await j.storage.local.set({[ts]:e})}async function S5(e){await j.storage.local.set({[Wc]:e})}async function Tv(){return Ae.DEBUG==="1"?void 0:(await j.storage.local.get(Wc))[Wc]}async function Ns(){await j.storage.local.set({[ts]:{}})}async function Us(){let e=await Tv(),n={...await s4(),...Cd,buildinConfigUpdatedAt:Ae.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function Ze(){let e=await Tv(),t={...Cd,buildinConfigUpdatedAt:Ae.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let U=new Date(e.buildinConfigUpdatedAt),F=new Date(t.buildinConfigUpdatedAt);U>F&&(t=e)}let n=await AF(t);t.targetLanguage=n;let r=await tt.get(mt,null),a={};if(!Z()&&j.commands&&j.commands.getAll){let U=await j.commands.getAll();for(let F of U)F.name&&F.shortcut&&(a[F.name]=F.shortcut)}let i=await s4(),o=Lo(),s=await cn(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Mt(),c=new Date,m=Object.assign({},u,o,s);if(!m.interfaceLanguage){let U=await wF();m.interfaceLanguage=U}let g=m.interfaceLanguage==="en",p=m.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,b=["bing","google","transmart","mock"].includes(m.translationService)||!m.translationService;!g&&!p&&!f&&b?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let y=t&&t.enableDefaultAlwaysTranslatedUrls;m.enableDefaultAlwaysTranslatedUrls===!1&&(y=!1);let h=m&&m.isChangedAlwaysTranslatedUrls,v=[];m.translationUrlPattern&&m.translationUrlPattern.matches&&(v=m.translationUrlPattern.matches||[]);let C=!1;h===void 0&&(v.length>0?h=!0:h=!1,m.isChangedAlwaysTranslatedUrls=h,s.isChangedAlwaysTranslatedUrls=h,C=!0);let x=(m?.translationLanguagePattern?.matches?.length||0)>0,S=await Bt("installedAt",""),T=Number(await Eo("translage_page_daily",0)),w=Number(await Bt(kr,0)),A;w>0&&(Date.now()-w0&&(Date.now()-T0){let U=l.tempTranslationUrlMatches.filter(F=>new Date(F.expiredAt)>c);if(U.length>0){let F=m.translationUrlPattern?m.translationUrlPattern?.matches||[]:[],q=Array.isArray(F)?F:[F],Y=Array.from(new Set(q.concat(U.map(te=>te.match))));m.translationUrlPattern={...m.translationUrlPattern,matches:Y}}}let R=Object.assign(i,t);Aa({rule:t,valueIsArray:U=>Array.isArray(i[U]),getMergedValue:U=>i[U],onMergedResult:(U,F)=>{U!="generalRule"&&(R[U]=F)}}),Aa({rule:t.generalRule,valueIsArray:U=>Array.isArray(i.generalRule[U]),getMergedValue:U=>i.generalRule[U],onMergedResult:(U,F)=>{R.generalRule[U]=F}}),LF(R,S),kF(r,m,R);let B=Object.keys(R),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let U of B){let F=U;if(F==="generalRule")typeof m[F]=="object"&&(R[F]=wd(R[F],m[F]));else if(F==="translationServices")DF(m,R);else if(typeof m[F]!="string"&&typeof m[F]!="boolean"&&typeof m[F]!="number"&&L.includes(F))m[F]&&(R[F]=Object.assign(R[F],m[F])),F==="shortcuts"&&(Z()||je()?R[F]={...R[F],...a}:R[F]={...a});else if(F==="rules"){if(Array.isArray(m[F])){let q=R.rules||[],Y={};for(let xe of q)xe.id&&(Y[xe.id]=xe);let te=m[F].map(xe=>xe.id&&Y[xe.id]?gv(R.generalRule,Y[xe.id],xe):xe);R[F]=[...te,...R[F]]}if(Ae.PROD==="0"&&Ae.DEV_RULES){let q=JSON.parse(Ae.DEV_RULES);R[F]=[...q,...R[F]]}}else m[F]!==void 0&&(R[F]=m[F])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R.rawUserConfig=s,R}function cn(){return kd()}function sr(e){return hv(e)}async function Cv(e,t){await j.storage.sync.set({[e]:t})}async function Sv(e){return(await j.storage.sync.get(e))[e]}async function Qr(e,t){await j.storage.local.set({[e]:t})}async function Do(e){return(await j.storage.local.get(e))[e]}var wv={};function Dd(e){return wv[e]}function Ev(e,t){wv[e]=t}var wF=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>re(r)).find(r=>sd.find(a=>a===r));return n||"en"},s4=async()=>{let e={...Cd,buildinConfigUpdatedAt:Ae.BUILD_TIME};return{...e,targetLanguage:yi,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function EF(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function AF(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return yi;let n=await Bt("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=xv(l,r[s]))}),Aa({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=xv(l,n[s]))}),Aa({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function LF(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function xv(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}var Av=null;if(typeof trustedTypes<"u")try{Av=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var kv=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(kv=!0)});function Ld(){return kv}var Or=Av;function Lv(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(PF(t,o))return"";i=Dv(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(y=>{let h=Dv(t,y);if(c+=f(y),u&&h!=u){b(),u=h,l=f(y)||"";return}u=h,l+=f(y)||""}),b();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` +`,wrapperSuffix:"
","additionalExcludeSelectors.add":["[aria-hidden=true]"],"extraInlineSelectors.add":[".selectable-text",".selectable-text *"],"atomicBlockSelectors.add":[".selectable-text",".selectable-text *"],enableRichTranslate:!1},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],"excludeSelectors.add":[".tptxt"],globalStyles:{"[class*='lineclamp'],.b_title":"-webkit-line-clamp:unset;"}},{id:"bingNews",matches:"https://*.bing.com/news/search*",globalStyles:{".newsitem .title":"max-height: none; -webkit-line-clamp: 10",".newsitem .snippet":"max-height: none; -webkit-line-clamp: 10"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],"extraBlockSelectors.add":[".SIPGg",".sc-kzMCTH.pSZXj"],"likePreSelectors.add":[".highLightSearchTarget"],isTransformPreTagNewLine:!0,detectParagraphLanguage:!0,globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"],"injectedCss.add":".immersive-translate-target-wrapper br {display:none;}"},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*","globalAttributes.add":{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}","footer {line-height: unset!important;;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},"globalAttributes.add":{"#app":{class:""}}},{id:"piAi",matches:"pi.ai/talk",globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *",".code-block__code"],"excludeTags.remove":["PRE"],injectedCss:["[data-testid='chat-menu-trigger'] br {display:none;}","[data-test-render-count] {overflow: scroll;}"],aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1,streamingDelayTime:1e3}},{id:"feishu",matches:["*.feishu.cn","*.larkoffice.com","*.larksuite.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],"excludeSelectors.add":[".catalogue__list"],richMoreWordPercent:"0.8"},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",excludeTags:["i","button"],matches:"www.kaggle.com","excludeSelectors.add":[".sc-kHItYk.kCjSZT",".sc-hagvSa.guBIfV",".sc-jhZTHU.btgPPn"],"injectedCss.add":[".km-listitem--large,.erdMHP {height:unset !important;}","[role=listitem] {overflow:scroll;}","[role=listitem] div {-webkit-line-clamp:unset;}"]},{id:"ieee",matches:"spectrum.ieee.org","extraBlockSelectors.add":["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"*.cnn.com","excludeSelectors.add":[".ad-slot-header__wrapper","#pageFooter"],"bodyRule.add":{bodySelector:".layout__content-wrapper",articleSelector:".article__content-container"}},{id:"marginalrevolution",matches:"marginalrevolution.com","globalAttributes.add":{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",matches:"www.bilibili.com","excludeSelectors.add":[".bpx-player-subtitle-panel-text"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"aisubtitle.hdslb.com/bfs",loadingContainerSelector:".bpx-player-subtitle-panel",generalSetting:{itemsPath:"body",textKey:"content",startKey:"from",endKey:"to"},injectedCss:["div[data-screen=full] #immersive-translate-quick-button-container { margin-top: 4.5px !important;}"],quickButtonRule:{appendSelector:".bpx-player-control-bottom-right",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}",insertBeforeSelector:".bpx-player-ctrl-quality",ccEnableSelector:".bpx-player-ctrl-subtitle"}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:["pubmed.ncbi.nlm.nih.gov","pubmed*.pubmed*","*.ncbi.nlm.nih.gov"],urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share",".arrow-link",".multiple-results-actions",".sort-dropdown .option-label",".display-options .button-label",".actions-buttons.sidebar",".title-copy"],enableRichTranslate:!1,"enableRichTranslate.add_v.[1.9.7]":!0,"extraBlockSelectors.add":[".mixed-citation"],"globalAttributes.add":{"#Scholarscope_HighlightContent":{class:""},"#Scholarscope_HighlightOrigin":{class:"Scholarscope_HighlightContents"}},mutationExcludeContainsSelectors:["#Scholarscope_HighlightContent highlight"],mutationExcludeSelectors:["#Scholarscope_HighlightContent","#Scholarscope_HighlightContent span"],injectedCss:["#Scholarscope_HighlightOrigin > p font,#Scholarscope_HighlightContent > p font {display: inline!important;}","#Scholarscope_HighlightOrigin > p font br,#Scholarscope_HighlightContent > p font br {display: none!important;}",".title-translate {display:block;}"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"initialSelectorGlobalAttributes.add":{aside:{sideHead:"1","default-translate":"no"}},"excludeSelectors.add":[".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"*.mail.qq.com",useIframePostMessage:!1,"excludeSelectors.add":[".xmail-cmp-account"],globalStyles:{".mail-list-page-wide-item":"height:unset;"}},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"],injectedCss:["font {font-family: sans-serif !important;}"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]},{id:"arca",matches:"arca.live","excludeTags.remove":["PRE"],globalStyles:{".vrow.column":"height:unset !important;"}},{id:"chatpdf",matches:["www.chatpdf.com"],"additionalExcludeSelectors.remove":[".notranslate"],excludeSelectors:[".chat-message-row.ai *",".pdf-viewer"],aiRule:{streamingSelector:"",messageWrapperSelector:".chat-message-row.ai",streamingChange:!1,streamingDeepChild:!0,streamingDelayTime:1e3}},{id:"inciteful",matches:["inciteful.xyz"],"excludeTags.remove":["BUTTON"]},{id:"app.element.io",matches:["app.element.io"],"additionalExcludeSelectors.remove":[".notranslate"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_ReplyChain_wrapper",".mx_ThreadSummary_replies_amount"]},{id:"mkdocs-material",selectorMatches:[".md-container[data-md-component]"],excludeSelectors:[],selectors:["article",".md-sidebar__inner"],"injectedCss.add":[".md-sidebar__inner .immersive-translate-target-wrapper {display: inline-flex;}"]},{id:"termynal",selectorMatches:["link[href*='termynal.css']"],"stayOriginalSelectors.add":[".termy"]},{id:"cpb-nl",matches:["www.cpb.nl"],"bodyRule.add":{enable:!1}},{id:"hub.logseq",matches:["hub.logseq.com"],globalStyles:{"[class*=':h-[']":"height:unset;"}},{id:"chat.zalo",matches:["chat.zalo.me"],"additionalExcludeSelectors.remove":[".notranslate"],inputExecCommandDeleteEnable:!0,"inputConfig.add":{execCommandDeleteEnable:!0}},{id:"epam",matches:"*.epam.com",globalStyles:{"[class*='ContentAnchorLinkList']":"word-break:unset;"},"excludeSelectors.add":["#blog-page-sidebar-wrapper"],"excludeTags.remove":["BUTTON"]},{id:"discussions.apple",matches:"discussions.apple.com","excludeSelectors.add":[".page-number"]},{id:"www.sixthtone.com",matches:["www.sixthtone.com"],"excludeSelectors.add":["#footer","[class^=index_time]","[class^=index_anthorList]","[class^=index_node]","[class^=index_popupWrapper]"]},{id:"forum.unity",matches:["forum.unity.com"],"excludeSelectors.add":[".bbCodeCode"]},{id:"wattpad",matches:["www.wattpad.com"],"excludeTags.remove":["PRE"],"globalAttributes.add":{header:{translate:"unset;"}},globalStyles:{".story-info .item-description":"overflow: scroll;"}},{id:"netflix",matches:["www.netflix.com"],"excludeSelectors.add":[".player-timedtext"],"mutationExcludeSelectors.add":[".player-timedtext *"],"subtitleRule.add":{type:"netflix",loadingContainerSelector:".watch-video",subtitleUrlRegExp:"^https://.+?.oca.nflxvideo.net/\\?([ovet]=[^=]+){4}$",loadingStyle:"bottom: 15%;",quickButtonRule:{appendSelector:'[data-uia="control-audio-subtitle"]',insertBeforeSelector:'[data-uia="control-audio-subtitle"]',injectCSS:".imt-quick-subtitle-button {height: 60%; margin-right: 50px; font-size: 20px; } .logo,.logo svg { height: 36px; width: 36px} .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(50%); right: 0}"},attachRule:{appendSelector:".watch-video",injectedGlobalCSS:".player-timedtext {display:none!important;}",injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 10%;}"]},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],enableHookDownload:!0}},{id:"udemy",matches:["*.udemy.com"],"excludeSelectors.add":["[data-purpose='captions-cue-text']",".shaka-text-container"],"mutationExcludeSelectors.add":["[data-purpose='captions-cue-text'] *",".shaka-text-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://vtt.*\\.udemycdn\\.com/.*\\.vtt",videoPlayerSelector:"video.shaka-video",humanTrust:85,loadingContainerSelector:".shaka-video-container",loadingStyle:"bottom: 15%;",injectedCss:["[class^='well--text'] {white-space: pre;}"],quickButtonRule:{appendSelector:'[data-purpose="video-controls"]'}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"iview",matches:"iview.abc.net.au",excludeSelectors:[".jwplayer"],"mutationExcludeSelectors.add":[".jwplayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/cc/.*\\.(vtt|webvtt)$",loadingContainerSelector:".jwplayer",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:".jw-settings-submenu-button",injectCSS:".imt-quick-subtitle-pop-content {z-index: 999999;}"},attachRule:{appendSelector:".jwplayer",injectedGlobalCSS:[".jw-text-track-container {display:none!important;}"]}}},{id:"nmaart",matches:"www.nma.art",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"patreon",matches:"www.patreon.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".sc-m5ts00-1.ejfyrG > div:last-child",insertBeforeSelector:".sc-m5ts00-1.ejfyrG > div:last-child > button",injectCSS:".label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 0 8px;}"}}},{id:"thaipbs",matches:["www.thaipbs.*","players.brightcove.net"],excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-subs-caps-button",injectCSS:".imt-quick-subtitle-button { height: 60%; } .label { display: none; } .logo,.logo svg { width: 70%; } .imt-quick-subtitle-button { margin: 6px 8px 0;}"}}},{id:"hstream",matches:"hstream.moe",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"/texttrack/.*\\.(vtt|webvtt)",loadingContainerSelector:".video-container",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"video-js[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"zenva",matches:"academy.zenva.com",excludeSelectors:[".video-container"],"mutationExcludeSelectors.add":[".video-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-playback-rate"},attachRule:{appendSelector:"#video-sidebar-wrapper",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]}}},{id:"apple",matches:"developer.apple.com",excludeSelectors:[".developer-video-player"],"mutationExcludeSelectors.add":[".developer-video-player *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.(vtt|webvtt)"}},{id:"khanacademy",matches:["www.khanacademy.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ka-video-player-container"},"stayOriginalSelectors.add":[".mathjax-wrapper"]},{id:"nebula",matches:["nebula.tv"],"excludeSelectors.add":["[data-subtitles-container='true']"],"mutationExcludeSelectors.add":["[data-subtitles-container='true'] *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".video-poster",quickButtonRule:{appendSelector:".icon-spacing.css-4yh7a0",insertBeforeSelector:"#subtitles-toggle-button",ccEnableSelector:"#subtitles-toggle-button"},attachRule:{appendSelector:"#video-player-controls-wrapper",injectedGlobalCSS:["div[data-subtitles-container='true'] { display: none !important; }"]}}},{id:"mangaplus-shueisha",matches:["mangaplus.shueisha.*"],"excludeSelectors.add":[".zao-surface"],injectedCss:{".zao-image-container":"position: relative;"},"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".zao-surface .zao-image"],loadingSelectors:[".zao-image-container"]},_comment:"all"},{id:"zebrack-shueisha",matches:["zebrack-comic.shueisha.*"],"excludeSelectors.add":[".eAvsta_root"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".eAvsta_root img.G54Y0W_page"],loadingStyle:"z-index: 9999;",loadingSelectors:["[data-testid='placeholder']"]},_comment:"all"},{id:"hentai",matches:["e-hentai.org"],"excludeSelectors.add":["#i3"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#i3 #img","#sd img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#i3","div"]}},{id:"manga18",matches:["manga18.club"],"imageRule.add":{type:"manga",imageSelectors:[".image_story img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhuapica",matches:["manhuapica.com"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"Tencent-Manga",matches:["m.ac.qq.com"],"imageRule.add":{type:"manga",imageSelectors:[".comic-pic"],platforms:["chrome","firefox","safari"]}},{id:"fhentai",matches:"fhentai.net","imageRule.add":{type:"manga",imageSelectors:["img[loading='lazy']"],loadingSelectors:["div"],platforms:["chrome","firefox","safari"]}},{id:"visortmo",matches:["visortmo_notranslate.com"],"imageRule.add":{type:"manga",imageSelectors:[".img-container img"],loadingSelectors:["div"]}},{id:"hitomi",matches:["hitomi.la"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:["#comicImages img","#mobileImages img"],imageStyle:"margin:auto;",injectedCss:"#comicImages.fitVertical img {margin:auto;}",urlFetchType:"img",loadingSelectors:["picture"]},_comment:"\u63D2\u5165\u56FE\u7247\u95EA\u52A8"},{id:"acgmhh",matches:"acgmhh.com","imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".manga-picture img"],imageStyle:"margin:auto;",loadingSelectors:["picture"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"177picyy",matches:"www.177picyy.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".single-content img"],loadingSelectors:["p"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"yymanhua",matches:"yymanhua.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#cp_img img"],inValidSrcRegex:["loading.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","imtAndroid"]}},{id:"antbyw",matches:"www.antbyw.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#jameson_manhua img","#jamesonreadtouch img"],inValidSrcRegex:["ajax-loader.gif"],loadingSelectors:["div"],platforms:["chrome","firefox","safari","imtAndroid"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"jmanga",matches:["jmanga.org","jmanga.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container-reader-chapter img"],platforms:["chrome","firefox","safari","imtAndroid"],injectedCss:".imt-image-status {animation: immersiveTranslateShadowRolling 1.5s linear infinite!important;z-index:9;}",inValidSrcRegex:["data:image/gif"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"twicomi",matches:"https://twicomi.com/manga*","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".image img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",_comment:"all"}},{id:"wnacg",matches:["wnacg.com","www.wnacg.com","www.wn02.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#imgarea img","#img_list img"],loadingSelectors:["a","div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"nhentai",matches:"nhentai.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari"],loadingSelectors:["section"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"kemono",matches:"kemono.su","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".post__thumbnail figure img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},"excludeTags.remove":["PRE"]},{id:"mangadistrict-manhwaclan",matches:["mangadistrict2.com","manhwaclan.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break.no-gaps img"],loadingSelectors:["div"],inValidSrcRegex:["blank.gif"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"wn01",matches:"www.wn01.cc","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#img_list img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"fantia",matches:"fantia_notranslate.*","imageRule.add":{enable:!0,type:"manga",imageSelectors:["picture.article__atomic-block img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"pash-up",matches:"pash-up.jp","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["#canvasCluster canvas","#viewport1 canvas"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"colamanga",matches:"www.colamanga.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".mh_comicpic img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"ganganonline",matches:"*.ganganonline.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[decoding='async']"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"},_comment:"all"},{id:"bato",matches:["bato.to","battwo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#viewer img","div[name='image-item'] > div > img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:2147483647 !important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"asuracomic",matches:"asuracomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='chapter page']"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"lezhinus",matches:"www.lezhinus.com",_comment:"\u56E0\u4E3A\u90E8\u5206\u5185\u5BB9\u662Fcanvas\uFF0C\u7981\u6B62\u8BFB\u53D6"},{id:"allmanga",matches:"allmanga.to","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#pictureViewer img"],loadingSelectors:["div"],inValidSrcRegex:["data:image/gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"allporncomic",matches:"allporncomic.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".read-container img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"mangaz",matches:"*.mangaz.com","imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:[".page_image canvas",".page_image img"],injectedCss:".imt-image-status { width: 30% !important; } #book > .imt-image-status { opacity: 0; } .imt-img-loading { background-image: none !important; }",platforms:["chrome","firefox"]}},{id:"girls-h-comics",matches:"girls-h-comics.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".moviebese img"],inValidSrcRegex:["data:image/gif"],loadingSelectors:["p"]}},{id:"futabanet",matches:["gaugau.futabanet_block_too_much.jp"],"imageRule.add":{type:"manga",imageSelectors:[".works_tateyomi__wrap img",".pt-img img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"web-ace",matches:["web-ace.*"],"imageRule.add":{type:"manga",imageSelectors:["img.viewerFixedImage"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"toonily",matches:["toonily_notranslate.me"],"imageRule.add":{type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"omegascans",matches:["omegascans_notranslate.org"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["main #content .container .flex-col img[data-src]"],injectedCss:".imt-image-status {top:5%!important;}",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"zerobywzz",matches:"www.zerobywzz.com","imageRule.add":{type:"manga",imageSelectors:[".uk-text-center img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"idmzj",matches:"www.idmzj.com","imageRule.add":{type:"manga",imageSelectors:[".scrollbar-demo-item img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"bomtoon",matches:["www.bomtoon_notranslate.com"],"imageRule.add":{type:"manga",urlFetchType:"img",imageSelectors:["img[data-nimg]"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 100% 0px"}},{id:"yamibo",matches:["www.yamibo.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-responsive",".needsclick img"],urlFetchType:"img",platforms:["chrome","firefox","imtAndroid"],loadingSelectors:["div"]}},{id:"copymanga",matches:["www.copymanga.site"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".comicContent-list img",".van-image img"],inValidSrcRegex:["loading.jpg"],loadingSelectors:["li"]}},{id:"readcomiconline",matches:["readcomiconline.li","readcomic.me"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#divImage img",".page-chapter img"],loadingSelectors:["p","div"],inValidSrcRegex:["blank.gif"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome"]}},{id:"shonenjumpplus",matches:["shonenjumpplus.com","viewer.heros-web.com","comic-days.com","www.corocoro.jp"],selectorMatches:["canvas.page-image.js-page-image","img.page-image.js-page-image"],"imageRule.add":{type:"manga",imageSelectors:[".js-page-area canvas","img.page-image.js-page-image",'img[class$="_page"]'],injectedCss:".align-right.imt-image-status {right: 0px;} .align-left.imt-image-status {left:20%;} .is-touch .imt-image-status {left:50%;right:unset;}",opImageType:"append",loadingSelectors:["p"]},"injectedCss.add":["[class^='Original_section_title'] {overflow:hidden!important;}"],_comment:"all"},{id:"comic-top",matches:"comic-top.com","imageRule.add":{type:"manga",imageSelectors:[".page-wrapper img",".reader-area img"],urlFetchType:"img",loadingSelectors:["div"]}},{id:"jumptoon",matches:["jumptoon_tiaoman.com"],"imageRule.add":{type:"manga",imageSelectors:["#viewer-scroller canvas"],urlFetchType:"canvasArgs",opImageType:"append",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-trail",matches:["comic-trail.com"],"imageRule.add":{type:"manga",imageSelectors:["p.js-page-area"],urlFetchType:"canvasArgs",opImageType:"append",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","userscript","imtAndroid","imtIOS"]}},{id:"comic-walker",matches:["comic-walker.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class^='_mainScreen'] canvas"],injectedCss:".imt-image-status {direction:ltr;}",opImageType:"append",loadingSelectors:["div"]}},{id:"mangabuddy",matches:["mangabuddy.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images img"],loadingSelectors:["div"],platforms:["chrome"],injectedCss:".imt-image-status {top:10%!important;}",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comick",matches:["comick.io"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.reader-container div[id*="page"] img'],platforms:["chrome","firefox","safari"]}},{id:"manga18fx",matches:["manga18fx.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"manhwa-raw",matches:["manhwa-raw.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".reading-content img"],urlFetchType:"img",loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","safari"]}},{id:"manhwato",matches:["manhwato.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-chapter img"],loadingSelectors:["div"],injectedCss:".imt-image-status {top:5%!important;}",intersectionRootMargin:"0px 0px 200% 0px",platforms:["chrome","firefox","imtAndroid"]}},{id:"manhwatop",matches:["manhwatop.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:['.page-break img:not(.lazyloading)[src*="https://"]'],loadingSelectors:[".page-break"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","imtAndroid"]}},{id:"pixiv",matches:["www.pixiv.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[data-page] > img","[dir='vert'] img",".img-wrapper img[class='page']",".work-thumb",'[role="presentation"] img'],platforms:["chrome","firefox"],loadingSelectors:["[data-page]",".gtm-manga-viewer-open-button",'[role="presentation"]',"div"]}},{id:"newtoki341.com",matches:["newtoki_notranslate*.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".view-padding p > img",".view-padding div > img",".view-img img"],loadingSelectors:[".view-padding p",".view-img a"],inValidSrcRegex:["loading-image.gif"],platforms:["chrome","firefox"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"nicovideo",matches:["seiga.nicovideo.*/watch/mg*"],"excludeSelectors.add":[".page"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page .note canvas:first-child",".page .note > img:first-child"],inValidSrcRegex:["placeholder.png"],loadingSelectors:[".note"],opImageType:"append",imageStyle:"position:absolute;z-index:99;width:100%;height:100%;"}},{id:"h5_nicovideo",matches:["sp.*.nicovideo.*/watch/mg*"],"mutationExcludeSelectors.add":[".stream_comment"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".react-swipe-container canvas",'[role="presentation"] canvas'],opImageType:"append",inValidSrcRegex:["placeholder.png"],loadingSelectors:["[data-index]","[id]"],imageStyle:"position:absolute;z-index:1;width:100%;height:100%;",disableMarkSelector:".react-swipe-container",intersectionRootMargin:"0px 0px 200% 0px"}},{id:"comic-fuz",matches:["comic-fuz.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["[class*='viewer_wrapper'] img"],loadingSelectors:['[data-testid="placeholder"]'],inValidSrcRegex:[".svg"]},_comment:"all"},{id:"mangadex",matches:["mangadex.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["[class*='reader-pages'] img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px",injectedCss:".imt-image-status {top:10%!important;}"},_comment:"all"},{id:"kuaikanmanhua",matches:["*.kuaikanmanhua_notranslate.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-box img",".comic-pics img"],loadingSelectors:["div"],intersectionRootMargin:"0px 0px 200% 0px"}},{id:"sexkomix2",matches:["sexkomix2.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".fancybox img"],loadingSelectors:["li"]}},{id:"mangapark",matches:["mangapark.net","mangapark.to"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[data-name='image-show'] img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"mangaflame",matches:["mangaflame.org"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],injectedCss:".imt-image-status {top:1%!important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"templetoons",matches:["templetoons.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["img[alt^='Chapter']"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"poipiku",matches:["poipiku.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".IllustItemThumb img"],loadingSelectors:[".IllustItemThumb"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"batocomic",matches:["batocomic.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["div[name='image-item'] img","div[class*='item'] img"],loadingSelectors:["div"],injectedCss:".imt-image-status {z-index:999 !important;}",platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manhwahub",matches:["manhwahub.net"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".page-break img"],injectedCss:".imt-image-status {top:10%!important;}",platforms:["chrome","firefox","safari"]}},{id:"hentaizap",matches:["hentaizap.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"insertFirst",imageSelectors:[".fw_img img#fimg:first-of-type"],platforms:["chrome","firefox","safari","imtIOS"]}},{id:"manwadb-xyz",matches:["manwadb.xyz"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid","imtIOS"]}},{id:"manhuabika",matches:["manhuabika.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#chapter-images-id img"],platforms:["chrome","firefox","safari"]}},{id:"comic-action",matches:["comic-action.com"],"imageRule.add":{enable:!0,type:"manga",opImageType:"append",imageSelectors:["canvas.page-image"],platforms:["chrome","firefox","safari"]}},{id:"manwadb",matches:["manwadb.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari"]}},{id:"frontendmasters",matches:["frontendmasters.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container { order: 2; position: absolute; right: 0; bottom: 35%; } .imt-quick-subtitle-pop-content {z-index: 2147483647}"],quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},videoSelector:".PromoPlayer video"}},{id:"udacity",matches:["*.udacity.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".vtt$",loadingContainerSelector:".vjs-text-track-display"}},{id:"skillshare",matches:["www.skillshare.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt\\?",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 13}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-volume-panel",injectCSS:" .label { display: none; } .imt-quick-subtitle-pop-content {transform: translateX(43%); right: 0; z-index: 2147483647 } "},attachRule:{appendSelector:"div[id^='vjs_video']",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"],injectedCSS:[]}}},{id:"tubitv",matches:["tubitv.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",hookType:"fetch",quickButtonRule:{appendSelector:".T8nOy",insertBeforeSelector:"#languageArea"},attachRule:{appendSelector:'div[data-id="hls"]',injectedGlobalCSS:['div[data-id="captionsComponent"] { display: none !important; }']}}},{id:"domestika",matches:["www.domestika.org"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",enableHookDownload:!0,subtitleUrlRegExp:".*subtitles.*\\.vtt",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".controlBar-wrapper .right-wrapper",insertBeforeSelector:".vjs-volume-panel"}}},{id:"svtplay",matches:["www.svtplay.se"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:'[data-rt="video-player-container"]',quickButtonRule:{appendSelector:"[class^='_ui-container__right']",insertBeforeSelector:'[data-testid="volume-control"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-rt="video-player-container"]',injectedGlobalCSS:["[class^='_video-player__text-tracks'] {display: none !important; }"],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"hbogo",matches:["www.hbogoasia.*"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".shakaplayer-container",quickButtonRule:{appendSelector:".control_buttons_right",insertBeforeSelector:".control_buttons_volume"}}},{id:"barrons",matches:["video-api.wsj.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#wrapper-videoplayer",quickButtonRule:{appendSelector:"#video-controls-videoplayer",insertBeforeSelector:"#video-cc-videoplayer"}}},{id:"aetv",matches:["play.aetv.com"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video[data-pdk-active-track]",quickButtonRule:{appendSelector:".tpBottomFloatRegion > [class='tpRow']",injectCSS:".imt-quick-subtitle-pop-content { max-height: 150px !important; }"},injectedCss:[".ttr-left:first-child {margin-bottom:1.5em}","#immersive-translate-quick-button-container {grid-column: 10;grid-row: 2;}"]}},{id:"hbomax",matches:["play.max.com","play.hbomax.com"],"excludeSelectors.add":["[data-testid='playerContainer']","[data-testid='CueBoxContainer']"],"mutationExcludeSelectors.add":["[data-testid='playerContainer'] *","[data-testid='CueBoxContainer'] *"],"subtitleRule.add":{type:"webvtt",enableHookDownload:!0,subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"[data-testid='playerContainer']",injectedCss:["#immersive-translate-quick-button-container {max-height: 60px}"],quickButtonRule:{appendSelector:'[data-testid="playback_controls"] [class*="ControlsFooterBottomRight"]'}}},{id:"mindvalley",matches:["home.mindvalley.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",loadingContainerSelector:".vjs-text-track-display",injectedCss:["#immersive-translate-quick-button-container {order: 6}"],quickButtonRule:{appendSelector:'[data-testid="video-section"] .vjs-control-bar',insertBeforeSelector:'[data-testid="video-section"] .vjs-volume-panel',injectCSS:".imt-quick-subtitle-pop-content { z-index: 999999; max-height: 150px !important; }"},videoSelector:"div[id^='mv-video-item-'] > video",attachRule:{appendSelector:".mv-video-item",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"]}}},{id:"viki",matches:["www.viki.com"],"excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"auth_subtitles.*\\.vtt",loadingContainerSelector:'[data-testid="vmplayer"]',quickButtonRule:{appendSelector:".vmp-right-control",insertBeforeSelector:".vmp-right-control .vmp-player-settings"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:'[data-testid="vmplayer"]',injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"],injectedGlobalCSS:[".vjs-text-track-display {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"masterclass",matches:["www.masterclass.com","learn.microsoft.com"],"excludeSelectors.add":[".mc-video--text-track"],"mutationExcludeSelectors.add":[".mc-video--text-track *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".vjs-text-track-display",quickButtonRule:{appendSelector:".mc-video__controls"}}},{id:"slideslive",matches:["slideslive.com"],"excludeSelectors.add":[".slp__video"],"mutationExcludeSelectors.add":[".slp__video *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",loadingContainerSelector:".slp__videoPlayer__content",quickButtonRule:{appendSelector:".slp__videoControls__right",insertBeforeSelector:".slp__videoControls__right > button.slp__button--playerSettings",injectCSS:".imt-quick-subtitle-pop-content { max-height: none !important; }"},injectedCss:["#immersive-translate-quick-button-container { display: inline-block; height: 100%; }"]}},{id:"viu",matches:["www.viu.com"],"excludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay"],"mutationExcludeSelectors.add":[".bmpui-ui-viu-subtitle-overlay *"],"subtitleRule.add":{type:"subsrt",hookType:"xhr",subtitleUrlRegExp:"https?://[^/]+\\.cloudfront\\.net/[^/]+/[^/]+$",loadingContainerSelector:".bmpui-container-wrapper",loadingStyle:"bottom: 20%;",injectedCss:[".bmpui-controls-hidden #immersive-translate-quick-button-container {display: none;}"],quickButtonRule:{appendSelector:".bmpui-ui-container.bmpui-ui-viu-subtitle > .bmpui-container-wrapper",injectCSS:".imt-quick-subtitle-button {margin-bottom: 8px}"},attachRule:{appendSelector:".bmpui-ui-viu-subtitle-overlay",injectedGlobalCSS:[".bmpui-ui-viu-subtitle-overlay > .bmpui-container-wrapper { display: none !important; }"]}}},{id:"linkin",matches:"*.linkedin.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"/.*ambry/\\?x-li-ambry-ep=.*|.*video-captions-webvtt.*/",hookType:"xhr",loadingContainerSelector:".video-player-container",quickButtonRule:{appendSelector:".classroom-layout__media .vjs-control-bar",insertBeforeSelector:".vjs-captions-menu-toggle"}}},{id:"kanopy",matches:"*.kanopy.com","excludeSelectors.add":[".vjs-text-track-display"],"mutationExcludeSelectors.add":[".vjs-text-track-display *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:".*captioncache/webvtt.*",hookType:"xhr",loadingContainerSelector:".video-player-container",injectedCss:["#immersive-translate-quick-button-container{height: 40px;display: flex;align-items: center;align-self: flex-end;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-caption-control"}}},{id:"iflix",matches:["www.iflix.com","wetv.vip"],"excludeSelectors.add":[".text-track"],"mutationExcludeSelectors.add":[".player-wrapper *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",loadingContainerSelector:"#player-wrapper",loadingStyle:"bottom: 18%;",quickButtonRule:{appendSelector:'[data-role="wetv-ctrlbar-right"]',insertBeforeSelector:'[data-role="wetv-player-definition"]'},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#player-wrapper",injectedGlobalCSS:[".text-track { display: none !important; }"]}}},{id:"imdb",matches:"www.imdb.com","excludeSelectors.add":[".jw-text-track-container"],"mutationExcludeSelectors.add":[".jw-text-track-container *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#imdbnext-vp-jw-single",quickButtonRule:{appendSelector:".jw-reset.jw-button-container",insertBeforeSelector:'[button="ttt-button"]'},attachRule:{appendSelector:"#imdbnext-vp-jw-single",injectedGlobalCSS:[".jw-text-track-display { display: none !important; }"]}}},{id:"itv",matches:["*.itv.com"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".vtt$",videoPlayerSelector:"[data-testid=video-wrapper] video",quickButtonRule:{appendSelector:".fe-mrphs__controlsWrapperBottom .fe-mrphs__controls > div:last-child",insertBeforeSelector:".fe-mrphs__subtitlesButton"},attachRule:{appendSelector:"[data-testid=vod-player]",injectedGlobalCSS:[".fe-mrphs__subtitles {display: none !important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 7%;}"]}}},{id:"vk.com",matches:"vk.com/video","subtitleRule.add_v.[1.4.12]":{type:"text_track",videoPlayerSelector:".videoplayer_media_provider",loadingContainerSelector:"#video_player",quickButtonRule:{appendSelector:".videoplayer_controls",insertBeforeSelector:".videoplayer_btn_subtitles"}}},{id:"egghead",matches:["egghead.io"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".cueplayer-react-video",loadingContainerSelector:".cueplayer-react-video-holder",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:".cueplayer-react-control-bar-right-part",insertBeforeSelector:".cueplayer-react-closed-caption"}}},{id:"coursera",matches:["www.coursera.org"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:".vjs-tech",loadingContainerSelector:".rc-VideoControlsContainer",loadingStyle:"bottom: unset; top: 5%;",quickButtonRule:{appendSelector:'[role="presentation"] > .rc-ControlBar > .icon-container'}}},{id:"kika",matches:["www.kika.de"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".ardplayer-viewport",loadingStyle:"bottom: unset; top: 5%; height: unset;",quickButtonRule:{appendSelector:".ardplayer-button-big .ardplayer-addons-container",insertBeforeSelector:".ardplayer-button-big .ardplayer-icon-sharing",injectCSS:".label { display: none; } .logo,svg {height: 32px !important; width: 32px !important;}"}}},{id:"ocrtraining",matches:["ocrtraining.cit.nih.gov","videocast.nih.gov"],"excludeSelectors.add":["#videocastPlayer"],"mutationExcludeSelectors.add":["#videocastPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.srt$",loadingContainerSelector:"#videocastPlayer"}},{id:"espn",matches:["*.espn.com"],mainFrameMinTextCount:0,"excludeSelectors.add":["#fittPageContainer"],"mutationExcludeSelectors.add":["#fittPageContainer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",injectedCss:["#immersive-translate-quick-button-container{margin-top:16px;}",".vjs-text-track-display > div >div {font:unset!important;}"],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:".vjs-captions-button"}}},{id:"fmovies2",matches:["*.fmovies.co","mcloud.vvid30c.site","rabbitstream.net"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"fmoviesz",matches:["fmovies24.to","*.fmovies.co","vidplay.online","c8365730d4.nl","kerapoxy.cc","vid41c.site","https://*/*sub.info=*fmovies24.to*","https://*/*sub.info=*bflixhd.to*","https://megacloud.tube/embed-*"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:".*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-submenu-items .jw-settings-item-active"}}},{id:"hianime",matches:["megacloud.tv","hianime.to","9animetv.to"],"excludeSelectors.add":[".jw-wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".jw-wrapper *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"multi_attach_vtt",subtitleUrlRegExp:"^(?!.*sprite\\.vtt$).*\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},activeLangSelector:".jw-settings-item-active",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-text-track-container {display: none;}","@media (min-width: 576px) { video::cue {opacity: 0} }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:".jw-settings-item-active"}}},{id:"rottentomatoes",matches:["*.rottentomatoes.com"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"dailymotion",matches:["*.dailymotion.com"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"srt",loadingContainerSelector:".player",subtitleUrlRegExp:"/video/.*\\.srt",quickButtonRule:{appendSelector:".controls_bottom_right",insertBeforeSelector:".subtitles_toggle_button",ccEnableSelector:"button.subtitles_toggle_button:not([disabled])"}}},{id:"crunchyroll",matches:"*.crunchyroll.com","excludeSelectors.add":["#vilos","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#vilos *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",loadingContainerSelector:"#vilos",subtitleUrlRegExp:".*\\.vtt",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"#vilos",injectedGlobalCSS:[".textTrackLayer{display: none;}"]}}},{id:"wistia",matches:["*.wistia.net","platform.thinkific.com","courses.kevinpowell.co","learn.ni.com"],selectorMatches:[".wistia_embed"],"excludeSelectors.add":["div[data-handle='captions']","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-handle='captions'] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*\\.vtt",hookType:"xhr",loadingContainerSelector:"div[data-handle='captions']",injectedCss:["#immersive-translate-quick-button-container { display: inline-block !important; height: 100%; position: absolute; bottom: 100%; right: 0;}"],quickButtonRule:{appendSelector:".w-bottom-bar-right-inner.w-css-reset",insertBeforeSelector:".w-bottom-bar-right-inner.w-css-reset>.w-css-reset:first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: 120px !important; bottom 30px; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-vulcan-overlays--center > div",injectedGlobalCSS:[".w-captions.w-css-reset { display: none !important; }",".w-bottom-bar-right-inner.w-css-reset { z-index: 2147483647; }"],injectedCSS:[".imt-caption-window {margin-bottom: 0;}"]}},"subtitleRule.add_v.[1.10.3]":{type:"general",subtitleUrlRegExp:"embed/captions/.*\\.json",hookType:"fetch",loadingContainerSelector:"div[data-handle='captions']",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text",startKey:"start",endKey:"end"}}},{id:"osmosis",matches:"*.osmosis.org","excludeSelectors.add":["div[data-testid=overlayPlayPause]","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["div[data-testid=overlayPlayPause] *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",loadingContainerSelector:"div[data-testid=overlayPlayPause]",injectedCss:[],quickButtonRule:{appendSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2]",insertBeforeSelector:"#video-player-container > div:nth-child(3) > div div[cn=gap-2] > :first-child",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"div[data-testid=overlayPlayPause]",injectedGlobalCSS:["div[data-testid=video-subtitles-container] { display: none !important; }","#video-player-container > div:nth-child(3) > div div[cn=gap-2] { z-index: 21474836471; }"],injectedCSS:[".imt-caption-container {z-index:40;}"]}}},{id:"pbs",matches:"*.pbs.org","excludeSelectors.add":[".wrapper","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".wrapper *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:".*captions.*\\.vtt$",hookType:"xhr",loadingContainerSelector:".wrapper",injectedCss:[],quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".page-wrap",injectedGlobalCSS:["div.vjs-text-track-display > div > div { display: none !important; }"]}}},{id:"mgtv",matches:"w.mgtv.com","excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"^https://subtitle\\.hitv\\.com/c1/subtitle",hookType:"fetch",loadingContainerSelector:"container",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 6px; }"],quickButtonRule:{appendSelector:"mango-control-wrap-right",insertBeforeSelector:"mango-subtitle-bar",injectCSS:".label { display: none; } .imt-quick-subtitle-pop-content { max-height: none !important; }"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:"container",injectedGlobalCSS:["mango-subtitle { display: none !important; }"]}}},{id:"themotionmagic",matches:["player.hotmart.com"],selectorMatches:["iframe[src*='player.hotmart.com']"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",videoPlayerSelector:".vjs-tech",subtitleUrlRegExp:".*\\.(vtt)",quickButtonRule:{appendSelector:".styles_columns__S4HQf:last-child",ccEnableSelector:"div[data-testid='bottom-bar'] button[data-testid='subtitle-settings-button']"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"]},"subtitleRule.add_v.[1.8.4]":{subtitleUrlRegExp:".*\\.(vtt|webvtt)"}},{id:"movie-web",matches:["movie-web.app/media*","movie-web-me.vercel.app/media*","*.vidbinge.com","vidsrc.xyz"],"excludeSelectors.add":["#root"],"mutationExcludeSelectors.add":["#root *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",loadingContainerSelector:".relative.h-screen.overflow-hidden",subtitleUrlRegExp:".*\\.(srt|vtt)",quickButtonRule:{appendSelector:".hidden.justify-between .flex.items-center.space-x-3"},videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".popout-location div.h-screen.select-none",injectedGlobalCSS:[".popout-location .absolute p.pointer-events-none {display: none;}"]}}},{id:"deeplearning",matches:["learn.deeplearning.ai"],"excludeSelectors.add":['[data-layout="video"]'],"mutationExcludeSelectors.add":['[data-layout="video"] *'],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",loadingContainerSelector:'[data-layout="video"]',subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vds-controls-group:last-child",insertBeforeSelector:".vds-caption-button"},attachRule:{appendSelector:'[data-layout="video"]',injectedGlobalCSS:[".vds-captions {display:none!important;}"]}}},{id:"weverse",matches:["weverse.io"],"excludeSelectors.add":[".pzp-pc__video"],"mutationExcludeSelectors.add":[".pzp-pc__video *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".pzp-pc__bottom-buttons-right",insertBeforeSelector:"button.pzp-pc-subtitle-button"},attachRule:{appendSelector:".pzp-pc__video",injectedGlobalCSS:[".pzp-pc-subtitle-text { display: none !important; }"]}}},{id:"quantinsti",matches:["quantra.quantinsti.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:".*\\.vtt",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"div.vjs-subs-caps-button"},attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:["div.vjs-text-track-cue { display: none !important; }"]}}},{id:"paramountplus",matches:["*.paramountplus.com"],"excludeSelectors.add":[".aa-player-skin"],"mutationExcludeSelectors.add":[".aa-player-skin *"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",quickButtonRule:{appendSelector:".top-menu-container"}}},{id:"plex.tv",matches:["watch.plex.tv"],"subtitleRule.add":{type:"text_track_dynamic",injectedCss:[".tt-container {white-space: pre-line;}",".timed-text-css-box-inner {display: none!important;}",".timed-text-css-box-inner:last-child {display: block!important;}"],videoPlayerSelector:"video",loadingContainerSelector:"[data-testid='player']",quickButtonRule:{appendSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child",insertBeforeSelector:"[class^='PlayerControls_bottomControls'] > div > div:last-child > div:last-child"}}},{id:"pluto",matches:["pluto.tv"],"excludeSelectors.add":[".video-player-layout"],"mutationExcludeSelectors.add":[".video-player-layout *"],"subtitleRule.add":{type:"text_track_dynamic",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".endControls-0-2-85"}}},{id:"ted",matches:["www.ted.com"],"excludeSelectors.add":["#video"],"mutationExcludeSelectors.add":["#video *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:".pointer-events-none #media-control-bar",insertBeforeSelector:".pointer-events-none .media-volume-wrapper"},activeLangSelector:"div[data-testid='subtitles-item-endonym'].font-bold",videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:["media-controller div.pointer-events-none .flex .flex span.text-textPrimary-onDark span {white-space: pre-line;}"],attachRule:{appendSelector:".pointer-events-none.absolute.z-10.flex.h-full.w-full.items-center.justify-center",injectedGlobalCSS:[".transition-transform { display: none !important; }",".imt-caption-window { margin-bottom: 50px; }"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"input[name=subtitle-language][class*=checked]",langValueSelector:"input[name=subtitle-language]",langValueAttribute:"value",urlLangRegex:"subtitles/(\\S+)/full.vtt"}}},{id:"devEpicGames",matches:["dev.epicgames.com"],"excludeSelectors.add":[".vjs-poster"],"mutationExcludeSelectors.add":[".vjs-poster *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:".vjs-menu-button.vjs-settings-menu"},activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}},"subtitleRule.add_v.[1.7.6]":{multiSetting:{activeLangSelector:"li.vjs-menu-item.vjs-captions-menu-item.vjs-selected > span",langTextRegex:"(\\S+)\\s+Captions"}}},{id:"khflix",matches:["khflix.com","watch.globaltv.com"],"excludeSelectors.add":["#video-playlist"],"mutationExcludeSelectors.add":["#video-playlist *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",injectedCss:[],attachRule:{appendSelector:".jw-wrapper",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\d+\\.(\\w+)\\.vtt",isMapLangFromUrl:!0}}},{id:"donghuaworld",matches:["dwserver.donghuaworld.com"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-captions { display: none !important; }"]},multiSetting:{activeLangSelector:".jw-settings-submenu-captions .jw-settings-item-active",urlLangRegex:"\\.English_(.*?)\\-\\.vtt",isMapLangFromUrl:!0}}},{id:"lecturio",matches:["app.lecturio.com"],"excludeSelectors.add":["#vjs_video_3"],"mutationExcludeSelectors.add":["#vjs_video_3 *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"multi_attach_vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"\\.vtt",attachRule:{appendSelector:"#vjs_video_3",injectedGlobalCSS:[".vjs-text-track-display { display: none !important; }"]},multiSetting:{activeLangSelector:".vjs-captions-menu-item.vjs-selected",langTextRegex:"^(\\S+)\\s",urlLangRegex:"/net/([^_]+)/",isMapLangFromUrl:!0}}},{id:"ganjingworld",matches:["www.ganjingworld.com"],"excludeSelectors.add":[".vidPlayerWrap"],"mutationExcludeSelectors.add":[".vidPlayerWrap *"],"subtitleRule.add":{type:"multi_attach_vtt",hookType:"fetch",quickButtonRule:{appendSelector:"[class*='player_controlToolbar']"},videoPlayerSelector:"video",videoSelector:"video",subtitleUrlRegExp:"^(?!.*thumbnails).*\\.vtt$",attachRule:{appendSelector:".vidPlayerWrap .media-player",injectedGlobalCSS:[".vds-captions { display: none !important; }"]},multiSetting:{activeLangSelector:"[class*='player_playerMenu'] > div > div.vds-radio[aria-checked='true']",langTextRegex:"^(\\S+)\\s",urlLangRegex:"_(.*?)\\.",isMapLangFromUrl:!0}}},{id:"fautv",matches:["www.fau.tv"],"excludeSelectors.add":[".jw-wrapper"],"mutationExcludeSelectors.add":[".jw-wrapper *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#player",quickButtonRule:{appendSelector:".jw-button-container",insertBeforeSelector:".jw-icon-cc"}}},{id:"vimeo",matches:["vimeo.com"],"excludeSelectors.add":[".vp-captions"],"mutationExcludeSelectors.add":[".vp-captions *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".player_container",loadingStyle:"bottom: unset; top: 5%;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',insertBeforeSelector:'[data-volume-control-container="true"]',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"}}},{id:"player.vimeo",matches:["https://player.vimeo.com/video/*","laracasts.com","www.physeo.com"],selectorMatches:["iframe[src*='player.vimeo.com']"],"extraBlockSelectors.add":["span.vp-captions-line","span[class^=CaptionsRenderer_]"],"excludeSelectors.add":[".vp-captions-line"],"mutationExcludeSelectors.add":[".vp-captions *",".vp-captions-line *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".vp-telecine",loadingStyle:"bottom: unset; top: 5%; font-size: 12px;",injectedCss:["#immersive-translateQuickButton {visibility: inherit!important;}"],quickButtonRule:{appendSelector:'[data-control-bar="true"] > div',ccEnableSelector:'[data-cc-button="true"]',injectCSS:".imt-quick-subtitle-button {margin-right: 0px; font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 28px !important;}"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".vp-video-wrapper",injectedGlobalCSS:[".vp-captions {display: none !important;}"]}}},{id:"tv.adobe",matches:"https://*.tv.adobe.com","excludeSelectors.add":[".mpc-player"],"mutationExcludeSelectors.add":[".mpc-player *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".mpc-player",quickButtonRule:{appendSelector:".mpc-controls__container"}}},{id:"threejs-journey",matches:"threejs-journey.com","excludeSelectors.add":[".video-area"],"mutationExcludeSelectors.add":[".video-area *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:".video-area",injectedCss:[".js-tracks-text.tracks-text {white-space: pre;}"],quickButtonRule:{appendSelector:".js-controls .right",insertBeforeSelector:".js-subtitles",injectCSS:".imt-quick-subtitle-button { font-size: 12px;} .logo,.logo svg { height: 18px !important; width: 18px !important;} .imt-quick-subtitle-pop-content {bottom: 38px !important;}"}}},{id:"comsol",matches:["*.comsol.com"],"excludeSelectors.add":["#immersive-translate-caption-window"],"mutationExcludeSelectors.add":["#immersive-translate-caption-window *"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",videoSelector:"video",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".w-video-wrapper",injectedGlobalCSS:[".w-captions-line { display: none !important; }"]}}},{id:"jove",matches:["www.jove.com","app.jove.com"],"subtitleRule.add":{type:"text_track",videoPlayerSelector:"video",loadingContainerSelector:"#coreplayer",quickButtonRule:{injectCSS:".label { display: none; }",appendSelector:".fp-controls"}}},{id:"codewithchris",matches:["learn.codewithchris.com","*.rachelsenglishacademy.com","www.unrealsenseiacademy.com","www.comsol.com/video/*","www.comsol.com/blogs/*"],"excludeSelectors.add":[".w-captions",".w-captions-line > div > span"],"mutationExcludeSelectors.add":[".w-captions *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/embed/captions/",loadingContainerSelector:".w-ui-container",hookType:"fetch",generalSetting:{captionsPath:"captions",itemsPath:"hash.lines",textKey:"text"}}},{id:"panopto",matches:["southampton.cloud.panopto.eu_no_subitle"],"excludeSelectors.add":[".primaryPlayer"],"mutationExcludeSelectors.add":[".primaryPlayer *"],"subtitleRule.add":{type:"general",subtitleUrlRegExp:"DeliveryInfo.aspx",disableSubsCache:!0,loadingContainerSelector:"#primaryPlayer",hookType:"fetch",generalSetting:{textKey:"Caption"},quickButtonRule:{appendSelector:"#transportControls",insertBeforeSelector:"#captionsButton"}}},{id:"edx",matches:["*.edx.org","courses.mitxonline.mit.edu"],"excludeSelectors.add":[".closed-captions",".subtitles-menu"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"general",subtitleUrlRegExp:"/transcript/translation/",loadingContainerSelector:".tc-wrapper",generalSetting:{itemsPath:"text"},injectedCss:[".subtitles-menu span,.closed-captions {white-space: pre-line;}","#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],quickButtonRule:{appendSelector:".secondary-controls",insertBeforeSelector:".speeds.menu-container"}},"subtitleRule.add_v.[1.7.1]":{attachRule:null}},{id:"ardmediathek",matches:["www.ardmediathek.*"],"excludeSelectors.add":[".ardplayer-viewport-addon-overlays"],"mutationExcludeSelectors.add":[".ardplayer-viewport-addon-overlays *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"subtitle/ebutt",loadingContainerSelector:".ardplayer-viewport-addon-overlays",quickButtonRule:{appendSelector:".ardplayer-footer .ardplayer-addons-container",insertBeforeSelector:".ardplayer-footer .ardplayer-button-sharing",injectCSS:".imt-quick-subtitle-button {font-size: 20px; } .logo,.logo svg { height: 36px !important; width: 36px !important;} .imt-quick-subtitle-pop-content {z-index: 2147483647;} ",ccEnableSelector:".ardplayer-button-language"},attachRule:{appendSelector:'[data-initiator-name="player-container"]',injectedGlobalCSS:[".ardplayer-untertitel div[lang] {display:none!important;}"],injectedCSS:[".imt-caption-window {margin-bottom: 0; bottom: 20%;}"]}}},{id:"bbc-iplayer",matches:["https://www.bbc.*/iplayer*"],"excludeSelectors.add":[".player"],"mutationExcludeSelectors.add":[".player *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".player__container",appendSelector:"smp-toucan-player->smp-video-layout->smp-subtitles"}},{id:"bbc",matches:["*.bbc.*"],"excludeSelectors.add":["section.module--languages",".drop-capped",".smp-toucan-player","smp-subtitles","#subtitle_subtitle2"],"mutationExcludeSelectors.add":["[data-testid='media-player-container-landscape'] *"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"iplayer/subtitles/.*.xml",loadingContainerSelector:".smp-toucan-player"}},{id:"zdf.de",matches:["www.zdf.de"],"excludeSelectors.add":[".zdfplayer-video-container","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".zdfplayer-video-container *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"ebutt",subtitleUrlRegExp:"mtt/.*.xml",loadingContainerSelector:".zdfplayer-video-container",hookType:"fetch",responseType:"document",injectedCss:["#immersive-translate-quick-button-container {display:inline-block;vertical-align:middle;margin-right:-16px;}"],quickButtonRule:{appendSelector:"[class^='right-controls-']"},attachRule:{appendSelector:"[class^='subtitle-container-']",injectedGlobalCSS:[".zdfplayer-cue-inline { display: none !important; }","[class^='subtitle-container-'] { visibility: visible; }"]}},"subtitleRule.add_v.[1.4.1]":{hookType:"fetch|xhr"}},{id:"piped.video",matches:"piped.video","subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"api/timedtext",loadingContainerSelector:".shaka-video-container",responseType:"document",quickButtonRule:{appendSelector:".shaka-controls-button-panel",insertBeforeSelector:".shaka-mute-button"},attachRule:{appendSelector:".shaka-video-container",injectedGlobalCSS:["@media (min-width: 576px) { video::cue {opacity: 0} }"]}}},{id:"disneyplus",matches:["www.disneyplus.com"],"excludeSelectors.add":[".dss-hls-subtitle-overlay"],"mutationExcludeSelectors.add":[".dss-hls-subtitle-overlay *"],"subtitleRule.add":{type:"disneyplus",subtitleUrlRegExp:"\\.vtt"}},{id:"mubi",matches:["https://mubi_down.com","https://mubi_down.de"],"subtitleRule.add":{type:"mubi",subtitleUrlRegExp:"(textstream_|viewing/secure_url)",hookType:"fetch",quickButtonRule:{appendSelector:".css-1k6yql2.e1b63bld4",insertBeforeSelector:".css-1ce7rqp.e7f2hfl0"},rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],attachRule:{appendSelector:".video-player",injectedGlobalCSS:[".clpp-text-container {display: none;}"]}},_comment:"\u6682\u65F6\u4E0B\u7EBF"},{id:"hulu",matches:"https://*.hulu.com","additionalExcludeSelectors.add":[".PlayerMetadata__subTitle",".PlayerMetadata__subTitle",".CaptionBox"],"subtitleRule.add":{type:"ebutt",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",quickButtonRule:{appendSelector:".PlayerSettingsGroup",insertBeforeSelector:".PlayerSettingsGroup .PlayerControlsButton"}},"subtitleRule.add_v.[1.9.6]":{type:"xml",hookType:"fetch",subtitleUrlRegExp:"\\.ttml$",loadingContainerSelector:"#web-player-app",injectedCss:[".CaptionBox {white-space: pre-line;}"],xmlTextSelector:"p",xmlSetting:{subtitleItemSelector:"div",textSelector:"p",startSelector:"div",endSelector:"div",startAttr:"begin",endAttr:"end",timeDivisor:1e3},enableHookDownload:!0},_comment:"\u65E0\u6CD5\u81EA\u6258\u7BA1\uFF0C\u81EA\u6258\u7BA1\u5B57\u5E55\u5E7F\u544A\u540E\u4F1A\u504F\u79FB"},{id:"youku.tv",matches:"www.youku.tv","excludeSelectors.add":["#subtitle"],"mutationExcludeSelectors.add":["#subtitle *"],"subtitleRule.add":{type:"subsrt",hookType:"fetch",injectedCss:["#immersive-translate-quick-button-container {display: inline-block; vertical-align: middle;}"],subtitleUrlRegExp:"\\.ass$",subsrtFormat:"ass",loadingContainerSelector:"#youku-dashboard",loadingStyle:"bottom: 10%;",quickButtonRule:{appendSelector:".kui-dashboard-dashboard-panel .kui-dashboard-rear-ctn",insertBeforeSelector:".kui-rate-control-0"}}},{id:"starz",matches:"www.starz.com","excludeSelectors.add":["starz-player"],"mutationExcludeSelectors.add":["starz-player *"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:"starz-player",loadingStyle:"bottom: 10%;",injectedCss:["#immersive-translate-quick-button-container {display: inline-block;}"],quickButtonRule:{appendSelector:"starz-player .button-group",insertBeforeSelector:"starz-player .button-group .video-player-icon-md"}}},{id:"rtve",matches:"www.rtve.*","injectedCss.add":[".errorHead * {font-size: 3.2rem!important;}"],"subtitleRule.add":{type:"subsrt",subsrtFormat:"vtt",hookType:"fetch",subtitleUrlRegExp:"\\.vtt$",loadingContainerSelector:".striplayer",injectedCss:["#immersive-translate-quick-button-container {order: 4}"],quickButtonRule:{appendSelector:"[class='theo-secondary-color vjs-control-bar ']",insertBeforeSelector:".vjs-control-bar .vjs-icon-subtitles"},attachRule:{appendSelector:".theo-player-wrapper",injectedGlobalCSS:[".theoplayer-texttracks {display: none!important;} "],injectedCSS:[".imt-caption-window {bottom: 60px;}"]}}},{id:"www.iq.com",matches:"www.iq.com","excludeSelectors.add":[".iqp-subtitle"],"mutationExcludeSelectors.add":[".iqp-subtitle *"],"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\.xml\\?",loadingContainerSelector:".iqp-player-g.iqp-player.iqp-player-pc",xmlTextSelector:"sub",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:[".iqp-player {direction: ltr !important;}","#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:".iqp-contrls-right"},attachRule:{appendSelector:".iqp-player-g.iqp-player.iqp-player-pc",injectedGlobalCSS:["iqpdiv[data-player-hook='subtitleelem'] {display: none;}"]},xmlSetting:{subtitleItemSelector:"dia",textSelector:"sub",startSelector:"st",endSelector:"et",timeDivisor:1e3}}},{id:"cbsnews",matches:"www.cbsnews.com","excludeSelectors.add":[".avia-container"],"mutationExcludeSelectors.add":[".avia-container *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"xml",subtitleUrlRegExp:"\\_xml\\?",xmlTextSelector:"p",loadingStyle:"bottom: 10%;",rtlInjectedCss:["[data-immersive-translate_rtl] #immersive-translate-caption-window {direction: rtl;}"],injectedCss:["#immersive-translate-quick-button-container {float: right; height: 100%;}"],quickButtonRule:{appendSelector:"slot-fb > .avia-control-group-right"},attachRule:{appendSelector:".avia-container"},xmlSetting:{subtitleItemSelector:"p",startAttr:"begin",endAttr:"end",timeDivisor:1e3}}},{id:"gaia",matches:["www.gaia.com"],"excludeSelectors.add":["video-js"],"mutationExcludeSelectors.add":["video-js *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",injectCSS:".label { display: none; }",insertBeforeSelector:"button.vjs-control.vjs-button.vjs-video-overlay-button"},injectedCss:["#immersive-translate-quick-button-container { order: 6; }","@media (max-width: 570px) { #immersive-translate-quick-button-container { display: none !important; } }"],attachRule:{appendSelector:"video-js",injectedGlobalCSS:[".vjs-text-track-display { display: none; }"],injectedCSS:[".imt-caption-window { bottom: 5%; }"]}}},{id:"urplay",matches:["urplay.se"],"excludeSelectors.add":[".jw-media"],"mutationExcludeSelectors.add":[".jw-media *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt\\?",hookType:"xhr",quickButtonRule:{appendSelector:".jw-button-container"},attachRule:{appendSelector:".jw-media",injectedGlobalCSS:[".jw-text-track-container { display: none; }"]}}},{id:"asu",matches:["api.playposit.com"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"excludeSelectors.add":["#overlay-container"],"mutationExcludeSelectors.add":["#overlay-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:["#immersive-translate-quick-button-container { display: inline-block; position: relative; top: 9px; }"],quickButtonRule:{appendSelector:"#extra-actions-wrapper",injectCSS:".label { display: none; }"},attachRule:{appendSelector:"#video-container",injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"gagaoolala",matches:["www.gagaoolala.com"],"excludeSelectors.add":["#gl-id-video-container"],"mutationExcludeSelectors.add":["#gl-id-video-container *"],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",injectedCss:[],quickButtonRule:{appendSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div",insertBeforeSelector:".bmpui-ui-controlbar .bmpui-controlbar-bottom > div .bmpui-gl-ui-setting-subtitle"},attachRule:{appendSelector:"#gl-id-video-container",injectedGlobalCSS:[".bmpui-ui-subtitle-overlay {display: none;}"]}}},{id:"curiositystream",matches:["curiositystream.com"],"excludeSelectors.add":['[data-testid="video-player"]'],"mutationExcludeSelectors.add":['[data-testid="video-player"] *'],"subtitleRule.add":{type:"webvtt",subsrtFormat:"vtt",subtitleUrlRegExp:"\\.vtt",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar > div > div > ul:last-of-type"},attachRule:{appendSelector:'[data-testid="video-player"] > div',injectedGlobalCSS:[".vjs-text-track-display {display: none;}"]}}},{id:"f1tv",matches:["f1tv.formula1.com"],"excludeSelectors.add":["#main-embeddedPlayer"],"mutationExcludeSelectors.add":["#main-embeddedPlayer *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.webvtt$",hookType:"xhr",quickButtonRule:{appendSelector:".bmpui-controlbar-bottom .bmpui-container-wrapper"}}},{id:"datacamp",matches:["projector.datacamp.com"],"excludeSelectors.add":[".video"],"mutationExcludeSelectors.add":[".video *"],"subtitleRule.add":{type:"webvtt",subtitleUrlRegExp:"\\.vtt$",hookType:"xhr",quickButtonRule:{appendSelector:".vjs-control-bar",insertBeforeSelector:"div.vjs-subs-caps-button"}}},{id:"dr",matches:"*.dr.dk","excludeSelectors.add":[".vjs-text-track-display > div","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".vjs-text-track-display > div *","#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:".drtv-player-controls__button-row",insertBeforeSelector:".drtv-player-button__subtitle"}}},{id:"nrk",matches:"tv.nrk.no","excludeSelectors.add":['tv-player[data-testid="tv-player"]',"#immersive-translate-caption-window"],"mutationExcludeSelectors.add":['tv-player[data-testid="tv-player"] *',"#immersive-translate-caption-window *"],"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.webvtt$",videoPlayerSelector:"video",quickButtonRule:{appendSelector:"#player-controls > div",insertBeforeSelector:'button[type="settings-button"]'},attachRule:{appendSelector:"tv-player1",injectedGlobalCSS:["tv-player-subtitles { display: none; }"]}}},{id:"mediadelivery",matches:"iframe.mediadelivery.net","excludeSelectors.add":[".plyr__captions","#immersive-translate-caption-window"],"mutationExcludeSelectors.add":[".plyr__captions *","#immersive-translate-caption-window *"],mainFrameMinTextCount:0,mainFrameMinWordCount:0,"subtitleRule.add":{type:"subsrt",subtitleUrlRegExp:"\\.vtt",videoPlayerSelector:"video",loadingContainerSelector:".plyr__captions",quickButtonRule:{appendSelector:".plyr__controls",insertBeforeSelector:"button[data-plyr='captions']"}}},{id:"archiveToday",matches:["archive.today","archive.ph","archive.is","archive.md"],"excludeSelectors.add":["#HEADER"]},{id:"arxiv-vanity.com",matches:["www.arxiv-vanity.com"],"excludeSelectors.add":[".arxiv-vanity-wrapper"]},{id:"fibery",matches:["the.fibery.io"],"additionalExcludeSelectors.remove":["[translate=no]"],"additionalStayOriginalSelectors.add":[".entity-node-view-container"]},{id:"makersuite.google",matches:"makersuite.google.com","excludeSelectors.add":[".material-symbols-outlined"]},{id:"etymonline",matches:"www.etymonline.com","globalAttributes.add":{".crossreference.notranslate":{class:"crossreference"},".foreign.notranslate":{class:"foreign"}}},{id:"https://browse.arxiv.org/",matches:["https://browse.arxiv.org","https://arxiv.org/html/*"],"excludeSelectors.add":[".desktop_header","[class*='ltx_lst_language_']","div.package-alerts",".ltx_toclist",".ltx_authors"]},{id:"jstor",matches:"www.jstor.org","excludeSelectors.add":[".audio-duration","[data-qa='card-item-count']"],globalStyles:{".card__heading":"-webkit-line-clamp:unset;","search-results-vue-pharos-image-card,search-ui-pharos-image-card":"display:flex;","search-results-vue-pharos-link":"display:inline;"}},{id:"tandfonline",matches:"*.tandfonline.com","extraInlineSelectors.add":["span.off-screen"]},{id:"boringreport",matches:["www.boringreport.org"],"excludeTags.remove":["BUTTON"]},{id:"bsky.app",matches:"https://bsky.app",selectors:["[data-testid*=postText]","[data-testid*=postThread]","[data-testid*=feedItem]"],"excludeSelectors.add":["[aria-label]"],"likePreSelectors.add_v.[1.11.5]":["[data-testid*=postThread] [data-word-wrap]","[data-testid*=feedItem] [data-word-wrap]"],isTransformPreTagNewLine:!0,isTranslateTitle:!1},{id:"peacocktv",matches:["*.peacocktv.com"],injectedCss:[".video-player__subtitles__line > font,.video-player__subtitles__line:only-child{display:block;}"]},{id:"NoTranslate",matches:["*.tiktok.com","altis.world","*.newthingsunderthesun.com","*.gumroad.com","edstem.org","actions.tldrnewsletter.com","community.linkingyourthinking.com","doc.qt.io","winaero.com","community.afforai.com","www.perplexity.ai","hdsr.mitpress.mit.edu","rent.men","*.rwth-aachen.*","www.backcountry.com","intranet.alxswe.com","www.steepandcheap.com","whoer.is","community.seniorswc.com","www.skool.com","sfget.jp","talentcentral.eu.shl.com","www.crd.york.ac.*","www.campo.fau.de","s.hoothin.com","feedback.featurebase.app","typefully.com","*.affine.*","*.shopify.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"NoPreSiteTranslate",matches:["kalimat.anghami.com"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],isTransformPreTagNewLine:!0},{id:"jmir",matches:["*.jmir.org"],"additionalInlineSelectors.add":[".tooltiptext"]},{id:"smzdm",matches:["www.smzdm.com"],"excludeSelectors.add":[".z-highlight",".feed-block-info",".z-feed-foot",".feed-block-descripe","#J_column_tab_box",".crumbs"],globalStyles:{".feed-block-title":"height:unset"}},{id:"xiaohongshu.com",matches:["www.xiaohongshu.com"],"excludeSelectors.add":[".author-wrapper",".info",".side-bar"],globalStyles:{"a.title":"-webkit-line-clamp:3"}},{id:"learnopengl",matches:["learnopengl.com"],globalStyles:{function:"position:relative;z-index:1000;"}},{id:"notateslaapp",matches:["www.notateslaapp.com"],"extraBlockSelectors.add":[".nav > *"]},{id:"eightfold",matches:["*.eightfold.ai"],injectedCss:[".flexbox{width:100%}"]},{id:"simpleZh",matches:["deno.com","deno.land","blog.partykit.io"],injectedCss:[":root, font {font-feature-settings:normal;}"]},{id:"soundcloud",matches:"soundcloud.com",injectedCss:[".compactTrackListItem {height: unset !important;}"],"excludeSelectors.add":[".searchTitle__textContent",".searchOptions__container",".compactTrackListItem__additional",".soundTitle__tagContainer",".searchResultGroupHeading",".sc-ministats-group",".compactTrackList__moreLink",".sound__soundActions"]},{id:"section.blog.naver.com",matches:"section.blog.naver.com",globalStyles:{".text,.title_post,.text_post,p,strong,div":"-webkit-line-clamp:unset;max-height:unset;height:unset;"},"extraBlockSelectors.add":[".item",".heading a",".info_find a"],"excludeSelectors.add":[".comments",".time"]},{id:"gradio-app",selectorMatches:"gradio-app","excludeTags.remove":["BUTTON"],"excludeSelectors.add":['[data-testid="block-label"]'],"mutationConfig.add":{buildTimeout:1e3,consumeTimeout:1e3}},{id:"hadoop.apache.org",matches:"hadoop.apache.org","excludeSelectors.add":[".xleft",".xright","#navcolumn"]},{id:"docs.unity3d",matches:"docs.unity3d.com",stayOriginalSelectors:[".tooltip"],mainFrameSelector:[".tooltip > .tooltiptext"],"injectedCss.add":[".immersive-translate-target-inner .tooltiptext {display: none;}",".immersive-translate-target-inner .tooltip {cursor:pointer;border-bottom:unset;}"]},{id:"icloud-sandbox",matches:"www-mail.icloud-sandbox.com","injectedCss.add":["body{overflow-y:scroll!important;}"]},{id:"pubs.acs.org",matches:"pubs.acs.org",mainFrameSelector:[".article_abstract",".article_header-title",'[property="articleBody"]'],"excludeSelectors.add":[".articleHeaderDropzone2","header"],"stayOriginalTags.remove":["SUB","SUP"]},{id:"typeset.io",matches:"typeset.io","additionalStayOriginalSelectors.remove":["span.notranslate"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"transformer-circuits.pub",matches:["transformer-circuits.pub"],"stayOriginalSelectors.add":["d-cite"]},{id:"cpaaustralia",matches:["*.cpaaustralia.com.*"],injectedCss:["li.expanded > div{ overflow:scroll; }"]},{id:"archiveofourown-chapter",matches:["archiveofourown.org/works*chapters/*"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],buildContainerSelectors:["#main"]},{id:"archiveofourown",matches:["archiveofourown.org"],"excludeSelectors.add":[".meta",".navigation",".byline","#add_comment","#footer",".summary > h3",".notes > h3"],longBuildPageLength:1e3},{id:"bitwarden.com",matches:"bitwarden.com","excludeSelectors.add":[".status-widget__state"]},{id:"ar5iv.labs.arxiv.org",matches:"ar5iv.labs.arxiv.org","excludeSelectors.add":[".ltx_bibliography",".ltx_tag.ltx_tag_item",".ltx_listing.ltx_lstlisting.ltx_listing"]},{id:"www.ey.com",matches:"www.ey.com","injectedCss.add":[".up-rich-text__container {height: unset!important;}"]},{id:"www.france.tv",matches:"www.france.tv","injectedCss.add":[".immersive-translate-target-wrapper { color: #fff; }"]},{id:"yodayo.chat",matches:["https://yodayo.com/*/chat/*"],"extraBlockSelectors.add":[".inline-flex span"]},{id:"ipinfo",matches:"ipinfo.io","injectedCss.add":[".text-bali-hai-primary:last-child {display:none!important;}"]},{id:"help.maxon.net",matches:"help.maxon.net","excludeSelectors.add":["#contentBody"]},{id:"character.ai",matches:"character.ai","extraInlineSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"atomicBlockSelectors.add":[".auto-content",".auto-content *",".font-display .prose",".font-display .prose *"],"globalStyles.add":{".swiper,.rah-static,[class*=max-h],.line-clamp-1":"overflow:scroll;-webkit-line-clamp:unset;"}},{id:"queenslibrary.org",matches:"queenslibrary.org",injectedCss:[["font.notranslate { all: unset;}"]],"excludeSelectors.add":["#Web-QBPL-Menu"]},{id:"ac.nowcoder",matches:"ac.nowcoder.com","excludeTags.remove":["PRE"],"excludeSelectors.add":[".answer-module",".question-intr",".language-list",".question-oi"]},{id:"trankynam",matches:"www.trankynam.com","initialSelectorGlobalAttributes.add":{header:{}}},{id:"chromium",matches:"*.chromium.org","additionalExcludeSelectors.add":["ancestors-breadcrumbs"]},{id:"noRichTranslate",matches:["www.omim.org","*.nisanyanadlar.com","www.360doc.cn"],enableRichTranslate:!1},{id:"longPage",matches:["neuralnetworksanddeeplearning.com","www.alphapolis.co.jp","sive.rs"],longBuildPageLength:1e3},{id:"ffmpeg",matches:"ffmpeg.org","excludeSelectors.add":[".memproto",".memtitle"]},{id:"podcasts",matches:"podcasts.apple.com","injectedCss.add":[".multiline-clamp { display: flex!important;flex-direction: column; }",".headings__title,.powerswoosh__title,[data-testid=truncate-text] {-webkit-line-clamp:unset!important;}",".show-artwork {height:fit-content!important;}",".powerswoosh__lockup-details-container,.powerswoosh__chin,[data-testid=amp-review__text] {max-height:unset!important;height:unset!important;}",".episode-hero__overlay {overflow:auto!important;}","ul .multiline-clamp {display:unset!important;}"],"excludeSelectors.add":[".detailed-play-button-wrapper"]},{id:"duolingo",matches:"www.duolingo.com","likePreSelectors.add":["._3gSoe._35mGI"],isTransformPreTagNewLine:!0,enableRichTranslate:!1},{id:"sp-codeSites",matches:["docs.wxwidgets.org"],"additionalExcludeSelectors.add":[".doxygen-awesome-fragment-wrapper"]},{id:"wayfair",matches:"www.wayfair.com","injectedCss.add":['[data-enzyme-id="Collapse-Collapsible"] {height:unset!important;}']},{id:"sphinx-rtd-theme",selectorMatches:[".wy-nav-side"],excludeSelectors:["header[default-translate]","footer[default-translate]"]},{id:"hentai.name",matches:["www.hentai.name"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#image-container img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["#image-container"]}},{id:"rawkuma",matches:["rawkuma.com"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"manwadd",matches:["manwadd.cc"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:[".img-content img"],platforms:["chrome","firefox","safari","imtAndroid"]}},{id:"saucemanhwa",matches:"saucemanhwa.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".chapter-content img"],injectedCss:".imt-image-status {top:5%!important;}",platforms:["chrome","firefox","safari"]}},{id:"mangakoinu",matches:"www.mangakoinu.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"mangajikan",matches:"www.mangajikan.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".more-box img"],platforms:["chrome","firefox","safari"]}},{id:"jcomic",matches:"jcomic.net","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".container img"],platforms:["chrome","firefox","safari"]}},{id:"komiku",matches:"komiku.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#readerarea img"],platforms:["chrome","firefox","safari"]}},{id:"sololevelingmangafree",matches:"www.sololevelingmangafree.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:[".entry-inner p img"],platforms:["chrome","firefox","safari"]}},{id:"tkr375",matches:"tkr375.com","imageRule.add":{enable:!0,type:"manga",imageSelectors:["#tnimg img"],platforms:["chrome","firefox","safari"]}},{id:"dvamh-vzwp7",matches:["dvamh-vzwp7.top"],"imageRule.add":{enable:!0,type:"manga",imageSelectors:["#default-tab-thumbnail img"],platforms:["chrome","firefox","safari","imtAndroid"],loadingSelectors:["p"]}},{id:"https://app.follow.is/feeds/",matches:["https://app.follow.is/feeds/*"],isTranslateTitle:!1,"excludeSelectors.add":[".bg-native","main > div > div.h-full:first-child"]},{id:"svelte",matches:["svelte.dev/docs/*","learn.svelte.dev"],selectors:[".text"]},{id:"gitpod",matches:"www.gitpod.io/docs/*",selectors:[".content-docs"]},{id:"service-now",matches:"*.service-now.com",selectors:["article",".email-content"]},{id:"realpython",matches:"realpython.com",selectors:["h1","h2",".my-0",".my-1",".article-body","table-of-contents","#disqus_recommendations"]},{id:"casino",matches:"www.casino.org","excludeSelectors.add":[".material-symbols-outlined"],repeatTranslateNum:4},{id:"wisdom",matches:"wisdom.nec.com","injectedCss.add":["a > font {width: max-content;}"]},{id:"palcy",matches:"palcy.jp","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari","imtAndroid"],type:"manga",imageSelectors:["ul.pages li img"],loadingSelectors:["li"]}},{id:"klmanga",matches:"klmanga.rs","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"syosetu",matches:"syosetu.si","imageRule.add":{enable:!0,platforms:["chrome","firefox","safari"],type:"manga",imageSelectors:[".render img"]}},{id:"learn-ed",matches:"www.learn.ed.ac.*",repeatTranslateNum:1},{id:"app.schildi.chat",matches:"app.schildi.chat","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"excludeSelectors.add":[".mx_DisambiguatedProfile",".mx_MessageTimestamp",".mx_EventTile_avatar"]},{id:"balthild",matches:"balthild.github.io","injectedCss.add":[".immersive-translate-target-wrapper [aria-hidden=true] {display:none;}"],_comment:"\u6682\u65F6\u5355\u72EC\u7ED9\u4ED6\u5904\u7406\u516C\u5F0F"},{id:"csust",matches:"tsgvpn2.csust.edu.cn","injectedCss.add":["h2 {font-size:unset;}"]},{id:"z-lib",matches:"*.z-lib.*",globalStyles:{".title,.book-info":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"otter.ai",matches:"otter.ai",richMoreWordPercent:.8},{id:"translation-font-size-unset",matches:["m.yxlady.com","web3.fireverseai.com"],"injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner { font-size: unset; }"]},{id:"m163",matches:"m.163.com",globalStyles:{".card-recommend-oneImg article h4":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"curseforge",matches:"www.curseforge.com",globalStyles:{".project-card":"height:unset;grid-template-rows: auto auto auto auto;",".project-card .description":"height:unset;-webkit-line-clamp:unset;","ul.details-list":"height:unset;",".project-card .categories":"height:unset;"}},{id:"duckduckgo",matches:"duckduckgo.com",globalStyles:{"div[data-result='snippet'] > div > span":"-webkit-line-clamp:unset;"}},{id:"google-support",matches:"support.google.com",globalStyles:{".scSearchSearch_results_listSearchresultslistsnippet":"-webkit-line-clamp:unset;"}},{id:"justia",matches:"supreme.justia.com",longBuildPageLength:1e4},{id:"ml4vis",matches:"ml4vis.github.io","globalStyles.add":{".jss42":"height:unset;",".jss44":"max-height:unset;"},"excludeSelectors.add":[".jss45"]},{id:"www.dgl.ai",matches:["www.dgl.ai"],"excludeSelectors.add":["header"]},{id:"rebang",matches:"rebang.today",globalStyles:{".multirow-ellipsis-3":"-webkit-line-clamp:unset;"}},{id:"monmouthcoffee",matches:"www.monmouthcoffee.*","additionalExcludeSelectors.add":["#basket"]},{id:"sakura",matches:"www.sakura.fm","injectedCss.add":[".immersive-translate-target-wrapper, .immersive-translate-target-translation-block-wrapper, .immersive-translate-target-inner span { opacity: 1 !important; }"]},{id:"mocharymethod.com",matches:"beta.mocharymethod.com","additionalExcludeSelectors.remove":["h4 br"]},{id:"appsumo",matches:"appsumo.com",excludeSelectors:[],globalStyles:{"[class*='line-clamp']":"-webkit-line-clamp: unset"}},{id:"bb-rich",selectorMatches:"bb-rich-text-editor","atomicBlockSelectors.add":[".bb-editor-root *"],"injectedCss.add":["bb-rich-text-editor font br {display:none;}","[imt-state=dual] bb-rich-text-editor .immersive-translate-target-translation-block-wrapper {margin-top:-10px!important;}"]},{id:"novel-site",matches:["www.piaotia.com","www.zhenhunxiaoshuo.com","www.hetushu.com"],"injectedCss.add":[".centent ul { display: flex; }",".centent ul li { height: unset !important; float: none !important; }","article.excerpt { white-space: normal !important; overflow: visible !important; }","#dir dd { white-space: normal !important; overflow: visible !important; }"]},{id:"xianqihaotianmi",matches:"www.xianqihaotianmi.org","injectedCss.add":[".list-charts { display: flex; flex-wrap: wrap; }",".list-charts li { white-space: normal !important; overflow: visible !important; }"]},{id:"sobqg",matches:"www.sobqg.com/book/*","injectedCss.add":["#volumes { display: flex; flex-wrap: wrap; }","a.ell { white-space: normal !important; overflow: visible !important; }","#hot .g_book > a > h3 { white-space: normal; overflow: visible; max-height: none; -webkit-line-clamp: none; }","#hot .g_book { height: 330px; }"],"additionalExcludeSelectors.add":["#hot .g_book > span"]},{id:"luminousfox",matches:"www.luminousfox.com/book/*","injectedCss.add":["#detail_chapter .box_content ul li { height: unset !important; overflow: visible !important; }"]},{id:"doupocangqiong",matches:"www.doupocangqiong.org","injectedCss.add":["#play_0 ul { display: grid; grid-template-columns: repeat(3, 1fr); }","#play_0 ul li { height: unset !important; }"]},{id:"proko",matches:"www.proko.com","additionalExcludeSelectors.add":[".proko-preview-statistic-wrap",".lesson-instructors-wrap",".proko-comments-item-title",".proko-comments-item-vote-wrap",".course-card__details .border-outline075",".category-subscribe"],"likePreSelectors.add":["[prokoexpansiontextblock]"],isTransformPreTagNewLine:!0,"injectedCss.add":[".lesson-video-banner-skip,.lesson-title,.lesson-content,.course-card__details {height:unset!important;overflow:scroll;}","[class*='clamp'],.course-card__description{-webkit-line-clamp:unset!important;overflow:unset;}","proko-button{z-index:1;}",".truncate {white-space:unset;}"]}]};function er(e){if(e.beta)return!1;if(je()&&e.spVersion)return Fi(_r(),e.spVersion);if(Pv()&&e.gspVersion){let t=_v();if(t)return Fi(t,e.gspVersion)}if(Sl()&&e.ispVersion){let t=Mv();if(t)return Fi(t,e.ispVersion)}return!1}function Fi(e,t){let n=e.split(".").reverse(),r=t.split(".").reverse(),a=0,i=0,o=1;for(let s=0;s<3;s++)a+=o*Number(r[s]||"0"),i+=o*Number(n[s]||"0"),o*=100;return i>=a}function Ml(e){e.message?.indexOf("token invalid")>=0&&(tt.remove(mt),Tl())}async function ur(e){let n=(await Je())?.interfaceLanguage||"zh-CN",r;switch(n){case"zh-TW":r="/zh-TW";break;case"zh-CN":r="";break;default:r="/en"}let a=new URL(e);a.pathname=r+a.pathname,a.searchParams.set("force","1"),vI(a.toString())}function vI(e){try{je()?Ea(e):globalThis.open(e)}catch{globalThis.open(e)}}function s5(e,t){if(!e.localUpdatedAt||t<=0)return;let n=t-Date.now();if(Math.abs(n)>7*24*3600)return;k.debug("device diffTimestamp",n);let r=new Date(e.localUpdatedAt).getTime()+n;e.updatedAt=new Date(r).toISOString()}function u5(e){return At(e)}function xd(e){return e?e.map(n=>{let r=CI(n),a={url:r?.url||"",name:r?.siteName||""};if(!r?.browserNames)return a;let i=Bi();return r.browserNames.split(",").includes(i)?a:null}).filter(n=>!!n):[]}function CI(e){let t=/^(https?:\/\/[^[]+)(\[[^\]]+\])(\[[^\]]+\])?$/,n=e.match(t);if(n&&n.length>0){let r=n[1],a=n[2]?.replace("[","")?.replace("]",""),i=n[3]?.replace("[","")?.replace("]","");return{url:r,siteName:a,browserNames:i}}else return null}function Td(e){return Array.isArray(e)?e:e?[e]:[]}function qn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Zt(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Sd(e,t){let n=[...e];for(let r of t)r.startsWith("[+]")&&!n.includes(r.slice(3))?n.push(r.slice(3)):r.startsWith("[-]")?n=n.filter(a=>a!==r.slice(3)):n.includes(r)||n.push(r);return n}function wd(e,t){let n={...e};return g5(n,t),xI(n,t),n}function m5(e,t,n){let r={...e};return Aa({rule:t,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>e[a],onMergedResult:(a,i)=>r[a]=i}),Aa({rule:n,valueIsArray:a=>Array.isArray(e[a]),getMergedValue:a=>r[a],onMergedResult:(a,i)=>r[a]=i}),r}function xI(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},r=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?n:r;g5(e,a)}function Aa({rule:e,getMergedValue:t,valueIsArray:n,onMergedResult:r},a){Object.keys(e).sort().forEach(i=>{let[o,s,u]=l5(i);if(o=="rich"){if(!a)return r(i,e[i]);let[g,p,f,b]=l5(i);o=g+"."+p,s=f,u=b}if(!o||e[i]===void 0)return;let l=e[i];n(o)&&(l=Td(e[i]));let c=t(o);if(c==null){r(o,l);return}let m;if(s=="add_v"){if(!c5(u))return;m=r4(c,l)}else if(s=="remove_v"){if(!c5(u))return;m=d5(c,l)}else s==="add"?m=r4(c,l):s=="remove"&&(m=d5(c,l));if(m){r(o,m);return}Array.isArray(e[o])&&o.startsWith("additional")?m=r4(c,l):m=l,r(o,m)})}function g5(e,t){return Aa({rule:t,valueIsArray:n=>Array.isArray(e[n]),getMergedValue:n=>e[n],onMergedResult:(n,r)=>{e[n]=r}}),e}function r4(e,t){let n;if(Array.isArray(e)){let r=Td(t);n=[...e,...r],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"?n={...e,...t}:n=t;return n}function l5(e){let t=e.lastIndexOf("["),n="",r=e;return t>0&&(n=e.slice(t+1,e.length-1),r=e.slice(0,t-1)),[...r.split("."),n]}function c5(e){let t=On();return e&&Fi(t,e)}function d5(e,t){if(Array.isArray(e)){let n=Td(t);return e=e.filter(r=>!n.includes(r)),Array.from(new Set(e))}else if(typeof e=="object"&&typeof t=="object")Object.keys(t).forEach(n=>{delete e[n]});else return t;return e}var p5="userConfig",Ed="userPromptPool",Ad="userObjectPool";async function kd(){let e=await C5(p5)||{},t=await Do(Ed)||{},n=await Do(Ad)||{};return TI(e,t,n)}async function f5(e){let{userConfig:t,promptPool:n,objectPool:r}=await a4(e);await v5(p5,t),await Yr(Ed,n),await Yr(Ad,r)}function a4(e){let t=JSON.parse(JSON.stringify(e)),n=e.promptPool||{},r=e.objectPool||{};return h5(t,(a,i,o)=>{let s=a[i]||"";s==o||!s||(n[o]=s,a[i]=o)}),b5(t,(a,i,o,s)=>{o!=s&&(r[s]=o,a[i]=s)}),delete t.promptPool,delete t.objectPool,{userConfig:t,promptPool:n,objectPool:r}}function TI(e,t,n){return h5(e,(r,a,i)=>{(r[a]||"")==i&&(t[i]?r[a]=t[i]:delete r[a])}),b5(e,(r,a,i,o)=>{i==o&&(n[o]?r[a]=n[o]:delete r[a])}),e}function h5(e,t){Object.entries(e.translationServices||{}).forEach(([n,r])=>{["systemPrompt","prompt","multiplePrompt","subtitlePrompt"].forEach(a=>{let i=`@imt_${n}.${a}`;t(r,a,i)})})}function b5(e,t){(e.independentSyncKeys||["generalRule.glossaries","generalRule.injectedCss","aiAssistantsMatches","customAiAssistants"]).forEach(r=>{let a=r.split("."),i=e,o="",s=i;a.forEach(u=>{i&&(o=u,s=i,i=i[u])}),i&&t(s,o,i,`@imt_${r}`)})}function Oi(e,t){let n=JSON.parse(JSON.stringify(t));return e!=!1||Object.entries(n.translationServices||{}).forEach(([r,a])=>{let i=y5(r);for(let o of i)delete a[o]}),n}function i4(e,t,n){if(e!=!1||!n.translationServices||!n)return;let r=t.translationServices||{};Object.entries(r).forEach(([a,i])=>{let o=y5(a),s=n.translationServices[a];s&&o.forEach(u=>{i[u]&&(s[u]=i[u])})})}function y5(e){let t=$r[e]?.allProps||[];e.startsWith("custom-ai")&&(t=Ss.allProps||[]);let n=[];return t.forEach(r=>{r.sensitive&&n.push(r.name)}),n}function Lo(){if(Ae.PROD==="1")return{};let e={};if(Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ae.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ae.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ae.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ae.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ae.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ae.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ae.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ae.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ae.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ae.DEEPL_PROXY_ENDPOINT),Ae.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ae.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ae.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ae.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ae.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ae.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ae.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ae.MOCK==="1"&&(t.translationService="mock"),t}async function Mt(){let e=await j.storage.local.get(ts);if(e[ts]){let t=e[ts],n=t.tempTranslationUrlMatches||[],r=n.filter(o=>o.expiredAt>Date.now()),a=!1;r.length!==n.length&&(n=r,a=!0);let i={...t,tempTranslationUrlMatches:[...n]};return a&&await kt(i),i}else return{}}async function kt(e){await j.storage.local.set({[ts]:e})}async function Cv(e){await j.storage.local.set({[Vc]:e})}async function T5(){return Ae.DEBUG==="1"?void 0:(await j.storage.local.get(Vc))[Vc]}async function Ns(){await j.storage.local.set({[ts]:{}})}async function Us(){let e=await T5(),n={...await o4(),...Cd,buildinConfigUpdatedAt:Ae.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let r=new Date(e.buildinConfigUpdatedAt),a=new Date(n.buildinConfigUpdatedAt);r>a&&(n=e)}return n}async function Je(){let e=await T5(),t={...Cd,buildinConfigUpdatedAt:Ae.BUILD_TIME};if(e&&e&&e.buildinConfigUpdatedAt){let U=new Date(e.buildinConfigUpdatedAt),I=new Date(t.buildinConfigUpdatedAt);U>I&&(t=e)}let n=await EI(t);t.targetLanguage=n;let r=await tt.get(mt,null),a={};if(!J()&&j.commands&&j.commands.getAll){let U=await j.commands.getAll();for(let I of U)I.name&&I.shortcut&&(a[I.name]=I.shortcut)}let i=await o4(),o=Lo(),s=await cn(),u=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await Mt(),c=new Date,m=Object.assign({},u,o,s);if(!m.interfaceLanguage){let U=await SI();m.interfaceLanguage=U}let g=m.interfaceLanguage==="en",p=m.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,b=["bing","google","transmart","mock"].includes(m.translationService)||!m.translationService;!g&&!p&&!f&&b?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let y=t&&t.enableDefaultAlwaysTranslatedUrls;m.enableDefaultAlwaysTranslatedUrls===!1&&(y=!1);let h=m&&m.isChangedAlwaysTranslatedUrls,v=[];m.translationUrlPattern&&m.translationUrlPattern.matches&&(v=m.translationUrlPattern.matches||[]);let C=!1;h===void 0&&(v.length>0?h=!0:h=!1,m.isChangedAlwaysTranslatedUrls=h,s.isChangedAlwaysTranslatedUrls=h,C=!0);let T=(m?.translationLanguagePattern?.matches?.length||0)>0,x=await Ft("installedAt",""),S=Number(await Eo("translage_page_daily",0)),w=Number(await Ft(Dr,0)),A;w>0&&(Date.now()-w0&&(Date.now()-S0){let U=l.tempTranslationUrlMatches.filter(I=>new Date(I.expiredAt)>c);if(U.length>0){let I=m.translationUrlPattern?m.translationUrlPattern?.matches||[]:[],q=Array.isArray(I)?I:[I],$=Array.from(new Set(q.concat(U.map(te=>te.match))));m.translationUrlPattern={...m.translationUrlPattern,matches:$}}}let _=Object.assign(i,t);Aa({rule:t,valueIsArray:U=>Array.isArray(i[U]),getMergedValue:U=>i[U],onMergedResult:(U,I)=>{U!="generalRule"&&(_[U]=I)}}),Aa({rule:t.generalRule,valueIsArray:U=>Array.isArray(i.generalRule[U]),getMergedValue:U=>i.generalRule[U],onMergedResult:(U,I)=>{_.generalRule[U]=I}}),DI(_,x),AI(r,m,_);let F=Object.keys(_),L=["translationUrlPattern","translationLanguagePattern","immediateTranslationPattern","translationBodyAreaPattern","translationParagraphLanguagePattern","translationThemePatterns","translationGeneralConfig","shortcuts","inputTranslationUrlPattern","inputLanguageCodeAlias"];for(let U of F){let I=U;if(I==="generalRule")typeof m[I]=="object"&&(_[I]=wd(_[I],m[I]));else if(I==="translationServices")kI(m,_);else if(typeof m[I]!="string"&&typeof m[I]!="boolean"&&typeof m[I]!="number"&&L.includes(I))m[I]&&(_[I]=Object.assign(_[I],m[I])),I==="shortcuts"&&(J()||je()?_[I]={..._[I],...a}:_[I]={...a});else if(I==="rules"){if(Array.isArray(m[I])){let q=_.rules||[],$={};for(let Te of q)Te.id&&($[Te.id]=Te);let te=m[I].map(Te=>Te.id&&$[Te.id]?m5(_.generalRule,$[Te.id],Te):Te);_[I]=[...te,..._[I]]}if(Ae.PROD==="0"&&Ae.DEV_RULES){let q=JSON.parse(Ae.DEV_RULES);_[I]=[...q,..._[I]]}}else m[I]!==void 0&&(_[I]=m[I])}return _.donateUrl=t.donateUrl,_.minVersion=t.minVersion,_.feedbackUrl=t.feedbackUrl,_.rawUserConfig=s,_}function cn(){return kd()}function sr(e){return f5(e)}async function v5(e,t){await j.storage.sync.set({[e]:t})}async function C5(e){return(await j.storage.sync.get(e))[e]}async function Yr(e,t){await j.storage.local.set({[e]:t})}async function Do(e){return(await j.storage.local.get(e))[e]}var S5={};function Dd(e){return S5[e]}function w5(e,t){S5[e]=t}var SI=async()=>{let e=["zh-CN"];try{e=await j.i18n.getAcceptLanguages()}catch(r){k.warn("get browser language error:",r)}let n=e.map(r=>re(r)).find(r=>sd.find(a=>a===r));return n||"en"},o4=async()=>{let e={...Cd,buildinConfigUpdatedAt:Ae.BUILD_TIME};return{...e,targetLanguage:yi,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",subtitleTranslateService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},monkeyH5FloatBall:{...e.monkeyH5FloatBall},pcFloatBall:{...e.pcFloatBall},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing",_systemExcludeWordRegex:"\\b({word})\\b"},rules:[]}};function wI(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(r=>!e.includes(r)).length>0}async function EI(e){try{let t=e?.autoSelectTargetLanguageAfterInstalledAt;if(!t)return yi;let n=await Ft("installedAt","");if(n&&new Date(n){let u=r[s],l=r[u.extends];!l||u.extends==s||(r[s]=x5(l,r[s]))}),Aa({rule:{...r},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{r[s]={...r[s],...u}}}),Object.keys(n).forEach(s=>{let u=n[s];if(!u.extends)return;let l=r[u.extends];!l||u.extends==s||(n[s]=x5(l,n[s]))}),Aa({rule:{...n},valueIsArray:s=>Array.isArray(r[s]),getMergedValue:s=>r[s],onMergedResult:(s,u)=>{let l=r[s]?.env||{},c=u.env||{};l={...l,...c},r[s]={...r[s],...u,env:l}}}),new Date(e.updatedAt)<=new Date("2024.4.2")&&Object.keys(n).forEach(s=>{["openai","gemini"].includes(s)&&n[s].prompt!=null&&(n[s].maxTextGroupLengthPerRequest==null&&(r[s].maxTextGroupLengthPerRequest=1),n[s].multiplePrompt==null&&(r[s].multiplePrompt=n[s].prompt))});let i=["html_only","content_type","imt_source_field","imt_trans_field","imt_sub_source_field","imt_sub_trans_field"],o=(s,u)=>{!s||!s[u]||!s?.env||(s[u]=s[u].replace(/{{(.+?)}}/g,(l,c)=>i.includes(c)?l:s?.env[c]||l))};Object.values(r).forEach(s=>{o(s,"prompt"),o(s,"multiplePrompt"),o(s,"subtitlePrompt")}),t.translationServices=r}function DI(e,t){try{let n=e.generalRule.subtitleRule.youtubeAutoEnableSubtitleAfterInstalledAt;if(!n||new Date(n)>new Date(t))return;e.generalRule.subtitleRule.youtubeAutoEnableSubtitle=!0}catch(n){k.error("updateYoutubeAutoEnableSubtitleWithAfterInstallAt error",n)}}function x5(e,t){let n={...e};return["provider","visible"].forEach(a=>{n[a]&&delete n[a]}),{...n,...t}}var E5=null;if(typeof trustedTypes<"u")try{E5=trustedTypes.createPolicy("sanitizer",{createHTML:e=>e,createScript:e=>e})}catch{}var A5=!1;globalThis.addEventListener("securitypolicyviolation",e=>{e.violatedDirective=="require-trusted-types-for"&&(A5=!0)});function Ld(){return A5}var lr=E5;function D5(e,t,n,r,a){if(!e)return"";for(let y of r||[])if(t?.querySelector(y))return"";let i=n[0],o=n[n.length-1];if(MI(t,o))return"";i=k5(t,i),i||(t=t.parentNode);let s="",u,l="",c="";n.forEach(y=>{let h=k5(t,y);if(c+=f(y),u&&h!=u){b(),u=h,l=f(y)||"";return}u=h,l+=f(y)||""}),b();let m=p(c),g=p(t.textContent||"");if(m==g&&t.innerText.split(` `).filter(y=>!!y.trim()).length>1)return t.innerHTML;return s;function p(y){return y.replace(/\s+/g,"")}function f(y){return y instanceof HTMLElement?y.innerText:y?.textContent||""}function b(){let y=p(f(u)),h=p(l);if(y==h){let v=f(u).replace(/ */g,"");if(!c.startsWith(` `)&&v?.startsWith(` `)||!c.endsWith(` `)&&v?.endsWith(` -`)){s+=l;return}s+=_v(u,a)}else s+=l}}function Mv(e,t,n,r,a){return!e||!t?"":t.replace(_v(n,a)||"",r)}var u4=globalThis.document?.createElement("div");function MF(e){return u4?(u4.innerHTML=Or?.createHTML(e)||e,u4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function Pv(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||MF(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function Rv(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let h=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let h=a||"";return`<${y.tag} ${r||"id"}=${h}${y.id}${h}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],h=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):h?.tag==g&&h.end==y.begin&&h.end==f&&(h.endTag=m,h.end=f+m.length,u.push(h),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function Iv(e,t,n,r){let a="";return n?a=Fv(e,t,n):a=Bv(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function Fv(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?Fv(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function Bv(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return Bv(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function _v(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` +`)){s+=l;return}s+=F5(u,a)}else s+=l}}function L5(e,t,n,r,a){return!e||!t?"":t.replace(F5(n,a)||"",r)}var s4=globalThis.document?.createElement("div");function LI(e){return s4?(s4.innerHTML=lr?.createHTML(e)||e,s4?.childNodes?.[0]?.nodeType==Node.TEXT_NODE):!1}function M5(e,t,n){if(!t)return t;let r=t,a=/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return r.replace(a,(o,s,u,l)=>{if(n&&s.startsWith(n)&&s!=n||LI(`<${s} ${u}/>`))return o;let c=Object.keys(e).length;return e[c]={tag:s,attributes:u,index:l,id:c},`<${c}>`}).replace(/&&/ig,"%26%26").replace(/</ig,"%3C").replace(/>/ig,"%3E")}function P5(e,t,n,r,a){let i=/<\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig,o=[],s=[],u=[],l=t.replace(i,(m,g,p,f)=>{if(t[f+1]=="/"){let y=o.findIndex(v=>v.tag==g);if(y==-1)return m;let h=o[y];return o=o.slice(y+1),n?``:``}else{let y=e[g];if(!y)return m;if(o.unshift(y),n)return`<${n}${g}>`;if(!y.attributes)return`<${y.tag}>`;let h=a||"";return`<${y.tag} ${r||"id"}=${h}${y.id}${h}>`}});l.replace(i,(m,g,p,f)=>{if(l[f+1]=="/"){let y=s[0],h=s[1],v=u[u.length-1];y?.tag==g?(y.end==f?(y.endTag=m,y.end=f+m.length,u.push(y)):y.end==v?.begin&&v.end==f&&(y.endTag=m,y.end=f+m.length,y.times++,u[u.length-1]=y),s.shift()):h?.tag==g&&h.end==y.begin&&h.end==f&&(h.endTag=m,h.end=f+m.length,u.push(h),s.shift(),s.shift())}else s.unshift({tag:g,startTag:m,begin:f,end:f+m.length,times:0});return m});let c=l.slice();return u.forEach(m=>{if(!m.times)return;let g=Object.keys(e).length,p="";e[g]={tag:n||m.tag,content:"",id:g},n?p=`<${n}${g}>`:p=`<${m.tag} ${r||"id"}=${g}>`,e[g].content=c.slice(m.begin,m.end),l=l.replace(e[g].content,p)}),l}function _5(e,t,n,r){let a="";return n?a=R5(e,t,n):a=I5(e,t,r),a.replace(/%26%26/ig,"&&").replace(/%3C/ig,"<").replace(/%3E/ig,">")}function R5(e,t,n){let r=/<\s*\/?([a-zA-Z0-9-]+)\s*([^<]*?)>/ig;return t.replace(r,(i,o,s,u)=>{let l=t[u+1];if(o[0]!=n)return i;let c=o.slice(1),m=e[c];return m?l=="/"?m.content?"":``:m.content?R5(e,m.content,n):m.attributes?`<${m.tag} ${m.attributes}>`:`<${m.tag}>`:i})}function I5(e,t,n){let r=new RegExp(`<\\s*([a-zA-Z0-9-]+)\\s*${n||"id"}=["']?(\\d+)["']?\\s*>`,"ig");return t.replace(r,(i,o,s)=>{let u=e[s];if(!u)return i;if(u.content){let l=u.content.slice(0,u.content.length-``.length);return I5(e,l,n)}return`<${u.tag} ${u.attributes||""}>`}).replace(/<\s*一个\s*id/ig,"/,"<$1>")}function F5(e,t){if(e instanceof HTMLElement){let r="";return e.innerText.indexOf(` `)<0?r=lt.sanitize(e.outerHTML.replace(/\s+/ig," "),{ADD_TAGS:t}):r=lt.sanitize(e.outerHTML.replace(/(<\/[a-zA-Z0-9]+>)(\n\s*)+=500?e.innerText?.replace(//g,">"):r.replace(//igs,"")}if(e?.nodeType==Node.TEXT_NODE){let r=e.textContent?.replace(/\n/g," ")||"";if((e?.parentElement?.innerText.indexOf(r)||-1)>=0)return r}return(e?.parentElement?.innerText.indexOf(` -`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function PF(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function Dv(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Md(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function l4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Aa({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function js(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function Ov(e,t){let n=t||e.translationService;return js(e,n,e.config.translationServices)?l4(e.rule):e.rule}function Pd(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var RF=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function wr(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function ka(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(wr(e,i))return!1;if(wr(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!wr(e,o)),c;function m(){return n&&n.display?!!RF.includes(n.display):wr(e,r)}}var qt=wr;function Mo(e){return!!e.shadowRoot}function Ni(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Pl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Da(e,t=!1){let n=rs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Po(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Da(n,t)}function Hs(e,t){return ki(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function c4(e){let{rule:t}=e,n=IF(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function IF(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function Rl(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Gt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,S2,t.toString());let i=c4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function qs(e,t){return e.querySelector(`[${_g}='${t}']`)}function Nv(){document.querySelectorAll(`[${_g}]`).forEach(t=>{t.remove()})}function Uv(){document.querySelectorAll(`.${Gt}-error`).forEach(t=>{t.remove()})}function jv(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Hi(n)&&t.push(n)}),t}function d4(e,t){return t?FF(e):BF(e)}function FF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,b)=>{if(f=="id"&&u[b+2]=="=")return p;let y=l++;return t[`${y}`]=Hv(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=Tf(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function BF(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,b)=>f.tl&&!b.tl?1:!f.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,b,y)=>{if(b=="id"&&l[y+2]=="=")return f;let h=c++;return t[`${h}`]=Hv(b,m),o.length>2?f.replace(b,`<${o[2]}${h}>`):f.replace(b,`${o[0]}${h}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let b=c++;return t[`${b}`]=Tf(f),o.length>2?p.replace(f,`<${o[2]}${b}>`):p.replace(f,`${o[0]}${b}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function m4(e,t){return t?_F(e):OF(e)}function _F(e){let{text:t,variables:n}=e,r=Pd(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function OF(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function Hv(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function zs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||tC(l)||Zv(l)||eC(l)||Xv(l)||$v(l)||UF(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Od(i?.trim(),n,r)}function Ro(e){return e.nodeType===Node.ELEMENT_NODE}function qv(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function zv(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ea(){return await Bt("fakeUserId","")}async function NF(){return await Bt("installedAt","")}async function Id(e,t){let r=Te().INSTALL_FROM,a=On(),i=await NF(),o=await ea(),s=await Ze(),u=!1,l=await tt.get(mt,null),c=!1;l&&At(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await Fs(),g=await _s(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Bs();return f&&(p.abGroup=f),p}function ii(e,t){let[n,r]=N();return z(()=>{!e||!t||(async()=>{let a=await g4(e,t);r(a)})()},[e,t,r]),n}async function g4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!je()&&Z()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Bt("installedAt","");new Date(o).getTime()s==n),a=f4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>gt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>gt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function f4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function Wv(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function Gv(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function Kv(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{Rd[e]=setTimeout(()=>{n("")},t)})}function Qv(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function ji(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new V(t,n).initNetWork(e.status)}function Fd(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function _i(){return Kf()?"imtAndroid":Tl()?"imtIOS":Z()?"userscript":je()?"safari":Zn()?"firefox":N0()?"chrome":"other"}function La(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Bd(e){return e?.getAttribute("imt-state")||""}function Ma(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function _d(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(wr(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Jv(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}var Nd=!1,jF=Z();function nC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function HF(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&rC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qi(i,Kc)){if(a===!0)return!0;continue}if(Il(i.nodeName,t.inlineTags))return!0;if(!h4(i,t))return!1}}return!0}function b4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Il(e.nodeName,n)||h4(e,t)){if(qi(e,w2)||Il(e.nodeName,["BR"]))return!1;if(qi(e,Kc))return!0;if(h4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return HF(e,t)}else return qi(e,Kc);return!1}function rC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qi(e,T2,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qi(e,p2))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Il(e.nodeName,i))}function Od(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!iC(r)&&r.length>=n}function aC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(iC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function iC(e){for(let t=0;t127)return!1;return!0}function Zv(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function Xv(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function $v(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function eC(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function tC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qi(e,t,n=!1){return y4(e,t,"1",n)}function y4(e,t,n,r=!1){return Nd&&!r?e[fr]?e[fr]?.[t]===n:!1:e.dataset?.[t]===n}function Ws(e){return(e.innerText||e.textContent||"").trim()}function v4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Ud(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Nd&&!r?(e[fr]||(e[fr]={}),e[fr][t]||(e[fr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function oC(e,t,n=!1){if(Nd&&!n){if(!e[fr]||!e[fr][t])return;delete e[fr][t]}else delete e.dataset[t]}function sC(e,t,n=!1){return Nd&&!n?!e[fr]||!e[fr][t]?void 0:e[fr][t]:e.dataset[t]}function h4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Il(e.nodeName,n)}function Fe(){if(!globalThis||!globalThis.location)return"https://example.com";if(!St())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function tr(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}function Hi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(jF){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${P}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Il(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function uC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function lC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||rC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function cC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function dC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${P}-theme-${i}-${m}: ${g}; -`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=uC(g);s+=`--${P}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; +`)||-1)>0?e?.textContent?.replace(//g,">"):e?.textContent?.replace(/\s+/ig," ")?.replace(//g,">")}function MI(e,t){return t.nodeType==Node.TEXT_NODE&&t.parentElement?.nextElementSibling?.nodeType==Node.ELEMENT_NODE&&!t.parentElement?.nextElementSibling?.nextElementSibling?e.contains(t.parentElement?.nextElementSibling):!1}function k5(e,t){let n=t;for(;n&&n.parentNode!=e;)n=n?.parentNode||void 0;return n}function Md(e){return/<([a-zA-Z0-9-]+)\s*([^<]*?)>/ig.test(e)}function u4(e){let t={...e},n={};return Object.entries(e).filter(([r,a])=>{if(r.startsWith("rich.")){if(r.includes("add_v")){let i=Object.keys(n).find(o=>o.endsWith("add")||o.includes("add."))||"";delete n[i]}if(r.includes("remove_v")){let i=Object.keys(n).find(o=>o.endsWith("remove")||o.includes("remove."))||"";delete n[i]}n[r.replace("rich.","")]=a}}),Aa({rule:n,valueIsArray:r=>Array.isArray(t[r]),getMergedValue:r=>t[r],onMergedResult:(r,a)=>{t[r]=a}},!0),t}function js(e,t,n,r){let a=e.rule,i=n?.[t];if(!i)return!1;let o=a.enableRichTranslate??!0;return e.state.translationMode=="dual"&&!i.dualEnableRichTranslate?i.dualEnableRichTranslate==null?i.enableRichTranslate&&o:!1:e.state.translationMode=="translation"&&!i.translationEnableRichTranslate?i.translationEnableRichTranslate==null?i.enableRichTranslate&&o:!1:r?!!r.enableRichTranslate&&o:o}function B5(e,t){let n=t||e.translationService;return js(e,n,e.config.translationServices)?u4(e.rule):e.rule}function Pd(e){return e.replace(/(.*?)<\s*\/(code|代码|CODE)>?/g,(t,n,r,a,i)=>`${i}`)}var PI=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function Er(e,t){if(!t||t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function ka(e,t,n){let{blockSelectors:r,extraBlockSelectors:a,extraInlineSelectors:i,atomicBlockSelectors:o}=t;if(Er(e,i))return!1;if(Er(e,a)||["br","input"].includes(e.nodeName.toLowerCase()))return!0;let l=null;if(e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex")return!1;let c=m();return c&&(c=!Er(e,o)),c;function m(){return n&&n.display?!!PI.includes(n.display):Er(e,r)}}var qt=Er;function Mo(e){return!!e.shadowRoot}function Ni(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Pl(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Da(e,t=!1){let n=rs;return t&&e?.translatedPlaceholderDelimiters?n=e.translatedPlaceholderDelimiters:e?.placeholderDelimiters&&(n=e.placeholderDelimiters),n}function Po(e,t=!1){let n=e.config?.translationServices?.[e.translationService];return Da(n,t)}function Hs(e,t){return ki(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function l4(e){let{rule:t}=e,n=_I(e),r=" ";return!e.config.generalRule.blockMinTextCount&&!e.config.generalRule.blockMinWordCount&&(r="
"),`${r} <${t.targetWrapperTag} class="${n} notranslate">`}function _I(e){let t=e.config.loadingTheme;return`${P}-loading-${t}`}function _l(e,t,n=!1){let r=e.rule,a=document.createElement(r.targetWrapperTag);a.classList.add("notranslate",Kt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),zt(a,C2,t.toString());let i=l4(e);return a.append(n?" ...":lt.sanitize(i,{RETURN_DOM_FRAGMENT:!0})),a}function qs(e,t){return e.querySelector(`[${Fg}='${t}']`)}function O5(){document.querySelectorAll(`[${Fg}]`).forEach(t=>{t.remove()})}function N5(){document.querySelectorAll(`.${Kt}-error`).forEach(t=>{t.remove()})}function U5(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Hi(n)&&t.push(n)}),t}function c4(e,t){return t?RI(e):II(e)}function RI(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,excludeRegexps:o,targetLanguage:s}=e,u=i,l=1001;try{if(r&&r.length>0){let c={},m=r.filter(p=>p.tl&&p.tl!==s?!1:p.k?(c[p.k]=p.v||"",!0):!1).sort((p,f)=>p.tl&&!f.tl?1:!p.tl&&f.tl?-1:0),g=new RegExp(a.replace("{word}",m.map(p=>p.k).join("|")),"gi");u=u.replace(g,(p,f,b)=>{if(f=="id"&&u[b+2]=="=")return p;let y=l++;return t[`${y}`]=j5(f,c),p.replace(f,`${f}`)})}o&&o.length>0&&o.forEach(c=>{let m=new RegExp(c,"gi");u=u.replace(m,(g,p)=>{let f=l++;return t[`${f}`]=Tf(p),g.replace(p,`${p}`)})})}catch(c){k.debug(`format source text error: ${c.message}`)}return{text:u,variables:t}}function II(e){let t={},{glossaries:r,_systemExcludeWordRegex:a,text:i,delimiters:o,excludeRegexps:s,targetLanguage:u}=e,l=i,c=1001;try{if(r&&r.length>0){let m={},g=r.filter(f=>f.tl&&f.tl!==u?!1:f.k?(m[f.k]=f.v||"",!0):!1).sort((f,b)=>f.tl&&!b.tl?1:!f.tl&&b.tl?-1:0),p=new RegExp(a.replace("{word}",g.map(f=>f.k).join("|")),"gi");l=l.replace(p,(f,b,y)=>{if(b=="id"&&l[y+2]=="=")return f;let h=c++;return t[`${h}`]=j5(b,m),o.length>2?f.replace(b,`<${o[2]}${h}>`):f.replace(b,`${o[0]}${h}${o[1]}`)})}s&&s.length>0&&s.forEach(m=>{let g=new RegExp(m,"gi");l=l.replace(g,(p,f)=>{let b=c++;return t[`${b}`]=Tf(f),o.length>2?p.replace(f,`<${o[2]}${b}>`):p.replace(f,`${o[0]}${b}${o[1]}`)})})}catch(m){k.debug(`format source text error: ${m.message}`)}return{text:l,variables:t}}function d4(e,t){return t?FI(e):BI(e)}function FI(e){let{text:t,variables:n}=e,r=Pd(t),a=new RegExp('(.*?)',"g");return Object.keys(n).length>0&&(r=r.replace(a,(o,s)=>{let u=Number(s);if(isNaN(u))return o;let l=n[s];return l||o})),r}function BI(e){let{text:t,delimiters:n,variables:r}=e,a=t;if(n.length>2){let i=n[2],o=new RegExp(`<${i}(\\d+)>(.*?)`,"g"),s=new RegExp(`<${i}(\\d+)>`),u=t;return Object.keys(r).length>0&&(u=u.replace(o,c=>{let m=c.match(s);if(!m)return c;let g=m[1],p=Number(g);if(isNaN(p))return c;let f=r[g];return f||c})),u}else{let i=`${n[0]}(\\d+)${n[1]}`,o=new RegExp(i,"g");a=a.replace(o,s=>{let l=s.replace(new RegExp(n[0],"g"),"").replace(new RegExp(n[1],"g"),""),c=Number(l);return isNaN(c)?s:r[c]?r[c]:s})}return a}function j5(e,t){let n=e;return e[0]!=e[0].toLowerCase()&&(n=e[0].toLowerCase()+e.slice(1)),t[e]||t[n]||e}function zs(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:r,delimiters:a,text:i,html:o}=e,s=o||i,u=new RegExp(`${a[0]}(\\d+)${a[1]}`,"gi");if(a.length>2){let c=a[2];u=new RegExp(`<${c}(\\d+)>(.*?)`,"gi")}let l=s.trim();return l=l.replace(u,""),l=l.trim(),l===""||l.length===1&&l.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(s)||l.includes("")||l.includes("< styles>")||eC(l)||Z5(l)||Q5(l)||J5(l)||X5(l)||NI(l)||u.test(l)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(l)?!1:Od(i?.trim(),n,r)}function _o(e){return e.nodeType===Node.ELEMENT_NODE}function H5(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function q5(e){let t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${n}/${r}/${a} ${i}:${o}:${s}`}async function ea(){return await Ft("fakeUserId","")}async function OI(){return await Ft("installedAt","")}async function Rd(e,t){let r=Se().INSTALL_FROM,a=On(),i=await OI(),o=await ea(),s=await Je(),u=!1,l=await tt.get(mt,null),c=!1;l&&At(l)&&(u=!0,l.subscription&&l.subscription.isTrial&&(c=!0));let m=await Is(),g=await Bs(),p={installFrom:r,version:a,installedAt:i,interfaceLang:e,optionInterfaceLang:s.interfaceLanguage,targetLang:t,deviceId:o,isProUser:u,isTrial:c,userTag:m,campaign:g},f=await Fs();return f&&(p.abGroup=f),p}function ii(e,t){let[n,r]=N();return z(()=>{!e||!t||(async()=>{let a=await m4(e,t);r(a)})()},[e,t,r]),n}async function m4(e,t){if(!e||!t)return;let n=!1,r=!1,a,i=!0;!je()&&J()||qe().any?(i=!1,a=t.monkeyH5FloatBall,!a&&e.rule.isShowUserscriptPagePopup==!1&&(a=e.config.monkeyH5FloatBall,a.enable=!1),a||(a=e.config.monkeyH5FloatBall),n=!t.monkeyH5FloatBall,r=!t.monkeyH5FloatBall?.enable):(a=e.config.pcFloatBall,n=!t.pcFloatBall,r=!t.pcFloatBall?.enable);try{if(a?.afterInstalledAt&&n){let o=await Ft("installedAt","");new Date(o).getTime()s==n),a=p4(e).find(s=>s==n),i=e.config.translationModeUrlPattern?.dualMatches?.find(s=>gt(e.url,s));return e.config.translationModeUrlPattern?.translationMatches?.find(s=>gt(e.url,s))?"translation":i?"dual":a?"translation":r?"dual":null}function p4(e){let t=e.config.translationLanguagePairs,n=e.config.translationModeLanguagePattern.translationMatches;if(!t)return n;let r=e.targetLanguage,a=t.map(i=>i.split(":")).filter(([i,o])=>r==o).map(([i])=>i);return[...new Set([...n,...a])]}function W5(e,t){let n=e.config.translationLanguagePairs;if(!n)return;let r=n.map(i=>i.split(":")).findIndex(([i,o])=>i==t&&o==e.targetLanguage);if(r<0)return;let a=n.slice();return a.splice(r,1),a}function V5(e){if(e?.includes("docs.google.com/document/d")&&!e?.includes("/mobilebasic")){let t=new URL(e);t.pathname=t.pathname.replace("/d/","/u/0/d/").replace(/\/[^/]*$/,"/mobilebasic"),t.searchParams.set("_immersive_translate_auto_translate","1"),window.location.href=t.toString();return}}function K5(e,{wordRegexStr:t,sentenceMaxLength:n}){if(!n||!e.trim())return;let r=e,a=/\s+/g,i,o=[],s=0;if(/[。?!]/.test(r))for(let m=0;m{let g=r.slice(m[0],m[1]);l&&g.match(l)||g.endsWith(".")&&g.indexOf(".")!=g.length-1||(u.push(m[1]),s=m[1])}),s=n||g<=n&&p>n){let f=r.slice(s,u[m]);f&&c.push(f),s=u[m];continue}}if(s{_d[e]=setTimeout(()=>{n("")},t)})}function $5(e){return e instanceof HTMLElement?getComputedStyle(e).display:""}async function ji(e,t){if(e.ok&&e.status>=200&&e.status<400)return e;let n=await e.text();throw new W(t,n).initNetWork(e.status)}function Id(e,t){return e.find(r=>{let a=r.match(/^\/(.+)\/([a-z]{0,4})$/),i=new RegExp(r,"gi");return a&&a.length>2&&(i=new RegExp(a[1],a[2])),t.match(i)})}function Bi(){return Kf()?"imtAndroid":Sl()?"imtIOS":J()?"userscript":je()?"safari":Jn()?"firefox":N0()?"chrome":"other"}function La(e,t){if(t)try{e?.setAttribute("imt-state",t||"")}catch{}}function Fd(e){return e?.getAttribute("imt-state")||""}function Ma(e){let t=e?.split("->")||[],n=document.documentElement;try{for(let r of t){let a=n?.querySelector(r);if(!a)break;a.shadowRoot?n=a.shadowRoot:n=a}}catch{}return n==document.documentElement?null:n}function Bd(e,t,n){if(!e.length)return null;let r=e.map(a=>{let i=new Set;for(;(a=a.parentNode)&&(i.add(a),a!==t););return i});for(let a of r[0])if(a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(Er(a,n.atomicBlockSelectors))continue;if(r.every(i=>i.has(a)))return a}return null}function Y5(e){if(!e)return[];let t=[];return e.map(n=>{let r=document.querySelectorAll(n);t.push(...r)}),t}var Nd=!1,UI=J();function tC(e,t){let n=[];for(let r of t){let a=e.querySelectorAll(r);for(let i of a)n.push(i)}return n}function jI(e,t){let n=function(i){return i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE?i.nodeType===Node.ELEMENT_NODE&&nC(i,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),a=!0;for(;r.nextNode();){let i=r.currentNode;if(i.nodeType===Node.ELEMENT_NODE){if(qi(i,Gc)){if(a===!0)return!0;continue}if(Rl(i.nodeName,t.inlineTags))return!0;if(!f4(i,t))return!1}}return!0}function h4(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Rl(e.nodeName,n)||f4(e,t)){if(qi(e,S2)||Rl(e.nodeName,["BR"]))return!1;if(qi(e,Gc))return!0;if(f4(e,t)){let r=globalThis.getComputedStyle(e);if(r.display==="block"||r.display==="flex")return!1}return jI(e,t)}else return qi(e,Gc);return!1}function nC(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&qi(e,T2,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&qi(e,g2))return!1;let{stayOriginalTags:r,excludeTags:a}=t,i=[];return n&&a&&a.length>0?i=a||[]:i=a.filter(o=>!r.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Rl(e.nodeName,i))}function Od(e,t,n){let r=e.trim();return r.length>=t||r.split(" ").filter(o=>o.trim()!=="").length>=n||!aC(r)&&r.length>=n}function rC(e,t,n){let r=e.trim();if(r.length<=t)return!0;if(aC(r)){if(r.split(" ").length<=n)return!0}else if(r.length<=n)return!0;return!1}function aC(e){for(let t=0;t127)return!1;return!0}function Z5(e){if(e&&e.includes("://")&&!e.includes(" ")&&e.length<512)try{return new URL(e),!0}catch{return!1}else return!1}function J5(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function X5(e){return e?/^[_\d:\-+\.。,,% ]+$/.test(e):!1}function Q5(e){if(e&&e.startsWith("#")){if(e.split("#").length>2)return!1;if(e.indexOf(" ")===-1)return!0}return!1}function eC(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function qi(e,t,n=!1){return b4(e,t,"1",n)}function b4(e,t,n,r=!1){return Nd&&!r?e[hr]?e[hr]?.[t]===n:!1:e.dataset?.[t]===n}function Vs(e){return(e.innerText||e.textContent||"").trim()}function y4(e){let t=e.querySelectorAll("iframe"),n="";for(let r=0;r2e3))break}return n}function Ud(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function zt(e,t,n,r=!1,a=!1){e.isContentEditable&&!a||(Nd&&!r?(e[hr]||(e[hr]={}),e[hr][t]||(e[hr][t]=n)):e.dataset[t]!==n&&(e.dataset[t]=n))}function iC(e,t,n=!1){if(Nd&&!n){if(!e[hr]||!e[hr][t])return;delete e[hr][t]}else delete e.dataset[t]}function oC(e,t,n=!1){return Nd&&!n?!e[hr]||!e[hr][t]?void 0:e[hr][t]:e.dataset[t]}function f4(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Rl(e.nodeName,n)}function Ie(){if(!globalThis||!globalThis.location)return"https://example.com";if(!xt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let r="";try{r=globalThis.parent.location.href}catch{}return r||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function tr(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(r){k.warn("injectCSS failed, rootDocument"+r?.message,e)}return}if(e&&e.head&&e.head.appendChild){let r=e.createElement("style");if(n){let a=e.querySelector(`style[data-id="${n}"]`);a&&a.remove(),r.dataset.id=n}r.textContent=t,e.head.appendChild(r)}else if(e){let r=document.createElement("head"),a=document.createElement("style");a.textContent=t,r.appendChild(a),e.appendChild(r)}else k.warn("injectCSS failed, rootDocument does not have head node",e)}function Hi(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(UI){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!(!!document.querySelector(`meta[name='${P}-ebook-viewer']`)||t.startsWith("blob:http"));return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Rl(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function sC(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),a=parseInt(t.substring(4,6),16);return{r:n,g:r,b:a}}function uC(e,t,n,r){if(r.document.caretPositionFromPoint){let a=r.document.caretPositionFromPoint(e,t);if(a){let i=r.document.createRange(),o=a.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||nC(o,n,!0))return null;try{i.setStart(o,a.offset),i.setEnd(o,a.offset)}catch(s){return k.warn("getRangeFromPoint error",s),null}return i}return null}else return r.document.caretRangeFromPoint?r.document.caretRangeFromPoint(e,t):null}function lC(e,t,n){let r=0,a=(i,o,s,u)=>{if(++r>100||u===i)return i;let l=i.shadowRoot;if(!l||typeof l.elementFromPoint!="function")return i;let c=l.elementFromPoint(o,s);return c?a(c,o,s,i):i};return a(e,t,n)}function cC(e,t,n,r){try{if(r.document.elementFromPoint){let a=r.document.elementFromPoint(e,t);if(!a||a.nodeName!=="IMG")return null;let i=a.getBoundingClientRect(),o=n.imageRule,s=o?.hoverMinHeight||100,u=o?.hoverMinWidth||100;return i.width0&&o.forEach(c=>{let{name:m}=c;if(e&&n&&n[m]){let g=n[m];if(["borderRadius"].includes(m)&&(g+="px"),s+=`--${P}-theme-${i}-${m}: ${g}; +`,t==="marker"&&m==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b}=sC(g);s+=`--${P}-theme-${i}-${m}-rgb: ${p}, ${f}, ${b}; `}}}),r||(r="inherit"),e&&(s+=` .${P}-target-inner { font-family: ${r}; } `);let u="";if(n&&n.textColor){let c=n.textColor;u+=` @@ -5831,46 +5831,46 @@ Translate the content to {{to}} Language: [imt-state="dual"] .${P}-target-translation-theme-${i}-inner{font-style: italic;} `);let l="";s&&(l=`:root { ${s}} -`),u&&(l+=u),l?tr(e,l,P+"-user-custom-style"):a&&tr(e,"",P+"-user-custom-style")}function zi(e,t){let r=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS;tr(e,r,P+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Gs(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` +`),u&&(l+=u),l?tr(e,l,P+"-user-custom-style"):a&&tr(e,"",P+"-user-custom-style")}function zi(e,t){let r=Se().IMMERSIVE_TRANSLATE_INJECTED_CSS;tr(e,r,P+"-default-injected-css");let a=t.config.translationThemePatterns||{},i=t.state.translationTheme,o=a[i]||{};Ks(e,i,o,t.config.selectTranslationFont);let s="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?s+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(s+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?s+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(s+=` -`+t.rule.additionalInjectedCss)),s&&tr(e,s,P+"-dynamic-injected-css")}var qF=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--qF,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ne.vnode&&Ne.vnode(u),u}function C4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(ce,{children:n["#services"]}):a.test(e)?d(ce,{children:n["#ai"]}):d(ce,{children:n[e]!=null?n[e]:t})}function Io(){let[e,t]=N(location.hash);return z(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var jd=()=>or.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=vy[e]||e,i=Df[e]||e,o=Lf[e],s=Mf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Vi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Lf,a="zh-CN"):n==="zh-TW"?(r=Mf,a="zh-TW"):(r=Df,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function S4(e){let t=j.runtime.getURL(a2),n=new URL(t);return e&&(e.startsWith("http")||!Zn())&&n.searchParams.set("file",e),n.href}var Pa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Uc){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function mC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Nc}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function gC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Hd(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Pa(e);try{let u=(await s.findByName(Uc)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),Au()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(hi);if(t[hi])return t[hi]}static async removeAuthInfo(){return await j.storage.local.remove(hi)}static setAuthInfo(t){return j.storage.local.set({[hi]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await pC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=mC(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),Au()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Du]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=gC(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var VF="https://www.googleapis.com/oauth2/v3/tokeninfo",WF=Nc,GF=Te().REDIRECT_URL;function pC(e){if(!e)throw"Authorization failure";let t=`${VF}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===WF?i(e):o("Token validation error")})})}return fetch(n).then(r)}function x4(e,t=!1){let n=GF;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Wi(e,n).auth(t)}function T4(e,t=!1){return x4(e,t).then(n=>n.access_token||null)}async function fC(){}var KF="https://www.google-analytics.com/mp/collect",YF=30,QF=100;async function JF(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>YF?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function hC(e){X2().forEach(({measurementId:t,apiSecret:n})=>{bC({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Ks(e,t,n){return bC({measurement_id:J2,api_secret:Z2,page_title:e,page_location:t,time:n})}async function bC(e){try{let t=Te(),n=Pi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Ii(),i=`${KF}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await JF(),engagement_time_msec:e.time||QF,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var Fl=new Map;function ZF(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function w4(e){let t=await tB(),n=Date.now();if(t){if(Fl.has(e))return;let r=await j.tabs.get(e),a=ZF(r.url);if(!a)return;Fl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}yC(e)}function yC(e){if(Fl.has(e)){let t=Fl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Fl.delete(e),$F(t.hostname,n)}}async function XF(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Bl().sendMessage(`content_script:main:${n}`,e)}function $F(e,t){Ks(`${e}(video)`,e,t),eB(t)}var qd="videoWatchTimeDay";async function eB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(qd,null);if(!a){await Je(qd,{day:r,time:e});return}if(a.day!==r){Ks("day-video."+et,"day-video."+et,a.time),await Je(qd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(qd,i)}catch(t){k.error(t)}}async function tB(){try{return await XF({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var _l=new Map;async function vC(e){let t=await E4(),n=Date.now();if(t=="Translated"){if(_l.has(e))return;let r=await j.tabs.get(e),a=nB(r.url);if(!a)return;_l.set(e,{duration:0,lastActiveTime:n,hostname:a});return}rB(e)}function nB(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function rB(e){if(_l.has(e)){let t=_l.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),_l.delete(e),iB(t.hostname,n)}}async function aB(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Bl().sendMessage(`content_script:main:${n}`,e)}function iB(e,t){Ks(e,e,t),oB(t)}async function E4(){try{return await aB({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var zd="readTimeDay";async function oB(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Bt(zd,null);if(!a){await Je(zd,{day:r,time:e});return}if(a.day!==r){Ks("day."+et,"day."+et,a.time),await Je(zd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Je(zd,i)}catch(t){k.error(t)}}var Vd,sB=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await ut(150);else{if(n==="queryParagraphCache")return K0(r);if(n==="setParagraphCache")return G0(r);if(n==="calculateSize")return Y0();if(n==="fetch")return Br(r);if(n==="getConfig")return Ze();if(n==="getLocalConfig")return Mt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Te().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Te().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Te().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Te().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=S4(a);(je()||!a)&&(i=Te().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return kt(r);if(n=="getUserConfig")return cn();if(n=="setUserConfig")return sr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await CC(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await CC(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await fC()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&(Ys({}),uB(a,i)),a&&vC(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Li.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")hC(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&w4(a)}else n==="updateToggleTranslateContextMenu"?Ys(r):n==="updateImageMenu"&&Fo()}}};function Bl(){return Vd||(Vd=new xa("background",!1).getConnection("main",sB),Vd)}function Wd(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function uB(e,t){if(je())return;let n=await lB();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Wd("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Wd("icons",n)}))}async function lB(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function CC(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function cB(){return navigator.userAgent.indexOf("Mac")!==-1}var dB="";function xC(){return dB||globalThis.navigator.userAgent}function mB(){let e=xC();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var SC={Alt:"\u2325"};function Ra(e=""){return cB()?Object.keys(SC).reduce((t,n)=>t.replace(n,SC[n]),e):e}var gB="";function pB(){return gB||globalThis.location.hostname}function TC(){try{let e=pB(),t=new URL(Hg);if(e===t.hostname||!mB())return!0;let n=/Version\/([\d\.]+)/,r=xC().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function oi(e,t){return Z(t)?!1:wC(e.config,e.isPro)}function wC(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function EC(){if(Z())return!1;let e=await Ze(),t=await xs();return wC(e,t)}function Gd(e){let t=_i();return!(e?.platforms&&!e.platforms.includes(t))}function A4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function AC(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function fB(){return N0()&&!je()}var Ol=fB()?["action"]:["browser_action","page_action"],kC="",hB=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Ol]},{id:Pu,contexts:["image"]},{id:Mu,contexts:Ol},{id:Ru,contexts:Ol},{id:Iu,contexts:Ol},{id:f2,contexts:Ol}];async function Nl(e){e=e||await Ze(),k.debug("update ContextMenu",e);for(let t of hB){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function Ys({targetLanguage:e,text:t}){let n=await Ze(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)kC=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await E4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=Ra(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),kC=""}j.contextMenus.update(r,{title:i,visible:a})}async function Fo(){try{let e=await EC();j.contextMenus.update(Pu,{visible:e})}catch{}}function DC(e,t){let n=t;n||(n=Te().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${P}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function Kd(e,t,n,r,a){let i=t.original||t,o=Lv(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(x=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function LC(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function MC(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=lt.sanitize(Pd(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let m=Object.keys(e.variables);for(let g=0;g/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=Iv(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` -`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Po(t);if(c.length>2){let m=c[2];return bB({delimiterTag:m,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let m=PC(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return m.html}}function k4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function bB(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),x=p[C-1]===" ",S=p[C+v.length]===" ",T=v.match(b);if(!T)return v;let w=T[1],A=Number(w);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=lt.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return x||(M=" "+M),S||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return x||(M=" "+M),S||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=Qs(l,n,r||[],s),h=Js(l);return L4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:ns,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function L4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function D4(e){let t=e[e.length-1];return t?t.text:""}function Qs(e,t,n=[],r){let a=["notranslate"];return r&&a.push(D2),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${Ng}-theme-${e}`):a.push(`${Og}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Ng):a.push(Og),a}function Js(e){let t=["notranslate",Qc];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function PC(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Po(n,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,x=>{let S=h.indexOf(x),T=h[S-1]===" ",w=h[S+x.length]===" ",D=x.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return x;let I=o[M];if(I&&I.type==="element"){let R=lt.sanitize(I.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return T||(R=" "+R),w||(R=R+" "),R}else k.error("variable type not supported",I,x);return x}));let v=Qs(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(k2);let C=Js(i);return L4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:ns,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function nt(e){yf({type:"success",text:e})}function bt(e){yf({type:"error",text:e})}var M4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function Yd(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");z(()=>{M4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=le(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),M4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function Qd(e,t,n){let r=[];return function(){let[i,o,s,u]=Yd(e,t,n),l=le(c=>{for(let m of r)m(c)},[]);return z(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function RC(e,t){return Qd(e,t,"local")}function IC(e,t){return Qd(e,t,"sync")}var yB="userConfig",vB=null,CB=IC(yB,vB);function Oe(e){let[t,n,r,a]=CB(),[i,o]=N();z(()=>{(async function(){let u=await kd();o(u)})()},[t]);let s=le(async u=>{let l=typeof u=="function"?u(i):u;l&&P4(l);let{userConfig:c,promptPool:m,objectPool:g}=await i4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Qr(Ed,m),await Qr(Ad,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function P4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Ie=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Sy(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let T=v instanceof V?new V(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h.callback&&h.callback(T,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let x=p[y],S=0;for(let T=0;T{let S=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(S=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(w=>w.text),forces:h.tempSentences.map(w=>w.force),xpaths:h.tempSentences.map(w=>w.xpath||""),from:S,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let T=A2;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(T=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Da(this.serviceConfig);if(h.tempSentences.forEach((F,q)=>{let Y=d4({text:F.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);F.force!==!0&&(Y&&Y.text&&Y.text.trim().lengthq.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:F,from:S,to:h.to})}let M="";w&&w.length>=2?M=A.map((F,q)=>{let{item:Y}=F;return q===A.length-1?Y.text:Y.text+w[0]+(q+1)+w[1]}).join(""):M=A.map(({item:F})=>F.text).join(T);let I=await this.translate({text:M,from:S,to:h.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:R}=I,B=[];if(w&&w.length>=2){let F=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(F=w[2]);let q=new RegExp(F,"g");B=R.split(q)}else B=R.split(T);let L=[];if(B.length>A.length){for(let F=0;FF.text);return D=Da(this.serviceConfig,!0),L.forEach((F,q)=>{let Y=A[q],te=Y.index,xe=Y.variables||{};Object.keys(xe).length>0&&(F=m4({text:F,delimiters:D,variables:xe},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),U[te]=F}),{sourceTempSentences:h.tempSentences,text:U,from:I.from,to:I.to}}};g.push(x().then(S=>{let{text:T,sourceTempSentences:w}=S;for(let A=0;A{if(S instanceof V&&S.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let T=0;T{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Da(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=d4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Da(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=m4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Zs="input is invalid type",R4=typeof window=="object",Gi=R4?window:{};Gi.JS_SHA256_NO_WINDOW&&(R4=!1);var SB=!R4&&typeof self=="object",xB=!Gi.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;xB?Gi=global:SB&&(Gi=self);var tre=!Gi.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,nre=typeof define=="function"&&define.amd,Ul=!Gi.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),TB=[-2147483648,8388608,32768,128],ta=[24,16,8,0],Jd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Zd=["hex","array","digest","arrayBuffer"],xn=[];(Gi.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ul&&(Gi.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var FC=function(e,t){return function(n){return new Tn(t,!0).update(n)[e]()}},_C=function(e){var t=FC("hex",e);t.create=function(){return new Tn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Tn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=TB[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Tn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+Jd[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+Jd[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+Jd[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+Jd[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Tn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=Ce[e>>28&15]+Ce[e>>24&15]+Ce[e>>20&15]+Ce[e>>16&15]+Ce[e>>12&15]+Ce[e>>8&15]+Ce[e>>4&15]+Ce[e&15]+Ce[t>>28&15]+Ce[t>>24&15]+Ce[t>>20&15]+Ce[t>>16&15]+Ce[t>>12&15]+Ce[t>>8&15]+Ce[t>>4&15]+Ce[t&15]+Ce[n>>28&15]+Ce[n>>24&15]+Ce[n>>20&15]+Ce[n>>16&15]+Ce[n>>12&15]+Ce[n>>8&15]+Ce[n>>4&15]+Ce[n&15]+Ce[r>>28&15]+Ce[r>>24&15]+Ce[r>>20&15]+Ce[r>>16&15]+Ce[r>>12&15]+Ce[r>>8&15]+Ce[r>>4&15]+Ce[r&15]+Ce[a>>28&15]+Ce[a>>24&15]+Ce[a>>20&15]+Ce[a>>16&15]+Ce[a>>12&15]+Ce[a>>8&15]+Ce[a>>4&15]+Ce[a&15]+Ce[i>>28&15]+Ce[i>>24&15]+Ce[i>>20&15]+Ce[i>>16&15]+Ce[i>>12&15]+Ce[i>>8&15]+Ce[i>>4&15]+Ce[i&15]+Ce[o>>28&15]+Ce[o>>24&15]+Ce[o>>20&15]+Ce[o>>16&15]+Ce[o>>12&15]+Ce[o>>8&15]+Ce[o>>4&15]+Ce[o&15];return this.is224||(u+=Ce[s>>28&15]+Ce[s>>24&15]+Ce[s>>20&15]+Ce[s>>16&15]+Ce[s>>12&15]+Ce[s>>8&15]+Ce[s>>4&15]+Ce[s&15]),u};Tn.prototype.toString=Tn.prototype.hex;Tn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Tn.prototype.array=Tn.prototype.digest;Tn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Xd(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Zs);if(Ul&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ul||!ArrayBuffer.isView(e)))throw new Error(Zs)}else throw new Error(Zs);e.length>64&&(e=new Tn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Tn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Xd.prototype=new Tn;Xd.prototype.finalize=function(){if(Tn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Tn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Tn.prototype.finalize.call(this)}};var Xs=_C();Xs.sha256=Xs;Xs.sha224=_C(!0);Xs.sha256.hmac=OC();Xs.sha224.hmac=OC(!0);var NC=Xs;var UC=NC.sha256;function lr(e){return Promise.resolve(UC(e))}function $s(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Er(e,t){let n=UC.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function jC(e,t){let n=await Er(e,t);return $s(n)}async function $d(e,t){let n=wB(t),r=await Er(e,n);return $s(r)}function wB(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var HC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],jl=class e extends Ie{static langMap=new Map(HC);maxTextGroupLength=50;static langMapReverse=new Map(HC.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new V("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await lr(a)].join(` -`),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await lr(c)].join(` -`),p=await jC(m,`TC3${n}`),f=await $d(i,p),b=await $d("tc3_request",f),y=await $d(g,b),h=await ee({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new V(h.Response.Error.Message);return h}};var qC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],EB={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Hl=class e extends Ie{static langMap=new Map(qC);static langMapReverse=new Map(qC.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await ee({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:EB,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var zC=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],ql=class e extends Ie{static langMap=new Map(zC);static langMapReverse=new Map(zC.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new V("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new V("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await ee({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function AB(e,t){return t?e+(t-e%t):e}function kB(e,t){return e.split(t).length-1}function I4(e){let t=Date.now(),n=1;for(let r of e)n+=kB(r,"i");return AB(t,n)}function DB(e,t){return Math.floor(Math.random()*(t-e+1))+e}function F4(){return DB(1e6,1e8)}var B4="https://www2.deepl.com/jsonrpc",_4="auto",VC=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function LB(e=VC){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function O4(e){return LB()[e.toLowerCase()]}var MB={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function PB(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function RB(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function IB(e,t,n,r,a,i,o){let s=F4(),u=RB(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=I4(t);let c=await ee({retry:2,method:"POST",url:e,body:PB(u),headers:MB}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function WC(e,t,n,r=_4,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:IB(e,t,O4(n),O4(r)??"auto",a,i,o):{text:[],from:r,to:n}}var GC=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],eu=class e extends Ie{static langMap=new Map(GC);static langMapReverse=new Map(GC.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=B4;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=Ft(B4,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await WC(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var zl=class e extends Ie{static langMap=new Map(zf);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ri.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Te(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=KC());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await ee({url:nd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new V(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Te(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=KC()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` -`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await ee({url:nd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new V(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function KC(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function N4(){return Math.random()>=.001}var tu=class extends Ie{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!N4())throw new V("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await d5(),!N4())throw new V("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var QC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],U4=new Map(QC),YC=new Map(QC.map(([e,t])=>[t,e])),j4=class e extends Ie{static langMap=U4;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new V("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await ee({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:U4.get(r)||"auto",target_lang:U4.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:YC.get(o.source_lang),to:YC.get(o.target_lang)}}else throw new V(i.msg)}},em=j4;var H4="https://{s}bing.com",e8=H4+"/translator",FB=H4+"/ttranslatev3",BB=H4+"/tspellcheckv3",tm="bingGlobalConfig",t8=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],JC=new Map(t8),ZC=new Map(t8.map(([e,t])=>[t,e])),XC=1e3,na,nu;function q4(e,t){return e.replace("{s}",t?t+".":"")}async function _B(){if(!na){let n=await j.storage.local.get(tm);return n&&(na=n[tm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=na;return Date.now()-e>t}async function $C(){let e,t,n,r,a,i,o,s,u,l;try{let c=q4(e8,e),m=await ee({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return na={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[tm]:na}),na}function OB(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=na;return q4(e?BB:FB,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+na.count++:"")}function NB(e,t,n,r){let{token:a,key:i}=na,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function n8(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>XC)throw new Error(`The supported maximum length of text is ${XC}. Please shorten the text.`);nu||(nu=$C()),await nu,await _B()&&(nu=$C(),await nu),t=t||"auto",n=n||"zh-CN",t=JC.get(t)||t,n=JC.get(n)||n;let a=OB(!1),i=NB(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:q4(e8,na.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await ee({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(na=null,nu=null,await j.storage.local.remove(tm),c.ShowCaptcha)throw new Error(` +`+t.rule.additionalInjectedCss)),s&&tr(e,s,P+"-dynamic-injected-css")}var HI=0;function d(e,t,n,r,a){var i,o,s={};for(o in t)o=="ref"?i=t[o]:s[o]=t[o];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--HI,__source:a,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(o in i)s[o]===void 0&&(s[o]=i[o]);return Ne.vnode&&Ne.vnode(u),u}function v4({value:e,defaultCase:t=null,cases:n}){if(e==null)return null;let r=/^#services\b/,a=/^#ai\b/;return r.test(e)?d(ce,{children:n["#services"]}):a.test(e)?d(ce,{children:n["#ai"]}):d(ce,{children:n[e]!=null?n[e]:t})}function Ro(){let[e,t]=N(location.hash);return z(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}var jd=()=>or.filter(e=>e!=="auto"),Ot=(e,t,n,r)=>{let a=yy[e]||e,i=kf[e]||e,o=Df[e],s=Lf[e],u={"zh-CN":o,"zh-TW":s,en:i};if(n)return u[e]?u[e]:i;let l=e!==t&&a!=="All Languages";if(u[t]){let c=u[t];return r||e==="auto"||e==="placeholder"?c:l?`${c} (${a})`:`${c}`}else return l?`${i} (${a})`:i};function Wi(e,t,n){let r,a;n==="zh-CN"||n==="zh-CN-NE"?(r=Df,a="zh-CN"):n==="zh-TW"?(r=Lf,a="zh-TW"):(r=kf,a="en");let i=e.slice(0,t),o=e.slice(t);return o.sort((s,u)=>{let l=r[s]||s,c=r[u]||u;return l.localeCompare(c,a)}),i.concat(o)}function C4(e){let t=j.runtime.getURL(r2),n=new URL(t);return e&&(e.startsWith("http")||!Jn())&&n.searchParams.set("file",e),n.href}var Pa=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:r,files:a}=await this.list(n).catch(i=>{throw i});t.push(...a),n=r||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return k.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Uc){let r=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},r)}updateConfig(t,n){let r=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,r)}async upload(t,n){let r=new FormData;r.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),r.append("file",n);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:r});return a.ok?await a.json():Promise.reject(a.text())}async list(t,n){let r=new URL("https://www.googleapis.com/drive/v3/files");t&&r.searchParams.append("pageToken",t),n&&r.searchParams.append("q",n),r.searchParams.append("spaces","appDataFolder"),r.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),r.searchParams.append("pageSize","100"),r.searchParams.append("orderBy","createdTime desc");try{return k.debug("list api:",r.toString(),this.accessToken),await(await fetch(r.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw k.error("fetch google ip error",a),a}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};function dC(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Nc}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function mC(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Hd(e,t,n,r,a,i,o){if(k.debug(`autoSyncStrategy accessToken: ${e}`),t===null){k.debug("autoSyncStrategy settings is null");return}let s=new Pa(e);try{let u=(await s.findByName(Uc)).files;k.debug("files",u);let l=u[0]?.id,c=null;if(l&&(c=await s.getConfig(l).then(m=>({fileId:l,config:m}))),c){let{config:m,fileId:g}=c,p=m.updatedAt?new Date(m.updatedAt):new Date(0),f=t.updatedAt?new Date(t.updatedAt):new Date(0);if(k.debug("remoteUpdatedAt",p,"localUpdatedAt",f),p>f)k.debug("remote is newer, update local config",m),n(m),i&&i(!0);else if(p.getTime()===f.getTime())k.debug("remote and local are the same, do nothing"),i&&i(!1);else if(p(await e.removeAuthInfo(),Au()&&globalThis.location.reload(),r))}static async getAuthInfo(){let t=await j.storage.local.get(hi);if(t[hi])return t[hi]}static async removeAuthInfo(){return await j.storage.local.remove(hi)}static setAuthInfo(t){return j.storage.local.set({[hi]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(k.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await gC(n.access_token).then(i=>!0).catch(i=>!1))return Promise.resolve(n);let r=dC(this._state,this._redirectUrl);return k.debug(this.CLASSNAME,"auth url: "+r),Au()?this.userscriptAuthWorkflow(r,t):this.extensionAuthWorkflow(r).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,n){return n&&await j.storage.local.set({[Du]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,r=!1;return new Promise((a,i)=>{let o=()=>{j.tabs.onUpdated.removeListener(s),j.tabs.onRemoved.removeListener(u)},s=(g,p,f)=>{if(k.debug(this.CLASSNAME,"create tab onUpdated: "+f.url),n===g){let b=new URL(f.url||""),y=mC(f.url);b.pathname.startsWith("/auth-done")&&y?.access_token&&(k.debug(this.CLASSNAME,"auth done: "+f.url),a({access_token:y.access_token}),r=!0,j.tabs.remove(g),o())}},u=(g,p)=>{k.debug(this.CLASSNAME,"create tab onRemoved: "+g),(g===n||!r)&&(o(),i(new Error("auth failed")))},l=Math.min(500,screen.availWidth),c=Math.min(650,screen.availHeight),m;j.windows===void 0?m=j.tabs.create({url:t}).then(g=>{n=g.id}):m=j.windows.create({url:t,type:"popup",width:l,height:c,left:Math.round((screen.width-l)/2),top:Math.round((screen.height-c)/2)}).then(g=>{n=g.tabs[0].id}),m.then(()=>{j.tabs.onUpdated.addListener(s),j.tabs.onRemoved.addListener(u)}).catch(g=>{k.debug(this.CLASSNAME,"create tab failed: "+g),i(g)})})}};var zI="https://www.googleapis.com/oauth2/v3/tokeninfo",WI=Nc,VI=Se().REDIRECT_URL;function gC(e){if(!e)throw"Authorization failure";let t=`${zI}?access_token=${e}`,n=new Request(t,{method:"GET"});function r(a){return new Promise((i,o)=>{a.status!=200&&o("Token validation error"),a.json().then(s=>{s.aud&&s.aud===WI?i(e):o("Token validation error")})})}return fetch(n).then(r)}function x4(e,t=!1){let n=VI;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,i=window.location.port;n=`${window.location.protocol}//${a}${i?`:${i}`:""}/auth-done/`}return new Vi(e,n).auth(t)}function T4(e,t=!1){return x4(e,t).then(n=>n.access_token||null)}async function pC(){}var KI="https://www.google-analytics.com/mp/collect",GI=30,$I=100;async function YI(){let{sessionData:e}=await j.storage.session.get("sessionData"),t=Date.now();return e&&e.timestamp&&((t-e.timestamp)/6e4>GI?e=null:(e.timestamp=t,await j.storage.session.set({sessionData:e}))),e||(e={session_id:t.toString(),timestamp:t.toString()},await j.storage.session.set({sessionData:e})),e.session_id}function fC(e){J2().forEach(({measurementId:t,apiSecret:n})=>{hC({measurement_id:t,api_secret:n,page_title:e.pageTitle,page_location:e.pageLocation,time:e.time})})}function Gs(e,t,n){return hC({measurement_id:Y2,api_secret:Z2,page_title:e,page_location:t,time:n})}async function hC(e){try{let t=Se(),n=Pi(),r=t.INSTALL_FROM==="firefox_store";if(n?.name?.startsWith("ImtFx")&&(r=!1),r)return;let{fakeUserId:a}=await Ri(),i=`${KI}?measurement_id=${e.measurement_id}&api_secret=${e.api_secret}`,o={method:"POST",body:JSON.stringify({client_id:a,events:[{name:"page_view",params:{session_id:await YI(),engagement_time_msec:e.time||$I,page_title:e.page_title||document.title,page_location:e.page_location||document.location.href}}]})};fetch(i,o)}catch(t){k.error(t)}}var Il=new Map;function ZI(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}async function S4(e){let t=await eF(),n=Date.now();if(t){if(Il.has(e))return;let r=await j.tabs.get(e),a=ZI(r.url);if(!a)return;Il.set(e,{duration:0,lastActiveTime:n,hostname:a});return}bC(e)}function bC(e){if(Il.has(e)){let t=Il.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Il.delete(e),XI(t.hostname,n)}}async function JI(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function XI(e,t){Gs(`${e}(video)`,e,t),QI(t)}var qd="videoWatchTimeDay";async function QI(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Ft(qd,null);if(!a){await Ze(qd,{day:r,time:e});return}if(a.day!==r){Gs("day-video."+et,"day-video."+et,a.time),await Ze(qd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Ze(qd,i)}catch(t){k.error(t)}}async function eF(){try{return await JI({method:"getIsDulSubtitle",data:{trigger:"shortcut"}})}catch{return null}}var Bl=new Map;async function yC(e){let t=await w4(),n=Date.now();if(t=="Translated"){if(Bl.has(e))return;let r=await j.tabs.get(e),a=tF(r.url);if(!a)return;Bl.set(e,{duration:0,lastActiveTime:n,hostname:a});return}nF(e)}function tF(e){if(!e)return null;try{return new URL(e).hostname}catch{return null}}function nF(e){if(Bl.has(e)){let t=Bl.get(e),n=t.duration;t.lastActiveTime&&(n+=Date.now()-t.lastActiveTime),Bl.delete(e),aF(t.hostname,n)}}async function rF(e){let n=(await j.tabs.query({currentWindow:!0,active:!0}))[0].id;return Fl().sendMessage(`content_script:main:${n}`,e)}function aF(e,t){Gs(e,e,t),iF(t)}async function w4(){try{return await rF({method:"getPageStatus",data:{trigger:"shortcut"}})}catch{return null}}var zd="readTimeDay";async function iF(e){try{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),a=await Ft(zd,null);if(!a){await Ze(zd,{day:r,time:e});return}if(a.day!==r){Gs("day."+et,"day."+et,a.time),await Ze(zd,{day:r,time:e});return}let i={day:r,time:a.time+e};await Ze(zd,i)}catch(t){k.error(t)}}var Wd,oF=async function(e,t){let{method:n,data:r}=e;if(k.debug("background received message",n,r||" "),n==="mock")await ut(150);else{if(n==="queryParagraphCache")return G0(r);if(n==="setParagraphCache")return K0(r);if(n==="calculateSize")return $0();if(n==="fetch")return Br(r);if(n==="getConfig")return Je();if(n==="getLocalConfig")return Mt();if(n==="openOptionsPage"){let a="";r&&r.pageRoute&&(a=r.pageRoute);let i=j.runtime.getURL("options.html");j.tabs.create({url:i+a})}else if(n==="openAboutPage")j.tabs.create({url:j.runtime.getURL("options.html#about")});else if(n==="openInTab")r&&j.tabs.create({url:r});else if(n==="openEbookViewerPage"){let i=Se().EBOOK_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openSubtitleBuilderPage"){let i=Se().SUBTITLE_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openEbookBuilderPage"){let i=Se().EBOOK_BUILDER_URL;j.tabs.create({url:i})}else if(n==="openHtmlViewerPage"){let i=Se().HTML_VIEWER_URL;j.tabs.create({url:i})}else if(n==="openPdfViewerPage"){let a=r?.url,i=C4(a);(je()||!a)&&(i=Se().PDF_VIEWER_URL),j.tabs.create({url:i})}else{if(n==="setLocalConfig")return kt(r);if(n=="getUserConfig")return cn();if(n=="setUserConfig")return sr(r);if(n==="detectLanguage"){let{text:a,pageLangs:i}=r;if(j.i18n&&j.i18n.detectLanguage)try{let o=await vC(j.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(o.languages.length>0){if(o.isReliable)return re(o.languages[0].language);for(let s of o.languages){let u=re(s.language);if(i.includes(u)&&s.percentage>50)return u}}return"auto"}catch(o){return k.debug("detect language error",o),"auto"}else return"auto"}else if(n==="detectTabLanguage")try{let a=await vC(j.tabs.detectLanguage(t.id),1500,"auto");return re(a)}catch(a){return k.debug("detect tab language error, use auto ",a),"auto"}else if(n==="autoSyncLatestConfig"){try{await pC()}catch(a){k.debug("auto sync latest config error",a)}return""}else if(n!=="updateCommands")if(n==="setBadge"){let a=t.id,i=r&&r.text?r.text:"";a&&($s({}),sF(a,i)),a&&yC(a)}else if(n=="getDelay"){let{key:a,options:i}=r||{};return Li.getDelay(a,i,!0)}else if(n==="getIsSupportIsOnToolbar")try{return j?.action?.getUserSettings?(await j.action.getUserSettings(),!0):!1}catch{return!1}else if(n==="getIsOnToolbar")try{return(await j.action.getUserSettings()).isOnToolbar}catch{return!1}else if(n=="reportOptionsPageView")fC(r);else if(n==="updateVideoSubtitleStatus"){let a=t.id;a&&S4(a)}else n==="updateToggleTranslateContextMenu"?$s(r):n==="updateImageMenu"&&Io()}}};function Fl(){return Wd||(Wd=new Ta("background",!1).getConnection("main",oF),Wd)}function Vd(e,t){return t==="dark"?{32:`${e}/dark-32.png`,48:`${e}/dark-48.png`,64:`${e}/dark-64.png`,128:`${e}/dark-128.png`,256:`${e}/dark-256.png`}:{32:`${e}/32.png`,48:`${e}/48.png`,64:`${e}/64.png`,128:`${e}/128.png`,256:`${e}/256.png`}}async function sF(e,t){if(je())return;let n=await uF();n!==null&&(t?j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Vd("badge-icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Vd("badge-icons",n)}):j.browserAction&&j.browserAction.setIcon?j.browserAction.setIcon({tabId:e,path:Vd("icons",n)}):j.action&&j.action.setIcon&&j.action.setIcon({tabId:e,path:Vd("icons",n)}))}async function uF(){if(j.theme&&j.theme.getCurrent){let e=await j.theme.getCurrent();if(e.properties&&e.properties.color_scheme)return e.properties.color_scheme;if(e.properties&&e.properties.color_scheme===null)return null}return"light"}function vC(e,t,n){return new Promise((r,a)=>{let i=setTimeout(()=>{r(n)},t);e.then(o=>{clearTimeout(i),r(o)}).catch(o=>{clearTimeout(i),a(o)})})}function lF(){return navigator.userAgent.indexOf("Mac")!==-1}var cF="";function xC(){return cF||globalThis.navigator.userAgent}function dF(){let e=xC();if(/iPhone/.test(e))return!1;let t=e.indexOf("Macintosh")!==-1||e.indexOf("Mac OS X")!==-1,n=e.indexOf("Safari")!==-1;return t&&n}var CC={Alt:"\u2325"};function _a(e=""){return lF()?Object.keys(CC).reduce((t,n)=>t.replace(n,CC[n]),e):e}var mF="";function gF(){return mF||globalThis.location.hostname}function TC(){try{let e=gF(),t=new URL(jg);if(e===t.hostname||!dF())return!0;let n=/Version\/([\d\.]+)/,r=xC().match(n);return r?!r[1].startsWith("18"):!0}catch(e){return k.error("Error checking if options supported",e),!0}}function oi(e,t){return J(t)?!1:SC(e.config,e.isPro)}function SC(e,t){let n=e.generalRule.imageRule.enableImageTranslation,r=e.beta;return n=="all"||n=="beta"&&r||n=="pro"&&t||n=="pro_beta"&&r&&t?!0:n?!1:r&&!!t}async function wC(){if(J())return!1;let e=await Je(),t=await Ts();return SC(e,t)}function Kd(e){let t=Bi();return!(e?.platforms&&!e.platforms.includes(t))}function E4(e){try{if(new URL(e).pathname.endsWith(".gif"))return!0}catch{return!1}}function EC(e){return new Promise((t,n)=>{let r=new FileReader,a=e.slice(0,3);r.onloadend=i=>{if(r.readyState===FileReader.DONE){let o=new Uint8Array(r.result);o[0]===71&&o[1]===73&&o[2]===70?t(!0):t(!1)}},r.onerror=()=>{t(!0)},r.readAsArrayBuffer(a)})}function pF(){return N0()&&!je()}var Ol=pF()?["action"]:["browser_action","page_action"],AC="",fF=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Ol]},{id:Pu,contexts:["image"]},{id:Mu,contexts:Ol},{id:_u,contexts:Ol},{id:Ru,contexts:Ol},{id:p2,contexts:Ol}];async function Nl(e){e=e||await Je(),k.debug("update ContextMenu",e);for(let t of fF){let n=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(n=!1);let r=Pe(e.interfaceLanguage,`browser.${t.id}`,{targetLanguage:Ot(e.targetLanguage,e.interfaceLanguage,!1,!0)});j.contextMenus.update(t.id,{title:r,visible:n})}}async function $s({targetLanguage:e,text:t}){let n=await Je(),r="toggleTranslatePage",a=!0;n.isShowContextMenu===!1&&r==="toggleTranslatePage"&&(a=!1);let i;if(t)AC=t,i=Pe(n.interfaceLanguage,"browser.translateText",{text:t});else{let o=await w4(),s=o&&o!=="Original";i=Pe(n.interfaceLanguage,"browser.toggleTranslatePage",{targetLanguage:Ot(e??n.targetLanguage,n.interfaceLanguage,!1,!0)}),s&&(i=`${Pe(n.interfaceLanguage,"show-original")}`);let u=_a(n.shortcuts.toggleTranslatePage);u&&(i+=`(${u})`),AC=""}j.contextMenus.update(r,{title:i,visible:a})}async function Io(){try{let e=await wC();j.contextMenus.update(Pu,{visible:e})}catch{}}function kC(e,t){let n=t;n||(n=Se().IMMERSIVE_TRANSLATE_INJECTED_CSS||"");let a=`${`--${P}-${e}`}: (.+?);`,i=new RegExp(a),o=n.match(i);return o?o[1]:""}function Gd(e,t,n,r,a){let i=t.original||t,o=D5(a,e,i,n.ignoreRichSelectors||[],n.domPurifyAddTags),s=null,{stayOriginalSelectors:u,delimiters:l,isPreWhitespace:c}=n,m=[],g={};for(let f=0;f0){let f="";for(let h=0;h0&&i[h].textContent.length0&&(T=m[h-1].text),hf.type==="text").map(f=>f.text).join(" "),n.richMoreWordPercent&&m.length>4&&m.length/(s.pureText||"").split(/\s+/).length>n.richMoreWordPercent&&(s.html=void 0)),s}function DC(e,t){let n=`${e[0]}${t}${e[1]}`;return e[2]&&(n=`<${e[2]}${t}>`),n}function LC(e,t){let{rule:n}=t;if(!e.targetText)return"";e.targetText=lt.sanitize(Pd(e.targetText),{ADD_TAGS:t.rule.domPurifyAddTags});let r=[];if(e.variables){let m=Object.keys(e.variables);for(let g=0;g/g,">"))}let a=t.config.translationServices[t.translationService];t.isRichTranslate&&(e.targetText=_5(e.richVariables,e.targetText,a.richTag,a.richIdName));let i=!1,o=e.text,s=o.split(" ").length,u=o.split(` +`).length;s<=n.blockMinWordCount&&o.length<=n.blockMinTextCount&&u<2&&(i=!0),e.display?.includes("flex")&&(i=!0);let l={id:Number(e.id),elements:[],isVertical:!1,rootFrame:e.commonAncestorContainer,text:e.text,variables:r,inline:i,preWhitespace:e.isPreWhitespace||!1,languageByLocal:"auto",languageByClient:"auto"},c=Po(t);if(c.length>2){let m=c[2];return hF({delimiterTag:m,targetText:e.targetText,inline:i,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:r,ctx:t}).html}else{let m=MC(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return m.html}}function A4(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function hF(e){let{delimiterTag:t,inline:n,translationClasses:r,targetWrapperTag:a,wrapperPrefix:i,variables:o,preWhitespace:s,wrapperSuffix:u,translationTheme:l,translationBlockStyle:c,ctx:m}=e;o=o||[];let p=e.targetText,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),b=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,v=>{let C=p.indexOf(v),T=p[C-1]===" ",x=p[C+v.length]===" ",S=v.match(b);if(!S)return v;let w=S[1],A=Number(w);if(isNaN(A))return v;let D=o[Number(A)];if(D&&D.type==="element"){let M=lt.sanitize(D.value.outerHTML,{ADD_TAGS:m.rule.domPurifyAddTags});return T||(M=" "+M),x||(M=M+" "),M}else if(D&&D.type==="text"){let M=D.value;return T||(M=" "+M),x||(M=M+" "),M}else k.error("variable type not supported",D,v);return v}));let y=Ys(l,n,r||[],s),h=Zs(l);return D4({targetWrapperTag:a,innerClassList:h,classList:y,html:p,targetElementEffectAttributeName:ns,inline:n,wrapperPrefix:i,wrapperSuffix:u,position:"afterend",translationBlockStyle:c,translationPosition:m.config.translationPosition||""})}function D4({targetWrapperTag:e,innerClassList:t,classList:n,html:r,targetElementEffectAttributeName:a,inline:i,wrapperPrefix:o,wrapperSuffix:s,position:u,translationBlockStyle:l,translationPosition:c}){let m="";l&&(m=`style="${l}"`),r=`<${e} class="${t.join(" ")}" ${a}="1">${r}`,c!="before"&&(r=p(r));let g=[r];return i?o!=="smart"?g=[o,r]:g=[`<${e} class="notranslate" ${a}="1"> `,r]:o==="smart"?g=["
",r]:g=[o,r],r=c=="before"?g.reverse().join(""):g.join(""),c=="before"&&(r=p(r)),c!="before"&&(s==="smart"?r=`${r}`:r=`${r}${s}`),{html:r,position:u};function p(f){return`<${e} ${m} class="${n.join(" ")}" ${a}="1">${f}`}}function k4(e){let t=e[e.length-1];return t?t.text:""}function Ys(e,t,n=[],r){let a=["notranslate"];return r&&a.push(k2),e&&(a.push(`${P}-target-translation-theme-${e}`),t?a.push(`${Og}-theme-${e}`):a.push(`${Bg}-theme-${e}`)),n.length>0&&a.push(...n),t?a.push(Og):a.push(Bg),a}function Zs(e){let t=["notranslate",Yc];return e&&t.push(`${P}-target-translation-theme-${e}-inner`),t}function MC(e,t,n){let{rule:r,state:a}=n,{translationTheme:i}=a,{variables:o,isVertical:s}=e;o=o||[];let{text:u}=t,{wrapperPrefix:l,wrapperSuffix:c}=r,m=Po(n,!0),g="afterend",p=m[0],f=m[1],b=`${p}(\\d+)${f}`,y=new RegExp(b,"g"),h=u;o.length>0&&(h=h.replace(y,T=>{let x=h.indexOf(T),S=h[x-1]===" ",w=h[x+T.length]===" ",D=T.replace(new RegExp(m[0],"g"),"").replace(new RegExp(m[1],"g"),""),M=Number(D);if(isNaN(M))return T;let R=o[M];if(R&&R.type==="element"){let _=lt.sanitize(R.value.outerHTML,{ADD_TAGS:n.rule.domPurifyAddTags});return S||(_=" "+_),w||(_=_+" "),_}else k.error("variable type not supported",R,T);return T}));let v=Ys(i,e.inline,r.translationClasses||[],e.preWhitespace);s&&v.push(A2);let C=Zs(i);return D4({targetWrapperTag:n.rule.targetWrapperTag,innerClassList:C,classList:v,html:h,targetElementEffectAttributeName:ns,inline:e.inline,wrapperPrefix:l,wrapperSuffix:c,position:g,translationBlockStyle:r.translationBlockStyle,translationPosition:n.config.translationPosition||""})}function nt(e){bf({type:"success",text:e})}function bt(e){bf({type:"error",text:e})}var L4={get:(e,t,n)=>j.storage[n].get(e).then(r=>(r[e]===void 0&&(r[e]=t),r)),set:(e,t,n)=>j.storage[n].set({[e]:t})};function $d(e,t,n){let[r]=N(()=>typeof t=="function"?t():t),[a]=N(n),[i,o]=N(r),[s,u]=N(!1),[l,c]=N("");z(()=>{L4.get(e,r,a).then(g=>{g[e]&&o(g[e]),u(!0),c("")}).catch(g=>{u(!1),c(g)})},[e,r,a]);let m=le(g=>{let p=typeof g=="function"?g(i):g;k.debug("new settings",p),L4.set(e,p,a).then(()=>{o(p),u(!0),c("")}).catch(f=>{o(p),u(!1),c(f)})},[a,e,i]);return[i,m,s,l]}function Yd(e,t,n){let r=[];return function(){let[i,o,s,u]=$d(e,t,n),l=le(c=>{for(let m of r)m(c)},[]);return z(()=>(r.push(o),()=>{r.splice(r.indexOf(o),1)}),[o]),[i,l,s,u]}}function PC(e,t){return Yd(e,t,"local")}function _C(e,t){return Yd(e,t,"sync")}var bF="userConfig",yF=null,vF=_C(bF,yF);function Oe(e){let[t,n,r,a]=vF(),[i,o]=N();z(()=>{(async function(){let u=await kd();o(u)})()},[t]);let s=le(async u=>{let l=typeof u=="function"?u(i):u;l&&M4(l);let{userConfig:c,promptPool:m,objectPool:g}=await a4(l);k.debug("userConfig size",JSON.stringify(c).length,c),k.debug("promptPool size",JSON.stringify(m).length,m),k.debug("objectPool size",JSON.stringify(g).length,g),await Yr(Ed,m),await Yr(Ad,g),n(c),e&&e(l)},[i]);return[i,s,r,a,n]}function M4(e){e.override?(delete e.localUpdatedAt,delete e.override):(e.updatedAt=new Date().toISOString(),e.localUpdatedAt=e.updatedAt)}var Re=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=50;requestTimeout=30*1e3;retry=2;translationOptions;minTextCount=2;isRichTranslate=!1;headerConfigs={};bodyConfigs={};constructor(t,n,r,a){this.isRichTranslate=a,this.serviceConfig=t,this.generalConfig=n,this.translationOptions=r,t?.retry&&(this.retry=t.retry),t?.requestTimeout&&(this.requestTimeout=Number(t.requestTimeout)),r&&r.minTextCount&&(this.minTextCount=r.minTextCount),this.translationOptions.glossaries=this.mergeGlossaries(r,t),t.headerConfigs&&(this.headerConfigs=t.headerConfigs),t.bodyConfigs&&(this.bodyConfigs=t.bodyConfigs)}mergeGlossaries(t,n){if(!n.glossaries)return t.glossaries;let r=[];return t.glossaries&&r.push(...t.glossaries),n.glossaries&&r.push(...n.glossaries),r}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getRateLimiter(){let t=this.getDefaultRateLimit()||{limit:7,interval:1250},n=this.serviceConfig;return n?.limit&&(t.limit=Number(n.limit)),n?.interval&&(t.interval=Number(n.interval)),t}formatRateLimit(t){return t.limit<1&&(t.interval=Math.round(1e3/t.limit),t.limit=1),t}getDefaultRateLimit(){return{limit:7,interval:1250}}getCacheKeyPrefix(){return""}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,r){if(t.sentences.length===0)return{sentences:[]};let{sentences:a}=t,i=!1,o=!1,s=[],u=null,l=new Set;for(let y of a)y.from&&y.from!=="auto"&&l.add(y.from),y.refresh&&(i=!0),y.debug&&(o=!0);let c=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(c=this.serviceConfig.maxTextLengthPerRequest);let m=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(m=this.serviceConfig.maxTextGroupLengthPerRequest),this.translationOptions&&this.translationOptions.sourceProgram&&["videoSubtitle","subtitle"].includes(this.translationOptions.sourceProgram)&&this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle&&(m=this.serviceConfig.maxTextGroupLengthPerRequestForSubtitle);try{s=Cy(a,c,m)}catch(y){if(r)for(let h=0;hy));let g=[],p=[],f=(y,h,v)=>{let C="";if(h.translatedTexts&&h.translatedTexts[0]&&(C=h.translatedTexts[0]),p[y]||(p[y]=h,p[y].translatedTexts=Array(h.sentenceTotalParts).fill(null)),p[y].hasError)return;if(v){let S=v instanceof W?new W(v.name,v.message).initNetWork(v.status).initData(v.data):v;p[y].hasError=!0,h.callback&&h.callback(S,null,h.sentence);return}p[y].translatedTexts[h.partIndex]=C;let T=p[y],x=0;for(let S=0;S{let x=h.from;if(h.fromByClient&&h.fromByClient!=="auto"&&(x=h.fromByClient),this.isSupportList)return{...await this.formatAndTranslateList({text:h.tempSentences.map(w=>w.text),forces:h.tempSentences.map(w=>w.force),xpaths:h.tempSentences.map(w=>w.xpath||""),from:x,to:h.to,url:v,options:n,refresh:i,debug:o}),sourceTempSentences:h.tempSentences};{let S=E2;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(S=this.serviceConfig.translationTextSeparator);let w=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(w=this.serviceConfig.newlinePlaceholderDelimiters);let A=[],D=Da(this.serviceConfig);if(h.tempSentences.forEach((I,q)=>{let $=c4({text:I.text,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:D,glossaries:this.translationOptions.glossaries,excludeRegexps:this.translationOptions.excludeRegexps,targetLanguage:h.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);I.force!==!0&&($&&$.text&&$.text.trim().lengthq.text);return Promise.resolve({sourceTempSentences:h.tempSentences,text:I,from:x,to:h.to})}let M="";w&&w.length>=2?M=A.map((I,q)=>{let{item:$}=I;return q===A.length-1?$.text:$.text+w[0]+(q+1)+w[1]}).join(""):M=A.map(({item:I})=>I.text).join(S);let R=await this.translate({text:M,from:x,to:h.to,url:v,options:{...n,rawTextArrayLength:A.length,sourceProgram:this.translationOptions.sourceProgram||""},refresh:i,debug:o}),{text:_}=R,F=[];if(w&&w.length>=2){let I=`${w[0]}\\d+${w[1]}`;w&&w.length>=3&&(I=w[2]);let q=new RegExp(I,"g");F=_.split(q)}else F=_.split(S);let L=[];if(F.length>A.length){for(let I=0;II.text);return D=Da(this.serviceConfig,!0),L.forEach((I,q)=>{let $=A[q],te=$.index,Te=$.variables||{};Object.keys(Te).length>0&&(I=d4({text:I,delimiters:D,variables:Te},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate)),U[te]=I}),{sourceTempSentences:h.tempSentences,text:U,from:R.from,to:R.to}}};g.push(T().then(x=>{let{text:S,sourceTempSentences:w}=x;for(let A=0;A{if(x instanceof W&&x.initData({translationService:this.translationOptions.translationService,isLogin:!!this.translationOptions.userToken,isPro:this.translationOptions.isPro}),r){for(let S=0;S{let h=y.sentence.text;return y.translatedTexts&&y.translatedTexts.length>0&&(h=y.translatedTexts.join("")),{...y.sentence,text:h}})}}async formatAndTranslateList(t){let n={...t},{forces:r}=t,a=[],i=Da(this.serviceConfig);if(this.serviceConfig&&i.length>0)try{let{text:l,xpaths:c}=t;if(l.forEach((m,g)=>{let p=c4({text:m,_systemExcludeWordRegex:this.generalConfig._systemExcludeWordRegex,delimiters:i,excludeRegexps:this.translationOptions.excludeRegexps,glossaries:this.translationOptions.glossaries,targetLanguage:t.to},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate);r&&r[g]!==!0&&(p&&p.text&&p.text.trim().lengthm.text),n.xpaths=a.map(m=>m.xpath)}catch(l){k.debug("formatAndTranslateList error",t,l)}let o=await this.translateList(n),{text:s}=o,u=t.text.map(l=>l);return i=Da(this.serviceConfig,!0),s.forEach((l,c)=>{let m=a[c];if(m){let g=m.index,p=m.variables,f=Object.keys(p);u[g]=l,f.length>0&&(u[g]=d4({text:l,delimiters:i,variables:p},(this.serviceConfig.enableRichGlossaries??!0)&&this.isRichTranslate))}}),{...o,text:u}}detectLanguageLocally(t){return ze({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}static isApiKeyRequired(t,n,r){return r}static getDescriptionKey(t,n){return t.descriptionKey}getXTrigger(){let t=this.translationOptions.sourceProgram;return t==="verify"?"ping":t&&["subtitle","videoSubtitle"].includes(t)?"translate_subtitle":"translate_page"}};var Js="input is invalid type",P4=typeof window=="object",Ki=P4?window:{};Ki.JS_SHA256_NO_WINDOW&&(P4=!1);var CF=!P4&&typeof self=="object",xF=!Ki.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;xF?Ki=global:CF&&(Ki=self);var Qne=!Ki.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,ere=typeof define=="function"&&define.amd,Ul=!Ki.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ce="0123456789abcdef".split(""),TF=[-2147483648,8388608,32768,128],ta=[24,16,8,0],Zd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Jd=["hex","array","digest","arrayBuffer"],Tn=[];(Ki.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Ul&&(Ki.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var RC=function(e,t){return function(n){return new Sn(t,!0).update(n)[e]()}},FC=function(e){var t=RC("hex",e);t.create=function(){return new Sn(e)},t.update=function(a){return t.create().update(a)};for(var n=0;n>2]|=e[a]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|r&63)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|r&63)<=64?(this.block=s[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};Sn.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=TF[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};Sn.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=this.blocks,l,c,m,g,p,f,b,y,h,v,C;for(l=16;l<64;++l)p=u[l-15],c=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,p=u[l-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,u[l]=u[l-16]+c+u[l-7]+m<<0;for(C=t&n,l=0;l<64;l+=4)this.first?(this.is224?(y=300032,p=u[0]-1413257819,s=p-150054599<<0,r=p+24177077<<0):(y=704751109,p=u[0]-210244248,s=p-1521486534<<0,r=p+143694565<<0),this.first=!1):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),y=e&t,g=y^e&n^C,b=a&i^~a&o,p=s+m+b+Zd[l]+u[l],f=c+g,s=r+p<<0,r=p+f<<0),c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),m=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),h=r&e,g=h^r&t^y,b=s&a^~s&i,p=o+m+b+Zd[l+1]+u[l+1],f=c+g,o=n+p<<0,n=p+f<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),v=n&r,g=v^n&e^h,b=o&s^~o&a,p=i+m+b+Zd[l+2]+u[l+2],f=c+g,i=t+p<<0,t=p+f<<0,c=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),C=t&n,g=C^t&r^v,b=i&o^~i&s,p=a+m+b+Zd[l+3]+u[l+3],f=c+g,a=e+p<<0,e=p+f<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0,this.h4=this.h4+a<<0,this.h5=this.h5+i<<0,this.h6=this.h6+o<<0,this.h7=this.h7+s<<0};Sn.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=Ce[e>>28&15]+Ce[e>>24&15]+Ce[e>>20&15]+Ce[e>>16&15]+Ce[e>>12&15]+Ce[e>>8&15]+Ce[e>>4&15]+Ce[e&15]+Ce[t>>28&15]+Ce[t>>24&15]+Ce[t>>20&15]+Ce[t>>16&15]+Ce[t>>12&15]+Ce[t>>8&15]+Ce[t>>4&15]+Ce[t&15]+Ce[n>>28&15]+Ce[n>>24&15]+Ce[n>>20&15]+Ce[n>>16&15]+Ce[n>>12&15]+Ce[n>>8&15]+Ce[n>>4&15]+Ce[n&15]+Ce[r>>28&15]+Ce[r>>24&15]+Ce[r>>20&15]+Ce[r>>16&15]+Ce[r>>12&15]+Ce[r>>8&15]+Ce[r>>4&15]+Ce[r&15]+Ce[a>>28&15]+Ce[a>>24&15]+Ce[a>>20&15]+Ce[a>>16&15]+Ce[a>>12&15]+Ce[a>>8&15]+Ce[a>>4&15]+Ce[a&15]+Ce[i>>28&15]+Ce[i>>24&15]+Ce[i>>20&15]+Ce[i>>16&15]+Ce[i>>12&15]+Ce[i>>8&15]+Ce[i>>4&15]+Ce[i&15]+Ce[o>>28&15]+Ce[o>>24&15]+Ce[o>>20&15]+Ce[o>>16&15]+Ce[o>>12&15]+Ce[o>>8&15]+Ce[o>>4&15]+Ce[o&15];return this.is224||(u+=Ce[s>>28&15]+Ce[s>>24&15]+Ce[s>>20&15]+Ce[s>>16&15]+Ce[s>>12&15]+Ce[s>>8&15]+Ce[s>>4&15]+Ce[s&15]),u};Sn.prototype.toString=Sn.prototype.hex;Sn.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,u=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,s&255),u};Sn.prototype.array=Sn.prototype.digest;Sn.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Xd(e,t,n){var r,a=typeof e;if(a==="string"){var i=[],o=e.length,s=0,u;for(r=0;r>6,i[s++]=128|u&63):u<55296||u>=57344?(i[s++]=224|u>>12,i[s++]=128|u>>6&63,i[s++]=128|u&63):(u=65536+((u&1023)<<10|e.charCodeAt(++r)&1023),i[s++]=240|u>>18,i[s++]=128|u>>12&63,i[s++]=128|u>>6&63,i[s++]=128|u&63);e=i}else if(a==="object"){if(e===null)throw new Error(Js);if(Ul&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Ul||!ArrayBuffer.isView(e)))throw new Error(Js)}else throw new Error(Js);e.length>64&&(e=new Sn(t,!0).update(e).array());var l=[],c=[];for(r=0;r<64;++r){var m=e[r]||0;l[r]=92^m,c[r]=54^m}Sn.call(this,t,n),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Xd.prototype=new Sn;Xd.prototype.finalize=function(){if(Sn.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sn.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sn.prototype.finalize.call(this)}};var Xs=FC();Xs.sha256=Xs;Xs.sha224=FC(!0);Xs.sha256.hmac=BC();Xs.sha224.hmac=BC(!0);var OC=Xs;var NC=OC.sha256;function cr(e){return Promise.resolve(NC(e))}function Qs(e){return Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join("")}function Ar(e,t){let n=NC.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function UC(e,t){let n=await Ar(e,t);return Qs(n)}async function Qd(e,t){let n=SF(t),r=await Ar(e,n);return Qs(r)}function SF(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var jC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],jl=class e extends Re{static langMap=new Map(jC);maxTextGroupLength=50;static langMapReverse=new Map(jC.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),r=`${t.getUTCMonth()+1}`.padStart(2,"0"),a=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${r}-${a}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.secretId||!t.secretKey)throw new W("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}getDefaultRateLimit(){return{limit:3,interval:1350}}async translate(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceText:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=JSON.stringify({ProjectId:0,Source:e.langMap.get(r)||"auto",SourceTextList:n,Target:e.langMap.get(a)||a}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:i,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||r,to:e.langMapReverse.get(o.Response.Target)||a}}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=`${i}.tencentcloudapi.com`,u=new Date,l=`${new Date().valueOf()}`.slice(0,10),c=["POST","/","","content-type:application/json; charset=utf-8",`host:${s}`,"","content-type;host",await cr(a)].join(` +`),m=e.getUTCDate(u),g=["TC3-HMAC-SHA256",l,`${m}/${i}/tc3_request`,await cr(c)].join(` +`),p=await UC(m,`TC3${n}`),f=await Qd(i,p),b=await Qd("tc3_request",f),y=await Qd(g,b),h=await ee({retry:this.retry,url:`https://${i}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:s,"X-TC-Action":r,"X-TC-Timestamp":l,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${i}/tc3_request, SignedHeaders=content-type;host, Signature=${y}`},body:a,timeout:this.requestTimeout});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new W(h.Response.Error.Message);return h}};var HC=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],wF={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Hl=class e extends Re{static langMap=new Map(HC);static langMapReverse=new Map(HC.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a)}async translate(t){let{text:n,from:r,to:a}=t,i=new URLSearchParams({source:r,target:a,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await ee({url:`https://wxapp.translator.qq.com/api/translate?${i}`,retry:this.retry,method:"GET",headers:wF,timeout:this.requestTimeout});return{text:o.targetText,from:e.langMapReverse.get(o.source)||r,to:e.langMapReverse.get(o.target)||a}}};var qC=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"],["km","km"]],ql=class e extends Re{static langMap=new Map(qC);static langMapReverse=new Map(qC.map(([t,n])=>[n,t]));isSupportList=!0;apiUrl="https://translate.googleapis.com/translate_a/t";constructor(t,n,r,a){super(t,n,r,a),t?.apiUrl&&(this.apiUrl=It(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=e.langMap.get(r)||"auto",o=e.langMap.get(a)||a,s=await this.fetchWithoutToken(n,i,o);if(!s)throw new W("google translate NETWORK_ERROR");if(!s.data[0]||s.data[0].length<=0)throw new W("google translate API_SERVER_ERROR");return{text:s.data.map(l=>Array.isArray(l)?l[0]:l),from:r,to:a}}async fetchWithoutToken(t,n,r){let a={client:"gtx",dt:"t",sl:n,tl:r};this.isRichTranslate&&(a.format="html");let i=new URLSearchParams(a),o={q:t},s=this.apiUrl+"?"+i.toString();return{data:await ee({retry:this.retry,url:s,method:"POST",requestType:"urlSearchParams",headers:{"content-type":"application/x-www-form-urlencoded"},body:o,timeout:this.requestTimeout})}}};function EF(e,t){return t?e+(t-e%t):e}function AF(e,t){return e.split(t).length-1}function _4(e){let t=Date.now(),n=1;for(let r of e)n+=AF(r,"i");return EF(t,n)}function kF(e,t){return Math.floor(Math.random()*(t-e+1))+e}function R4(){return kF(1e6,1e8)}var I4="https://www2.deepl.com/jsonrpc",F4="auto",zC=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];function DF(e=zC){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function B4(e){return DF()[e.toLowerCase()]}var LF={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function MF(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function PF(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function _F(e,t,n,r,a,i,o){let s=R4(),u=PF(r,n),l=[];t.forEach(g=>{l.push({text:g,requestAlternatives:3})}),u.id=s,u.params.texts=l,u.params.timestamp=_4(t);let c=await ee({retry:2,method:"POST",url:e,body:MF(u),headers:LF}),m={from:c.result.lang,to:n,text:[]};return c.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function WC(e,t,n,r=F4,a,i,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:r,to:n}:_F(e,t,B4(n),B4(r)??"auto",a,i,o):{text:[],from:r,to:n}}var VC=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],eu=class e extends Re{static langMap=new Map(VC);static langMapReverse=new Map(VC.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=I4;constructor(t,n,r,a){super(t,n,r,a),t&&t.apiUrl&&(this.API_URL=It(I4,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:r,from:a}=t,i=await WC(this.API_URL,n,e.langMap.get(r)||r,e.langMap.get(a)||"auto");return{text:i.text,from:e.langMapReverse.get(i.from),to:e.langMapReverse.get(i.to)}}};var zl=class e extends Re{static langMap=new Map(qf);clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,r,a){super(t,n,r,a),this.clientKey=ri.getClientKey()}async translate(t){let{text:n,to:r}=t,a=await this.detectLanguage(n),i=e.langMap.get(a)||a,o=e.langMap.get(r)||r;if(a===r)return{text:n,from:a,to:r};let s=Se(),u=t.url;s.INSTALL_FROM==="firefox_store"&&(u=KC());let c=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:i,orig_url:u},target:{lang:o}}),m=await ee({url:nd,body:c,method:"POST",retry:this.retry,timeout:this.requestTimeout});if(m.header.ret_code!=="succ")throw new W(m.message||m.header.ret_code);return{text:m.auto_translation,from:a||"auto",to:r}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:r,to:a}=t,i=Se(),o=t.url;if(i.INSTALL_FROM==="firefox_store"&&(o=KC()),r.length===1){let p=await this.translate({from:n,text:r[0],to:a,url:o,options:t.options});return{text:[p.text],from:p.from,to:p.to}}let u=await this.detectLanguage(r.join(` +`));if(u===a)return{text:r,from:u,to:a};let l=e.langMap.get(u)||u,c=e.langMap.get(a)||a,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:r,lang:l,orig_url:o},target:{lang:c},type:"plain"}),g=await ee({url:nd,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new W(g.message||g.header.ret_code);return{text:g.auto_translation,from:u||"auto",to:a}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function KC(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}function O4(){return Math.random()>=.001}var tu=class extends Re{isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;async translate(t){let{text:n}=t;if(!O4())throw new W("404","\u6A21\u62DF\u9519\u8BEF");let r=n.match(/^\s*/)[0].length;return{text:n.slice(0,r)+"\u6A21\u62DF\uFF1A"+n.slice(r,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:r,to:a}=t;if(await cv(),!O4())throw new W("404","\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:r,to:a,text:[""]}:{from:r,to:a,text:n.map(i=>{let o=i.match(/^\s*/)[0].length;return i.slice(0,o)+"\u6A21\u62DF\uFF1A"+i.slice(o,-6)})}}};var $C=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],N4=new Map($C),GC=new Map($C.map(([e,t])=>[t,e])),U4=class e extends Re{static langMap=N4;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.apikey)throw new W("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:r,to:a}=t,i=await ee({retry:this.retry,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:N4.get(r)||"auto",target_lang:N4.get(a)||a}),timeout:this.requestTimeout});if(i.status){let o=i;return o.result&&a=="zh-TW",{text:o.result,from:GC.get(o.source_lang),to:GC.get(o.target_lang)}}else throw new W(i.msg)}},em=U4;var j4="https://{s}bing.com",QC=j4+"/translator",RF=j4+"/ttranslatev3",IF=j4+"/tspellcheckv3",tm="bingGlobalConfig",e8=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],YC=new Map(e8),ZC=new Map(e8.map(([e,t])=>[t,e])),JC=1e3,na,nu;function H4(e,t){return e.replace("{s}",t?t+".":"")}async function FF(){if(!na){let n=await j.storage.local.get(tm);return n&&(na=n[tm]),!0}let{tokenTs:e,tokenExpiryInterval:t}=na;return Date.now()-e>t}async function XC(){let e,t,n,r,a,i,o,s,u,l;try{let c=H4(QC,e),m=await ee({retry:2,url:c,responseType:"raw"}),{body:g,headers:p,url:f}=m;e=f.match(/^https?:\/\/(\w+)\.bing\.com/)[1],l=p["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[a,r,i,o,s,u]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(c){throw c}return na={subdomain:e,IG:t,IID:n,key:a,token:r,tokenTs:a,tokenExpiryInterval:i,isVertical:o,frontDoorBotClassification:s,isSignedInOrCorporateUser:u,cookie:l,count:0},await j.storage.local.set({[tm]:na}),na}function BF(e){let{IG:t,IID:n,subdomain:r,isVertical:a}=na;return H4(e?IF:RF,r)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+na.count++:"")}function OF(e,t,n,r){let{token:a,key:i}=na,o={fromLang:n,text:t,token:a,key:i};return!e&&r&&(o.to=r),o}async function t8(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>JC)throw new Error(`The supported maximum length of text is ${JC}. Please shorten the text.`);nu||(nu=XC()),await nu,await FF()&&(nu=XC(),await nu),t=t||"auto",n=n||"zh-CN",t=YC.get(t)||t,n=YC.get(n)||n;let a=BF(!1),i=OF(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:H4(QC,na.subdomain),"content-type":"application/x-www-form-urlencoded"},s=new URLSearchParams(i),u=a,l=s.toString(),c=await ee({retry:2,url:u,headers:o,method:"POST",body:l});if(c.ShowCaptcha||c.StatusCode===401||c.statusCode){if(na=null,nu=null,await j.storage.local.remove(tm),c.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${c.StatusCode}. `);if(c.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:ZC.get(g.language),to:ZC.get(m.to)}}function Ki(e){return e!=null}function i8(e,t,n){return`${e.type}#${t}#${n}`}function o8(e,t,n,r,a){return{body:a,id:r,type:i8(e,t,n)}}function UB(e,t,n,r){return{id:n,response:r,type:i8(e,"ask",t)}}function s8(e,t,n,r){if(Ki(r)){let a=r.type;if(Ki(a)&&Ki(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function jB(e,t,n){if(Ki(n)){let r=n.type;if(Ki(r)&&Ki(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function HB(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function qB(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;jB(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function zB(e,t,n,r){let a=i=>{let o=i.data;s8(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function r8(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(s8(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(UB(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function VB(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(o8(t,"tell",n,i,r),a)}async function a8(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await qB(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(o8(n,"ask",r,s,a),i),u}var Yi=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;r8(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Ki(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await a8(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(zB(this.thisWindow,this.protocol,t,n))}tell(t,n){VB(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(r8(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return a8(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){HB(this.listeners)}};var u8;async function l8(){if(St()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Yi.iframe(Zc,"*",{targetWindow:t});u8=n,await Yi.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function c8(){return u8}var nm=new Map;async function z4(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Cr(e.body)),nm.has(t))return nm.get(t);let n=ee(e);nm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{nm.delete(t)},3e3)}}async function d8(e){return z4(e)}async function Ia(e){if(St()){let n=c8();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return z4(e)}else return z4(e)}function m8(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function am(e){await Af(e)}async function Fa(e,t){let n=await wf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return rm(e,t)}return rm(e,t)}async function rm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await Ef(e,n,i-1e3),n}var WB=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],V4=new Map(WB),ra=class extends Ie{static langMap=V4;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await am(Mg)}async translate(t){let{text:n,from:r,to:a}=t;return n?await n8(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Fa(Mg,async()=>{let t=await Ia({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return m8(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=V4.get(n)||"auto",o=V4.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await ee({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new V("Microsoft translate error "+JSON.stringify(m))}};var GB=["chinese","english","japanese","korean","french","spanish","deutsch"],Ba={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},im=e=>Ba.chinese.test(e),KB=e=>Ba.english.test(e),YB=e=>Ba.japanese.test(e),QB=e=>Ba.korean.test(e),JB=e=>Ba.french.test(e),ZB=e=>Ba.deutsch.test(e),XB=e=>Ba.spanish.test(e),Eie={chinese:zr(im),english:zr(KB),japanese:zr(YB),korean:zr(QB),french:zr(JB),spanish:zr(XB),deutsch:zr(ZB)},g8=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,Aie=new RegExp(`^(\\d|\\s|${g8.source})+$`),$B=new RegExp(`${Ba.chinese.source}|${Ba.japanese.source}|${Ba.korean.source}`),kie=zr(e=>(e.replace(new RegExp(g8,"g")," ").replace(new RegExp($B,"g")," x ").match(/\S+/g)||"").length),Die=[...GB,"others","matchAll"];var f8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Vl=new Map(f8),e_=new Map(f8.map(([e,t])=>[t,e])),W4=class extends Ie{static langMap=Vl;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ft;immersiveTranslateDeeplProApiUrl=ft+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new V("authKey are required");if(!this.authKey)throw new V("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ft(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ft(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ft(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ft(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ft(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:Vl.get(n)||"",target_lang:Vl.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:Vl.get(n)||"auto",target_lang:Vl.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await ee({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await ee({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await ee({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>G4(c.text,r));if(s){let c=this.serviceConfig||{},g=await new ra({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&e_.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ya()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},ru=W4;function G4(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&im(e[0])&&p8(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&im(e[e.length-1])&&p8(e,"\u300A")==1?e+"\u300B":e}function p8(e,t){return e.split(t).length-1}var t_=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],K4=new Map(t_),Y4=class extends Ie{static langMap=K4;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:K4.get(r)||r,to:K4.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await ee(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` -`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new V(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},h8=Y4;var n_=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Q4=new Map(n_),J4=class extends Ie{static langMap=Q4;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new V("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:Q4.get(a)||a};r!=="auto"&&(i.from=Q4.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await ee(c);if(m.length===0)throw new V("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},b8=J4;var r_=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],au=new Map(r_),Z4=class extends Ie{static langMap=au;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=` + `);if(c.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(c)}.`)}let m=c[0].translations[0],g=c[0].detectedLanguage;return{text:m.text,from:ZC.get(g.language),to:ZC.get(m.to)}}function Gi(e){return e!=null}function a8(e,t,n){return`${e.type}#${t}#${n}`}function i8(e,t,n,r,a){return{body:a,id:r,type:a8(e,t,n)}}function NF(e,t,n,r){return{id:n,response:r,type:a8(e,"ask",t)}}function o8(e,t,n,r){if(Gi(r)){let a=r.type;if(Gi(a)&&Gi(r.body)){let[i,o,s]=a.split("#");return i===e.type&&o===t&&s===n}else return!1}else return!1}function UF(e,t,n){if(Gi(n)){let r=n.type;if(Gi(r)&&Gi(n.response)){let[a,i,o]=r.split("#");return a===e.type&&i==="ask"&&o===t}else return!1}else return!1}function jF(e){e.forEach(([t,n])=>t.removeEventListener("message",n)),e.length=0}function HF(e,t,n,r){return new Promise(a=>{let i=o=>{let s=o.data;UF(t,n,s)&&s.id===r&&(e.removeEventListener("message",i),a(s.response))};e.addEventListener("message",i)})}function qF(e,t,n,r){let a=i=>{let o=i.data;o8(t,"tell",n,o)&&r(o.body)};return e.addEventListener("message",a),[e,a]}function n8(e,t,n,r,a,i){let o=async s=>{let u=s.data;if(o8(n,"ask",r,u)){let l=await i(u.body);t=s.source,t.postMessage(NF(n,r,u.id,l),s.origin)}};return e.addEventListener("message",o),[e,o]}function zF(e,t,n,r,a){let i=Math.random().toString();return e.postMessage(i8(t,"tell",n,i,r),a)}async function r8(e,t,n,r,a,i,o){let s=Math.random().toString(),u=new Promise(async(l,c)=>{let m=setTimeout(()=>c(new Error(`Failed to get response within ${o}ms`)),o),g=await HF(e,n,r,s);clearTimeout(m),l(g)});return t.postMessage(i8(n,"ask",r,s,a),i),u}var $i=class e{constructor(t,n,r=window,a="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=r;this.targetOrigin=a;n8(r,n,this.getSystemProtocol("ping"),"ping",a,()=>Promise.resolve({}))}static async connect(t,n=10,r=500){for(let a=0;a<=n;a++)try{return await t.ping({timeout:r}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*r}ms`)}static parent(t,n,r="*",a=window){let i=n.contentWindow;if(Gi(i))return new e(t,i,a,r);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:r=window,targetWindow:a=window.parent}={}){return new e(t,a,r,n)}static rootIframe(t,n="*",{thisWindow:r=window}={}){return new e(t,null,r,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await r8(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(qF(this.thisWindow,this.protocol,t,n))}tell(t,n){zF(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(n8(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,r=1e4){if(this.targetWindow)return r8(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,r);throw new Error("target window is requried")}destroy(){jF(this.listeners)}};var s8;async function u8(){if(xt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=$i.iframe(Jc,"*",{targetWindow:t});s8=n,await $i.connect(n).catch(r=>{k.error("connect with parent frame error",r)})}}function l8(){return s8}var nm=new Map;async function q4(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=xr(e.body)),nm.has(t))return nm.get(t);let n=ee(e);nm.set(t,n);try{return await n}catch(r){throw r}finally{setTimeout(()=>{nm.delete(t)},3e3)}}async function c8(e){return q4(e)}async function Ra(e){if(xt()){let n=l8();if(n)try{return await n.ask("throttleRequest",e)}catch(r){throw k.error("can not comunicate with root frame, use strict limiter",r),r}else return q4(e)}else return q4(e)}function d8(e){let t=e.split(".");if(t.length<=1)throw new Error("invalid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let r=n.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(globalThis.atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(a),o=new Date(i.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}async function am(e){await Ef(e)}async function Ia(e,t){let n=await Sf(e);if(n?.accessToken&&n?.accessTokenExpiresAt){let r=Date.now(),i=new Date(n.accessTokenExpiresAt).getTime();if(i-r>30*1e3)return n;if(i-r>3e3)return rm(e,t)}return rm(e,t)}async function rm(e,t){let n=await t(),r=n.accessTokenExpiresAt,i=new Date(r).getTime()-Date.now();return await wf(e,n,i-1e3),n}var WF=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["he","he"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["wyw","lzh"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"],["vi","vi"],["km","km"]],z4=new Map(WF),ra=class extends Re{static langMap=z4;isSupportList=!0;maxTextLength=1800;constructor(t,n,r,a){super(t,n,r,a)}static async clearState(){await am(Lg)}async translate(t){let{text:n,from:r,to:a}=t;return n?await t8(n,r,a):{...t}}async init(){await this.getAccessToken()}async getAccessToken(){return await Ia(Lg,async()=>{let t=await Ra({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET",timeout:5e3,retry:this.retry});return d8(t)})}async translateList(t){let{from:n,to:r,text:a}=t,i=z4.get(n)||"auto",o=z4.get(r)||r;i==="auto"&&(i="");let s=await this.getAccessToken(),u=[];for(let g of a)u.push({Text:g});let l=JSON.stringify(u),c=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${i}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await ee({url:c,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+s.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"},body:l,method:"POST",timeout:this.requestTimeout});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:r};throw new W("Microsoft translate error "+JSON.stringify(m))}};var VF=["chinese","english","japanese","korean","french","spanish","deutsch"],Fa={chinese:/[\u4e00-\u9fa5]/,english:/[a-zA-Z]/,japanese:/[\u3041-\u3096\u30A0-\u30FF]/,korean:/[\u3131-\u4dff\u9fa6-\uD79D]/,french:/[\u00e0\u00e2\u00e4\u00e8\u00e9\u00ea\u00eb\u00ee\u00ef\u00f4\u0153\u00f9\u00fb\u00fc\u00ff\u00e7]/i,spanish:/[\u00e1\u00e9\u00ed\u00f3\u00fa\u00f1\u00fc\u00a1\u00bf]/i,deutsch:/[\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00df]/i},im=e=>Fa.chinese.test(e),KF=e=>Fa.english.test(e),GF=e=>Fa.japanese.test(e),$F=e=>Fa.korean.test(e),YF=e=>Fa.french.test(e),ZF=e=>Fa.deutsch.test(e),JF=e=>Fa.spanish.test(e),Sie={chinese:zr(im),english:zr(KF),japanese:zr(GF),korean:zr($F),french:zr(YF),spanish:zr(JF),deutsch:zr(ZF)},m8=/[/[\]{}$^*+|?.\-~!@#%&()_='";:><,。?!,、;:“”﹃﹄「」﹁﹂‘’『』()—[]〔〕【】…-~·‧《》〈〉﹏_]/,wie=new RegExp(`^(\\d|\\s|${m8.source})+$`),XF=new RegExp(`${Fa.chinese.source}|${Fa.japanese.source}|${Fa.korean.source}`),Eie=zr(e=>(e.replace(new RegExp(m8,"g")," ").replace(new RegExp(XF,"g")," x ").match(/\S+/g)||"").length),Aie=[...VF,"others","matchAll"];var p8=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ar","AR"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["pt-br","PT-BR"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Wl=new Map(p8),QF=new Map(p8.map(([e,t])=>[t,e])),W4=class extends Re{static langMap=Wl;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl=`https://deepl.${et}/v2/translate`;immersiveTranslateDeeplTokenUrl=ft;immersiveTranslateDeeplProApiUrl=ft+"deepl/translate";provider="custom";splitor="";qualityNoSymabol="";qualityMinTextLength;apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,r,a){if(super(t,n,r,a),t=t||{},this.splitor=t.qualityDelimiterBetaV3||"",this.qualityNoSymabol=t.qualityNoSymoblBetaV3||"",this.qualityMinTextLength=t.qualityMinTextLengthV3||0,t.provider==="pro")if(this.provider="pro",r.userToken){if(!r.isPro)throw new W("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=r.userToken,this.apiKeys=this.authKey.split(",").map(i=>i.trim())}else throw new W("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey?.split(",").map(i=>i.trim()),!this.authKey)throw new W("authKey are required");if(!this.authKey)throw new W("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=It(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=It(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=It(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=It(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=It(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getRateLimiter(){let t=super.getRateLimiter();if(this.provider==="pro"){if(this.serviceConfig?.immersiveTranslateProLimit){let n=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(n)&&(n=15),{limit:n,interval:t?.interval||1050}}return{limit:15,interval:t?.interval||1050}}return super.getRateLimiter()}getDefaultRateLimit(){return{limit:3,interval:1250}}async translateList(t){let{from:n,to:r}=t,a=this.getRandomKey(),{text:i,merged:o}=this.optimizationText(t),s=n=="zh-CN"&&r=="zh-TW"||n=="zh-TW"&&r=="zh-CN",u=null;if(s)u=i.map(c=>({text:c||"",detected_source_language:n}));else{let c={source_lang:Wl.get(n)||"",target_lang:Wl.get(r)||r,tag_handling:"html"};this.serviceConfig?.tag_handling&&(this.serviceConfig.tag_handling==="smart"?this.isRichTranslate?c.tag_handling="html":delete c.tag_handling:this.serviceConfig.tag_handling==="none"?delete c.tag_handling:c.tag_handling=this.serviceConfig.tag_handling);let m=new URLSearchParams(c);i.forEach(v=>{m.append("text",v)});let g=m.toString(),p={text:i,source_lang:Wl.get(n)||"auto",target_lang:Wl.get(r)||r};this.provider==="pro"&&this.serviceConfig?.html&&(this.serviceConfig.html==="smart"?this.isRichTranslate&&(p.html="enabled"):this.serviceConfig.html==="enabled"&&(p.html="enabled"));let f=this.freeApiUrl;a.endsWith(":im")?f=this.immersiveTranslateApiUrl:a.endsWith(":fx")||(f=this.proApiUrl);let b,y={};t.refresh&&(y={"X-Refresh":"True"}),t.debug&&(y={...y,"X-Debug":"True"}),this.provider==="pro"?b=await ee({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):a.startsWith("immersive_")?b=await ee({retry:this.retry,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(p),headers:{...y,token:a,"Content-Type":"application/json"},timeout:this.requestTimeout}):b=await ee({retry:2,url:f,method:"POST",body:g,headers:{Authorization:"DeepL-Auth-Key "+a,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}}),u=this.restoreText(b,o,!!t.debug).translations}let l=u.map(c=>V4(c.text,r));if(s){let c=this.serviceConfig||{},g=await new ra({},this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList({from:n,to:r,text:u.map(p=>p.text),url:"",options:{},xpaths:[],forces:[]});g&&g.text&&(l=g.text)}return{text:l,from:u[0]&&QF.get(u[0].detected_source_language)||n,to:r}}optimizationText(t){let{text:n,xpaths:r}=t;if(!this.splitor||this.provider!="pro")return{text:n,merged:[]};let a=new Map,i=[];for(let o=0;o=0){i.push(n[o]);continue}if(this.qualityMinTextLength>0&&n[o].length({text:!ya()&&r?`[${l}]`:l,detected_source_language:s.detected_source_language}));i.push(...u)}else i.push(s)}return{...t,translations:i}}},ru=W4;function V4(e="",t){if(!t.startsWith("zh")||e.length>200)return e;let n=e.indexOf("\u300A"),r=e.indexOf("\u300B");return r>n&&n>=0?e:n<0&&r>0&&r<80&&im(e[0])&&g8(e,"\u300B")==1?"\u300A"+e:r<0&&n>0&&e.length-n<80&&im(e[e.length-1])&&g8(e,"\u300A")==1?e+"\u300B":e}function g8(e,t){return e.split(t).length-1}var eB=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],K4=new Map(eB),G4=class extends Re{static langMap=K4;APIKEY="";isSupportList=!1;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new W("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:r,to:a}=t,i=n,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:this.retry,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:i,from:K4.get(r)||r,to:K4.get(a)||a,apikey:this.APIKEY}),timeout:this.requestTimeout},s=await ee(o);if(s.tgt_text){let u=s.tgt_text;return u.endsWith(` +`)&&(u=u.slice(0,-1)),{text:u,from:r,to:a}}else throw new W(s.error_msg||JSON.stringify(s).slice(0,500))}getDefaultRateLimit(){return{limit:4,interval:1350}}},f8=G4;var tB=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","he"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],$4=new Map(tB),Y4=class extends Re{static langMap=$4;APIKEY="";region="eastasia";isSupportList=!0;apiUrl="https://api.cognitive.microsofttranslator.com/translate";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.APIKEY)throw new W("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region),t.apiUrl&&(this.apiUrl=It(this.apiUrl,t.apiUrl))}async translateList(t){let{text:n,from:r,to:a}=t;if(n.length===0)return{from:r,to:a,text:[]};let i={"api-version":"3.0",to:$4.get(a)||a};r!=="auto"&&(i.from=$4.get(r)||r);let o=new URLSearchParams(i),s=JSON.stringify(n.map(g=>({text:g}))),u=new URL(this.apiUrl),l=new URLSearchParams(u.search);l.toString()!==""&&l.forEach((g,p)=>{o.append(p,g)}),this.isRichTranslate&&o.append("textType","html"),u.search=o.toString();let c={url:u.toString(),retry:this.retry,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:s,timeout:this.requestTimeout},m=await ee(c);if(m.length===0)throw new W("server response invalid");return{from:r,to:a,text:m.map(g=>g.translations.map(f=>f.text).join(" "))}}},h8=Y4;var nB=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],au=new Map(nB),Z4=class extends Re{static langMap=au;isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:3,interval:1150}}async translateList(t){let{text:n,from:r,to:a}=t,i;if(n.length===0)return{from:r,to:a,text:[]};let o=`
-`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!au.get(r)?(i=(await ee({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||au.get(r)||r,target:au.get(a)||a})):u.body=JSON.stringify({text:s,source:au.get(r),target:au.get(a)||a});let l=await ee(u);if(l.translatedText==="")throw new V("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},y8=Z4;var a_={lang:"en"};function X4(e){let t=Object.assign({},a_,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var $4=ss(null),Qi=e=>{let{t,setLang:n,lang:r}=X4({lang:e.lang});return d($4.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return we($4)}function v8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function aa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=i_(e,a)),i||(i=Wl(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function i_(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=eh({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function Wl(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function eh(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>gt(a,s.matches)&&!gt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function iu(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Bo(e,t,n){n=n||await Ln();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&si(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&si(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await cn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Fr(n),await sr(i)}catch{return!1}return a}async function Gl(){return(await Ln()).aiAssistants||[]}async function o_(e,t){(await Promise.allSettled(e.map(r=>ee({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Bo("add",a,t)}})}async function th(e,t,n=!0){e||(e=await Ze()),t||(t=await Ln());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await nh();i=await u_(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&o_(o,t)}var ia=_n(th,1500);function si(e){return Bi(Pr(),e.extensionVersion)}function s_(e,t){return t?!Bi(e.version,t):!1}function u_(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{s_(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function nh(){return(await ee({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function rh(e){return await ee({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function om(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=le(async()=>{try{let s=await Gl();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=le(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await rh(s);if(si(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await Bo(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return z(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var l_=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function S8(e,t,n,r,a){let i={...t},o=eh(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,iu({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=v8(i,i.langOverrides,n),o||l_.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=ou(t,o),h=ou(t,f),v=s,C=Object.keys(u);for(let J of C){let Ee=u[J];if(ou(t,Ee)){v=J;break}}let x=l,S=Object.keys(c);for(let J of S){let Ee=c[J];if(Ee&&ou(t,Ee)){x=J;break}}let T=ou(t,m),w=C8(t,m);w||(w=gt(t,L2)),w||(w=gt(t,n.blockUrls));let A=C8(t,n.inputTranslationUrlPattern);A||(A=gt(t,n.inputTranslationBlockUrls));let D=gt(t,n.mutationBlockUrls),M=Object.keys(p),I={};for(let J of M){let Ee=p[J];if(Ee&&Ee.matches)for(let vt of Ee.matches)I[vt]=J}let R=Object.keys(I),B=Ff(t,R);B&&(i=I[B]??"auto",I[B]&&I[B]!=="auto"&&Sr(I[B]));let L=a.hostname,U=await lr(L),F=a.pathname+a.search+a.hash,q=await lr(F),Y=`https://${U}.com/${q}`,te=await Mt(),xe=await Us(),pe=n.translationStartMode,H=d_(te,n);te.aiAssistants=m_(H,n),pe==="dynamic"&&h&&(pe="immediate");let W=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(W=n.inputTranslationService);let $=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&($=n.mouseHoverTranslationService);let Re=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(Re=n.subtitleTranslateService);let ve=await tt.get(mt,null),Ye=!1;ve&&(Ye=At(ve));let X={targetLanguage:b,config:n,translationService:v,inputTranslationService:W,mouseHoverTranslationService:$,subtitleTranslateService:Re,isTranslateUrl:T,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:Y,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:x,isTranslateDirectlyOnHover:!1},localConfig:te};ve&&(X.user=ve,Ye?X.isPro=!0:X.isPro=!1),X.state.translationArea==="body"&&(X.config.generalRule.excludeTags=X.config.generalRule.excludeTags.filter(J=>!X.config.generalRule.bodyTranslateTags.includes(J)),X.config.generalRule.additionalExcludeSelectors=X.config.generalRule.additionalExcludeSelectors.filter(J=>J!==".btn"));let se=n.translationServices[X.translationService]||{};se.immediateTranslationTextCount!==void 0&&c_(se.immediateTranslationTextCount)&&se.immediateTranslationTextCount>=0&&(X.state.immediateTranslationTextCount=se.immediateTranslationTextCount),X.translationService==="deepl"&&(se&&se.authKey&&se.authKey.startsWith("immersive_")||se&&se.provider==="pro"&&X.user?.token)&&se.immediateTranslationTextCountForImmersiveDeepl!==void 0&&se.immediateTranslationTextCountForImmersiveDeepl>=0&&(X.state.immediateTranslationTextCount=se.immediateTranslationTextCountForImmersiveDeepl),se&&se.translationDebounce&&typeof se.translationDebounce=="number"&&(X.state.translationDebounce=se.translationDebounce);let be=xe.immediateTranslationTextCount;n.immediateTranslationTextCount!==be&&(X.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,Le;globalThis.PDFViewerApplication?Le=he.find(J=>J.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Le=he.find(J=>J.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Le=he.find(J=>J.pageType=="ebookBuilder"):Le=he.find(J=>ou(t,J)),Le&&Le.pageType==="ebookBuilder"&&(X.state.translationStartMode="immediate");let Ve=n.generalRule;if(Le&&(X.rule=wd(Ve,Le)),X.rule.selectors.length>0&&(X.rule.paragraphMinTextCount=2,X.rule.paragraphMinWordCount=1),X.state.translationArea==="body"&&X.rule.excludeTags&&(X.rule.excludeTags=X.rule.excludeTags.filter(J=>!X.rule.bodyTranslateTags.includes(J)&&!X.rule.forceTranslateTags.includes(J))),X.rule.mainFrameSelector){let J=document.querySelector(X.rule.mainFrameSelector);J&&(X.mainFrame=J)}return X}function ou(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&>(e,r)?!1:n&&n.length>0&>(e,n)?!0:i&&i.length>0&&Ud(i)?!1:!!(a&&a.length>0&&Ud(a))}function C8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&>(e,n)||r&&r.length>0&&Ud(r))}function c_(e){return typeof e=="number"}function d_(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function m_(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Td(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function x8(e){let t=e.split(` +`,s=n.join(o),u={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:this.retry,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:"",timeout:this.requestTimeout};r==="auto"||!au.get(r)?(i=(await ee({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:s})).langCode,u.body=JSON.stringify({text:s,source:i||au.get(r)||r,target:au.get(a)||a})):u.body=JSON.stringify({text:s,source:au.get(r),target:au.get(a)||a});let l=await ee(u);if(l.translatedText==="")throw new W("server response invalid");let c=l.translatedText.split("
").map(m=>m.trim());return{from:r,to:a,text:c}}},b8=Z4;var rB={lang:"en"};function J4(e){let t=Object.assign({},rB,e),[n,r]=N(t.lang||"en");return{lang:n,setLang:r,t:(i,o)=>Pe(n,i,o)}}var X4=ss(null),Yi=e=>{let{t,setLang:n,lang:r}=J4({lang:e.lang});return d(X4.Provider,{value:{t,setLang:n,lang:r},children:e.children})};function O(){return we(X4)}function y8(e,t,n){let r={...e},a=new Map;(t||[]).forEach(o=>{a.set(o.id,o)});for(let o of a.keys()){let[s,u]=o.split("2");if(["auto",n.sourceLanguage].includes(s)&&["auto",n.targetLanguage].includes(u)){let l=a.get(o);if(!l)continue;if(l.extends){let c=a.get(l.extends);c&&(r={...r,...c})}r={...r,...l}}}return r}function aa(e,t,n){let a=e.config.translationServices[t],i;return n&&(i=aB(e,a)),i||(i=Vl(a,e.localConfig.aiAssistants||[])),i&&{...i,applyTranslationService:t}}function aB(e,t){if(!t||t.extends!="ai")return;let n=t.assistantId;if(n!="auto")return;let r=Q4({sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,translationService:e.translationService,sourceProgram:e.sourceProgram||"",isPro:!!e.isPro+"",url:e.url,model:""},e.localConfig.aiAssistants||[],n);return!r&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"?e.localConfig.aiAssistants?.find(a=>a.id===t.fallbackAssistantId):r}function Vl(e,t){if(!e||e?.extends?.indexOf("ai")<0)return;let n=e.assistantId;return!n||n=="common"?void 0:(n=="auto"&&(n=e.fallbackAssistantId),(t||[]).find(a=>a.id===n))}function Q4(e,t,n,r){if(r?.applyTranslationService==e.translationService)return r;let{url:a}=e;if(n=="common"||!n)return null;let i=null;try{return n&&(i=t.find(s=>s.id===n),i)||(i=t.filter(s=>gt(a,s.matches)&&!gt(a,s.excludeMatches)).filter(s=>s.languageMatches?!!(s.languageMatches||[]).find(l=>{let[c,m]=l.split("2");return!!(["auto",e.sourceLanguage].includes(c)&&["auto",e.targetLanguage].includes(m))}):!0)?.[0]),i}catch(o){k.error(o)}finally{i&&(i.langOverrides=i.langOverrides||[])}}function iu(e){let t={env:e?.env,prompt:e?.prompt,systemPrompt:e?.systemPrompt,multiplePrompt:e?.multiplePrompt,subtitlePrompt:e?.subtitlePrompt,langOverrides:e?.langOverrides,temperature:e?.temperature,maxTextGroupLengthPerRequest:e?.maxTextGroupLengthPerRequest,maxTextLengthPerRequest:e?.maxTextLengthPerRequest,maxTextGroupLengthPerRequestForSubtitle:e?.maxTextGroupLengthPerRequestForSubtitle};for(let n in t)t[n]==null&&delete t[n];return t}async function Fo(e,t,n){n=n||await Ln();let r=n.aiAssistants||[],a=!1;if(e=="edit"&&si(t))for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&(r[o]=t,a=!0);else if(e==="add"&&si(t)){for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);r.push(t),a=!0}else{for(let o=r.length-1;o>=0;o--)r[o].id===t.id&&r.splice(o,1);a=!0}n.aiAssistants=r.sort((o,s)=>o.priority-s.priority);let i=await cn();i.aiAssistantIds=[...new Set(r.map(o=>o.id))];try{await Fr(n),await sr(i)}catch{return!1}return a}async function Kl(){return(await Ln()).aiAssistants||[]}async function iB(e,t){(await Promise.allSettled(e.map(r=>ee({url:`${E.AI_BASE_URL}/api/plugins/${r}.json`})))).forEach(r=>{if(r.status==="fulfilled"){let a=r.value;a&&Fo("add",a,t)}})}async function eh(e,t,n=!0){e||(e=await Je()),t||(t=await Ln());let r=t.aiAssistants||[],a=(e.aiAssistantIds||[]).filter(s=>!r.find(u=>u.id===s)),i=[];if(n){let s=await th();i=await sB(t,s)}let o=[...new Set([...a,...i])].filter(s=>!s.startsWith("custom"));o.length!==0&&iB(o,t)}var ia=Bn(eh,1500);function si(e){return Fi(_r(),e.extensionVersion)}function oB(e,t){return t?!Fi(e.version,t):!1}function sB(e,t){let n=[];return(e.aiAssistants||[]).forEach(r=>{oB(r,t[r.id]?.version)&&n.push(r.id)}),[...new Set(n)]}async function th(){return(await ee({url:`${E.AI_BASE_URL}/api/plugins/meta.json`}))?.plugins||{}}async function nh(e){return await ee({url:`${E.AI_BASE_URL}/api/plugins/${e}.json`})||{}}function om(){let[e,t]=N(void 0),[n,r]=N(!1),{t:a}=O(),i=le(async()=>{try{let s=await Kl();t(s)}catch{bt(a("aiAssistant.getDataError"))}},[t]),o=le(async(s,u)=>{let l=setTimeout(()=>{r(!0)},200);try{let c=await nh(s);if(si(c)===!1&&(r(!1),bt(a("aiAssistant.versionNoMatch"))),!await Fo(u,c))return;i()}catch{bt(a("aiAssistant.handleError"))}finally{clearTimeout(l),r(!1)}},[]);return z(()=>{i()},[]),{aiAssistantsData:e,handleInstall:o,operateLoading:n}}var uB=["prompt","systemPrompt","multiplePrompt","subtitlePrompt"];function C8(e,t,n,r,a){let i={...t},o=Q4(n,r,e.assistantId,a);if(!o&&t.fallbackAssistantId&&t.fallbackAssistantId!="common"&&(o=r?.find(s=>s.id===t.fallbackAssistantId)),o){let s={...i.env||{},...o.env||{}};Object.assign(i,iu({...o,env:s}))}return i.env&&(i.env.imt_domain=globalThis.location.hostname||"",i.env.imt_title=globalThis.document.originTitle||globalThis.document.title||""),i=y8(i,i.langOverrides,n),o||uB.forEach(s=>{e?.hasOwnProperty(s)&&(i[s]=e[s])}),i}async function wn(e){let{url:t,config:n,state:r}=e,a=new URL(t),i="auto",{translationParagraphLanguagePattern:o,translationService:s,translationServices:u,translationTheme:l,translationThemePatterns:c,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:p,immediateTranslationPattern:f}=n,b=g||"zh-CN",y=ou(t,o),h=ou(t,f),v=s,C=Object.keys(u);for(let Z of C){let Ee=u[Z];if(ou(t,Ee)){v=Z;break}}let T=l,x=Object.keys(c);for(let Z of x){let Ee=c[Z];if(Ee&&ou(t,Ee)){T=Z;break}}let S=ou(t,m),w=v8(t,m);w||(w=gt(t,D2)),w||(w=gt(t,n.blockUrls));let A=v8(t,n.inputTranslationUrlPattern);A||(A=gt(t,n.inputTranslationBlockUrls));let D=gt(t,n.mutationBlockUrls),M=Object.keys(p),R={};for(let Z of M){let Ee=p[Z];if(Ee&&Ee.matches)for(let vt of Ee.matches)R[vt]=Z}let _=Object.keys(R),F=Rf(t,_);F&&(i=R[F]??"auto",R[F]&&R[F]!=="auto"&&Tr(R[F]));let L=a.hostname,U=await cr(L),I=a.pathname+a.search+a.hash,q=await cr(I),$=`https://${U}.com/${q}`,te=await Mt(),Te=await Us(),pe=n.translationStartMode,H=cB(te,n);te.aiAssistants=dB(H,n),pe==="dynamic"&&h&&(pe="immediate");let V=v;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(V=n.inputTranslationService);let Q=v;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Q=n.mouseHoverTranslationService);let _e=v;n.subtitleTranslateService&&n.subtitleTranslateService!=="inherit"&&(_e=n.subtitleTranslateService);let ve=await tt.get(mt,null),$e=!1;ve&&($e=At(ve));let X={targetLanguage:b,config:n,translationService:v,inputTranslationService:V,mouseHoverTranslationService:Q,subtitleTranslateService:_e,isTranslateUrl:S,sourceLanguage:i,mainFrame:document.body,isTranslateExcludeUrl:w,isMutationTranslationExcludeUrl:D,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:$,state:r?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},r):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:pe,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:T,isTranslateDirectlyOnHover:!1},localConfig:te};ve&&(X.user=ve,$e?X.isPro=!0:X.isPro=!1),X.state.translationArea==="body"&&(X.config.generalRule.excludeTags=X.config.generalRule.excludeTags.filter(Z=>!X.config.generalRule.bodyTranslateTags.includes(Z)),X.config.generalRule.additionalExcludeSelectors=X.config.generalRule.additionalExcludeSelectors.filter(Z=>Z!==".btn"));let se=n.translationServices[X.translationService]||{};se.immediateTranslationTextCount!==void 0&&lB(se.immediateTranslationTextCount)&&se.immediateTranslationTextCount>=0&&(X.state.immediateTranslationTextCount=se.immediateTranslationTextCount),X.translationService==="deepl"&&(se&&se.authKey&&se.authKey.startsWith("immersive_")||se&&se.provider==="pro"&&X.user?.token)&&se.immediateTranslationTextCountForImmersiveDeepl!==void 0&&se.immediateTranslationTextCountForImmersiveDeepl>=0&&(X.state.immediateTranslationTextCount=se.immediateTranslationTextCountForImmersiveDeepl),se&&se.translationDebounce&&typeof se.translationDebounce=="number"&&(X.state.translationDebounce=se.translationDebounce);let be=Te.immediateTranslationTextCount;n.immediateTranslationTextCount!==be&&(X.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let he=n.rules,Le;globalThis.PDFViewerApplication?Le=he.find(Z=>Z.pageType=="pdfReader"):globalThis.immersiveTranslateEbookViewer?Le=he.find(Z=>Z.pageType=="ebookReader"):globalThis.immersiveTranslateEbookBuilder?Le=he.find(Z=>Z.pageType=="ebookBuilder"):Le=he.find(Z=>ou(t,Z)),Le&&Le.pageType==="ebookBuilder"&&(X.state.translationStartMode="immediate");let We=n.generalRule;if(Le&&(X.rule=wd(We,Le)),X.rule.selectors.length>0&&(X.rule.paragraphMinTextCount=2,X.rule.paragraphMinWordCount=1),X.state.translationArea==="body"&&X.rule.excludeTags&&(X.rule.excludeTags=X.rule.excludeTags.filter(Z=>!X.rule.bodyTranslateTags.includes(Z)&&!X.rule.forceTranslateTags.includes(Z))),X.rule.mainFrameSelector){let Z=document.querySelector(X.rule.mainFrameSelector);Z&&(X.mainFrame=Z)}return X}function ou(e,t){if(!t)return!1;let{matches:n,excludeMatches:r,selectorMatches:a,excludeSelectorMatches:i}=t;return r&&r.length>0&>(e,r)?!1:n&&n.length>0&>(e,n)?!0:i&&i.length>0&&Ud(i)?!1:!!(a&&a.length>0&&Ud(a))}function v8(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:r}=t;return!!(n&&n.length>0&>(e,n)||r&&r.length>0&&Ud(r))}function lB(e){return typeof e=="number"}function cB(e,t){let n=[...e.aiAssistants||[]];return(t.rawUserConfig?.customAiAssistants||[]).forEach(a=>{let i=n.findIndex(o=>o.id===a.id);i!==-1?n[i]=a:n.push(a)}),n}function dB(e,t){try{let n=t.rawUserConfig?.aiAssistantsMatches||{};return e.map(r=>{let a=Sd(r.matches||[],n[r.id]?.matches||[]);return{...r,matches:a}})}catch(n){return k.error(n),e}}function x8(e){let t=e.split(` `),n=[],r,a="",i="";for(let o of t){o?.startsWith("- ")&&(o=o.slice(1),r&&n.push(r),r={},a="",i="");let s=o.trim().split(/[::]/).map(l=>l.trim()).filter(l=>!!l);if(s.length>=2&&!/\S\s\S/.test(s[0])){let l=o.slice(o.indexOf(s[1])).trim();l?(a=s[0],l=="|-"?i="":i=l):i+=` `+o}else i+=` -`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var ah=class extends Ie{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` +`+o;if(!a)continue;r||(r={});let u=Number(i);r[a]=Number.isNaN(u)?i:Number(i)}return r&&n.push(r),Object.values(n).forEach(o=>{Object.entries(o).forEach(([s,u])=>{if(typeof u=="string"){let l=u.trim();l?.startsWith('"')&&l?.endsWith('"')?o[s]=l.slice(1,-1):o[s]=l}})}),n}var rh=class extends Re{apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;translationTextSeparator=` %% -`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let m=i?.sourceProgram,g=["subtitle","videoSubtitle"].includes(m),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),g&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let f="",b="",y=s.includes("{{json}}"),h=s.includes("{{yaml}}");if(Md(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",y){let A=[],D=c.imt_json_item||"";g&&(D=c.imt_subtitle_json_item||D);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?f:M=="yaml"?b:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await ee(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` +`;model="";systemPrompt="";prompt="";subtitlePrompt="";multiplePrompt="";ignoreResReges=[];apiUrl="";constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.APIKEY){let i=t.APIKEY?.trim();this.apiKeys=i.split(",").map(o=>o.trim())}Array.isArray(t.ignoreResRegexs)&&(this.ignoreResReges=t.ignoreResRegexs),t.translationTextSeparator&&(this.translationTextSeparator=t.translationTextSeparator),t.model&&(this.model=t.model),t.systemPrompt&&(this.systemPrompt=t.systemPrompt),t.prompt&&(this.prompt=t.prompt),t.multiplePrompt&&(this.multiplePrompt=t.multiplePrompt),t.subtitlePrompt&&(this.subtitlePrompt=t.subtitlePrompt)}getLangMap(){return new Map}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a,options:i}=t;if(n.length===0)return{from:r,to:a,text:""};let o=this.getLangMap(),s=this.prompt||"",u=o.get(r)||r,l=o.get(a)||a,c=this.serviceConfig.env||{};c={...c};let m=i?.sourceProgram,g=["subtitle","videoSubtitle"].includes(m),p=[n];i?.rawTextArrayLength&&(p=n.split(this.translationTextSeparator)),p.length>1&&this.multiplePrompt&&(s=this.multiplePrompt),g&&this.subtitlePrompt&&p.length>1&&(s=this.subtitlePrompt);let f="",b="",y=s.includes("{{json}}"),h=s.includes("{{yaml}}");if(Md(n)&&this.isRichTranslate?c.content_type="html":c.html_only="",y){let A=[],D=c.imt_json_item||"";g&&(D=c.imt_subtitle_json_item||D);for(let M=0;MM==="from"?u:M==="to"?l+" Language":M==="text"?n:M=="json"?f:M=="yaml"?b:c[M]===""?"":c[M]||D).replace(/{{(.+?)}}/g,(D,M)=>c[M]||D)}}async rawRequest(t){return await ee(t)}extractValidJson(t){let n=t.indexOf("["),r=t.lastIndexOf("]");return n!==-1&&r!==-1?t.slice(n,r+1):""}extractValidYaml(t){let n=t.split(` `),r=[];for(let a=0;anew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Cr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Ji=ah;function g_(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var p_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],T8=new Map(p_),ih=class extends Ji{static langMap=T8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ft+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ft(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return T8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return Cr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!ru.langMap.has(n.to)||!ru.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ru(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},w8=ih;function Mn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function f_(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Me(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Zi(e,t){return e<>>32-t}function _a(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function su(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function E8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function uu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Oa(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var A8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Mn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return _a(a(g,r),t)},this.b64=function(g){return Na(a(g),n)},this.any=function(g,p){return Oa(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return _a(i(g,p),t)},this.b64_hmac=function(g,p){return Na(i(g,p),n)},this.any_hmac=function(g,p,f){return Oa(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Mn(g):g,E8(o(uu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Mn(g):g,p=r?Mn(p):p,f=uu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(uu(p)),512+p.length*8),E8(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,x=-271733879,S=-1732584194,T=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(ui(c)),512+c.length*8),su(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),x=1732584193,S=-271733879,T=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,x.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return T=C(D.concat(ui(S)),512+S.length*8),su(C(M.concat(T),512+256))}function s(x,S){return x>>>S|x<<32-S}function u(x,S){return x>>>S}function l(x,S,T){return x&S^~x&T}function c(x,S,T){return x&S^x&T^S&T}function m(x){return s(x,2)^s(x,13)^s(x,22)}function g(x){return s(x,6)^s(x,11)^s(x,25)}function p(x){return s(x,7)^s(x,18)^u(x,3)}function f(x){return s(x,17)^s(x,19)^u(x,10)}function b(x){return s(x,28)^s(x,34)^s(x,39)}function y(x){return s(x,14)^s(x,18)^s(x,41)}function h(x){return s(x,1)^s(x,8)^u(x,7)}function v(x){return s(x,19)^s(x,61)^u(x,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(x,S){var T=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,I,R,B,L,U,F,q,Y,te;for(x[S>>5]|=128<<24-S%32,x[(S+64>>9<<4)+15]=S,F=0;F32&&(x=s(x,y.length*8));C<32;C+=1)S[C]=x[C]^909522486,T[C]=x[C]^1549556828;return v=s(S.concat(ui(h)),1024+h.length*8),su(s(T.concat(v),1024+512))}function s(y,h){var v,C,x,S=new Array(80),T=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),I=new u(0,0),R=new u(0,0),B=new u(0,0),L=new u(0,0),U=new u(0,0),F=new u(0,0),q=new u(0,0),Y=new u(0,0),te=new u(0,0),xe=new u(0,0),pe=new u(0,0),H=new u(0,0),W=new u(0,0),$=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)S[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,x=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),x=(h.l>>>16)+(v.l>>>16)+(C>>>16),S=(h.h&65535)+(v.h&65535)+(x>>>16),T=(h.h>>>16)+(v.h>>>16)+(S>>>16);y.l=C&65535|x<<16,y.h=S&65535|T<<16}function f(y,h,v,C,x){var S=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535),T=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(S>>>16),w=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(T>>>16),A=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(w>>>16);y.l=S&65535|T<<16,y.h=w&65535|A<<16}function b(y,h,v,C,x,S){var T=(h.l&65535)+(v.l&65535)+(C.l&65535)+(x.l&65535)+(S.l&65535),w=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(x.l>>>16)+(S.l>>>16)+(T>>>16),A=(h.h&65535)+(v.h&65535)+(C.h&65535)+(x.h&65535)+(S.h&65535)+(w>>>16),D=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(x.h>>>16)+(S.h>>>16)+(A>>>16);y.l=T&65535|w<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return _a(u(b,r))},this.b64=function(b){return Na(u(b,r),n)},this.any=function(b,y){return Oa(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return _a(l(b,y))},this.b64_hmac=function(b,y){return Na(l(b,y),n)},this.any_hmac=function(b,y,h){return Oa(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Mn(b):b,c(m(uu(b),b.length*8))}function l(b,y){b=r?Mn(b):b,y=r?Mn(y):y;var h,v,C=uu(b),x=Array(16),S=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)x[h]=C[h]^909522486,S[h]=C[h]^1549556828;return v=m(x.concat(uu(y)),512+y.length*8),c(m(S.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,x,S=1732584193,T=4023233417,w=2562383102,A=271733878,D=3285377520,M,I,R,B,L,U,F,q,Y,te;for(b[y>>5]|=128<>>9<<4)+14]=y,x=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new V("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new A8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await ee({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new V(f.Message);return f}};var h_=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],rn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},oh=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},sh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=oh(t);if(r)return Array.isArray(n)?`${r}=${n.map(oh).sort().join(`&${r}=`)}`:`${r}=${oh(n)}`}).filter(t=>t).join("&"),lu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${rn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[rn.tokenHeader]=t.sessionToken),a[rn.dateHeader]=r,a[rn.notSignBody]="",a[rn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[rn.algorithmKey]=rn.algorithm,a[rn.signHeadersKey]="",a[rn.signQueriesKey]=void 0,a[rn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[rn.signQueriesKey]=Object.keys(a).sort().join(";"),a[rn.signatureKey]=s,sh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[rn.dateHeader]=n,t.sessionToken&&(this.request.headers[rn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[rn.contentSha256Header]=await lr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return $s(await Er(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(rn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` -`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=sh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} +`)}restoreText(t,n,r,a,i){let o=[];for(let s=0;snew RegExp(s).test(i))&&(i=t)}catch(o){k.debug("e",o)}return i||""}getCacheKeyPrefix(){let t=[this.model||"",this.apiUrl||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){return{handled:!1}}},Zi=rh;function mB(e,t){return!e.includes(".")&&!e.includes("\u3002")&&(t.endsWith("\u3002")||t.endsWith("."))?t.slice(0,-1):t}var gB=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],T8=new Map(gB),ah=class extends Zi{static langMap=T8;provider="custom";immersiveApiUrl=`https://openai-api.${et}/v1/chat/completions`;immersiveProApiUrl=ft+"openai/v1/chat/completions";temperature=0;enableFallback=!1;constructor(t,n,r,a){if(super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback),this.provider==="pro"){if(!r.isPro)throw new W("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");let i=r.userToken||"";if(this.apiKeys=i.split(",").map(o=>o.trim()),!i)throw new W("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");t.proModel&&(t.model=t.proModel),t.proLimit&&(t.limit=t.proLimit)}t&&t.immersiveApiUrl&&(this.immersiveApiUrl=It(this.immersiveApiUrl,t.immersiveApiUrl)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=It(this.apiUrl,t.apiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=It(this.immersiveProApiUrl,t.immersiveProApiUrl)),this.model=t.model||"gpt-3.5-turbo-1106"}getLangMap(){return T8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return this.provider==="pro"?(s.url=this.immersiveProApiUrl,s.headers.token=u,s.headers={...s.headers,...a}):u&&(s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(s.url=this.immersiveProApiUrl,s.headers.token=u,u.endsWith("x")||(s.headers["Immersive-Corpus-Campagin"]="yes"),delete s.headers.Authorization,delete s.headers["api-key"],s.headers={...s.headers,...a})),s}getCacheKeyPrefix(){let t=["openai",this.provider||"",this.model||"",this.systemPrompt||"",this.prompt||"",this.systemPrompt||"",this.multiplePrompt||"",this.subtitlePrompt||""];return xr(t.join("_"))}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByDeepL(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByDeepL(t,n){try{return this.provider!=="pro"||!this.enableFallback||!ru.langMap.has(n.to)||!ru.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ru(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}},S8=ah;function Mn(e){var t,n,r="",a=-1,i;if(e&&e.length)for(i=e.length;(a+=1)>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63));return r}function pB(e){var t,n,r,a,i,o=[],s;if(t=n=r=a=i=0,e&&e.length)for(s=e.length,e+="";t191&&r<224?(a=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|a&63),t+=2):(a=e.charCodeAt(t+1),i=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63),t+=3);return o.join("")}function Me(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Ji(e,t){return e<>>32-t}function Ba(e,t){for(var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",a,i=0,o=e.length;i>>4&15)+n.charAt(a&15);return r}function su(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function w8(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function uu(e){var t,n=e.length*8,r=Array(e.length>>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),a=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function Oa(e,t){var n=t.length,r=Array(),a,i,o,s,u,l,c,m;for(l=Array(Math.ceil(e.length/2)),s=l.length,a=0;a0;){for(u=Array(),o=0,a=0;a0||i>0)&&(u[u.length]=i);r[r.length]=o,l=u}for(c="",a=r.length-1;a>=0;a--)c+=t.charAt(r[a]);for(m=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2))),a=c.length;ae.length*8?r+=t:r+=n.charAt(s>>>6*(3-o)&63);return r}var E8={VERSION:"1.0.6",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="=",n=!1,r=!0;this.encode=function(a){var i,o,s,u="";for(t=t||"=",a=r?Mn(a):a,len=a.length,i=0;ilen*8?u+=t:u+=e.charAt(s>>>6*(3-o)&63);return u},this.decode=function(a){var i,o,s,u,l,c,m,g,p,f,b="",y=[];if(!a)return a;i=f=0,a=a.replace(new RegExp("\\"+t,"gi"),"");do l=e.indexOf(a.charAt(i++)),c=e.indexOf(a.charAt(i++)),m=e.indexOf(a.charAt(i++)),g=e.indexOf(a.charAt(i++)),p=l<<18|c<<12|m<<6|g,o=p>>16&255,s=p>>8&255,u=p&255,f+=1,m===64?y[f]=String.fromCharCode(o):g===64?y[f]=String.fromCharCode(o,s):y[f]=String.fromCharCode(o,s,u);while(i>>8^n;return(t^-1)>>>0},MD5:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pad:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0;this.hex=function(g){return Ba(a(g,r),t)},this.b64=function(g){return Na(a(g),n)},this.any=function(g,p){return Oa(a(g,r),p)},this.raw=function(g){return a(g,r)},this.hex_hmac=function(g,p){return Ba(i(g,p),t)},this.b64_hmac=function(g,p){return Na(i(g,p),n)},this.any_hmac=function(g,p,f){return Oa(i(g,p),f)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(g){return typeof g=="boolean"&&(t=g),this},this.setPad=function(g){return n=g||n,this},this.setUTF8=function(g){return typeof g=="boolean"&&(r=g),this};function a(g){return g=r?Mn(g):g,w8(o(uu(g),g.length*8))}function i(g,p){var f,b,y,h,v;for(g=r?Mn(g):g,p=r?Mn(p):p,f=uu(g),f.length>16&&(f=o(f,g.length*8)),b=Array(16),y=Array(16),v=0;v<16;v+=1)b[v]=f[v]^909522486,y[v]=f[v]^1549556828;return h=o(b.concat(uu(p)),512+p.length*8),w8(o(y.concat(h),512+128))}function o(g,p){var f,b,y,h,v,C=1732584193,T=-271733879,x=-1732584194,S=271733878;for(g[p>>5]|=128<>>9<<4)+14]=p,f=0;f16&&(m=o(m,l.length*8)),g=Array(16),p=Array(16),f=0;f<16;f+=1)g[f]=m[f]^909522486,p[f]=m[f]^1549556828;return b=o(g.concat(ui(c)),512+c.length*8),su(o(p.concat(b),512+160))}function o(l,c){var m,g,p,f,b,y,h,v,C=Array(80),T=1732584193,x=-271733879,S=-1732584194,w=271733878,A=-1009589776;for(l[c>>5]|=128<<24-c%32,l[(c+64>>9<<4)+15]=c,m=0;m16&&(A=C(A,T.length*8));w<16;w+=1)D[w]=A[w]^909522486,M[w]=A[w]^1549556828;return S=C(D.concat(ui(x)),512+x.length*8),su(C(M.concat(S),512+256))}function s(T,x){return T>>>x|T<<32-x}function u(T,x){return T>>>x}function l(T,x,S){return T&x^~T&S}function c(T,x,S){return T&x^T&S^x&S}function m(T){return s(T,2)^s(T,13)^s(T,22)}function g(T){return s(T,6)^s(T,11)^s(T,25)}function p(T){return s(T,7)^s(T,18)^u(T,3)}function f(T){return s(T,17)^s(T,19)^u(T,10)}function b(T){return s(T,28)^s(T,34)^s(T,39)}function y(T){return s(T,14)^s(T,18)^s(T,41)}function h(T){return s(T,1)^s(T,8)^u(T,7)}function v(T){return s(T,19)^s(T,61)^u(T,6)}a=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function C(T,x){var S=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=new Array(64),A,D,M,R,_,F,L,U,I,q,$,te;for(T[x>>5]|=128<<24-x%32,T[(x+64>>9<<4)+15]=x,I=0;I32&&(T=s(T,y.length*8));C<32;C+=1)x[C]=T[C]^909522486,S[C]=T[C]^1549556828;return v=s(x.concat(ui(h)),1024+h.length*8),su(s(S.concat(v),1024+512))}function s(y,h){var v,C,T,x=new Array(80),S=new Array(16),w=[new u(1779033703,-205731576),new u(-1150833019,-2067093701),new u(1013904242,-23791573),new u(-1521486534,1595750129),new u(1359893119,-1377402159),new u(-1694144372,725511199),new u(528734635,-79577749),new u(1541459225,327033209)],A=new u(0,0),D=new u(0,0),M=new u(0,0),R=new u(0,0),_=new u(0,0),F=new u(0,0),L=new u(0,0),U=new u(0,0),I=new u(0,0),q=new u(0,0),$=new u(0,0),te=new u(0,0),Te=new u(0,0),pe=new u(0,0),H=new u(0,0),V=new u(0,0),Q=new u(0,0);for(a===void 0&&(a=[new u(1116352408,-685199838),new u(1899447441,602891725),new u(-1245643825,-330482897),new u(-373957723,-2121671748),new u(961987163,-213338824),new u(1508970993,-1241133031),new u(-1841331548,-1357295717),new u(-1424204075,-630357736),new u(-670586216,-1560083902),new u(310598401,1164996542),new u(607225278,1323610764),new u(1426881987,-704662302),new u(1925078388,-226784913),new u(-2132889090,991336113),new u(-1680079193,633803317),new u(-1046744716,-815192428),new u(-459576895,-1628353838),new u(-272742522,944711139),new u(264347078,-1953704523),new u(604807628,2007800933),new u(770255983,1495990901),new u(1249150122,1856431235),new u(1555081692,-1119749164),new u(1996064986,-2096016459),new u(-1740746414,-295247957),new u(-1473132947,766784016),new u(-1341970488,-1728372417),new u(-1084653625,-1091629340),new u(-958395405,1034457026),new u(-710438585,-1828018395),new u(113926993,-536640913),new u(338241895,168717936),new u(666307205,1188179964),new u(773529912,1546045734),new u(1294757372,1522805485),new u(1396182291,-1651133473),new u(1695183700,-1951439906),new u(1986661051,1014477480),new u(-2117940946,1206759142),new u(-1838011259,344077627),new u(-1564481375,1290863460),new u(-1474664885,-1136513023),new u(-1035236496,-789014639),new u(-949202525,106217008),new u(-778901479,-688958952),new u(-694614492,1432725776),new u(-200395387,1467031594),new u(275423344,851169720),new u(430227734,-1194143544),new u(506948616,1363258195),new u(659060556,-544281703),new u(883997877,-509917016),new u(958139571,-976659869),new u(1322822218,-482243893),new u(1537002063,2003034995),new u(1747873779,-692930397),new u(1955562222,1575990012),new u(2024104815,1125592928),new u(-2067236844,-1578062990),new u(-1933114872,442776044),new u(-1866530822,593698344),new u(-1538233109,-561857047),new u(-1090935817,-1295615723),new u(-965641998,-479046869),new u(-903397682,-366583396),new u(-779700025,566280711),new u(-354779690,-840897762),new u(-176337025,-294727304),new u(116418474,1914138554),new u(174292421,-1563912026),new u(289380356,-1090974290),new u(460393269,320620315),new u(685471733,587496836),new u(852142971,1086792851),new u(1017036298,365543100),new u(1126000580,-1676669620),new u(1288033470,-885112138),new u(1501505948,-60457430),new u(1607167915,987167468),new u(1816402316,1246189591)]),C=0;C<80;C+=1)x[C]=new u(0,0);for(y[h>>5]|=128<<24-(h&31),y[(h+128>>10<<5)+31]=h,T=y.length,C=0;C>>v|h.h<<32-v,y.h=h.h>>>v|h.l<<32-v}function m(y,h,v){y.l=h.h>>>v|h.l<<32-v,y.h=h.l>>>v|h.h<<32-v}function g(y,h,v){y.l=h.l>>>v|h.h<<32-v,y.h=h.h>>>v}function p(y,h,v){var C=(h.l&65535)+(v.l&65535),T=(h.l>>>16)+(v.l>>>16)+(C>>>16),x=(h.h&65535)+(v.h&65535)+(T>>>16),S=(h.h>>>16)+(v.h>>>16)+(x>>>16);y.l=C&65535|T<<16,y.h=x&65535|S<<16}function f(y,h,v,C,T){var x=(h.l&65535)+(v.l&65535)+(C.l&65535)+(T.l&65535),S=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(T.l>>>16)+(x>>>16),w=(h.h&65535)+(v.h&65535)+(C.h&65535)+(T.h&65535)+(S>>>16),A=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(T.h>>>16)+(w>>>16);y.l=x&65535|S<<16,y.h=w&65535|A<<16}function b(y,h,v,C,T,x){var S=(h.l&65535)+(v.l&65535)+(C.l&65535)+(T.l&65535)+(x.l&65535),w=(h.l>>>16)+(v.l>>>16)+(C.l>>>16)+(T.l>>>16)+(x.l>>>16)+(S>>>16),A=(h.h&65535)+(v.h&65535)+(C.h&65535)+(T.h&65535)+(x.h&65535)+(w>>>16),D=(h.h>>>16)+(v.h>>>16)+(C.h>>>16)+(T.h>>>16)+(x.h>>>16)+(A>>>16);y.l=S&65535|w<<16,y.h=A&65535|D<<16}},RMD160:function(e){var t=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,n=e&&typeof e.pad=="string"?e.pa:"=",r=e&&typeof e.utf8=="boolean"?e.utf8:!0,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(b){return Ba(u(b,r))},this.b64=function(b){return Na(u(b,r),n)},this.any=function(b,y){return Oa(u(b,r),y)},this.raw=function(b){return u(b,r)},this.hex_hmac=function(b,y){return Ba(l(b,y))},this.b64_hmac=function(b,y){return Na(l(b,y),n)},this.any_hmac=function(b,y,h){return Oa(l(b,y),h)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(b){return typeof b=="boolean"&&(t=b),this},this.setPad=function(b){return typeof b<"u"&&(n=b),this},this.setUTF8=function(b){return typeof b=="boolean"&&(r=b),this};function u(b){return b=r?Mn(b):b,c(m(uu(b),b.length*8))}function l(b,y){b=r?Mn(b):b,y=r?Mn(y):y;var h,v,C=uu(b),T=Array(16),x=Array(16);for(C.length>16&&(C=m(C,b.length*8)),h=0;h<16;h+=1)T[h]=C[h]^909522486,x[h]=C[h]^1549556828;return v=m(T.concat(uu(y)),512+y.length*8),c(m(x.concat(v),512+160))}function c(b){var y,h="",v=b.length*32;for(y=0;y>5]>>>y%32&255);return h}function m(b,y){var h,v,C,T,x=1732584193,S=4023233417,w=2562383102,A=271733878,D=3285377520,M,R,_,F,L,U,I,q,$,te;for(b[y>>5]|=128<>>9<<4)+14]=y,T=b.length,C=0;C[n,t]));SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new W("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.SHA1=new E8.SHA1,t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:r,to:a}=t,i={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:n,TargetLanguage:e.langMap.get(a)||a},o=this.scene=="general"?"TranslateGeneral":"Translate",s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:i,service:"mt",version:"2018-10-12"});return{text:s.Data.Translated,from:s.Data.DetectedLanguage&&e.langMapReverse.get(s.Data.DetectedLanguage)||r||"auto",to:e.langMapReverse.get(a)||a}}async translateList(t){let{text:n,from:r,to:a}=t,i=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(r)||"auto",SourceText:JSON.stringify(n.reduce((l,c,m)=>(l[m]=c,l),{})),TargetLanguage:e.langMap.get(a)||a,ApiType:i},s=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),u=s.TranslatedList.length&&s.TranslatedList[0].detectedLanguage;return{text:s.TranslatedList.sort((l,c)=>parseInt(l.index)-parseInt(c.index)).map(l=>l.translated),from:u&&e.langMapReverse.get(u)||r||"auto",to:e.langMapReverse.get(a)||a}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:r,payload:a,service:i,version:o}){let s=new Date().toISOString(),u=Math.random().toString(36).slice(2),l={Action:r,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:u,Timestamp:s,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(v=>`${this.encode(v)}=${this.encode(b[v])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},l,a)),g=this.SHA1.b64_hmac(`${n}&`,m),p=new URLSearchParams(Object.assign({},l,{Signature:g})).toString(),f=await ee({retry:this.retry,url:`https://${i}.aliyuncs.com?${p}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(a).toString(),timeout:this.requestTimeout});if(f instanceof Error)throw f;if(f.Code!=="200")throw new W(f.Message);return f}};var fB=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],rn={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},ih=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},oh=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let r=ih(t);if(r)return Array.isArray(n)?`${r}=${n.map(ih).sort().join(`&${r}=`)}`:`${r}=${ih(n)}`}).filter(t=>t).join("&"),lu=class{request;serviceName;bodySha256;constructor(t,n,r){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,r=r||{},this.bodySha256=r.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(r=>{let a=t[r];return typeof a<"u"&&a!==null}).sort().map(r=>{n[r]=t[r]}),n}async addAuthorization(t,n){let r=this.getDateTime(n);await this.addHeaders(t,r),this.request.headers.Authorization=await this.authorization(t,r)}async authorization(t,n){let r=[],a=this.credentialString(n);return r.push(`${rn.algorithm} Credential=${t.accessKeyId}/${a}`),r.push(`SignedHeaders=${this.signedHeaders()}`),r.push(`Signature=${await this.signature(t,n)}`),r.join(", ")}async getSignUrl(t,n){let r=this.getDateTime(n),a={...this.request.params},i=this.request.params,o=this.request.headers;t.sessionToken&&(a[rn.tokenHeader]=t.sessionToken),a[rn.dateHeader]=r,a[rn.notSignBody]="",a[rn.credential]=`${t.accessKeyId}/${this.credentialString(r)}`,a[rn.algorithmKey]=rn.algorithm,a[rn.signHeadersKey]="",a[rn.signQueriesKey]=void 0,a[rn.signatureKey]=void 0,a=this.sortParams(a),this.request.params=a,this.request.headers={};let s=await this.signature(t,r);return this.request.params=i,this.request.headers=o,a[rn.signQueriesKey]=Object.keys(a).sort().join(";"),a[rn.signatureKey]=s,oh(a)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[rn.dateHeader]=n,t.sessionToken&&(this.request.headers[rn.tokenHeader]=t.sessionToken),this.request.body){let r=this.request.body;this.request.headers[rn.contentSha256Header]=await cr(r)}}async signature(t,n){let r=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Qs(await Ar(await this.stringToSign(n),r))}async stringToSign(t){let n=[];n.push(rn.algorithm),n.push(t),n.push(this.credentialString(t));let r=await this.canonicalString();return n.push(await this.hexEncodedHash(r)),n.join(` +`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let r=oh(this.request.params)||"";return t.push(r),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` -`)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new V(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await lr(t)}async hexEncodedBodyHash(){return this.request.headers[rn.contentSha256Header]?this.request.headers[rn.contentSha256Header]:this.request.body?await this.hexEncodedHash(sh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return h_.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Er(n,`${rn.kDatePrefix}${t.secretKey}`),o=await Er(r,i),s=await Er(a,o);return Er(rn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,rn.v4Identifier].join("/")}};var D8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],uh=new Map(D8),b_=new Map(D8.map(([e,t])=>[t,e])),lh=class extends Ie{static langMap=uh;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new V("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new lu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await ee({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new V(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new V(s.Code,s.Message)}else throw new V("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=uh.get(r),o={TargetLanguage:uh.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new lu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await ee({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=b_.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new V(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new V(m.Code,m.Message)}else throw new V("response: "+JSON.stringify(c))}},L8=lh;var M8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],ch=new Map(M8),y_=new Map(M8.map(([e,t])=>[t,e])),Yl=class extends Ie{static langMap=ch;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=ch.get(r)||"detect",o=ch.get(a)||a,u=await ee({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=y_.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new V(l.status_code.toString(),l.status_message)}}};var v_=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],dh=new Map(v_),Ql=class extends Ie{static langMap=dh;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new V("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:dh.get(r)||r,target_lang:dh.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await ee({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:G4(u.data,a),from:r,to:a};throw new V(u.message||u.message||"API Error")}};var P8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],mh=new Map(P8),C_=new Map(P8.map(([e,t])=>[t,e])),gh=class extends Ie{static langMap=mh;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new V("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=Cr(a+o+n+i);this.domain&&(l=Cr(a+o+n+this.domain+i));let c=new URLSearchParams({from:mh.get(s)||"auto",to:mh.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await ee({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new V("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:C_.get(f)||f,to:u,text:b.join(` -`)}}},R8=gh;var _o=class extends Ie{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ll(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new V("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new V(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ll(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?S_(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function S_(e){let t=Math.floor(Math.random()*e.length);return e[t]}var I8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],ph=class extends _o{static langMap=new Map(I8);constructor(t,n,r,a){if(!t?.token)throw new V("token are required");super({...t,isSupportList:!0,langs:I8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},F8=ph;var x_=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],sm=new Map(x_),fh=class extends Ie{static langMap=sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!sm.get(a))throw new V(`Unsupported language: ${a}`);if(r==="auto")throw new V("Unsupported language: auto");let o=n;return{text:(await ee({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${sm.get(r)||"auto"}2${sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},B8=fh;var _8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],hh=new Map(_8),T_=new Map(_8.map(([e,t])=>[t,e]));function w_(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var bh=class extends Ie{static langMap=hh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new V("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=E_(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+w_(n)+i+o+this.appSecret,u=await lr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:hh.get(r)||"auto",to:hh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await ee({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new V(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` -`),from:T_.get(f),to:a}}};function E_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var vh=class extends Ie{static langMap=yh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:yh.get(r)||"auto",to:yh.get(a)||a},o=new URLSearchParams(i),s=await ee({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` -`),from:r,to:a};throw new V("Youdao translation failed: "+JSON.stringify(s))}},U8=vh;var Jl=class extends _o{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||rs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var Ch=class extends Ji{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new V("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new V("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ft(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},um=Ch;var j8=P+"-gemini-fake-user-key",A_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],H8=new Map(A_),Sh=class extends um{static langMap=H8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ft+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return H8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await To(j8,""),this.fakeId||(this.fakeId=k_(10),await wo(j8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new V("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function k_(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ia({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Th.get(r)+"-"}${Th.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await ee({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var M_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],W8=new Map(M_),Xl=class extends Ji{static langMap=W8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Fa(Rg+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ia({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return W8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(rm(Rg+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new V("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new V(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var P_=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],G8=new Map(P_),cr=class extends Ji{static langMap=G8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=Ft(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return G8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var lm=class extends cr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new V(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Er(t,"TC3"+this.secret_key),a=await Er(this.service,r),i=await Er("tc3_request",a),o=await Er(n,i);return $s(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await lr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` +`)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(r=>{t.push([r,this.request.headers[r]])}),t.sort((r,a)=>r[0].toLowerCase(){let a=r[0].toLowerCase();if(this.isSignableHeader(a)){let i=r[1];if(typeof i>"u"||i===null||typeof i.toString!="function")throw new W(`Header ${a} contains invalid value`);n.push(`${a}:${this.canonicalHeaderValues(i.toString())}`)}}),n.join(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await cr(t)}async hexEncodedBodyHash(){return this.request.headers[rn.contentSha256Header]?this.request.headers[rn.contentSha256Header]:this.request.body?await this.hexEncodedHash(oh(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return fB.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,r,a){let i=await Ar(n,`${rn.kDatePrefix}${t.secretKey}`),o=await Ar(r,i),s=await Ar(a,o);return Ar(rn.v4Identifier,s)}createScope(t,n,r){return[t.substr(0,8),n,r,rn.v4Identifier].join("/")}};var k8=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],sh=new Map(k8),hB=new Map(k8.map(([e,t])=>[t,e])),uh=class extends Re{static langMap=sh;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new W("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let r={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},a=new lu(r,"translate");await a.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let i=new URLSearchParams(r.params),o=await ee({retry:2,url:"https://open.volcengineapi.com"+r.pathname+"?"+i.toString(),headers:a.request.headers,method:r.method,body:r.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let s=o.ResponseMetadata.Error;throw new W(s.Code,s.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let s=o.ResponseMetaData.Error;throw new W(s.Code,s.Message)}else throw new W("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:r,to:a}=t,i=sh.get(r),o={TargetLanguage:sh.get(a)||a,TextList:n};i?o.SourceLanguage=i:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let s={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},u=new lu(s,"translate");await u.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let l=new URLSearchParams(s.params),c=await ee({retry:2,url:"https://open.volcengineapi.com"+s.pathname+"?"+l.toString(),headers:u.request.headers,method:s.method,body:s.body});if(c.TranslationList){let m=c.TranslationList.map(p=>p.Translation),g=r;return c.TranslationList.length>0&&c.TranslationList[0].DetectedSourceLanguage&&(g=hB.get(c.TranslationList[0].DetectedSourceLanguage)||r),{text:m,from:g,to:a}}else if(c.ResponseMetadata&&c.ResponseMetadata.Error){let m=c.ResponseMetadata.Error;throw new W(m.Code,m.Message)}else if(c.ResponseMetaData&&c.ResponseMetaData.Error){let m=c.ResponseMetaData.Error;throw new W(m.Code,m.Message)}else throw new W("response: "+JSON.stringify(c))}},D8=uh;var L8=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],lh=new Map(L8),bB=new Map(L8.map(([e,t])=>[t,e])),$l=class extends Re{static langMap=lh;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:r,to:a}=t,i=lh.get(r)||"detect",o=lh.get(a)||a,u=await ee({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:i,target_language:o,text:n}),retry:this.retry});if(u.base_resp&&u.base_resp.status_code===0){let l=u.translation,c=r;return u.detected_language&&(c=bB.get(u.detected_language)||r),{text:l,from:c,to:a}}else{let l=u.base_resp;throw new W(l.status_code.toString(),l.status_message)}}};var yB=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH-HANT"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ch=new Map(yB),Yl=class extends Re{static langMap=ch;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.url)throw new W("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(i=>i.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:r,to:a}=t,i=this.getRandomKey(),o={source_lang:ch.get(r)||r,target_lang:ch.get(a)||a,text:n,tag_handling:"html"};this.isRichTranslate||delete o.tag_handling;let u=await ee({retry:this.retry,url:i,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify(o),timeout:this.requestTimeout});if(u.code===200)return{text:V4(u.data,a),from:r,to:a};throw new W(u.message||u.message||"API Error")}};var M8=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],dh=new Map(M8),vB=new Map(M8.map(([e,t])=>[t,e])),mh=class extends Re{static langMap=dh;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";fieldEndpoint="https://fanyi-api.baidu.com/api/trans/vip/fieldtranslate";appid="";key="";isSupportList=!1;maxTextGroupLength=3;action=!1;domain="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appid||!t.key)throw new W("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim(),t.action&&(this.action=!0),t.endpoint&&(this.endpoint=t.endpoint),t.fieldEndpoint&&(this.fieldEndpoint=t.fieldEndpoint),t.domain&&(this.domain=t.domain,this.endpoint=this.fieldEndpoint)}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:r}=this,{appid:a,key:i}=this,{text:o,from:s,to:u}=t,l=xr(a+o+n+i);this.domain&&(l=xr(a+o+n+this.domain+i));let c=new URLSearchParams({from:dh.get(s)||"auto",to:dh.get(u)||u,q:o,salt:n,appid:a,sign:l});this.action&&c.set("action","1"),this.domain&&c.set("domain",this.domain);let m=new URL(r);m.search=c.toString();let g=await ee({url:m.toString(),retry:this.retry,timeout:this.requestTimeout});if(g.error_code)throw new W("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,b=p.map(({dst:h})=>h);return{from:vB.get(f)||f,to:u,text:b.join(` +`)}}},P8=mh;var Bo=class extends Re{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,r,a){super(t,n,r,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new W(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n);if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ll(o);return{text:this.handleResponseText(s),from:r,to:a}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw new W("serivce id not found config");let{text:n,from:r,to:a}=t;if(!this.langMap.has(a))throw new W(`Unsupported language: ${a}`);a=this.langMap.get(a);let i=await this.checkLang(r,n.join(" "));if(!i)return{text:n,from:r,to:a};r=i;let o=this.handleRequest(n,r,a),s=await Ll(o);return{text:this.handleResponseText(s),from:r,to:a}}handleBaseApiServiceConfig(t){let n=t.request.url,r=t.request.headers||{};return r["content-type"]||(r["content-type"]="application/json"),{url:n,retry:t.request.retry||this.retry,method:t.request.method||"POST",headers:r,body:JSON.stringify(t.request.body),timeout:this.requestTimeout}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,r){let a={...this.requestBaseConfig},i=a?.body||"",o=this.apiServiceConfig.keywords||{};a.body=u(i);let s=a.headers||{};return Object.keys(s).forEach(l=>{s[l]=u(s[l])}),a.headers={...s,...this.headerConfigs},a.url=u(a.url||""),a;function u(l){return l.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",r).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[p,f]=g.split(":"),b=o[p];return f==="random"?CB(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,r=t,a=n.text.split(".");for(let i of a){if(Array.isArray(r))return r=r.map(o=>o[i]),r;r=r[i]}return r}detectLanguageRemotely(t){return ri.detectLanguageRemotelyByTransmart(t)}};function CB(e){let t=Math.floor(Math.random()*e.length);return e[t]}var _8=[["zh-CN","zh"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["es","es"],["ru","ru"]],gh=class extends Bo{static langMap=new Map(_8);constructor(t,n,r,a){if(!t?.token)throw new W("token are required");super({...t,isSupportList:!0,langs:_8,keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,r,a)}},R8=gh;var xB=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],sm=new Map(xB),ph=class extends Re{static langMap=sm;token="ssdj273ksdiwi923bsd9";constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:r,to:a}=t;if(!sm.get(a))throw new W(`Unsupported language: ${a}`);if(r==="auto")throw new W("Unsupported language: auto");let o=n;return{text:(await ee({retry:this.retry,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${sm.get(r)||"auto"}2${sm.get(a)}`}),timeout:this.requestTimeout})).target,from:r,to:a}}},I8=ph;var F8=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],fh=new Map(F8),TB=new Map(F8.map(([e,t])=>[t,e]));function SB(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var hh=class extends Re{static langMap=fh;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,r,a){if(super(t,n,r,a),!t||!t.appId||!t.appSecret)throw new W("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i=wB(32),o=Math.round(new Date().getTime()/1e3),s=this.appId+SB(n)+i+o+this.appSecret,u=await cr(s),l={q:n,appKey:this.appId,salt:i.toString(),from:fh.get(r)||"auto",to:fh.get(a)||a,sign:u,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(l.domain=this.domain),this.vocabId&&(l.vocabId=this.vocabId);let c=new URLSearchParams(l),g=await ee({url:"https://openapi.youdao.com/api",method:"POST",body:c.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"},retry:this.retry,timeout:this.requestTimeout});if(!g.translation)throw new W(JSON.stringify(g));let p=g.l,[f,b]=p.split("2");return{text:g.translation.join(` +`),from:TB.get(f),to:a}}};function wB(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a[t,e]));var yh=class extends Re{static langMap=bh;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,r,a){super(t,n,r,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:r,to:a}=t,i={q:n,from:bh.get(r)||"auto",to:bh.get(a)||a},o=new URLSearchParams(i),s=await ee({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"},retry:this.retry,timeout:this.requestTimeout});if(s&&s.translation)return{text:s.translation.join(` +`),from:r,to:a};throw new W("Youdao translation failed: "+JSON.stringify(s))}},N8=yh;var Zl=class extends Bo{constructor(t,n,r,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(i=>[i,i]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||rs,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,r,a)}};var vh=class extends Zi{provider="custom";immersiveProApiUrl="";temperature=0;userToken="";initPro(t,n){if(t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.provider==="pro"){if(this.userToken=n.userToken||"",!this.userToken)throw new W("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");if(!n.isPro)throw new W("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");t.proModel&&(t.model=t.proModel,this.model=t.proModel),t.proLimit&&(t.limit=t.proLimit),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=It(this.immersiveProApiUrl,t.immersiveProApiUrl))}}handleProOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"system",content:t},{role:"user",content:n}],o={...this.bodyConfigs,model:this.model,temperature:this.temperature,messages:i};isNaN(o.temperature)&&delete o.temperature;let s={url:this.immersiveProApiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry};return s.headers.token=this.userToken,s.headers={...s.headers,...a},s}parseProResponse(t){return t?.choices?.[0]?.message?.content?.trim()}},um=vh;var U8=P+"-gemini-fake-user-key",EB=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ar","Arabic"],["bn","Bengali"],["bg","Bulgarian"],["hr","Croatian"],["cs","Czech"],["da","Danish"],["nl","Dutch"],["et","Estonian"],["fi","Finnish"],["fr","French"],["de","German"],["el","Greek"],["he","iw"],["hi","Hindi"],["hu","Hungarian"],["id","Indonesian"],["it","Italian"],["ja","Japanese"],["ko","Korean"],["lv","Latvian"],["lt","Lithuanian"],["no","Norway"],["pl","Polish"],["pt","Portuguese"],["ro","Romanian"],["ru","Russian"],["sr","Serbian"],["sk","Slovak"],["sl","Slovene"],["es","Spanish"],["sw","Swahili"],["sv","Swedish"],["th","Thai"],["tr","Turkish"],["uk","Ukrainian"],["vi","Vietnamese"]],j8=new Map(EB),Ch=class extends um{static langMap=j8;provider="custom";randomPrefix="My user id is {{id}}. ";fakeId="";immersiveProApiUrl=ft+"gemini/translate";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.randomPrefix&&t.randomPrefix!==void 0&&(this.randomPrefix=t.randomPrefix),this.apiUrl="https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={key}",t?.apiUrl&&(this.apiUrl=t.apiUrl),this.maxTextGroupLength=this.maxTextGroupLength||10,this.model=this.model||"gemini-1.0-pro-latest",this.initPro(t,r)}getLangMap(){return j8}getDefaultRateLimit(){return{limit:1,interval:1050}}async handleOptions(t,n,r){if(this.provider=="pro")return this.handleProOptions(t,n,r);this.fakeId="",this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(this.fakeId=await So(U8,""),this.fakeId||(this.fakeId=AB(10),await wo(U8,this.fakeId)));let a=this.getRandomKey(),i={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"content-type":"application/json",...this.headerConfigs},timeout:this.requestTimeout,retry:this.retry};a&&(i.url=i.url.replace("{key}",a));let o=this.systemPrompt+" "+n;this.randomPrefix&&this.randomPrefix?.trim()&&this.randomPrefix!=="none"&&(o=this.randomPrefix.replace("{{id}}",this.fakeId)+o);let s={contents:[{role:"user",parts:[{text:o}]}],...this.bodyConfigs};return i.body=JSON.stringify(s,null,2),i}parseResponse(t){if(this.provider=="pro")return this.parseProResponse(t);let n=t?.candidates?.[0]?.content?.parts?.[0]?.text;if(!n&&t?.promptFeedback)throw new W("parseResponse",JSON.stringify(t));return n||""}filterContent(t,n,r,a){if(this.provider=="pro")return super.filterContent(t,n,r);let i=super.filterContent(t,n,r);return this.fakeId&&i?.includes(this.fakeId)&&a.length<=1?t:i}};function AB(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,a=0;for(;a{let n=(await Ra({url:"https://translate.yandex.net/website-widget/v1/widget.js?widgetId=ytWidget&pageLang=es&widgetTheme=light&autoMode=false",method:"GET",responseType:"text"})).match(/sid\:\s\'[0-9a-f\.]+/),r="",a=Date.now()+1*60*1e3;return n&&n[0]&&n[0].length>7&&(r=n[0].substring(6),a=Date.now()+30*60*1e3),{accessToken:r,accessTokenExpiresAt:new Date(a).toISOString()}})}async translateList(t){let{text:n,from:r,to:a}=t;if(!n)return{...t};let i=await this.getAccessToken(),o=new URLSearchParams;o.append("srv","tr-url-widget"),o.append("id",`${i.accessToken}-0-0`),o.append("format","html"),o.append("lang",`${r==="auto"?"":Th.get(r)+"-"}${Th.get(a)}`),n.forEach(l=>{o.append("text",l)});let s=await ee({url:`https://translate.yandex.net/api/v1/tr.json/translate?${o.toString()}`});if(s?.code!==200)return{...t};let u=s.text?.map(l=>l);return{from:r,to:a,text:u||n}}getDefaultRateLimit(){return{limit:5,interval:1050}}};var LB=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fil","Filipino"],["ga","Irish"],["gd","Scots Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish (Kurmanji)"],["ky","Kyrgyz"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Myanmar (Burmese)"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala (Sinhalese)"],["sk","Slovak"],["sl","Slovenian"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["st","Sesotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],W8=new Map(LB),Xl=class extends Zi{static langMap=W8;provider="custom";temperature=1;AccessKeyID="";AccessKeySecret="";constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),this.apiUrl="https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/{model}?access_token={key}",t.apiUrl&&(this.apiUrl=It(this.apiUrl,t.apiUrl)),this.model=t.model||"ernie_speed",this.maxTextGroupLength=this.maxTextGroupLength||10,this.bodyConfigs=t?.bodyConfigs||{}}async getAccessToken(t,n){return await Ia(Pg+t,()=>this.requestAccessToken(t,n))}async requestAccessToken(t,n){let r=await Ra({url:`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${t}&client_secret=${n}`,method:"POST",responseType:"json"}),i=Date.now()+r.expires_in*1e3,s=new Date(i).toISOString();return{accessToken:r.access_token,accessTokenExpiresAt:s}}getLangMap(){return W8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){if(t.error_code&&t.error_msg)throw t.error_code===110||t.error_code===111?(rm(Pg+this.AccessKeyID,()=>this.requestAccessToken(this.AccessKeyID,this.AccessKeySecret)),new W("token\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u751F\u6210\uFF0C\u8BF7\u91CD\u8BD5")):new W(t.error_msg);return t?.result?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[{role:"user",content:t},{role:"assistant",content:"ok"},{role:"user",content:n}],o={temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl.replace("{model}",this.model),method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},{accessToken:u}=await this.getAccessToken(this.AccessKeyID,this.AccessKeySecret);return s.headers={...s.headers,...a},u&&(s.url=s.url.replace("{key}",u)),s}};var MB=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["zh-CN-NE","Northeastern Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["pt-br","Portuguese (Brazil)"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fil","Filipino"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["ur-roman","Roman Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],V8=new Map(MB),dr=class extends Zi{static langMap=V8;provider="custom";temperature=0;constructor(t,n,r,a){super(t,n,r,a),t||(t={}),t.provider&&(this.provider=t.provider),t.temperature!==void 0&&(this.temperature=parseFloat(t.temperature)),this.apiUrl="https://api.openai.com/v1/chat/completions",t.apiUrl&&(this.apiUrl=It(this.apiUrl,t.apiUrl)),this.model=t.model||"gpt-3.5-turbo"}getLangMap(){return V8}getDefaultRateLimit(){return{limit:10,interval:1300}}parseResponse(t){return t?.choices?.[0]?.message?.content?.trim()||""}async handleOptions(t,n,r){let a={};r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let i=[];t&&i.push({role:"system",content:t}),n&&i.push({role:"user",content:n});let o={model:this.model,temperature:this.temperature,messages:i,...this.bodyConfigs};isNaN(o.temperature)&&delete o.temperature;let s={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",...this.headerConfigs},body:JSON.stringify(o,null,2),timeout:this.requestTimeout,retry:this.retry},u=this.getRandomKey();return s.headers.Authorization="Bearer "+u,s.headers["api-key"]=u,s}};var lm=class extends dr{action="ChatCompletions";version="2023-09-01";secret_id;secret_key;service="hunyuan";constructor(t,n,r,a){super(t,n,r,a),this.apiUrl="https://hunyuan.tencentcloudapi.com",this.model=t.model||"hunyuan-lite",this.secret_id=t.secret_id,this.secret_key=t.secret_key}parseResponse(t){let n=t.Response;if(n?.Error)throw new W(n?.Error.Message);return n?.Choices?.[0]?.Message?.Content?.trim()||""}async handleOptions(t,n,r){let a={},i=new Date;r.refresh&&(a["X-Refresh"]="True"),r.debug&&(a["X-Debug"]="True");let o=[{Role:"system",Content:t},{Role:"user",Content:n}],s={Model:this.model,Temperature:this.temperature,Messages:o,...this.bodyConfigs};isNaN(s.Temperature)&&delete s.Temperature;let u=JSON.stringify(s,null,2),l={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:this.apiUrl,"X-TC-Action":this.action,"X-TC-Version":this.version,"X-TC-Timestamp":Math.floor(i.valueOf()/1e3).toString(),...this.headerConfigs},body:u,timeout:this.requestTimeout,retry:this.retry};return l.headers.Authorization=await this.getSignV3(i,u),l}async getSignV3(t,n){let r=this.getDate(t),a=Math.floor(t.valueOf()/1e3),{signedHeaders:i,canonicalRequest:o}=await this.getCanonicalRequest(n),{credentialScope:s,stringToSign:u}=await this.getStringToSign(r,a,o),l=await this.getSignature(r,u);return"TC3-HMAC-SHA256 Credential="+this.secret_id+"/"+s+", SignedHeaders="+i+", Signature="+l}async getSignature(t,n){let r=await Ar(t,"TC3"+this.secret_key),a=await Ar(this.service,r),i=await Ar("tc3_request",a),o=await Ar(n,i);return Qs(o)}async getStringToSign(t,n,r){let a="TC3-HMAC-SHA256",i=await cr(r),o=t+"/"+this.service+"/tc3_request";return{credentialScope:o,stringToSign:a+` `+n+` `+o+` -`+i}}async getCanonicalRequest(t){let n=await lr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 +`+i}}async getCanonicalRequest(t){let n=await cr(t),r="POST",a="/",i="",o=`content-type:application/json; charset=utf-8 host:hunyuan.tencentcloudapi.com x-tc-action:`+this.action.toLowerCase()+` `,s="content-type;host;x-tc-action";return{signedHeaders:s,canonicalRequest:r+` @@ -5878,25 +5878,25 @@ x-tc-action:`+this.action.toLowerCase()+` `+i+` `+o+` `+s+` -`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var cm=class extends cr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(o2,async()=>{let t=await Ia({responseType:"json",url:`${ft}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var wh=["glm-4-flash"],dm=class extends cr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!wh.includes(this.model)&&!this.apiKeys.length)throw new V("apiKey are required");if(!wh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Fa(s2,async()=>{let t=await Ia({responseType:"json",url:`${ft}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ra.langMap.has(n.to)||!ra.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ra(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&wh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:tu,mock2:tu,custom:Jl,google:ql,transmart:zl,deepl:ru,volc:L8,volcAlpha:Yl,bing:ra,tencent:jl,tenAlpha:Hl,baidu:R8,caiyun:F8,cai:B8,openl:em,youdao:O8,you:U8,d:eu,dpro:eu,deeplx:Ql,niu:h8,azure:b8,openai:w8,gemini:q8,claude:V8,papago:y8,aliyun:Kl,yandex:Zl,qianfan:Xl,"custom-ai":cr,deepseek:cr,"aliyun-bailian":cr,doubao:cr,hunyuan:lm,siliconcloud:cm,lingyiwanwu:cr,zhipu:dm};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys(Yr).forEach(e=>{Xi[e]={...Yr[e],class:oa[e]}});function $i(e,t){let n=or;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return or}async function dr(e,t,n){if(!e.text)return e;let r=null,a=await hn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new V("translateFailed","translate failed")}async function K8(e,t){for(let n of e)try{return await dr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function Eh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=At(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function R_(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function hn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=S8(g,m,{sourceLanguage:R_(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=I_(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,x=At(t.user),S;try{S=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:x,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await S.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let I=A instanceof V?new V(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(I,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||em.DEFAULT_CODENAME);let M=S.getCacheKeyPrefix();M&&(D=M+"-"+D);let I=null;try{I=await S0(l5({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(R){k.warn("query cache DB error, but it's ok",R)}if(I){let R={...A,text:I.translatedText};h.sentences[C]=R,n&&n(null,R,A)}else y.push(A)}else y.push(...e.sentences);let T=y.length;if(v-T>0&&k.debug(`use ${v-T} sentences from cache`),!y.length)return h;let w=await S.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let I=l;l==="openl"&&(I=l+"-"+m.codename||em.DEFAULT_CODENAME);let R=S.getCacheKeyPrefix();R&&(I=R+"-"+I),o.cache&&S0(c5({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:Cr(M.text),service:I}),3e3).catch(B=>{k.warn("set cache DB error",B)})}});for(let A of w?.sentences||[]){let D=h.sentences.findIndex(M=>!M);if(D===-1)throw new V("translateFailed","can not match the result");h.sentences[D]=A}return h}function I_(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function ye(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function sa(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Ah(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function Oo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(ce,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(ce,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function kh(e){let{t}=O(),n=Se(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===P+"-overlay"&&r(o)};return d("dialog",{id:P+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function mm(e,t){return t.some(n=>n.label===e)}function Y8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);mm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);mm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());mm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:mm(r,n)||n.push({label:r,value:r})}),n}function ua(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,isProUser:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let x=Object.keys(h.env);for(let S=0;SB_(t,m,h),[m,h]);e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),z(()=>{if(!v?.length||m.type!="model-select")return;v.some(S=>S.value===p)||i(!0)},[v,m]);let C=m.name;if(m.label&&(C=m.label),m.labelKey&&(C=t(m.labelKey)),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Ah,{maxWidth:200,disabled:f,items:m.options.map(x=>({label:`${x.label?t(x.label):x.value}`,value:x.value,selected:p===x.value,onSelected:()=>{if(x.action=="jumpOptions"){let S=x.args||[];wa(...S);return}g(x.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let x=v.map(S=>S.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Ah,{maxWidth:250,disabled:f,items:(v||[]).map(S=>{let T=S.label===S.value?S.value:S.label;return{label:t(T),value:S.value,selected:p===S.value,onSelected:()=>{if(S.value=="more-models"){s(!0);return}g(S.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(kh,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:S=>{e.onSetSettings?.(T=>{let w=T.translationServices?.[e.service||""];return w?(w.customModels=S,{...T}):T}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let S=x.includes(p);a&&!S&&g(x[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(Oo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(Oo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(Oo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let x=p,S="";x||(x="#FFFFFF",S="#FFFFFF");let{hex:T,opacity:w}=F_(x);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:S||"",value:p,disabled:f,onInput:A=>{g(A.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:T,style:{opacity:w},disabled:f,onInput:A=>{g(A.target.value)}})]})})}else return m.type==="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d("input",{type:"checkbox",id:m.name,name:m.name,role:"switch",checked:p,disabled:f,onChange:x=>{g(x.target.checked)}}),C,m.descriptionKey?d("small",{class:"my-2",dangerouslySetInnerHTML:{__html:t(m.descriptionKey,y)}}):null]})}):null}}function F_(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function B_(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=Y8(i,n.customModels||[]),[...i,a]}function Q8(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function $l(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d(Q8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function la(e){let{t}=O(),n=Se(null),{toggleModal:r}=e,a=i=>{i?.target?.id===P+"-overlay"&&r(i)};return d("dialog",{id:P+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ua(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(ce,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function No(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);z(()=>{Yt("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(la,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ua,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ca(){let e=["bingGlobalConfig","baiduGlobalConfig",i2,hi];for(let t of e)await j.storage.local.remove(t);Z()||await Yy(),await kf()}function J8(){return Z()?Promise.resolve("0 B"):Y0()}var gm='',li="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0Mm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jcxMDIzIDEzLjM4NzZaIiBmaWxsPSIjODM4MzgzIi8+CjwvZz4KPC9zdmc+Cg==";function __(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Pa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function Dh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[b,y]=N({});z(()=>{n&&v().then(()=>g(!1))},[n]);let h=w=>{w?.target?.id===P+"-overlay"&&t()};function v(){return new Pa(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=P+"-config-"+Os()+".json";new Pa(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function x(w,A,D){w.preventDefault(),y({[D]:!0}),new Pa(n).getConfig(A).then(M=>{o(()=>({...M})),nt(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function S(w,A){new Pa(n).getConfig(w).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function T(w){w.preventDefault(),o({...i,autoSync:!1}),Wi.revoke(n).then(()=>t())}return d("dialog",{id:P+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),S(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(P+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",pl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[A],disabled:b[A],onClick:D=>x(D,w.id,A),children:a("import_hint")}),d(__,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:T,disabled:m,children:a("revokeAuth")})]})]})})}function ja(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ss([]);function pt(e){let[t,n]=N(null);return z(()=>{Ze().then(r=>{n(r),k.debug("current config",r)})},[]),z(()=>{Ze().then(r=>{n(r)})},[e]),t}function dn(e){let[t,n]=N(null);return z(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function tS(){let[e,t]=N(!1),n=Pr();return z(()=>{Z(!0)&&(!n||n=="0.0.0"||ja(n,"0.9.0")||t(!0))},[n]),[e,t]}function da(){let[e,t]=N(null);return z(()=>{Mt().then(r=>{t(r)})},[]),[e,r=>{t(r),kt(r)}]}function pm(e){let[t,n]=N(null);return z(()=>{tt.get(mt,null).then(r=>{n(r?At(r):!1)}).catch(r=>{n(!1)})},[]),z(()=>{n(At(e))},[e]),t}var rt=class extends po{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(O_,{error:this.error,info:this.info})):this.props.children}};function O_({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var nS=k;function N_(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function Mh(){let[e,t,n,r,a]=Oe(),i=N_();Xe(e,t);let{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!Xo()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(v=>{nS.error("clean local config error",v)}),ca().catch(v=>{nS.error("clean cache error",v)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let x=C.target,S=new FileReader;S.onload=function(){try{let T=JSON.parse(S.result);b(T),nt(o("successImportConfig"))}catch(T){bt(`Invalid JSON ${T.message}`)}},S.readAsText(x.files[0])},v.click(),document.body.removeChild(v)};return d(ce,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[j_,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),Xo()){let v=Te();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});bo.saveAs(v,P+"-config-"+Os()+".txt")}},role:"button",children:[H_,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(!1),[x,S]=N("");z(()=>{if(Au()&&n){let B=localStorage.getItem(Du);if(localStorage.removeItem(Du),B){let L=globalThis.localStorage.getItem(Ig);k.debug("import_export","rawAuthInfoStr",L);let U={},F={},q="";if(L){globalThis.localStorage.removeItem(Ig);try{U=JSON.parse(L),F=U.state||{},q=U.access_token||""}catch(Y){k.error("parse state error",Y)}}if(q&&F&&(Wi.setAuthInfo({access_token:q}),k.debug("import_export","Google OAuth:",U),U)){let Y=U.state;k.debug("state",Y),Y?.mode==="auto"?(h(!0),I(q)):(C(!0),D(q))}}}},[n]);function T(){h(!0),T4({source:globalThis.location.href,mode:"auto"},!0).then(B=>{k.debug("import_export","Google OAuth:"+B),B!==null&&I(B)}).catch(B=>{B&&B.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(B)})}function w(){C(!0),b(!1),T4({source:globalThis.location.href,mode:"manual"},!0).then(B=>{k.debug("import_export","Google OAuth:"+B),B!==null&&D(B)}).catch(B=>{B&&B.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(B)})}function A(){S(""),T()}function D(B){S(B),C(!1),b(!0)}function M(B){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+B),bt(o("authFail"))}function I(B){h(!0),k.debug("sync latest with drive",B,e),S(B),Hd(B,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?nt(o("successSyncConfig")):nt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function R(B){t({...e,autoSync:B.checked}),B.checked&&T()}return d(ce,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:B=>{B.preventDefault(),T()},"aria-busy":y,href:"#",role:"button",children:[y?d(ce,{}):rS,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:B=>{B.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(Dh,{onClose:()=>b(!1),authExpire:A,accessToken:x}):null]})}function p({config:f}){let b=iS(),[y,h]=N(!1),[v,C]=N(""),[x,S]=N(""),{t:T}=O();if(!b||!b.token)return null;let w=At(b);async function A(){confirm(T("proRightOpenPro"))?window.open(z2):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!w){A();return}try{if(y)return;h(!0),S("");let L=await fm(b?.token,e,a),U="";switch(L){case"upload":{U=T("successSyncConfigToAccount");break}case"override":{U=T("successSyncConfigInAccount");break}default:U=T("syncConfigNoUpdate")}C(U)}catch(L){C(""),S(L.message)}finally{h(!1)}}let M=le(L=>{if(!w){A();return}l({...u,proAutoSync:L})},[]),I=le(L=>{if(!w){A();return}t(U=>({...U,proSyncAPIKey:L}))},[]),R=u?.proAutoSync!=!1,B=e?.proSyncAPIKey!=!1;return w||(R=!1,B=!1),d(ce,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),I(!B)},checked:B}),T("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[rS," ",T("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!x&&!v&&u?.accountLastSyncedAt&&w),children:T("lastSyncedAt",{date:zv(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:je()||w,children:d("span",{dangerouslySetInnerHTML:{__html:T("proRightDescription",{1:Q+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!x,children:x})]})}}var U_=_n(fm,1e3);async function fm(e,t,n){try{if(t===null)return"noupdate";let r=await Mt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Oi(t.proSyncAPIKey,t);return await Lh(e,c),await kt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await oS(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),uv(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Oi(t.proSyncAPIKey,t);return await Lh(e,u),await kt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||lv(n)&&U_(n.token,e,t)},[e,n])}function iS(){let[e,t]=N(null);return z(()=>{tt.get(mt,null).then(n=>{t(n)})},[t]),e}function oS(e){return(location.href?.indexOf("popup.html")>0?Br:ee)({responseType:"json",url:ft+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Lh(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Br:ee)({responseType:"json",url:ft+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var rS=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),j_=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),H_=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var q_=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:d("div",{style:i,children:t})})},sS=q_;var Ph="Arial",ec=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Ph.toLowerCase()?!0:uS(Ph,t).join("")!==uS(e,t).join("")}catch{return!1}};function uS(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Ph,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Rh(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function lS(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",Ih(t),"AES-GCM",!0,["encrypt","decrypt"]),a=Ih(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:Ih(n)},r,a);return z_(i)}catch{return Promise.reject("Encryption failed")}}function z_(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=B.params||{};if(I.os&&(L.os_name=I.os.name||"unknown",L.os_version=I.os.version||"unknown",L.os_version_name=I.os.versionName||"unknown"),I.browser&&(L.browser_name=I.browser.name||"unknown",L.browser_version=I.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),I.platform&&(L.platform_type=I.platform.type||"unknown"),I.engine&&(L.engine_name=I.engine.name||"unknown",L.engine_version=I.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let F=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),F&&(F.provider&&(L.translation_service_provider=F.provider),n.translationService==="openai"&&F.provider==="custom"&&(F.apiUrl?F.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),F.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=hd(v);let F=yd(v);L.install_week=`${F.year}${F.week}`}if(n.user){let F=yy(n.user);F&&Object.keys(F).forEach(q=>{L[q]=F[q]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),S?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let U="html";if(n.rule.pageType&&(U=n.rule.pageType),L.page_type=U,s?L.main_frame=0:L.main_frame=1,!c){let F=n.url;try{let q=new URL(F);L.site_host=q.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...B,params:L}});if(i)return;M.forEach(async B=>{let L=await ee({responseType:"text",url:B,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:R})})}),n.config.enableSelfServiceReport&&V_(p,R),n.config.enablePerformanceReport&&K_(n,R)}catch(r){k.debug("report error",r)}}function V_(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};cS(r);let a=Date.now()+(Math.random()*100).toFixed(0);ee({url:zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var W_=Date.now(),G_=["translate_page","translate_video_subtitle"];function K_(e,t){try{t.forEach(async n=>{if(!G_.includes(n.name)||e.config.performanceBlockUrls?.some(l=>gt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};cS(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-W_},s=await lS(JSON.stringify(o),$2,eb);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);ee({url:zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function cS(e){return e?.install_day&&(e.install_day=bd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function eo({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=je(),[m,g]=N(!1),[p,f]=N(""),[b,y]=N(""),[h,v,C,x,S]=we(me),T=pm(i),w=R=>{v(B=>{let L={...B,[n]:R};return n==="translationService"&&(Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${B.translationService}_${R}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=ne(()=>{if(!t)return[];t.user=i??t.user;let R=Es(t,n,l);return o?.length&&(R=R.filter(B=>o.find(L=>L==B.id))),R},[t,i,n,l,o]),D=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:R}=e,B=t[n],L=R?.[B],U=Wl(L,t.localConfig.aiAssistants||[]);if(U&&L){let F=iu(U);return{...L,...F,aiAssistant:U}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let R=t[n];return As(t,n,l,R)||null}return null},[e,t,i,l]),I=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(I=!1),d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:r||u("service"),description:a||u("select translation service")}),d(Y_,{selectService:w,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!T,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d(Q_,{verifiedErrorMessage:p}),d(J_,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),I&&d("article",{children:[d(Bh,{config:e,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),d(_h,{curServiceItem:M,t:u}),d(Oh,{curServiceItem:M,t:u}),d(Fh,{currentTranslationServiceItem:M,t:u}),Nh({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!T,t:u}),Uh({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,t:u})]})]})}function Fh({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function Y_({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:j0(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function Q_({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function J_({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await ut(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await dr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function Bh({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Rh,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function _h({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function Oh({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function Nh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(ce,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l}=mS(e,t,n,o);return d("div",{class:"mt-2",children:[d(ua,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:o,value:u,disabled:l,onSetSettings:r,onChange:c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return gS(e,p,o.name,c),{...m,translationServices:{...g,[n.id]:{...p,[o.name]:c}}}})},onFinish:()=>{nt(i("saved"))}},o.name+n.id),d(Z_,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function Uh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,forceExpand:i}){if(!t||!e||!n?.optionalProps?.length||!r)return null;let o=n?.id.startsWith("custom-ai"),s=d(ce,{children:[d("div",{children:n.optionalProps.map((u,l)=>{let{value:c,disabled:m}=mS(e,t,n,u);return t?.aiAssistant&&!t?.aiAssistant?.enableRichTranslate&&u.name=="enableRichTranslate"?null:d("div",{class:"mt-2",children:d(ua,{config:e,service:n?.id,disabled:m,field:u,value:c,onSetSettings:r,onChange:g=>{r(p=>{let f=p.translationServices||{},b=f[n.id]||{};return gS(e,b,u.name,g),{...p,translationServices:{...f,[n.id]:{...b,[u.name]:g}}}})},onFinish:()=>{nt(a("saved"))}},u.name+n.id+t.assistantId+t.fallbackAssistantId)},"service-item-optional-prop-"+u.name+l)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:u=>{u.preventDefault(),window.confirm(a("confirmResetToDefaultSettings"))&&r(c=>{let m=c.translationServices||{};setTimeout(()=>window.location.reload(),50);let g=m[n.id]||{};if(o){let p=["type","name","extends","apiUrl","APIKEY"];Object.keys(g).forEach(f=>{p.includes(f)||delete g[f]})}else g={};return{...c,translationServices:{...m,[n.id]:g}}})},children:a("resetToDefaultSettings")})]});return i?s:d(ce,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),s]})})}function Z_({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=le(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ua,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{nt(a("saved"))}})}function dS(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function mS(e,t,n,r){if(!r)return{value:"",disabled:!1};let a=r.name!="assistantId"&&r.name!="apiUrl"&&!!t.aiAssistant,i=t[r.name];return r.name=="enableRichTranslate"&&(e.translationMode=="dual"?i=t.dualEnableRichTranslate??t.enableRichTranslate:e.translationMode=="translation"&&(i=t.translationEnableRichTranslate??t.enableRichTranslate)),r.descriptionKey=="description.enableRichTranslate"&&e.translationMode=="dual"&&t.dualEnableRichTranslate!=null&&(r.descriptionKey="description.aiDualEnableRichTranslate"),r.descriptionKey=="description.aiDualEnableRichTranslate"&&e.translationMode=="translation"&&(r.descriptionKey="description.enableRichTranslate"),r.name==="apiUrl"&&n?.id==="openai"&&t?.APIKEY?.startsWith("immersiveopenai_")&&(a=!0,i=`https://openai-api.${et}/v1/chat/completions`),r.name=="placeholderDelimiters"&&(r.default=t.placeholderDelimiters||r.default),{value:i,disabled:a}}function gS(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function pS(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function fS(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function hS(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function bS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function yS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function vS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function CS(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var xS=jd();function hm(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=dn(o);Xe(t,n);let[u,l]=tS(),[c,m]=N(null);return z(()=>()=>{Yt.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d(X_,{}),d(lO,{config:o,user:c,setUser:m}),d(aO,{config:o}),d(eo,{config:o,ctx:s,user:c,serviceType:"translationService"}),d($_,{config:o}),d(yO,{config:o}),d(iO,{config:o}),d(oO,{config:o}),d(sO,{config:o}),d(uO,{config:o}),d(eO,{config:o,ctx:s}),d(rO,{setSettings:n,config:o}),d(sS,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${P}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function X_(){let[e,t,n,r,a]=we(me),i=pt(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Nl({...i,isShowContextMenu:!0}),a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(c=>{k.error("clean local config error",c)}),ca().catch(c=>{k.error("clean cache error",c)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ca().then(()=>{nt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(bS,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(yS,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function $_({config:e}){let[t,n,r,a,i]=we(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(ye,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),Z(!0)||setTimeout(()=>{Nl()},200)},children:Vi(sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function eO({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>pO(l),[l]),f=le(_n((v,C)=>{a&&i(x=>{let S=x.translationThemePatterns||{};return{...x,translationTheme:C,translationThemePatterns:{...S,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return z(()=>{m&&(Gs(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(ce,{children:[d(nO,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(hO,{config:e}),d(tO,{translationThemes:Ug,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(ce,{children:d("font",{class:Qs(l,!1,[],!1).join(" "),children:d("font",{class:Js(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let x=m||{},S=`theme-${l}-${v.name}`,T=DC(S)||v.default||void 0,w=x[v.name]||T;return d(ua,{config:e,field:v,value:w,onSetSettings:i,onChange:A=>{g(D=>(Gs(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function tO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:Qs(a,!1,[],!1).join(" "),children:d("font",{class:Js(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function nO({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(ye,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:Ug.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function rO({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Jt(i,v)),C=qn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Jt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(la,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ua,{urls:fO(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function aO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();if(!e)return null;let s=l=>{Ys({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function iO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=TS(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d($l,{title:t("always languages"),description:t("always translate the following languages"),languages:xS,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function oO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=TS(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d($l,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:xS,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function sO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=qn(l,h),v=Jt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Mt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&kt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function uO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Jt(l,b),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Jt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function TS(e){return{handleTranslationLanguagePatternSelected:le((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Jt(r,s.matches),excludeMatches:Jt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Jt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var jh=0,qh;async function wS(e){if(jh>60*10)return null;jh++,tt.refresh(),await ut(300);let t=await tt.get(mt,null);k.debug("loopCheckUser",jh,t),t?(clearTimeout(qh),e(t)):qh=setTimeout(wS.bind(null,e),1500)}function SS(e){let{user:t,lang:n}=e,r=je(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=gO(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`
${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n,2:Q+"accounts/upgrade?type=month&lng="+n}):by(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Q+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Q+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function lO({config:e,user:t,setUser:n}){let{t:r}=O(),a=je(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=we(me),m=e.interfaceLanguage;z(()=>(tt.get(mt,null).then(b=>{b&&(n(b),cO(b.token).then(y=>{let h=y.data;h.token=b.token,tt.set(mt,h),n(h),Fo()}).catch(y=>{Ml(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(qh)}),[]);let g=le(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&dO(t.token).finally(async()=>{await tt.remove(mt),await ut(200),await tt.refresh(),n(null),Fo()})},[t]),p=le(async b=>{TC()&&(b&&b.preventDefault&&b.preventDefault(),mO(is),await tt.set(Nu,!0),wS(y=>{fm(y.token,o,s),n(y),zh?.close(),window.location.reload()}))},[n]),f=t?.avatar||Z8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(SS,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${kn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:li})]}),d("div",{class:"",children:d("a",{href:`${vi}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:li})]}),d(SS,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:vi,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:I2,onClick:p,children:r(a?"loginForSafari":"login")})]})}function cO(e){return ee({responseType:"json",url:ft+"v1/user",method:"get",headers:{token:e}})}function dO(e){return ee({responseType:"json",url:ft+"v1/user/logout",method:"delete",headers:{token:e}})}var zh=null;function mO(e){let r=screen.width/2-230,a=screen.height/2-640/2;return zh=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),zh}function gO(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function pO(e){let t=[];return _u[e]&&(t=t.concat(_u[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function fO(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var Hh="";function hO({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(bO,{config:e,isOpen:n})]})}function bO({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);z(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>ec(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=we(me),g=p=>{p!==Hh&&!ec(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Gs(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(Hh))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?Hh:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function yO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function an(e){return Ae.ASSETS_BASE_URL+e}function Vh(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function ES(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}var vO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),b=Se(null),y=Se(null),h=()=>{u||!l&&(qe().any||vr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||vr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},x=ne(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),S=ne(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),T=w=>Ld()?d("div",{style:x,role:"tooltip",children:w}):d("div",{style:x,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:S,children:T(e)})]})},Pt=vO;var bm=!1;function Wh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=dn(o);Xe(t,n);let{t:u,lang:l}=O(),c=s&&ws(s,"translationService",l)||[],m=Io(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=As(s,"translationService",l,f);return d(xO,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!bm&&m==="#services"&&(bm=!0),z(()=>()=>bm=!1,[]),z(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${kl(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(Hu,"_blank"),children:d(ES,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(Hu,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(CO,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function CO({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=we(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!Ya.find(I=>I==e.id),[e]),m=le(I=>{i(R=>{let B=R.translationServices?.[e.id]||{};return{...R,translationServices:{...R.translationServices,[e.id]:{...B,visible:I.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=je(),h=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),x=I=>{I.stopPropagation(),I.preventDefault(),t.translationService!==e.id&&(!M()||!T||i(R=>{Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${R.translationService}_${e.id}`}}],t);let B={...R,translationService:e.id};return B.translationServiceChangedbyUserAt=new Date().toISOString(),B}))},S=t.translationService===e.id,T=S||If(l,r),w=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:P+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:P+"-link"}}),D=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":S?"true":"false","data-configed":T,onClick:I=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:an(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(Pt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:T,onChange:I=>{m(I)},onClick:I=>I.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:x,children:n("setDefault")})]});function M(){let I=!0;return e.ok?I=!0:c||(I=!1),T&&(I=!0),I}}function SO(e,t){let[n,r]=N(!1),[a]=we(me),[i,o]=N("");return[le(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await dr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function xO({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=pt(a),{t:c}=O(),m=pm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,x=t?.id||"",S=C?.[x],T=Wl(S,n.localConfig.aiAssistants||[]);if(T&&S){let w=iu(T);return{...S,...w,aiAssistant:T}}return S?{...S}:{}}return null},[l,n,t,e]),[p,f,b]=SO(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(ce,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!bm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(Bh,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(_h,{curServiceItem:t,t:c}),d(Oh,{curServiceItem:t,t:c}),d(Fh,{currentTranslationServiceItem:t,t:c}),Nh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),Uh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(dS,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ma(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var TO=$t+"assets/uploads/default-oade4Y.png";function kS({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=le(()=>m(TO),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=om(),y=Oe(),[h,v]=y;Xe(h,v);let C=pt(h);z(()=>{rh(e).then(S=>{a(S),m(S.avatar),o({name:S.i18n[t]?.name||S.name,description:S.i18n[t]?.description||S.description,details:S.i18n[t]?.details||S.details}),u(lt.sanitize(S.i18n[t]?.details||S.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let x=p?.some(S=>S.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:S=>{if(S.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(Pt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(r),children:d(Gh,{assistantID:e,enable:si(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),x&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(Kh,{aiAssistant:r,isInstall:x}),C&&d(ce,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(ce,{children:wO.map((S,T)=>d("div",{className:"mt-2",children:d(ua,{service:"ai",config:C,field:S,value:r[S.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},T)},"custom-assistants-prop-"+T))})]})]})}function Gh({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=Se(null);return z(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(CS,{}):d(vS,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${P}-loading-spinner`})]})]})})}function Kh({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=we(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Td(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=AS(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(x=>x.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(S=>S===g),x=h.find(S=>S.endsWith(g));if(C&&x){if(!x.startsWith("[-]"))return;v=v.filter(S=>S!==x)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=AS(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(No,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function AS(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var wO=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function DS(e){let t=Oe(),[n,r]=t;Xe(n,r);let a=pt(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=AO({id:e.assistantID,userConfig:n,setSettings:r}),l=le(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(ce,{children:EO.map((c,m)=>d("div",{class:"mt-2",children:d(ua,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{nt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(Kh,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var EO=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function AO({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=le(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=le(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var ym=!1,kO=$t+"assets/uploads/default-oade4Y.png";function Yh(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=LO(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let x=v.priority||1e3,S=C.priority||1e3;return x-S})),[o,e]);z(()=>{(async()=>{try{r(!0);let v=await nh(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Xe(c,m);let g=pt(c),p=dn(g),f=p?.config.interfaceLanguage||"zh-CN",b=Io(),{t:y}=O();z(()=>{th(void 0,void 0,!0)},[]),!ym&&b==="#ai"&&(ym=!0),z(()=>()=>ym=!1,[]);let h=ne(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(DS,{assistantID:v}):d(kS,{assistantID:v,lang:f,hasAssistantsRoute:ym})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(rt,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ma,{image:an("images/assistant_intro.png"),nightImage:an("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${P}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(DO,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${P}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function DO({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=le(()=>i(kO),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=om();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(Pt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(e),children:d(Gh,{assistantID:e.id,enable:si(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function LO(){let e=Se(!1),{t}=O(),[n,r]=Oe();Xe(n,r);let a=n?.customAiAssistants||[];return z(()=>{!n||e.current||(async()=>{try{let s=(await Gl()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),Bo("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+kl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var nr={};Xc.forEach(e=>{e.labelKey&&(nr[e.key]=e.labelKey)});function Qh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=N(null),{t:u}=O();if(z(()=>{Ze().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(MO,{config:l}),d(PO,{config:l}),d(RO,{config:l}),d(eo,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(IO,{config:l}),d(FO,{config:l}),d(_O,{config:l}),d(BO,{config:l})]})})}function MO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();return e?d(ce,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${$t}videos/input-translation-demo-202307044.mp4`:`${$t}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function PO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),s=l=>{n(c=>({...c,inputTargetLanguage:l}))};if(!e)return null;let u=$i(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?o("inputTargetLanguageDescriptionForNoneKey"):o("inputTargetLanguageDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Vi(u,12,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e.inputTargetLanguage,children:Ot(l,e.interfaceLanguage)},"language"+c))})]})}function RO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function IO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(ye,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:Xc.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function FO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:Xc.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Q+"docs/input/"})}})]}):null}function BO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),[s,u]=N(!1),l=h=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(h,v,C,x)=>{l(C),n(S=>{let T=S.inputTranslationUrlPattern,w=[],A=[];T&&T.matches&&T.excludeMatches&&(w=T.matches,A=T.excludeMatches);let D=[...w],M=[...A];return x==="edit"&&(C==="matches"?D[v]=h:M[v]=h),C==="matches"?(D=qn(h,D),M=Jt(h,A)):(D=Jt(h,w),M=qn(h,M)),{...S,inputTranslationUrlPattern:{...S.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let x=C.inputTranslationUrlPattern,S=[];v==="matches"?x&&x.matches&&(S=x.matches):x&&x.excludeMatches&&(S=x.excludeMatches);let T=[...S];return h.forEach(w=>{T=Jt(w,T)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:T}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(la,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function _O({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(ye,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function Jh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return z(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Q+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(qO,{}),d(HO,{}),d(OO,{}),d(NO,{}),d(UO,{}),d(jO,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function OO(){let[e,t,n,r,a]=we(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),nt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ +`+n}}getDate(t){let n=t.getUTCFullYear(),r=("0"+(t.getUTCMonth()+1)).slice(-2),a=("0"+t.getUTCDate()).slice(-2);return`${n}-${r}-${a}`}};var cm=class extends dr{service="siliconcloud";userToken;deviceId="";constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"Qwen/Qwen1.5-7B-Chat"}async init(){if(this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Ia(i2,async()=>{let t=await Ra({responseType:"json",url:`${ft}silicon/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}};var Sh=["glm-4-flash"],dm=class extends dr{service="zhipu";userToken;deviceId="";enableFallback=!1;constructor(t,n,r,a){super(t,n,r,a),this.userToken=r.userToken,this.model=t.model||"glm-4",t.enableFallback!==void 0&&(this.enableFallback=!!t.enableFallback)}parseResponse(t){return"error"in t?t.error.message:t.choices[0]?.message.content.trim()||""}async rawRequest(t){try{return await super.rawRequest(t)}catch(n){if(n?.message){let r=JSON.parse(n.message);if(this.isContentFilterError(r))return r}throw n}}async init(){if(!Sh.includes(this.model)&&!this.apiKeys.length)throw new W("apiKey are required");if(!Sh.includes(this.model)||this.apiKeys.length)return;try{this.deviceId=await ea()}catch{this.deviceId="fake-device-id"}let{accessToken:t}=await this.getAPIKey();this.apiKeys=[t]}async getAPIKey(){return await Ia(o2,async()=>{let t=await Ra({responseType:"json",url:`${ft}big-model/get-token?deviceId=${this.deviceId}`,headers:{token:this.userToken,"X-trigger":this.getXTrigger()},body:null,method:"GET",timeout:2e4,retry:this.retry}),n=Date.now()+t.expireTime*1e3,r=new Date(n).toISOString();return{accessToken:t.apiToken,accessTokenExpiresAt:r}})}async interceptResponse(t,n){let r=await this.checkIgnoreAndRetryByBing(t,n);return r==t?{handled:!1}:{handled:!0,result:r}}async checkIgnoreAndRetryByBing(t,n){try{return!this.enableFallback||!ra.langMap.has(n.to)||!ra.langMap.has(n.from)?t:t&&this.ignoreResReges&&this.ignoreResReges.length&&this.ignoreResReges.some(a=>new RegExp(a).test(t))?(await new ra(this.serviceConfig,this.generalConfig,this.translationOptions,this.isRichTranslate||!1).translateList(n)).text.join(this.translationTextSeparator):t}catch{return t}}isContentFilterError(t){if(this.ignoreResReges.some(r=>new RegExp(r).test(t?.error?.message)))return t}static isApiKeyRequired(t,n,r){return t!=="APIKEY"?r:n==="glm-4-flash"?!1:r}static getDescriptionKey(t,n){return t.name==="APIKEY"&&Sh.includes(n.model)?"description.zhipuFreeAPIKey":t.descriptionKey}};var oa={mock:tu,mock2:tu,custom:Zl,google:ql,transmart:zl,deepl:ru,volc:D8,volcAlpha:$l,bing:ra,tencent:jl,tenAlpha:Hl,baidu:P8,caiyun:R8,cai:I8,openl:em,youdao:B8,you:N8,d:eu,dpro:eu,deeplx:Yl,niu:f8,azure:h8,openai:S8,gemini:H8,claude:z8,papago:b8,aliyun:Gl,yandex:Jl,qianfan:Xl,"custom-ai":dr,deepseek:dr,"aliyun-bailian":dr,doubao:dr,hunyuan:lm,siliconcloud:cm,lingyiwanwu:dr,zhipu:dm};globalThis.TranslationServicesClass=oa;var Xi={};Object.keys($r).forEach(e=>{Xi[e]={...$r[e],class:oa[e]}});function Qi(e,t){let n=or;if(Xi[e]&&Xi[e].class&&Xi[e].class.langMap&&Xi[e].class.langMap.size>0){let r=Xi[e].class.langMap,a=n.filter(i=>r.get(i));return a.includes(t)||a.unshift("placeholder"),a}else return or}async function mr(e,t,n){if(!e.text)return e;let r=null,a=await hn({sentences:[e]},t,(i,o,s)=>{i&&(r=i)},n);if(r)throw r;if(a.sentences.length>0)return{...e,...a.sentences[0]};throw new W("translateFailed","translate failed")}async function K8(e,t){for(let n of e)try{return await mr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n,sourceProgram:"verify"},{retry:1,requestTimeout:t.config.verifyRequestTimeout||5*1e3}),n}catch{continue}return null}async function wh(e){let{config:t,translationService:n}=e,r=t.translationGeneralConfig,a=t.translationServices,i=n,o=a[i]||{},s=At(e.user);await new Xi[i].class(o,r,{translationService:i,userToken:e.user?.token,isPro:s,sourceProgram:e.sourceProgram,glossaries:e.rule.glossaries,excludeRegexps:e.rule.excludeRegexps},e.isRichTranslate||!1).init()}function PB(e){if(!e?.length)return"auto";let t=e[0].from;return e[0].fromByClient&&e[0].fromByClient!=="auto"&&(t=e[0].fromByClient),t}async function hn(e,t,n,r){if(!e.sentences.length)return{...e};let{config:a,translationService:i,state:o}=t,s=a.translationGeneralConfig,u=a.translationServices,l=i,c=t.targetLanguage;e&&e.sentences&&e.sentences[0]&&e.sentences[0].to&&(c=e.sentences[0].to);let m=u[l]||{},g=a.rawUserConfig?.translationServices?.[l]||{};m.type==="custom-ai"&&(l=m.type),ia(a,t.localConfig,!1),m=C8(g,m,{sourceLanguage:PB(e.sentences),targetLanguage:c,model:m.model||"",url:t.url,isPro:!!t.isPro+"",sourceProgram:t.sourceProgram||"",translationService:l},t.localConfig.aiAssistants||[],t.specialAiAssistant),r&&(m={...m,...r});let p=a.beta,f=o.cache===!1&&p,b=a.debug===!0&&p;e.sentences&&e.sentences.length>0&&(e.sentences=e.sentences.map(A=>(f&&(A.refresh=!0),b&&(A.debug=!0),A.text&&(A.text=_B(A.text)),A))),l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let y=[],h={sentences:Array(e.sentences.length)},v=e.sentences.length,C=-1,T=At(t.user),x;try{x=new Xi[l].class(m,s,{translationService:l,userToken:t.user?.token,isPro:T,sourceProgram:t.sourceProgram,glossaries:t.rule.glossaries,excludeRegexps:t.rule.excludeRegexps,minTextCount:t.rule.paragraphMinTextCount},t.isRichTranslate||!1),await x.init()}catch(A){if(n){y.push(...e.sentences);let D={translationService:l,isPro:!!t.isPro,isLogin:!!t.user?.token};for(let M of y){let R=A instanceof W?new W(A.name,A.message).initNetWork(A.status).initData(A.data||D):A;n(R,null,M)}}return{sentences:[]}}if(o.cache)for(let A of e.sentences){C++;let D=l;l==="openl"&&(D=l+"-"+m.codename||em.DEFAULT_CODENAME);let M=x.getCacheKeyPrefix();M&&(D=M+"-"+D);let R=null;try{R=await x0(uv({originalText:A.text,from:A.from,to:A.to,service:D}),200)}catch(_){k.warn("query cache DB error, but it's ok",_)}if(R){let _={...A,text:R.translatedText};h.sentences[C]=_,n&&n(null,_,A)}else y.push(A)}else y.push(...e.sentences);let S=y.length;if(v-S>0&&k.debug(`use ${v-S} sentences from cache`),!y.length)return h;let w=await x.multipleTranslate({sentences:y},m,(A,D,M)=>{if(n&&n(A,D,M),!A&&D&&!l.startsWith("mock")&&o.cache){let R=l;l==="openl"&&(R=l+"-"+m.codename||em.DEFAULT_CODENAME);let _=x.getCacheKeyPrefix();_&&(R=_+"-"+R),o.cache&&x0(lv({translatedText:D.text,from:M.from,to:M.to,detectedFrom:D.from,key:xr(M.text),service:R}),3e3).catch(F=>{k.warn("set cache DB error",F)})}});for(let A of w?.sentences||[]){let D=h.sentences.findIndex(M=>!M);if(D===-1)throw new W("translateFailed","can not match the result");h.sentences[D]=A}return h}function _B(e){if(!e)return e;let t=e.length;for(;t>0&&(e[t-1]===" "||e[t-1]===" ");)t--;return e.substring(0,t)}function ye(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",dangerouslySetInnerHTML:{__html:e.description||""}})]})}function sa(e){let{items:t,maxWidth:n,className:r,style:a,disabled:i}=e,{lang:o}=O();return n=n||(o==="en"?144:160),d("select",{autoComplete:"off",class:r||"min-select",style:{maxWidth:`${n}px`,...a},value:t.find(s=>s.selected)?.value,disabled:i,onChange:s=>{let u=s.target.value,l=t.find(c=>c.value===u);l&&l.onSelected(l)},children:t.map((s,u)=>d("option",{value:s.value,selected:s.selected,children:s.label},"selectlink"+u))})}function Eh(e){let{disabled:t,items:n,maxWidth:r,isInput:a,value:i}=e;return r=r||128,a?d("input",{value:i,disabled:t,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",disabled:t,style:{maxWidth:`${r}px`},value:n.find(o=>o.selected)?.value,onChange:o=>{let s=o.target.value,u=n.find(l=>l.value===s);u&&u.onSelected(u)},children:n.map((o,s)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+s))})}function Oo(e){let{t}=O(),n={};e.width&&(n={width:`${e.width}px`});let[r,a]=N(e.value),{config:i,field:o,onFinish:s}=e,u=o.name;o.label&&(u=o.label),o.labelKey&&(u=t(o.labelKey));let l={},c={};if(i.translationServices&&e.service&&i.translationServices[e.service]&&(c=i.translationServices[e.service]),c.env){let f=Object.keys(c.env);for(let b=0;be.service&&e.service in oa?oa[e.service].isApiKeyRequired(e.field.name,e.config.translationServices[e.service]?.model,e.field.required):e.field.required,[e,oa]),p=ne(()=>e.service&&e.service in oa?oa[e.service].getDescriptionKey(e.field,e.config.translationServices[e.service]):e.field.descriptionKey,[e,oa]);return d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[u,"\uFF1A"]}),e.field.type==="textarea"?d(ce,{children:[d("textarea",{style:n,disabled:e.disabled,autoComplete:"off",required:e.field.required,placeholder:m,class:"input",rows:e.rows,value:Array.isArray(r)?r.join(","):r,type:e.type,onInput:f=>{let b=f.target.value,y=Array.isArray(r)?b.split(","):b;a(y),e.onChange(y)},onChange:()=>{s&&s()}}),e.field.descriptionKey?d("small",{class:"whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,l)}}):null]}):d(ce,{children:[d("input",{style:n,required:g,placeholder:m,value:r,type:e.type,step:e.field.name==="temperature"||e.field.name==="limit"?"0.1":"",disabled:e.field.disabled||e.disabled||!1,name:e.field.name,autoComplete:"off",onInput:f=>{a(f.target.value),e.onChange(f.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&s&&s()}}),p?d("small",{dangerouslySetInnerHTML:{__html:t(p,l)}}):null]})]})}function Ah(e){let{t}=O(),n=xe(null),{closeModal:r,visible:a}=e;if(!a)return null;let i=o=>{o?.target?.id===P+"-overlay"&&r(o)};return d("dialog",{id:P+"-overlay",onClick:i,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.closeModal}),d("div",{class:"add-text",children:t("model.customMoreModels")}),d("textarea",{placeholder:"Models",ref:n,value:e.value.join(",")}),d("blockquote",{children:[d("p",{class:"text-sm",children:t("model.addModelsDescription")}),d("p",{class:"text-sm",children:t("model.addModelsSeniorDescription")})]}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"javascript:void(0)",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.closeModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{o.preventDefault();let s=n.current.value||"";e.onSubmitModels?.(s.split(",").map(u=>u.trim()).filter(u=>!!u))},children:t("confirm")})})]})]})})}function mm(e,t){return t.some(n=>n.label===e)}function G8(e,t){let n=e.slice(0,e.length-1);return t.forEach(r=>{if(r.startsWith("+")){let a=r.slice(1);mm(a,n)||n.push({label:a,value:a})}else if(r.startsWith("-")&&r!=="-all"){let a=r.slice(1);mm(a,n)&&(n=n.filter(i=>i.value!==a))}else if(r.includes("=")){let[a,i]=r.split("=").map(o=>o.trim());mm(a,n)?n=n.map(o=>(o.label===a&&(o.label=i),o)):n.push({label:i,value:i})}else r==="-all"?n=[]:mm(r,n)||n.push({label:r,value:r})}),n}function ua(e){let{t}=O(),[n,r]=N(!0),[a,i]=N(!1),[o,s]=N(!1),{config:u,currentProvider:l,onFinish:c,field:m,onChange:g,value:p,disabled:f,isProUser:b}=e;p=p??(m.default||"");let y={},h={};if(u.translationServices&&e.service&&u.translationServices[e.service]&&(h=u.translationServices[e.service]),h.env){let T=Object.keys(h.env);for(let x=0;xIB(t,m,h),[m,h]);e.service&&(y.service=t("translationServices."+e.service)),m.descriptionLink1&&(y[1]=m.descriptionLink1),z(()=>{if(!v?.length||m.type!="model-select")return;v.some(x=>x.value===p)||i(!0)},[v,m]);let C=m.name;if(m.label&&(C=m.label),m.labelKey&&(C=t(m.labelKey)),m.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Eh,{maxWidth:200,disabled:f,items:m.options.map(T=>({label:`${T.label?t(T.label):T.value}`,value:T.value,selected:p===T.value,onSelected:()=>{if(T.action=="jumpOptions"){let x=T.args||[];wa(...x);return}g(T.value)}})),onChange:g,isInput:a,value:p})]});if(m.type==="model-select"){let T=v.map(x=>x.value);return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[C,"\uFF1A"]}),d(Eh,{maxWidth:250,disabled:f,items:(v||[]).map(x=>{let S=x.label===x.value?x.value:x.label;return{label:t(S),value:x.value,selected:p===x.value,onSelected:()=>{if(x.value=="more-models"){s(!0);return}g(x.value)}}}),onChange:g,isInput:l!=="pro"?a:!1,value:p}),d(Ah,{visible:o,value:h.customModels||[],closeModal:()=>s(!1),onSubmitModels:x=>{e.onSetSettings?.(S=>{let w=S.translationServices?.[e.service||""];return w?(w.customModels=x,{...S}):S}),s(!1)}}),l!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{let x=T.includes(p);a&&!x&&g(T[0]),i(!a)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",disabled:f,checked:a}),t("customContent")]})]})}else{if(m.type==="text")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="textarea")return d("div",{children:d(Oo,{service:e.service,field:m,rows:5,config:e.config,value:p,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="jsonarea")return d("div",{children:d(Oo,{service:e.service,field:{...m,type:"textarea"},config:e.config,value:p,rows:5,type:m.type,disabled:f,onChange:g,onFinish:c})});if(m.type==="number")return d("div",{children:d(Oo,{service:e.service,field:m,config:e.config,value:p,type:m.type,width:196,disabled:f,onChange:g})});if(m.type==="password")return d("div",{children:[d(Oo,{service:e.service,field:m,config:e.config,value:p,type:n?m.type:"text",disabled:f,onChange:g,onFinish:c}),d("label",{for:"translate",onClick:()=>{r(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate",disabled:f}),t("show password")]})]});if(m.type==="color"){let T=p,x="";T||(T="#FFFFFF",x="#FFFFFF");let{hex:S,opacity:w}=RB(T);return d("div",{children:d("label",{class:"flex items-center",for:m.name,children:[d("span",{class:"mr-2",children:m.label||m.name}),d("input",{type:"text",id:m.name,class:"border-color-text mr-2",placeholder:x||"",value:p,disabled:f,onInput:A=>{g(A.target.value)}}),d("input",{id:m.name,type:"color",name:m.name,value:S,style:{opacity:w},disabled:f,onInput:A=>{g(A.target.value)}})]})})}else return m.type==="boolean"?d("div",{class:"flex items-center my-4",children:d("label",{class:"ml-2",for:m.name,children:[d("input",{type:"checkbox",id:m.name,name:m.name,role:"switch",checked:p,disabled:f,onChange:T=>{g(T.target.checked)}}),C,m.descriptionKey?d("small",{class:"my-2",dangerouslySetInnerHTML:{__html:t(m.descriptionKey,y)}}):null]})}):null}}function RB(e){let t=1;return e.length==9&&(t=parseInt(e.substring(7,9),16)/255,e=e.slice(0,7)),{opacity:t,hex:e}}function IB(e,t,n){if(t.type!=="model-select")return t.options;let r=t.options||[],a=r[r.length-1];if(a?.value!="more-models")return t.options;let i=JSON.parse(JSON.stringify(r));return i=G8(i,n.customModels||[]),[...i,a]}function $8(e){let{t,lang:n}=O();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((r,a)=>{let i=Ot(r.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!r.checked,r.value)},value:r.value,checked:r.checked}),i]})},"language-"+a)})})]})}function Ql(e){let{selectLanguages:t,languages:n}=e,r=ne(()=>!n||!t?[]:n.concat("").map(a=>({checked:t?.includes(a),value:a})),[n,t]);return e.interfaceLanguage?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d($8,{options:r,onToggleAlwaysLangs:e.onChange})]}),d("div",{class:"langs-list",children:t.map((a,i)=>d("div",{class:"lang-card",children:[d("div",{id:`${a}`,children:Ot(a,e.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${a}`,onClick:o=>{o.preventDefault(),e.onChange(!1,t[i])}})]},"lang-"+i))})]}):null}function la(e){let{t}=O(),n=xe(null),{toggleModal:r}=e,a=i=>{i?.target?.id===P+"-overlay"&&r(i)};return d("dialog",{id:P+"-overlay",onClick:a,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:i=>{if(i.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}function Ua(e){let{t}=O(),[n,r]=N([]),[a,i]=N(!1),[o,s]=N(!1);function u(){e.onDeleteUrl(n,e.type),r([]),i(!1)}if(!e.urls.length)return null;let l=`checkAll${e.urls.length}`;return d("div",{children:[d(c,{}),d("div",{class:"url-list-item",children:e.urls.map((m,g)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[o&&e.urls.length>1&&d("input",{type:"checkbox",checked:n.includes(m),style:"margin-right:12px;",onChange:p=>{p.target.checked?r([...n,m]):r(n.filter(f=>f!==m))}}),d("div",{className:"url-name height-tight",children:m}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:p=>{e.onEditUrl(m,e.type,g)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:p=>{e.onDeleteUrl([m],e.type)},children:t("delete")})]})},"menu"+g))})]});function c(){return e.urls.length<2?null:d("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:"0 24px",marginBottom:"12px"},children:o?d(ce,{children:[d("input",{type:"checkbox",id:l,checked:a,onChange:m=>{let p=m.target.checked;r(p?e.urls:[]),i(p)}}),d("label",{htmlFor:l,children:t("pickAll")}),d("div",{style:{flex:1}}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):d("a",{style:{marginLeft:"-24px",marginRight:"12px",cursor:"pointer"},onClick:()=>s(!0),children:t("batchEdit")})})}}function No(e){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(0);z(()=>{$t("esc",()=>{r(!1)})},[]);let u=(c,m,g)=>{r(!n),i(c),s(g)},l=(c,m,g,p)=>{e.onSubmitAddUrl?.(c,m,g,p),r(!n),i(""),s(0)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e.title,description:e.description}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:c=>{c.preventDefault(),r(!n)},children:t("add")})}),n?d(la,{toggleModal:c=>{c.preventDefault(),r(!n)},onSubmitAddUrl:l,type:e.type,urlValue:a,index:o}):null]}),d(Ua,{urls:e.urls||[],type:e.type,onDeleteUrl:e.onDeleteUrl,onEditUrl:u})]})}async function ca(){let e=["bingGlobalConfig","baiduGlobalConfig",a2,hi];for(let t of e)await j.storage.local.remove(t);J()||await Gy(),await Af()}function Y8(){return J()?Promise.resolve("0 B"):$0()}var gm='',li="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMT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";function FB(e){let{t}=O(),{accessToken:n,id:r,listAllFiles:a}=e,[i,o]=N(!1);function s(u,l){u.preventDefault(),o(!0),new Pa(n).delete(l).catch(c=>{bt(t("delete"))}).then(()=>a()).finally(()=>o(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:u=>s(u,r),"aria-busy":i,children:t("delete")})}function kh(e){let{onClose:t,accessToken:n,authExpire:r}=e,{t:a}=O(),[i,o,s,u]=Oe(),[l,c]=N([]),[m,g]=N(!0),[p,f]=N(!1),[b,y]=N({});z(()=>{n&&v().then(()=>g(!1))},[n]);let h=w=>{w?.target?.id===P+"-overlay"&&t()};function v(){return new Pa(n).listAll().then(A=>{c(A)}).catch(A=>r())}function C(w){if(w.preventDefault(),l.length>=10)return bt(a("maxBackupFiles",{count:10}));f(!0);let A=P+"-config-"+Os()+".json";new Pa(n).uploadConfig(i,A).catch(D=>{bt(a("uploadFail"))}).then(()=>v()).finally(()=>f(!1))}function T(w,A,D){w.preventDefault(),y({[D]:!0}),new Pa(n).getConfig(A).then(M=>{o(()=>({...M})),nt(a("importSuccess"))}).catch(M=>{k.error(M),bt(a("importFail"))}).finally(()=>y({}))}function x(w,A){new Pa(n).getConfig(w).then(D=>{let M=document.createElement("a");M.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(D,null,2))),M.setAttribute("download",A),M.style.display="none",document.body.appendChild(M),M.click(),document.body.removeChild(M)}).catch(D=>{k.error("download google config file failed",D),bt(a("downloadFail")+": "+D.message)})}function S(w){w.preventDefault(),o({...i,autoSync:!1}),Vi.revoke(n).then(()=>t())}return d("dialog",{id:P+"-overlay",onClick:h,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:a("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:w=>{w.preventDefault(),t()}}),d("h4",{children:a("syncTitle")}),d("div",{className:"mb-4",children:l.map((w,A)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:D=>{D.preventDefault(),x(w.id,w.name)},class:"block truncate w-40 sm:w-auto",children:w.name.replace(P+"-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(w.modifiedTime).toLocaleString(),",\xA0",pl(parseInt(w.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":b[A],disabled:b[A],onClick:D=>T(D,w.id,A),children:a("import_hint")}),d(FB,{accessToken:n,id:w.id,listAllFiles:v})]})]},"file"+A))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":p,onClick:C,disabled:m,children:a("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:S,disabled:m,children:a("revokeAuth")})]})]})})}function ja(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var me=ss([]);function pt(e){let[t,n]=N(null);return z(()=>{Je().then(r=>{n(r),k.debug("current config",r)})},[]),z(()=>{Je().then(r=>{n(r)})},[e]),t}function dn(e){let[t,n]=N(null);return z(()=>{e&&wn({url:"http://localhost",config:e,state:{cache:!1}}).then(r=>n(r))},[e]),t}function ex(){let[e,t]=N(!1),n=_r();return z(()=>{J(!0)&&(!n||n=="0.0.0"||ja(n,"0.9.0")||t(!0))},[n]),[e,t]}function da(){let[e,t]=N(null);return z(()=>{Mt().then(r=>{t(r)})},[]),[e,r=>{t(r),kt(r)}]}function pm(e){let[t,n]=N(null);return z(()=>{tt.get(mt,null).then(r=>{n(r?At(r):!1)}).catch(r=>{n(!1)})},[]),z(()=>{n(At(e))},[e]),t}var rt=class extends po{constructor(t){super(t),this.state={hasError:!1}}error;info;static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){this.error=t,this.info=n}render(){return this.state.hasError?(k.error("ErrorBoundary",this.error,this.info),d(BB,{error:this.error,info:this.info})):this.props.children}};function BB({error:e,info:t}){let{t:n}=O(),r=location.protocol.includes("extension")&&location.href.includes("options.html");return d("div",{class:"error-boundary",children:[e?.message," ",JSON.stringify(t?.componentStack),d("div",{style:{marginTop:10},children:[n("error.configError"),d("a",{style:{marginLeft:6},href:r?location.href.replace(/#.+/,"#import_export"):"https://dash.immersivetranslate.com/#import_export",target:r?"":"_blank",children:n("error.goReset")})]})]})}var tx=k;function OB(){let[e,t]=N(null);return z(()=>{Je().then(n=>{t(n)})},[]),e}function Lh(){let[e,t,n,r,a]=Oe(),i=OB();Xe(e,t);let{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:[d(c,{}),d(m,{}),!Xo()&&d(g,{}),d(p,{config:i})]})});function c(){let f=h=>{h.preventDefault(),confirm(o("confirmResetConfig"))&&(a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(v=>{tx.error("clean local config error",v)}),ca().catch(v=>{tx.error("clean cache error",v)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},b=h=>{t(()=>({...h}))},y=h=>{h.preventDefault();let v=document.createElement("input");v.setAttribute("type","file"),v.setAttribute("accept","text/plain"),v.style.display="none",document.body.appendChild(v),v.oninput=C=>{let T=C.target,x=new FileReader;x.onload=function(){try{let S=JSON.parse(x.result);b(S),nt(o("successImportConfig"))}catch(S){bt(`Invalid JSON ${S.message}`)}},x.readAsText(T.files[0])},v.click(),document.body.removeChild(v)};return d(ce,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:y,href:"#",role:"button",children:[UB,o("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:h=>{if(h.preventDefault(),Xo()){let v=Se();window.location.href=v.OPTIONS_URL+"#download_config"}else{let v=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});bo.saveAs(v,P+"-config-"+Os()+".txt")}},role:"button",children:[jB,o("export")]}),d("a",{href:"#",onClick:f,class:"secondary text-sm",children:o("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:o("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function g(){let[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(!1),[T,x]=N("");z(()=>{if(Au()&&n){let F=localStorage.getItem(Du);if(localStorage.removeItem(Du),F){let L=globalThis.localStorage.getItem(_g);k.debug("import_export","rawAuthInfoStr",L);let U={},I={},q="";if(L){globalThis.localStorage.removeItem(_g);try{U=JSON.parse(L),I=U.state||{},q=U.access_token||""}catch($){k.error("parse state error",$)}}if(q&&I&&(Vi.setAuthInfo({access_token:q}),k.debug("import_export","Google OAuth:",U),U)){let $=U.state;k.debug("state",$),$?.mode==="auto"?(h(!0),R(q)):(C(!0),D(q))}}}},[n]);function S(){h(!0),T4({source:globalThis.location.href,mode:"auto"},!0).then(F=>{k.debug("import_export","Google OAuth:"+F),F!==null&&R(F)}).catch(F=>{F&&F.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(F)})}function w(){C(!0),b(!1),T4({source:globalThis.location.href,mode:"manual"},!0).then(F=>{k.debug("import_export","Google OAuth:"+F),F!==null&&D(F)}).catch(F=>{F&&F.message==="tokenValidateErrorRedirectToAuthUrl"?k.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):M(F)})}function A(){x(""),S()}function D(F){x(F),C(!1),b(!0)}function M(F){h(!1),C(!1),b(!1),t({...e,autoSync:!1}),k.error("import_export","Google OAuth error:"+F),bt(o("authFail"))}function R(F){h(!0),k.debug("sync latest with drive",F,e),x(F),Hd(F,e,L=>{L.interfaceLanguage&&s(L.interfaceLanguage),a(L)},L=>l({...u,lastSyncedAt:L}),L=>t({...e,updatedAt:L}),L=>{L?nt(o("successSyncConfig")):nt(o("successSyncButNoChange"))},L=>bt(o("syncFail")+L)).finally(()=>{h(!1)})}function _(F){t({...e,autoSync:F.checked}),F.checked&&S()}return d(ce,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:o("syncToCloud")}),d("h6",{class:"!text-sm",children:o("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:F=>{F.preventDefault(),S()},"aria-busy":y,href:"#",role:"button",children:[y?d(ce,{}):nx,o("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":v,onClick:F=>{F.preventDefault(),w()},class:"secondary text-sm",children:o("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:u?.lastSyncedAt&&o("lastSyncedAt",{date:new Date(u.lastSyncedAt).toLocaleString()})}),u?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),f?d(kh,{onClose:()=>b(!1),authExpire:A,accessToken:T}):null]})}function p({config:f}){let b=ax(),[y,h]=N(!1),[v,C]=N(""),[T,x]=N(""),{t:S}=O();if(!b||!b.token)return null;let w=At(b);async function A(){confirm(S("proRightOpenPro"))?window.open(q2):k.debug("\u53D6\u6D88\u4F1A\u5458")}async function D(){if(!w){A();return}try{if(y)return;h(!0),x("");let L=await fm(b?.token,e,a),U="";switch(L){case"upload":{U=S("successSyncConfigToAccount");break}case"override":{U=S("successSyncConfigInAccount");break}default:U=S("syncConfigNoUpdate")}C(U)}catch(L){C(""),x(L.message)}finally{h(!1)}}let M=le(L=>{if(!w){A();return}l({...u,proAutoSync:L})},[]),R=le(L=>{if(!w){A();return}t(U=>({...U,proSyncAPIKey:L}))},[]),_=u?.proAutoSync!=!1,F=e?.proSyncAPIKey!=!1;return w||(_=!1,F=!1),d(ce,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:S("syncToAccount")}),d("h6",{class:"!text-sm",children:S("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),M(!_)},checked:_}),S("enableAutoSyncUserSettings")]})}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onClick:L=>{L.preventDefault(),R(!F)},checked:F}),S("enableAutoSyncAPIKey")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:L=>{L.preventDefault(),D()},"aria-busy":y,href:"#",role:"button",children:[nx," ",S("syncToAccountButton")]}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!T&&v),children:v}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:!(!T&&!v&&u?.accountLastSyncedAt&&w),children:S("lastSyncedAt",{date:q5(u.accountLastSyncedAt)})}),d("p",{class:"text-xs text-gray-500 mb-2",hidden:je()||w,children:d("span",{dangerouslySetInnerHTML:{__html:S("proRightDescription",{1:Y+"pricing/?utm_source=extension&utm_medium=settings&utm_campaign=option_sync_config"})}})}),d("p",{class:"text-xs text-red-500 mb-2",hidden:!T,children:T})]})}}var NB=Bn(fm,1e3);async function fm(e,t,n){try{if(t===null)return"noupdate";let r=await Mt();if(t.updatedAt){let u=new Date().getTime(),l=new Date(t.updatedAt).getTime();if(u-l<2e3){let c=Oi(t.proSyncAPIKey,t);return await Dh(e,c),await kt(r),"upload"}}let{remoteSetting:a,remoteTimestamp:i}=await ix(e);r.accountLastSyncedAt=Date.now(),k.debug("settings",t),k.debug("remoteSettings",a),k.debug("local settings.updatedAt",t.updatedAt),k.debug("remote settings.updatedAt",a.updatedAt),k.debug("last synced at",r.accountLastSyncedAt),s5(t,i);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),k.debug("isUpload",o),o){let u=Oi(t.proSyncAPIKey,t);return await Dh(e,u),await kt(r),"upload"}let s=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(s=!0),!s&&t.updatedAt{!n||!n.token||r&&r.proAutoSync===!1||u5(n)&&NB(n.token,e,t)},[e,n])}function ax(){let[e,t]=N(null);return z(()=>{tt.get(mt,null).then(n=>{t(n)})},[t]),e}function ix(e){return(location.href?.indexOf("popup.html")>0?Br:ee)({responseType:"json",url:ft+"v1/user/settings",method:"get",headers:{token:e}}).then(n=>({remoteSetting:n.data,remoteTimestamp:n.timestamp*1e3}))}function Dh(e,t){return delete t.localUpdatedAt,(location.href?.indexOf("popup.html")>0?Br:ee)({responseType:"json",url:ft+"v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(r=>r.data)}var nx=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),UB=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),jB=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});var HB=e=>{let{children:t,isOpen:n,closeModal:r}=e,a={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.5)",display:n?"block":"none"},i={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"white",padding:"30px",borderRadius:"5px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.2)",...e.contentStyles};return d("div",{style:a,onClick:s=>{s?.target?.id===`${P}-modal-overlay`&&r()},id:`${P}-modal-overlay`,children:d("div",{style:i,children:t})})},ox=HB;var Mh="Arial",ec=(e,t="at")=>{try{return typeof e!="string"||!document.createElement("canvas").getContext("2d")?!1:e.toLowerCase()===Mh.toLowerCase()?!0:sx(Mh,t).join("")!==sx(e,t).join("")}catch{return!1}};function sx(e,t){let n=t.length*12,r=20,a=new Date().getTime(),i=document.createElement("canvas"),o=i.getContext("2d");if(!o)return[];i.width=n,i.height=r,o.textAlign="center",o.fillStyle="black",o.textBaseline="middle",o.clearRect(0,0,n,r),o.font="12px "+e+", "+Mh,o.fillText(t,n/2,r/2);let s=o.getImageData(0,0,n,r).data;return Array.from(s).filter(l=>l!==0)}function Ph(e){let{t}=O(),{userConfig:n,isProUser:r,currentProvider:a,provider:i,onChange:o}=e,s=t(i.descriptionKey,{1:i.descriptionLink1,2:i.descriptionLink2});return!r&&i.descriptionKeyForNormal&&(s=t(i.descriptionKeyForNormal,{1:i.descriptionLink1,2:i.descriptionLink2})),(!n||er(n))&&!r&&i.name=="pro"?null:d("label",{class:"pro-radio-label",for:i.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:i.name,name:i.name,value:i.name,onClick:o,checked:i.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(i.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:s}})]})]})}async function ux(e,t,n){try{let r=await window.crypto.subtle.importKey("raw",_h(t),"AES-GCM",!0,["encrypt","decrypt"]),a=_h(e),i=await globalThis.crypto.subtle.encrypt({name:"AES-GCM",iv:_h(n)},r,a);return qB(i)}catch{return Promise.reject("Encryption failed")}}function qB(e){let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a{let L=F.params||{};if(R.os&&(L.os_name=R.os.name||"unknown",L.os_version=R.os.version||"unknown",L.os_version_name=R.os.versionName||"unknown"),R.browser&&(L.browser_name=R.browser.name||"unknown",L.browser_version=R.browser.version||"unknown",r&&(L.browser_name=r.name,L.browser_version=r.version)),R.platform&&(L.platform_type=R.platform.type||"unknown"),R.engine&&(L.engine_name=R.engine.name||"unknown",L.engine_version=R.engine.version||"unknown"),n.translationService){L.translation_service||(L.translation_service=n.translationService);let I=n.config.translationServices?.[n.translationService];!L.ai_assistant&&L.translation_service&&n.specialAiAssistant?.applyTranslationService==L.translation_service&&(L.ai_assistant=n?.specialAiAssistant.id),I&&(I.provider&&(L.translation_service_provider=I.provider),n.translationService==="openai"&&I.provider==="custom"&&(I.apiUrl?I.apiUrl.startsWith("https://api.openai.com/")?L.openai_is_official="1":L.openai_is_official="0":L.openai_is_official="1"),I.extends=="ai"&&!L.ai_assistant&&(L.ai_assistant="common"))}if(L.translation_service&&L.translation_service.startsWith("custom")&&(L.translation_service="custom-ai"),L.ai_assistant&&L.ai_assistant.startsWith("custom")&&(L.ai_assistant="custom"),L.ai_assistant_use&&L.ai_assistant_use.startsWith("custom")&&(L.ai_assistant_use="custom"),n.targetLanguage&&(L.target_language=n.targetLanguage),n.config.interfaceLanguage&&(L.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?L.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":L.enable_default_always_translated_urls="0",m&&(L.version=m),n.config.enableInputTranslation?L.enable_input_translation=n.config.enableInputTranslation?"1":"0":L.enable_input_translation="0",n.config.translationTheme&&(L.translation_theme=n.config.translationTheme),n.config.alpha&&(L.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?L.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):L.always_translate_languages="none",a.INSTALL_FROM&&(L.install_from=a.INSTALL_FROM),n.config.beta&&(L.beta=n.config.alpha.toString()),n.config.translationArea&&(L.translation_area=n.config.translationArea),C){L.install_day=hd(v);let I=yd(v);L.install_week=`${I.year}${I.week}`}if(n.user){let I=by(n.user);I&&Object.keys(I).forEach(q=>{L[q]=I[q]})}else L.user_type="anonymous";n.config.translationMode&&(L.translation_mode=n.config.translationMode),L.userscript=o.toString(),x?L.is_new_user_today="1":L.is_new_user_today="0",L.is_new_user_this_week=w?"1":"0",L.is_new_user_this_month=A?"1":"0",L.is_new_user_this_year=D?"1":"0",n.config.tempTranslateDomainMinutes?L.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():L.temp_translate_domain_minutes="0";let U="html";if(n.rule.pageType&&(U=n.rule.pageType),L.page_type=U,s?L.main_frame=0:L.main_frame=1,!c){let I=n.url;try{let q=new URL(I);L.site_host=q.hostname}catch{L.site_host="unknown"}n.sourceLanguage&&(L.source_language=n.sourceLanguage)}return b&&(L.ab_tag=b),y&&(L.ab_group=y),L.campaign=h||"none",{...F,params:L}});if(i)return;M.forEach(async F=>{let L=await ee({responseType:"text",url:F,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:_})})}),n.config.enableSelfServiceReport&&zB(p,_),n.config.enablePerformanceReport&&KB(n,_)}catch(r){k.debug("report error",r)}}function zB(e,t){try{t.forEach(n=>{let r={...n.params,event_name:n.name,device_id:e};lx(r);let a=Date.now()+(Math.random()*100).toFixed(0);ee({url:zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:a,subject:"user_behaviour",logs:[JSON.stringify(r)]})})})}catch(n){k.debug("report self service error",n)}}var WB=Date.now(),VB=["translate_page","translate_video_subtitle"];function KB(e,t){try{t.forEach(async n=>{if(!VB.includes(n.name)||e.config.performanceBlockUrls?.some(l=>gt(globalThis.location.href,l)))return;let i={...n.params,event_name:"performance"};lx(i);let o={type:n.name,u:globalThis.location.href,preload_time:Date.now()-WB},s=await ux(JSON.stringify(o),X2,Q2);i.ex_char_arg1=s;let u=Date.now()+(Math.random()*100).toFixed(0);ee({url:zu,method:"POST",responseType:"text",body:JSON.stringify({nonce:u,subject:"user_behaviour",logs:[JSON.stringify(i)]})})})}catch(n){k.debug("report self service error",n)}}function lx(e){return e?.install_day&&(e.install_day=bd(e.install_day)),e.temp_translate_domain_minutes&&(e.temp_translate_domain_minutes=parseInt(e.temp_translate_domain_minutes.toString())),e.site_host&&delete e.site_host,e}function eo({config:e,ctx:t,serviceType:n,title:r,description:a,user:i,whiteListServices:o,hiddenSetting:s}){let{t:u,lang:l}=O(),c=je(),[m,g]=N(!1),[p,f]=N(""),[b,y]=N(""),[h,v,C,T,x]=we(me),S=pm(i),w=_=>{v(F=>{let L={...F,[n]:_};return n==="translationService"&&(Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${F.translationService}_${_}`}}],t),L.translationServiceChangedbyUserAt=new Date().toISOString()),L})},A=ne(()=>{if(!t)return[];t.user=i??t.user;let _=Es(t,n,l);return o?.length&&(_=_.filter(F=>o.find(L=>L==F.id))),_},[t,i,n,l,o]),D=ne(()=>{if(e&&t){t.user=i??t.user;let{translationServices:_}=e,F=t[n],L=_?.[F],U=Vl(L,t.localConfig.aiAssistants||[]);if(U&&L){let I=iu(U);return{...L,...I,aiAssistant:U}}return L?{...L}:{}}return null},[e,t,i]),M=ne(()=>{if(e&&t){t.user=i??t.user;let _=t[n];return As(t,n,l,_)||null}return null},[e,t,i,l]),R=!!M?.providers?.length||!!M?.explicitProps?.length||!!M?.optionalProps?.length;return s&&(R=!1),d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:r||u("service"),description:a||u("select translation service")}),d(GB,{selectService:w,translationServiceItems:A,ctx:t,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,isProUser:!!S,serviceType:n,isInSafari:c,hiddenMore:!!o?.length,t:u})]}),d($B,{verifiedErrorMessage:p}),d(YB,{ctx:t,curServiceConfig:D,curServiceItem:M,isVerifyingService:m,verifiedSuccessMessage:b,setVerifiedErrorMessage:f,setVerifiedSuccessMessage:y,setIsVerifyingService:g,t:u}),R&&d("article",{children:[d(Ih,{config:e,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),d(Fh,{curServiceItem:M,t:u}),d(Bh,{curServiceItem:M,t:u}),d(Rh,{currentTranslationServiceItem:M,t:u}),Oh({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,isProUser:!!S,t:u}),Nh({config:e,curServiceConfig:D,curServiceItem:M,setSettings:v,t:u})]})]})}function Rh({currentTranslationServiceItem:e,t}){return e?.id=="gemini"?e.config.disableWarning?null:d("div",{class:"description py-2",children:t("geminiWarning")}):null}function GB({selectService:e,translationServiceItems:t,ctx:n,setVerifiedErrorMessage:r,setVerifiedSuccessMessage:a,isProUser:i,serviceType:o,isInSafari:s,t:u,hiddenMore:l}){return d("select",{class:"select",onChange:c=>{c.preventDefault(),r(""),a("");let m=c.target.value;if(m==="more"){location.href=location.href.replace(/#.+/,"#services");return}e(m)},children:[t.map((c,m)=>d("option",{value:c.id,selected:c.id===n?.config?.[o],children:j0(c,i,s,u)},"service-item="+m)),d("option",{value:"more",hidden:l,children:u("moreTranslationServices")})]})}function $B({verifiedErrorMessage:e}){return e?d("p",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:e}}):null}function YB({ctx:e,curServiceConfig:t,curServiceItem:n,isVerifyingService:r,verifiedSuccessMessage:a,setVerifiedErrorMessage:i,setVerifiedSuccessMessage:o,setIsVerifyingService:s,t:u}){return!t||!n?null:d("div",{class:"text-right text-sm",children:[a&&d("span",{class:"verified text-green-500 mr-2",children:u("verified")}),d("a",{"aria-busy":r,href:"#",class:"secondary",onClick:async l=>{l.preventDefault();try{i(""),o(""),s(!0),await ut(500);let c=n.class;c&&c.clearState&&await c.clearState();let m=e.targetLanguage,g="Hello World.",p="en";m==="en"&&(g="\u4F60\u597D\uFF0C\u6211\u7684\u4E16\u754C\uFF01",p="zh-CN"),await mr({id:1e6,text:g,from:p,to:m,url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:n.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),o("verified")}catch(c){k.debug("e.status",c.status),k.error(c);let m=c.message;try{m=c?.uiConfig?.(e)?.errMsg||c.message}catch(g){k.error("final Message parse error",g)}i(m)}finally{s(!1)}},children:u("verifyService")})]})}function Ih({config:e,curServiceItem:t,setSettings:n,isProUser:r,t:a}){return t?.providers?.length?d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),t.providers.map((i,o)=>d(Ph,{userConfig:e,isProUser:!!r,provider:i,currentProvider:t.currentProvider,onChange:s=>{s.preventDefault();let l=s.target.value;l&&n(c=>{let m=c.translationServices||{},g=m[t.id]||{};return{...c,translationServices:{...m,[t.id]:{...g,provider:l}}}})}}))]}):null}function Fh({curServiceItem:e,t}){return e?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:lt.sanitize(t(e?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null}function Bh({curServiceItem:e,t}){return!e?.docUrl||e.providers.length?null:d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:e.homepage,children:t(`translationServices.${e.id}`)}),"\xA0",d("span",{class:"description pb-1",children:t("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:e.docUrl,children:t("KeyAndConfigurationTutorial")})]})}function Oh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,isProUser:a,t:i}){return!t||!e||!n?.explicitProps?.length?null:d(ce,{children:n.explicitProps.map((o,s)=>{let{value:u,disabled:l}=dx(e,t,n,o);return d("div",{class:"mt-2",children:[d(ua,{config:e,isProUser:!!a,currentProvider:n.currentProvider,service:n?.id,field:o,value:u,disabled:l,onSetSettings:r,onChange:c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return mx(e,p,o.name,c),{...m,translationServices:{...g,[n.id]:{...p,[o.name]:c}}}})},onFinish:()=>{nt(i("saved"))}},o.name+n.id),d(ZB,{t:i,config:e,prop:o,curServiceConfig:t,curServiceItem:n,setSettings:r})]},"service-item-prop-"+o.name+s)})})}function Nh({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,forceExpand:i}){if(!t||!e||!n?.optionalProps?.length||!r)return null;let o=n?.id.startsWith("custom-ai"),s=d(ce,{children:[d("div",{children:n.optionalProps.map((u,l)=>{let{value:c,disabled:m}=dx(e,t,n,u);return t?.aiAssistant&&!t?.aiAssistant?.enableRichTranslate&&u.name=="enableRichTranslate"?null:d("div",{class:"mt-2",children:d(ua,{config:e,service:n?.id,disabled:m,field:u,value:c,onSetSettings:r,onChange:g=>{r(p=>{let f=p.translationServices||{},b=f[n.id]||{};return mx(e,b,u.name,g),{...p,translationServices:{...f,[n.id]:{...b,[u.name]:g}}}})},onFinish:()=>{nt(a("saved"))}},u.name+n.id+t.assistantId+t.fallbackAssistantId)},"service-item-optional-prop-"+u.name+l)})}),d("a",{href:"#",class:"secondary text-sm mt-2",onClick:u=>{u.preventDefault(),window.confirm(a("confirmResetToDefaultSettings"))&&r(c=>{let m=c.translationServices||{};setTimeout(()=>window.location.reload(),50);let g=m[n.id]||{};if(o){let p=["type","name","extends","apiUrl","APIKEY"];Object.keys(g).forEach(f=>{p.includes(f)||delete g[f]})}else g={};return{...c,translationServices:{...m,[n.id]:g}}})},children:a("resetToDefaultSettings")})]});return i?s:d(ce,{children:d("details",{class:"pt-4 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),s]})})}function ZB({config:e,curServiceConfig:t,curServiceItem:n,setSettings:r,t:a,prop:i}){if(i?.name!="assistantId")return null;let o=t.assistantId,s=t.fallbackAssistantId;if(o!="auto")return null;let u=ne(()=>{let c={...i,labelKey:"field_label.fallbackAssistant"};return c.options=i.options?.filter(m=>!["auto","more"].includes(m.value)),c},[i]),l=le(c=>{r(m=>{let g=m.translationServices||{},p=g[n.id]||{};return{...m,translationServices:{...g,[n.id]:{...p,fallbackAssistantId:c}}}})},[r]);return d(ua,{config:e,service:n?.id,field:u,value:s,onSetSettings:r,onChange:l,onFinish:()=>{nt(a("saved"))}})}function cx(e){let{ctx:t,setSettings:n,currentTranslationServiceItem:r,currentTranslationServiceConfig:a}=e,{t:i}=O(),o=r?.id;return!o||a?.type!=="custom-ai"?null:d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:async()=>{if(t?.translationService===o){bt(i("translationServices.deleteDefaultError"));return}globalThis.confirm(i("translationServices.deleteConfirm"))&&(await n(l=>{let c=l.translationServices||{};return delete c[o],{...l,translationServices:{...c}}}),window.location.href="#services")},children:i("translationServices.delete")})})}function dx(e,t,n,r){if(!r)return{value:"",disabled:!1};let a=r.name!="assistantId"&&r.name!="apiUrl"&&!!t.aiAssistant,i=t[r.name];return r.name=="enableRichTranslate"&&(e.translationMode=="dual"?i=t.dualEnableRichTranslate??t.enableRichTranslate:e.translationMode=="translation"&&(i=t.translationEnableRichTranslate??t.enableRichTranslate)),r.descriptionKey=="description.enableRichTranslate"&&e.translationMode=="dual"&&t.dualEnableRichTranslate!=null&&(r.descriptionKey="description.aiDualEnableRichTranslate"),r.descriptionKey=="description.aiDualEnableRichTranslate"&&e.translationMode=="translation"&&(r.descriptionKey="description.enableRichTranslate"),r.name==="apiUrl"&&n?.id==="openai"&&t?.APIKEY?.startsWith("immersiveopenai_")&&(a=!0,i=`https://openai-api.${et}/v1/chat/completions`),r.name=="placeholderDelimiters"&&(r.default=t.placeholderDelimiters||r.default),{value:i,disabled:a}}function mx(e,t,n,r){e.translationMode=="dual"&&n=="enableRichTranslate"&&(t.dualEnableRichTranslate=r),e.translationMode=="translation"&&n=="enableRichTranslate"&&(t.translationEnableRichTranslate=r)}function gx(){return d("svg",{id:"svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0, 0, 400,400",children:d("g",{id:"svgg",children:[d("path",{id:"path0",d:"M116.705 75.100 L 116.600 89.000 88.900 89.103 L 61.200 89.205 61.200 137.600 L 61.200 185.995 88.900 186.097 L 116.600 186.200 116.704 207.100 L 116.807 228.000 130.604 228.000 L 144.400 228.000 144.400 207.000 L 144.400 186.000 172.200 186.000 L 200.000 186.000 200.000 137.600 L 200.000 89.200 172.200 89.200 L 144.400 89.200 144.400 75.200 L 144.400 61.200 130.605 61.200 L 116.810 61.200 116.705 75.100 M227.600 88.772 L 227.600 102.800 250.576 102.800 C 265.463 102.800,273.640 102.941,273.800 103.200 C 273.936 103.420,274.387 103.600,274.803 103.600 C 281.873 103.600,292.696 112.756,295.278 120.921 C 295.778 122.505,296.371 123.928,296.594 124.085 C 296.854 124.268,297.044 130.468,297.124 141.385 L 297.247 158.400 311.262 158.400 L 325.277 158.400 325.083 140.900 C 324.882 122.835,324.541 118.696,323.013 115.765 C 322.678 115.124,322.404 114.303,322.402 113.940 C 322.398 112.713,319.594 106.004,317.992 103.386 C 317.116 101.956,316.400 100.635,316.400 100.451 C 316.400 100.267,315.995 99.677,315.500 99.139 C 315.005 98.601,314.107 97.412,313.504 96.496 C 311.880 94.027,305.442 87.743,302.856 86.103 C 301.615 85.316,300.456 84.430,300.280 84.136 C 300.104 83.841,299.804 83.600,299.613 83.600 C 299.422 83.600,297.879 82.780,296.184 81.778 C 292.949 79.865,288.492 78.078,284.796 77.210 C 283.588 76.927,282.420 76.558,282.200 76.390 C 280.817 75.333,275.285 75.062,251.900 74.906 L 227.600 74.745 227.600 88.772 M116.600 137.600 L 116.600 158.200 102.700 158.305 L 88.800 158.410 88.800 137.600 L 88.800 116.790 102.700 116.895 L 116.600 117.000 116.600 137.600 M172.000 137.600 L 172.000 158.400 158.200 158.400 L 144.400 158.400 144.400 137.600 L 144.400 116.800 158.200 116.800 L 172.000 116.800 172.000 137.600 M255.091 172.900 C 254.773 174.314,252.711 179.778,252.412 180.000 C 252.263 180.110,251.461 182.090,250.628 184.400 C 249.795 186.710,248.891 188.960,248.619 189.400 C 248.166 190.130,246.935 193.348,245.328 198.000 C 244.986 198.990,244.579 199.890,244.424 200.000 C 244.269 200.110,243.461 202.090,242.628 204.400 C 241.795 206.710,240.891 208.960,240.619 209.400 C 240.166 210.130,238.935 213.348,237.328 218.000 C 236.986 218.990,236.579 219.890,236.424 220.000 C 236.269 220.110,235.461 222.090,234.628 224.400 C 233.795 226.710,232.891 228.960,232.619 229.400 C 232.166 230.130,230.935 233.348,229.328 238.000 C 228.986 238.990,228.579 239.890,228.424 240.000 C 228.269 240.110,227.461 242.090,226.628 244.400 C 225.795 246.710,224.883 248.969,224.600 249.421 C 224.317 249.872,223.808 251.042,223.468 252.021 C 221.781 256.882,220.655 259.819,220.412 260.000 C 220.263 260.110,219.461 262.090,218.628 264.400 C 217.795 266.710,216.883 268.969,216.600 269.421 C 216.317 269.872,215.808 271.042,215.468 272.021 C 213.781 276.882,212.655 279.819,212.412 280.000 C 212.263 280.110,211.461 282.090,210.628 284.400 C 209.795 286.710,208.891 288.960,208.619 289.400 C 208.166 290.130,206.935 293.348,205.328 298.000 C 204.986 298.990,204.579 299.890,204.424 300.000 C 204.269 300.110,203.461 302.090,202.628 304.400 C 201.795 306.710,200.891 308.960,200.619 309.400 C 200.166 310.130,198.935 313.348,197.328 318.000 C 196.986 318.990,196.583 319.890,196.433 320.000 C 196.191 320.178,194.400 324.617,194.400 325.040 C 194.400 325.133,201.186 325.162,209.480 325.105 L 224.560 325.000 225.465 322.471 C 225.963 321.079,226.659 319.369,227.011 318.671 C 227.637 317.428,230.057 311.085,230.587 309.300 C 230.734 308.805,231.001 308.400,231.180 308.400 C 231.360 308.400,231.597 307.995,231.708 307.500 C 231.993 306.224,234.272 300.138,235.022 298.649 C 235.639 297.423,238.062 291.071,238.587 289.300 C 238.734 288.805,239.022 288.400,239.227 288.400 C 239.432 288.400,239.600 288.145,239.600 287.833 C 239.600 287.521,239.954 286.441,240.386 285.433 L 241.172 283.600 269.531 283.600 L 297.891 283.600 298.546 285.313 C 298.906 286.256,299.200 287.175,299.200 287.355 C 299.200 287.536,299.629 288.537,300.152 289.580 C 300.676 290.623,301.788 293.349,302.623 295.638 C 303.458 297.927,304.269 299.890,304.424 300.000 C 304.579 300.110,304.987 301.010,305.331 302.000 C 306.989 306.773,307.765 308.786,308.800 311.000 C 310.009 313.586,311.554 317.639,311.888 319.100 C 312.001 319.595,312.238 320.000,312.416 320.000 C 312.593 320.000,312.945 320.675,313.198 321.500 C 313.452 322.325,313.847 323.495,314.078 324.100 L 314.497 325.200 329.449 325.200 C 346.303 325.200,345.174 325.457,343.448 322.020 C 342.924 320.977,341.812 318.251,340.977 315.962 C 340.142 313.673,339.337 311.710,339.188 311.600 C 338.945 311.419,337.819 308.482,336.132 303.621 C 335.792 302.642,335.283 301.472,335.000 301.021 C 334.717 300.569,333.805 298.310,332.972 296.000 C 332.139 293.690,331.337 291.710,331.188 291.600 C 330.945 291.419,329.819 288.482,328.132 283.621 C 327.792 282.642,327.283 281.472,327.000 281.021 C 326.717 280.569,325.805 278.310,324.972 276.000 C 324.139 273.690,323.337 271.710,323.188 271.600 C 322.945 271.419,321.819 268.482,320.132 263.621 C 319.792 262.642,319.283 261.472,319.000 261.021 C 318.717 260.569,317.805 258.310,316.972 256.000 C 316.139 253.690,315.337 251.710,315.188 251.600 C 314.945 251.419,313.819 248.482,312.132 243.621 C 311.792 242.642,311.283 241.472,311.000 241.021 C 310.717 240.569,309.805 238.310,308.972 236.000 C 308.139 233.690,307.337 231.710,307.188 231.600 C 306.945 231.419,305.819 228.482,304.132 223.621 C 303.792 222.642,303.283 221.472,303.000 221.021 C 302.717 220.569,301.805 218.310,300.972 216.000 C 300.139 213.690,299.331 211.710,299.176 211.600 C 299.021 211.490,298.614 210.590,298.272 209.600 C 296.665 204.948,295.434 201.730,294.981 201.000 C 294.709 200.560,293.805 198.310,292.972 196.000 C 292.139 193.690,291.331 191.710,291.176 191.600 C 291.021 191.490,290.614 190.590,290.272 189.600 C 288.667 184.953,287.434 181.730,286.982 181.000 C 286.710 180.560,285.905 178.580,285.192 176.600 C 284.480 174.620,283.718 172.775,283.500 172.500 C 283.195 172.117,279.842 172.000,269.198 172.000 L 255.293 172.000 255.091 172.900 M270.342 214.500 C 270.978 216.680,272.184 219.788,272.480 220.011 C 272.634 220.128,273.474 222.198,274.346 224.611 C 275.218 227.025,276.219 229.562,276.570 230.249 C 277.192 231.467,279.455 237.406,279.904 239.000 C 280.028 239.440,280.272 239.895,280.445 240.011 C 280.618 240.128,281.479 242.228,282.357 244.679 C 283.235 247.131,284.144 249.465,284.377 249.868 C 285.100 251.118,286.400 254.437,286.400 255.033 C 286.400 255.513,283.802 255.600,269.400 255.600 C 260.050 255.600,252.400 255.506,252.400 255.392 C 252.400 255.278,252.850 254.077,253.400 252.723 C 253.950 251.370,254.400 250.036,254.400 249.760 C 254.400 249.483,254.637 249.019,254.928 248.729 C 255.218 248.438,255.560 247.840,255.688 247.400 C 256.167 245.754,258.416 239.852,259.022 238.649 C 259.639 237.423,262.062 231.071,262.587 229.300 C 262.734 228.805,263.001 228.400,263.180 228.400 C 263.360 228.400,263.597 227.995,263.708 227.500 C 264.027 226.071,266.188 220.398,267.344 217.955 C 267.925 216.727,268.400 215.617,268.400 215.487 C 268.400 213.445,269.823 212.722,270.342 214.500 M74.908 258.900 C 75.078 275.176,75.446 280.965,76.390 282.200 C 76.558 282.420,76.925 283.590,77.205 284.800 C 78.005 288.246,79.979 293.127,81.870 296.333 C 82.821 297.946,83.600 299.422,83.600 299.613 C 83.600 299.804,83.841 300.104,84.136 300.280 C 84.430 300.456,85.316 301.615,86.103 302.856 C 87.894 305.679,94.229 312.056,96.838 313.661 C 97.917 314.325,98.800 315.003,98.800 315.167 C 98.800 315.331,99.295 315.718,99.900 316.027 C 100.505 316.336,102.122 317.262,103.493 318.086 C 106.058 319.626,112.767 322.398,113.940 322.402 C 114.303 322.404,115.124 322.678,115.765 323.013 C 118.974 324.686,122.332 324.902,147.900 325.085 L 172.400 325.259 172.400 311.245 L 172.400 297.230 148.585 297.115 C 133.034 297.040,124.671 296.859,124.485 296.593 C 124.328 296.370,123.304 295.955,122.210 295.671 C 113.434 293.396,105.109 284.270,103.791 275.479 C 103.635 274.440,103.348 273.492,103.154 273.371 C 102.958 273.251,102.800 266.091,102.800 257.376 L 102.800 241.600 88.764 241.600 L 74.728 241.600 74.908 258.900 ",stroke:"none",fill:"#fcfcfc","fill-rule":"evenodd"}),d("path",{id:"path1",d:"M47.411 2.664 C 45.657 2.981,44.127 3.372,44.011 3.533 C 43.895 3.694,42.810 4.067,41.600 4.362 C 38.910 5.017,33.083 7.195,32.777 7.660 C 32.654 7.847,31.304 8.616,29.777 9.371 C 28.249 10.125,26.280 11.385,25.400 12.171 C 24.520 12.956,23.626 13.600,23.412 13.600 C 23.006 13.600,21.491 14.969,18.277 18.242 C 14.870 21.711,14.144 22.565,12.961 24.499 C 12.323 25.544,11.674 26.399,11.519 26.399 C 11.365 26.400,10.466 27.975,9.521 29.900 C 8.576 31.825,7.581 33.634,7.309 33.921 C 6.749 34.512,4.509 41.424,4.141 43.700 C 4.007 44.525,3.763 45.200,3.598 45.200 C 2.468 45.200,2.400 53.950,2.400 200.400 C 2.400 348.123,2.460 355.600,3.649 355.600 C 3.842 355.600,4.000 355.940,4.000 356.355 C 4.000 358.391,6.974 367.200,7.661 367.200 C 7.847 367.200,8.001 367.425,8.002 367.700 C 8.005 368.559,10.815 373.724,11.832 374.741 C 12.364 375.273,12.800 375.918,12.800 376.174 C 12.800 377.128,22.380 387.200,23.288 387.200 C 23.493 387.200,24.161 387.695,24.771 388.300 C 25.381 388.905,26.852 389.918,28.040 390.551 C 29.228 391.184,30.290 391.836,30.400 392.000 C 30.632 392.346,33.327 393.596,36.432 394.797 C 37.625 395.259,39.175 395.902,39.877 396.226 C 40.580 396.550,42.830 397.214,44.877 397.701 L 48.600 398.585 199.200 398.710 C 307.771 398.799,350.693 398.711,353.000 398.391 C 357.180 397.813,362.564 396.484,362.733 395.990 C 362.807 395.775,363.127 395.600,363.445 395.600 C 364.500 395.600,370.951 392.776,371.600 392.030 C 371.710 391.904,372.430 391.462,373.200 391.049 C 376.487 389.286,377.434 388.693,378.000 388.045 C 378.330 387.668,379.320 386.837,380.200 386.198 C 382.889 384.248,388.894 377.717,389.891 375.657 C 390.221 374.976,390.875 373.991,391.345 373.467 C 392.202 372.513,393.857 369.363,394.814 366.866 C 395.095 366.132,395.535 365.322,395.790 365.066 C 396.421 364.434,398.247 357.808,398.993 353.448 C 399.919 348.029,399.914 52.728,398.988 47.352 C 398.229 42.949,396.410 36.400,395.945 36.400 C 395.755 36.400,395.600 36.231,395.600 36.024 C 395.600 35.238,392.306 28.585,391.766 28.280 C 391.455 28.104,391.200 27.786,391.200 27.574 C 391.200 26.249,386.178 20.048,381.967 16.174 C 379.417 13.828,373.665 9.784,371.800 9.025 C 370.920 8.667,370.020 8.154,369.800 7.886 C 369.101 7.034,360.812 4.018,359.133 4.005 C 358.767 4.002,358.407 3.827,358.333 3.616 C 357.735 1.894,56.765 0.972,47.411 2.664 M144.705 74.900 L 144.810 88.800 172.405 88.800 L 200.000 88.800 200.000 137.600 L 200.000 186.400 172.400 186.400 L 144.800 186.400 144.800 207.200 L 144.800 228.000 130.600 228.000 L 116.400 228.000 116.400 207.200 L 116.400 186.400 88.600 186.400 L 60.800 186.400 60.800 137.600 L 60.800 88.800 88.600 88.800 L 116.400 88.800 116.400 74.795 L 116.400 60.790 130.500 60.895 L 144.600 61.000 144.705 74.900 M277.400 75.067 C 277.840 75.324,279.820 75.825,281.800 76.181 C 285.920 76.920,291.600 78.689,291.600 79.233 C 291.600 79.435,291.873 79.600,292.206 79.600 C 292.912 79.600,299.079 82.679,299.271 83.127 C 299.342 83.294,300.210 83.900,301.200 84.475 C 305.072 86.723,313.353 94.921,315.225 98.359 C 315.568 98.990,316.158 99.815,316.536 100.193 C 318.699 102.356,323.995 115.750,323.999 119.067 C 324.000 119.543,324.164 119.993,324.364 120.067 C 325.126 120.346,325.600 129.481,325.600 143.869 L 325.600 158.800 311.200 158.800 L 296.800 158.800 296.800 143.055 C 296.800 124.194,296.908 124.966,293.169 117.022 C 291.290 113.028,285.600 107.884,280.800 105.838 C 279.370 105.229,277.570 104.431,276.800 104.065 C 275.552 103.472,272.799 103.387,251.500 103.282 L 227.600 103.165 227.600 88.753 L 227.600 74.341 252.100 74.470 C 269.857 74.564,276.820 74.729,277.400 75.067 M89.200 137.600 L 89.200 158.000 102.800 158.000 L 116.400 158.000 116.400 137.600 L 116.400 117.200 102.800 117.200 L 89.200 117.200 89.200 137.600 M144.800 137.600 L 144.800 158.000 158.400 158.000 L 172.000 158.000 172.000 137.600 L 172.000 117.200 158.400 117.200 L 144.800 117.200 144.800 137.600 M284.742 174.500 C 285.378 175.875,286.301 178.170,286.792 179.600 C 287.284 181.030,287.917 182.569,288.200 183.021 C 288.483 183.472,288.994 184.642,289.335 185.621 C 291.027 190.467,291.767 192.393,292.787 194.597 C 293.398 195.919,294.301 198.170,294.792 199.600 C 295.284 201.030,295.917 202.569,296.200 203.021 C 296.483 203.472,296.994 204.642,297.335 205.621 C 299.027 210.467,299.767 212.393,300.787 214.597 C 301.398 215.919,302.301 218.170,302.792 219.600 C 303.284 221.030,303.917 222.569,304.200 223.021 C 304.483 223.472,304.994 224.642,305.335 225.621 C 307.027 230.467,307.767 232.393,308.787 234.597 C 309.398 235.919,310.301 238.170,310.792 239.600 C 311.284 241.030,311.917 242.569,312.200 243.021 C 312.483 243.472,312.994 244.642,313.335 245.621 C 315.027 250.467,315.767 252.393,316.787 254.597 C 317.398 255.919,318.301 258.170,318.792 259.600 C 319.284 261.030,319.917 262.569,320.200 263.021 C 320.483 263.472,320.994 264.642,321.335 265.621 C 323.027 270.467,323.767 272.393,324.787 274.597 C 325.398 275.919,326.301 278.170,326.792 279.600 C 327.284 281.030,327.917 282.569,328.200 283.021 C 328.483 283.472,328.994 284.642,329.335 285.621 C 331.027 290.467,331.767 292.393,332.787 294.597 C 333.398 295.919,334.301 298.170,334.792 299.600 C 335.284 301.030,335.917 302.569,336.200 303.021 C 336.483 303.472,336.994 304.642,337.335 305.621 C 339.027 310.467,339.767 312.393,340.787 314.597 C 341.398 315.919,342.304 318.170,342.799 319.600 C 343.295 321.030,343.975 322.675,344.310 323.255 C 345.685 325.635,345.908 325.600,329.282 325.600 L 314.138 325.600 313.016 322.300 C 312.399 320.485,311.676 318.640,311.410 318.200 C 311.144 317.760,310.165 315.423,309.234 313.006 C 308.304 310.590,307.395 308.430,307.215 308.206 C 307.034 307.983,306.609 306.990,306.269 306.000 C 304.673 301.355,303.463 298.161,303.149 297.761 C 302.959 297.520,302.082 295.377,301.200 293.000 C 300.318 290.623,299.435 288.480,299.236 288.239 C 299.038 287.998,298.568 286.855,298.192 285.700 L 297.508 283.600 269.566 283.600 L 241.625 283.600 240.633 285.700 C 240.087 286.855,238.983 289.600,238.178 291.800 C 237.373 294.000,236.583 295.890,236.422 296.000 C 236.261 296.110,236.028 296.560,235.904 297.000 C 235.462 298.571,233.200 304.513,232.425 306.142 C 231.992 307.054,230.979 309.600,230.176 311.800 C 229.372 314.000,228.583 315.890,228.422 316.000 C 228.261 316.110,228.028 316.560,227.904 317.000 C 227.349 318.970,225.160 324.566,224.753 325.057 C 224.144 325.790,194.000 325.870,194.000 325.139 C 194.000 324.885,194.433 323.760,194.963 322.639 C 195.849 320.762,196.618 318.753,198.269 314.000 C 198.613 313.010,199.021 312.110,199.176 312.000 C 199.331 311.890,200.139 309.910,200.972 307.600 C 201.805 305.290,202.717 303.031,203.000 302.579 C 203.283 302.128,203.792 300.958,204.132 299.979 C 205.819 295.118,206.945 292.181,207.188 292.000 C 207.337 291.890,208.139 289.910,208.972 287.600 C 209.805 285.290,210.709 283.040,210.981 282.600 C 211.434 281.870,212.665 278.652,214.272 274.000 C 214.614 273.010,215.021 272.110,215.176 272.000 C 215.331 271.890,216.139 269.910,216.972 267.600 C 217.805 265.290,218.717 263.031,219.000 262.579 C 219.283 262.128,219.792 260.958,220.132 259.979 C 221.819 255.118,222.945 252.181,223.188 252.000 C 223.337 251.890,224.139 249.910,224.972 247.600 C 225.805 245.290,226.717 243.031,227.000 242.579 C 227.283 242.128,227.792 240.958,228.132 239.979 C 229.819 235.118,230.945 232.181,231.188 232.000 C 231.337 231.890,232.139 229.910,232.972 227.600 C 233.805 225.290,234.709 223.040,234.981 222.600 C 235.434 221.870,236.665 218.652,238.272 214.000 C 238.614 213.010,239.021 212.110,239.176 212.000 C 239.331 211.890,240.139 209.910,240.972 207.600 C 241.805 205.290,242.717 203.031,243.000 202.579 C 243.283 202.128,243.792 200.958,244.132 199.979 C 245.819 195.118,246.945 192.181,247.188 192.000 C 247.337 191.890,248.139 189.910,248.972 187.600 C 249.805 185.290,250.709 183.040,250.981 182.600 C 251.463 181.823,253.007 177.762,254.290 173.900 L 254.922 172.000 269.253 172.000 L 283.584 172.000 284.742 174.500 M269.200 214.548 C 269.200 214.875,268.963 215.381,268.672 215.671 C 268.382 215.962,268.040 216.560,267.912 217.000 C 267.427 218.664,265.182 224.551,264.425 226.142 C 263.992 227.054,262.979 229.600,262.176 231.800 C 261.372 234.000,260.583 235.890,260.422 236.000 C 260.261 236.110,260.028 236.560,259.904 237.000 C 259.462 238.569,257.200 244.513,256.426 246.142 C 255.992 247.054,255.012 249.510,254.248 251.600 L 252.860 255.400 269.292 255.504 C 278.330 255.562,285.804 255.529,285.902 255.432 C 285.999 255.334,285.594 253.937,285.001 252.327 C 284.409 250.717,283.822 249.040,283.697 248.600 C 283.572 248.160,283.328 247.705,283.155 247.589 C 282.982 247.472,282.126 245.402,281.254 242.989 C 280.382 240.575,279.381 238.038,279.030 237.351 C 278.408 236.133,276.145 230.194,275.696 228.600 C 275.572 228.160,275.328 227.705,275.155 227.589 C 274.982 227.472,274.125 225.402,273.251 222.989 C 272.376 220.575,271.288 217.844,270.831 216.919 C 270.374 215.995,270.000 215.061,270.000 214.843 C 270.000 214.625,269.820 214.336,269.600 214.200 C 269.380 214.064,269.200 214.221,269.200 214.548 M103.200 256.745 C 103.200 271.263,103.434 275.394,104.370 277.400 C 104.576 277.840,105.239 279.370,105.845 280.800 C 107.787 285.385,113.002 291.278,116.618 292.972 C 117.488 293.380,119.100 294.145,120.200 294.673 C 124.060 296.526,124.345 296.547,149.000 296.778 L 172.600 297.000 172.600 311.200 L 172.600 325.400 151.400 325.522 C 130.794 325.641,120.383 325.260,120.067 324.374 C 119.993 324.168,119.543 324.000,119.067 323.999 C 115.750 323.995,102.356 318.699,100.193 316.536 C 99.815 316.158,98.990 315.568,98.359 315.225 C 94.897 313.340,86.661 305.008,84.496 301.200 C 83.934 300.210,83.261 299.220,83.001 299.000 C 82.404 298.494,79.600 292.826,79.600 292.124 C 79.600 291.836,79.435 291.600,79.233 291.600 C 78.689 291.600,76.920 285.920,76.181 281.800 C 75.825 279.820,75.327 277.840,75.073 277.400 C 74.749 276.839,74.568 271.314,74.467 258.900 L 74.324 241.200 88.762 241.200 L 103.200 241.200 103.200 256.745 ",stroke:"none",fill:"#ec4c8c","fill-rule":"evenodd"}),d("path",{id:"path2",d:"",stroke:"none",fill:"#f4d4100","fill-rule":"evenodd"}),d("path",{id:"path3",d:"M235.600 74.690 C 256.786 74.968,273.107 74.972,272.938 74.700 C 272.836 74.535,262.548 74.441,250.076 74.491 C 237.604 74.542,231.090 74.631,235.600 74.690 M286.800 77.414 C 286.800 77.693,289.706 78.831,290.091 78.703 C 290.282 78.639,289.620 78.284,288.619 77.913 C 287.619 77.542,286.800 77.317,286.800 77.414 M302.400 85.290 C 302.400 85.377,303.435 86.328,304.700 87.403 C 305.965 88.479,306.640 88.944,306.200 88.436 C 305.364 87.471,302.400 85.017,302.400 85.290 M308.783 90.900 C 310.441 92.666,310.800 92.984,310.800 92.683 C 310.800 92.619,309.945 91.764,308.900 90.783 L 307.000 89.000 308.783 90.900 M312.597 95.300 C 313.672 96.565,314.623 97.600,314.710 97.600 C 314.983 97.600,312.529 94.636,311.564 93.800 C 311.056 93.360,311.521 94.035,312.597 95.300 M321.200 109.884 C 321.200 110.451,322.363 113.200,322.602 113.200 C 322.707 113.200,322.496 112.435,322.132 111.500 C 321.395 109.607,321.200 109.269,321.200 109.884 M88.994 137.400 L 89.000 158.200 102.700 158.208 L 116.400 158.216 102.804 158.103 L 89.207 157.990 89.098 137.295 L 88.989 116.600 88.994 137.400 M324.641 122.800 C 324.839 123.130,325.109 131.320,325.243 141.000 L 325.485 158.600 325.443 140.920 C 325.407 126.341,325.302 123.148,324.841 122.720 C 324.377 122.288,324.343 122.301,324.641 122.800 M151.074 158.299 C 154.855 158.365,161.155 158.365,165.074 158.299 C 168.993 158.234,165.900 158.180,158.200 158.180 C 150.500 158.180,147.293 158.234,151.074 158.299 M253.700 175.700 C 253.270 176.875,253.280 176.926,253.812 176.224 C 254.321 175.552,254.621 174.400,254.288 174.400 C 254.226 174.400,253.961 174.985,253.700 175.700 M250.196 184.272 C 249.858 185.081,249.633 185.900,249.697 186.091 C 249.761 186.282,250.116 185.620,250.487 184.619 C 251.293 182.445,251.070 182.179,250.196 184.272 M74.729 186.300 C 82.500 186.361,95.100 186.361,102.729 186.300 C 110.358 186.239,104.000 186.189,88.600 186.189 C 73.200 186.189,66.958 186.239,74.729 186.300 M158.500 186.300 C 166.145 186.361,178.655 186.361,186.300 186.300 C 193.945 186.239,187.690 186.189,172.400 186.189 C 157.110 186.189,150.855 186.239,158.500 186.300 M289.200 186.284 C 289.200 186.851,290.363 189.600,290.602 189.600 C 290.707 189.600,290.496 188.835,290.132 187.900 C 289.395 186.007,289.200 185.669,289.200 186.284 M245.700 195.700 C 245.270 196.875,245.280 196.926,245.812 196.224 C 246.321 195.552,246.621 194.400,246.288 194.400 C 246.226 194.400,245.961 194.985,245.700 195.700 M242.196 204.272 C 241.858 205.081,241.633 205.900,241.697 206.091 C 241.761 206.282,242.116 205.620,242.487 204.619 C 243.293 202.445,243.070 202.179,242.196 204.272 M297.200 206.284 C 297.200 206.851,298.363 209.600,298.602 209.600 C 298.707 209.600,298.496 208.835,298.132 207.900 C 297.395 206.007,297.200 205.669,297.200 206.284 M237.700 215.700 C 237.270 216.875,237.280 216.926,237.812 216.224 C 238.321 215.552,238.621 214.400,238.288 214.400 C 238.226 214.400,237.961 214.985,237.700 215.700 M270.032 214.824 C 270.014 215.166,270.280 215.796,270.622 216.224 C 271.234 216.988,271.238 216.987,270.876 216.200 C 270.674 215.760,270.408 215.130,270.286 214.800 C 270.093 214.282,270.059 214.285,270.032 214.824 M265.267 223.180 C 265.033 223.851,264.927 224.400,265.031 224.400 C 265.301 224.400,266.056 222.322,265.857 222.124 C 265.767 222.033,265.501 222.508,265.267 223.180 M234.196 224.272 C 233.858 225.081,233.633 225.900,233.697 226.091 C 233.761 226.282,234.116 225.620,234.487 224.619 C 235.293 222.445,235.070 222.179,234.196 224.272 M273.913 224.619 C 274.284 225.620,274.639 226.282,274.703 226.091 C 274.831 225.706,273.693 222.800,273.414 222.800 C 273.317 222.800,273.542 223.619,273.913 224.619 M305.200 226.284 C 305.200 226.851,306.363 229.600,306.602 229.600 C 306.707 229.600,306.496 228.835,306.132 227.900 C 305.395 226.007,305.200 225.669,305.200 226.284 M261.756 231.843 C 261.424 232.637,261.226 233.359,261.314 233.448 C 261.403 233.536,261.759 232.887,262.105 232.004 C 262.889 230.009,262.582 229.868,261.756 231.843 M229.700 235.700 C 229.270 236.875,229.280 236.926,229.812 236.224 C 230.321 235.552,230.621 234.400,230.288 234.400 C 230.226 234.400,229.961 234.985,229.700 235.700 M278.032 234.824 C 278.014 235.166,278.280 235.796,278.622 236.224 C 279.234 236.988,279.238 236.987,278.876 236.200 C 278.674 235.760,278.408 235.130,278.286 234.800 C 278.093 234.282,278.059 234.285,278.032 234.824 M309.113 236.219 C 309.484 237.220,309.839 237.882,309.903 237.691 C 310.031 237.306,308.893 234.400,308.614 234.400 C 308.517 234.400,308.742 235.219,309.113 236.219 M74.488 257.076 C 74.440 265.698,74.535 272.836,74.700 272.939 C 74.973 273.108,74.967 261.235,74.687 247.000 C 74.626 243.920,74.537 248.454,74.488 257.076 M257.267 243.180 C 257.033 243.851,256.927 244.400,257.031 244.400 C 257.301 244.400,258.056 242.322,257.857 242.124 C 257.767 242.033,257.501 242.508,257.267 243.180 M226.196 244.272 C 225.858 245.081,225.633 245.900,225.697 246.091 C 225.761 246.282,226.116 245.620,226.487 244.619 C 227.293 242.445,227.070 242.179,226.196 244.272 M281.913 244.619 C 282.284 245.620,282.639 246.282,282.703 246.091 C 282.831 245.706,281.693 242.800,281.414 242.800 C 281.317 242.800,281.542 243.619,281.913 244.619 M313.200 246.284 C 313.200 246.851,314.363 249.600,314.602 249.600 C 314.707 249.600,314.496 248.835,314.132 247.900 C 313.395 246.007,313.200 245.669,313.200 246.284 M253.756 251.843 C 253.424 252.637,253.226 253.359,253.314 253.448 C 253.403 253.536,253.759 252.887,254.105 252.004 C 254.889 250.009,254.582 249.868,253.756 251.843 M221.700 255.700 C 221.270 256.875,221.280 256.926,221.812 256.224 C 222.321 255.552,222.621 254.400,222.288 254.400 C 222.226 254.400,221.961 254.985,221.700 255.700 M317.113 256.219 C 317.484 257.220,317.839 257.882,317.903 257.691 C 318.031 257.306,316.893 254.400,316.614 254.400 C 316.517 254.400,316.742 255.219,317.113 256.219 M218.196 264.272 C 217.858 265.081,217.633 265.900,217.697 266.091 C 217.761 266.282,218.116 265.620,218.487 264.619 C 219.293 262.445,219.070 262.179,218.196 264.272 M321.200 266.284 C 321.200 266.851,322.363 269.600,322.602 269.600 C 322.707 269.600,322.496 268.835,322.132 267.900 C 321.395 266.007,321.200 265.669,321.200 266.284 M213.700 275.700 C 213.270 276.875,213.280 276.926,213.812 276.224 C 214.321 275.552,214.621 274.400,214.288 274.400 C 214.226 274.400,213.961 274.985,213.700 275.700 M325.113 276.219 C 325.484 277.220,325.839 277.882,325.903 277.691 C 326.031 277.306,324.893 274.400,324.614 274.400 C 324.517 274.400,324.742 275.219,325.113 276.219 M105.007 279.879 C 105.607 281.314,106.000 281.962,106.000 281.516 C 106.000 281.084,104.785 278.400,104.589 278.400 C 104.479 278.400,104.667 279.066,105.007 279.879 M210.196 284.272 C 209.858 285.081,209.633 285.900,209.697 286.091 C 209.761 286.282,210.116 285.620,210.487 284.619 C 211.293 282.445,211.070 282.179,210.196 284.272 M329.200 286.284 C 329.200 286.851,330.363 289.600,330.602 289.600 C 330.707 289.600,330.496 288.835,330.132 287.900 C 329.395 286.007,329.200 285.669,329.200 286.284 M77.913 288.619 C 78.284 289.620,78.639 290.282,78.703 290.091 C 78.831 289.706,77.693 286.800,77.414 286.800 C 77.317 286.800,77.542 287.619,77.913 288.619 M237.756 291.843 C 237.424 292.637,237.226 293.359,237.314 293.448 C 237.403 293.536,237.759 292.887,238.105 292.004 C 238.889 290.009,238.582 289.868,237.756 291.843 M301.600 293.884 C 301.600 294.451,302.763 297.200,303.002 297.200 C 303.107 297.200,302.896 296.435,302.532 295.500 C 301.795 293.607,301.600 293.269,301.600 293.884 M205.700 295.700 C 205.270 296.875,205.280 296.926,205.812 296.224 C 206.321 295.552,206.621 294.400,206.288 294.400 C 206.226 294.400,205.961 294.985,205.700 295.700 M333.113 296.219 C 333.484 297.220,333.839 297.882,333.903 297.691 C 334.031 297.306,332.893 294.400,332.614 294.400 C 332.517 294.400,332.742 295.219,333.113 296.219 M233.095 303.596 C 232.748 304.478,232.549 305.200,232.653 305.200 C 232.923 305.200,234.078 302.345,233.886 302.152 C 233.797 302.064,233.441 302.713,233.095 303.596 M86.322 303.900 C 86.977 304.725,87.928 305.760,88.436 306.200 C 88.944 306.640,88.479 305.965,87.403 304.700 C 85.213 302.124,84.490 301.589,86.322 303.900 M202.196 304.272 C 201.858 305.081,201.633 305.900,201.697 306.091 C 201.761 306.282,202.116 305.620,202.487 304.619 C 203.293 302.445,203.070 302.179,202.196 304.272 M305.524 303.800 C 305.726 304.240,305.992 304.870,306.114 305.200 C 306.307 305.718,306.341 305.715,306.368 305.176 C 306.386 304.834,306.120 304.204,305.778 303.776 C 305.166 303.012,305.162 303.013,305.524 303.800 M337.200 306.284 C 337.200 306.851,338.363 309.600,338.602 309.600 C 338.707 309.600,338.496 308.835,338.132 307.900 C 337.395 306.007,337.200 305.669,337.200 306.284 M90.783 308.900 C 91.764 309.945,92.619 310.800,92.683 310.800 C 92.984 310.800,92.666 310.441,90.900 308.783 L 89.000 307.000 90.783 308.900 M229.756 311.843 C 229.424 312.637,229.226 313.359,229.314 313.448 C 229.403 313.536,229.759 312.887,230.105 312.004 C 230.889 310.009,230.582 309.868,229.756 311.843 M93.800 311.564 C 94.636 312.529,97.600 314.983,97.600 314.710 C 97.600 314.623,96.565 313.672,95.300 312.597 C 94.035 311.521,93.360 311.056,93.800 311.564 M197.700 315.700 C 197.270 316.875,197.280 316.926,197.812 316.224 C 198.321 315.552,198.621 314.400,198.288 314.400 C 198.226 314.400,197.961 314.985,197.700 315.700 M310.032 314.824 C 310.014 315.166,310.280 315.796,310.622 316.224 C 311.234 316.988,311.238 316.987,310.876 316.200 C 310.674 315.760,310.408 315.130,310.286 314.800 C 310.093 314.282,310.059 314.285,310.032 314.824 M341.113 316.219 C 341.484 317.220,341.839 317.882,341.903 317.691 C 342.031 317.306,340.893 314.400,340.614 314.400 C 340.517 314.400,340.742 315.219,341.113 316.219 M109.633 321.335 C 110.019 321.647,113.200 322.777,113.200 322.602 C 113.200 322.363,110.451 321.200,109.884 321.200 C 109.655 321.200,109.542 321.261,109.633 321.335 M225.095 323.596 L 224.464 325.200 209.432 325.200 C 201.164 325.200,194.400 325.122,194.400 325.026 C 194.400 324.930,194.591 324.345,194.825 323.726 C 195.109 322.974,195.113 322.736,194.837 323.009 C 194.609 323.233,194.373 323.863,194.311 324.409 L 194.200 325.400 209.400 325.400 L 224.600 325.400 225.344 323.877 C 225.753 323.040,226.006 322.273,225.906 322.173 C 225.806 322.073,225.441 322.713,225.095 323.596 M313.791 324.300 L 314.421 325.600 329.510 325.505 L 344.600 325.410 329.500 325.300 C 321.195 325.240,314.400 325.047,314.400 324.872 C 314.400 324.696,314.121 324.204,313.781 323.776 C 313.234 323.091,313.235 323.152,313.791 324.300 M127.143 325.303 C 127.310 325.470,137.606 325.560,150.023 325.503 L 172.600 325.400 149.720 325.200 C 137.136 325.090,126.976 325.137,127.143 325.303 ",stroke:"none",fill:"#f478c8","fill-rule":"evenodd"}),d("path",{id:"path4",d:"M144.580 75.000 C 144.580 82.700,144.634 85.793,144.699 81.874 C 144.765 77.955,144.765 71.655,144.699 67.874 C 144.634 64.093,144.580 67.300,144.580 75.000 M274.100 75.087 C 274.705 75.178,275.695 75.178,276.300 75.087 C 276.905 74.995,276.410 74.920,275.200 74.920 C 273.990 74.920,273.495 74.995,274.100 75.087 M95.900 117.099 C 99.695 117.165,105.905 117.165,109.700 117.099 C 113.495 117.034,110.390 116.980,102.800 116.980 C 95.210 116.980,92.105 117.034,95.900 117.099 M144.583 117.300 C 144.478 117.575,144.440 126.890,144.500 138.000 L 144.608 158.200 144.704 137.705 L 144.800 117.211 158.500 117.100 L 172.200 116.989 158.487 116.895 C 147.816 116.821,144.732 116.911,144.583 117.300 M324.493 121.200 C 324.493 121.970,324.575 122.285,324.676 121.900 C 324.776 121.515,324.776 120.885,324.676 120.500 C 324.575 120.115,324.493 120.430,324.493 121.200 M288.429 184.310 C 288.676 185.020,289.042 185.703,289.242 185.826 C 289.442 185.950,289.391 185.544,289.127 184.925 C 288.421 183.265,287.906 182.812,288.429 184.310 M144.586 207.200 C 144.586 218.750,144.637 223.475,144.700 217.700 C 144.762 211.925,144.762 202.475,144.700 196.700 C 144.637 190.925,144.586 195.650,144.586 207.200 M296.429 204.310 C 296.676 205.020,297.042 205.703,297.242 205.826 C 297.442 205.950,297.391 205.544,297.127 204.925 C 296.421 203.265,295.906 202.812,296.429 204.310 M268.779 214.655 C 268.558 215.236,268.464 215.797,268.569 215.903 C 268.675 216.008,268.879 215.624,269.023 215.050 C 269.170 214.465,269.470 214.120,269.704 214.265 C 269.949 214.416,270.005 214.331,269.838 214.062 C 269.416 213.379,269.223 213.487,268.779 214.655 M304.429 224.310 C 304.676 225.020,305.042 225.703,305.242 225.826 C 305.442 225.950,305.391 225.544,305.127 224.925 C 304.421 223.265,303.906 222.812,304.429 224.310 M260.779 234.655 C 260.558 235.236,260.452 235.785,260.543 235.876 C 260.633 235.967,260.899 235.492,261.133 234.820 C 261.653 233.328,261.339 233.182,260.779 234.655 M74.920 275.200 C 74.920 276.410,74.995 276.905,75.087 276.300 C 75.178 275.695,75.178 274.705,75.087 274.100 C 74.995 273.495,74.920 273.990,74.920 275.200 M172.580 311.200 C 172.580 319.010,172.634 322.205,172.699 318.300 C 172.765 314.395,172.765 308.005,172.699 304.100 C 172.634 300.195,172.580 303.390,172.580 311.200 M107.200 320.179 C 107.200 320.289,107.740 320.659,108.400 321.000 C 109.060 321.341,109.600 321.531,109.600 321.421 C 109.600 321.311,109.060 320.941,108.400 320.600 C 107.740 320.259,107.200 320.069,107.200 320.179 M120.500 324.676 C 120.885 324.776,121.515 324.776,121.900 324.676 C 122.285 324.575,121.970 324.493,121.200 324.493 C 120.430 324.493,120.115 324.575,120.500 324.676 M123.700 325.087 C 124.305 325.178,125.295 325.178,125.900 325.087 C 126.505 324.995,126.010 324.920,124.800 324.920 C 123.590 324.920,123.095 324.995,123.700 325.087 ",stroke:"none",fill:"#f47c8c","fill-rule":"evenodd"})]})})}function px(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 2H7.04546C6.50297 2 5.9827 2.2155 5.5991 2.5991C5.2155 2.9827 5 3.50297 5 4.04546V17.9545C5 18.497 5.2155 19.0173 5.5991 19.4009C5.9827 19.7845 6.50297 20 7.04546 20H15.9091C16.4515 20 16.9718 19.7845 17.3554 19.4009C17.739 19.0173 17.9545 18.497 17.9545 17.9545V4.04546C17.9545 3.50297 17.739 2.9827 17.3554 2.5991C16.9718 2.2155 16.4516 2 15.9091 2ZM7.04546 3.36364H15.9091C16.0899 3.36364 16.2633 3.43548 16.3912 3.56334C16.519 3.69121 16.5909 3.86463 16.5909 4.04546V14.2727H6.36362V4.04546C6.36362 3.86463 6.43546 3.69121 6.56332 3.56334C6.69119 3.43548 6.86461 3.36364 7.04544 3.36364H7.04546ZM15.9091 18.6364H7.04546C6.95592 18.6364 6.86726 18.6187 6.78454 18.5845C6.70182 18.5502 6.62665 18.5 6.56334 18.4367C6.50003 18.3733 6.44981 18.2982 6.41554 18.2155C6.38128 18.1327 6.36364 18.0441 6.36364 17.9545V15.6364H16.5909V17.9545C16.5909 18.1354 16.5191 18.3088 16.3912 18.4367C16.2633 18.5645 16.0899 18.6364 15.9091 18.6364H15.9091ZM9.50007 6.09103H13.591C13.7718 6.09103 13.9452 6.01919 14.0731 5.89133C14.201 5.76346 14.2728 5.59004 14.2728 5.40921C14.2728 5.22838 14.201 5.05496 14.0731 4.9271C13.9452 4.79924 13.7718 4.72741 13.591 4.72741H9.50007C9.31924 4.72741 9.14582 4.79924 9.01796 4.9271C8.89009 5.05496 8.81825 5.22838 8.81825 5.40921C8.81825 5.49875 8.83588 5.58741 8.87015 5.67013C8.90441 5.75285 8.95464 5.82802 9.01795 5.89133C9.08126 5.95464 9.15642 6.00486 9.23915 6.03913C9.32187 6.07339 9.41053 6.09103 9.50007 6.09103ZM11.0634 17.6184C10.9355 17.4905 10.8637 17.3171 10.8637 17.1362C10.8637 16.9554 10.9355 16.782 11.0634 16.6541C11.1913 16.5262 11.3647 16.4544 11.5455 16.4544C11.7264 16.4544 11.8998 16.5262 12.0276 16.6541C12.1555 16.782 12.2273 16.9554 12.2273 17.1362C12.2273 17.3171 12.1555 17.4905 12.0276 17.6184C11.8998 17.7462 11.7264 17.8181 11.5455 17.8181C11.3647 17.8181 11.1913 17.7462 11.0634 17.6184Z"})})}function fx(){return d("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"#333333",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7719 2L17.7647 5.98965V8.88235V17.3529V18.4118C17.7647 18.833 17.5974 19.237 17.2995 19.5348C17.0017 19.8327 16.5977 20 16.1765 20H5.58824C5.16701 20 4.76304 19.8327 4.46518 19.5348C4.16733 19.237 4 18.833 4 18.4118V17.3529V8.88235V3.58824C4 3.16701 4.16733 2.76304 4.46518 2.46518C4.76304 2.16733 5.16701 2 5.58824 2H13.7719ZM13.9778 4.45118V6.20988H15.7376L13.9778 4.45118ZM5.58817 18.4118V17.3529V3.58823H12.3895L12.3901 7.79758H16.1764V17.3529V18.4118H5.58817ZM14.9956 9.33215H6.76855V10.5674H14.9956V9.33215ZM6.76855 12.1116H14.9956V13.3469H6.76855V12.1116ZM11.3268 14.78H6.76855V16.0153H11.3268V14.78Z"})})}function hx(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M16.7619 17.4599L15.8203 12.0305H16.1383C16.3942 12.0305 16.6003 11.8244 16.6003 11.5685V8.15736C16.6003 7.90152 16.3942 7.69543 16.1383 7.69543H11.7678V4.46193C11.7678 4.20609 11.5617 4 11.3058 4H8.4632C8.20736 4 8.00127 4.20609 8.00127 4.46193V7.69543H3.63071C3.37487 7.69543 3.16878 7.90152 3.16878 8.15736V11.5685C3.16878 11.8244 3.37487 12.0305 3.63071 12.0305H3.94873L3.00711 17.4599C3.00178 17.4865 3 17.5132 3 17.5381C3 17.7939 3.20609 18 3.46193 18H16.3071C16.3338 18 16.3604 17.9982 16.3853 17.9929C16.6376 17.9503 16.8063 17.7104 16.7619 17.4599ZM4.41244 8.93909H9.24492V5.24365H10.5241V8.93909H15.3566V10.7868H4.41244V8.93909ZM12.7272 16.7563V13.9848C12.7272 13.9066 12.6632 13.8426 12.585 13.8426H11.7322C11.6541 13.8426 11.5901 13.9066 11.5901 13.9848V16.7563H8.17893V13.9848C8.17893 13.9066 8.11497 13.8426 8.0368 13.8426H7.18401C7.10584 13.8426 7.04188 13.9066 7.04188 13.9848V16.7563H4.39112L5.19239 12.1371H14.5749L15.3761 16.7563H12.7272Z",fill:"#EA4C89"})})}function bx(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.4741 3.00003C7.81418 2.99305 5.47348 4.36921 4.1357 6.44828C4.07639 6.54072 4.14267 6.66281 4.25256 6.66281H5.47872C5.56244 6.66281 5.64093 6.62618 5.69325 6.56165C5.81534 6.41339 5.94616 6.27037 6.08395 6.13432C6.65255 5.56746 7.3136 5.12095 8.04964 4.81049C8.81011 4.48956 9.61941 4.32561 10.4549 4.32561C11.2903 4.32561 12.0996 4.48781 12.8601 4.81049C13.5961 5.12095 14.2572 5.56746 14.8258 6.13432C15.3944 6.70118 15.8392 7.36223 16.1514 8.09653C16.474 8.85699 16.6363 9.66455 16.6363 10.5C16.6363 11.3355 16.4723 12.143 16.1514 12.9035C15.8409 13.6378 15.3944 14.2988 14.8258 14.8657C14.2572 15.4326 13.5961 15.8791 12.8601 16.1895C12.0996 16.5105 11.2903 16.6744 10.4549 16.6744C9.61941 16.6744 8.81011 16.5105 8.04964 16.1895C7.3136 15.8791 6.65255 15.4326 6.08395 14.8657C6.01013 14.7919 5.93882 14.7166 5.86948 14.64L6.07325 14.5461L6.06479 14.5277L7.78152 13.7361C7.93287 13.6663 7.93235 13.4454 7.78367 13.3665L3.72383 11.2154C3.60734 11.1528 3.46729 11.2174 3.43921 11.3466L2.4392 15.831C2.4004 15.9963 2.57033 16.1391 2.72167 16.0693L4.43841 15.2777L4.44687 15.296L4.61778 15.2172C5.9944 16.9145 8.09721 18 10.4549 18C14.5746 18 17.92 14.6843 17.9618 10.5768C18.0037 6.40293 14.6531 3.01049 10.4741 3.00003Z",fill:"#EA4C89"})})}function yx(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M14.2855 6.66665H15.7141C16.093 6.66665 16.4563 6.81716 16.7242 7.08507C16.9921 7.35298 17.1426 7.71634 17.1426 8.09523V16.1905C17.1426 16.3781 17.1057 16.5638 17.0339 16.7372C16.9621 16.9105 16.8569 17.068 16.7242 17.2006C16.5916 17.3333 16.4341 17.4385 16.2608 17.5103C16.0874 17.5821 15.9017 17.619 15.7141 17.619H4.2855C4.0979 17.619 3.91214 17.5821 3.73881 17.5103C3.56549 17.4385 3.40801 17.3333 3.27535 17.2006C3.1427 17.068 3.03747 16.9105 2.96568 16.7372C2.89388 16.5638 2.85693 16.3781 2.85693 16.1905V8.09523C2.85693 7.71634 3.00744 7.35298 3.27535 7.08507C3.54326 6.81716 3.90662 6.66665 4.2855 6.66665H5.71408V8.09523H4.2855V16.1905H15.7141V8.09523H14.2855V6.66665ZM10.8303 1.92856L10.8312 9.68427L12.4831 8.03189L13.4926 9.04189L10.126 12.409L6.75884 9.04237L7.76884 8.03189L9.40217 9.66523V1.92856H10.8307H10.8303Z",fill:"#EA4C89"})})}function vx(){return d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none",children:d("path",{d:"M6.42122 7.38095L7.04074 16.1633H13.1084L13.7274 7.38095H15.1584L14.5331 16.2638C14.5077 16.6244 14.3466 16.9619 14.0822 17.2083C13.8178 17.4548 13.4698 17.5918 13.1084 17.5919H7.04074C6.67923 17.5918 6.33118 17.4547 6.06678 17.2081C5.80238 16.9616 5.64129 16.624 5.61598 16.2633L4.98979 7.38095H6.42122ZM9.53074 7.82334V14.49H8.10217V7.82334H9.53074ZM12.1426 7.82334V14.49H10.7141V7.82334H12.1426ZM2.85693 5H17.1426V6.42857H2.85693V5ZM12.9793 2.61905V4.04762H7.26503V2.61905H12.9793Z",fill:"#999999"})})}var xx=jd();function hm(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=dn(o);Xe(t,n);let[u,l]=ex(),[c,m]=N(null);return z(()=>()=>{$t.unbind("esc")},[]),!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d(JB,{}),d(uO,{config:o,user:c,setUser:m}),d(rO,{config:o}),d(eo,{config:o,ctx:s,user:c,serviceType:"translationService"}),d(XB,{config:o}),d(bO,{config:o}),d(aO,{config:o}),d(iO,{config:o}),d(oO,{config:o}),d(sO,{config:o}),d(QB,{config:o,ctx:s}),d(nO,{setSettings:n,config:o}),d(ox,{isOpen:u,closeModal:()=>l(!0),children:["\u5F53\u524D\u6C89\u6D78\u5F0F\u63D2\u4EF6\u592A\u65E7\uFF0C\u70B9\u6B64\u5347\u7EA7\u81F3",d("a",{href:`https://download.${et}/${P}.user.js`,target:"_blank",children:"\u6700\u65B0\u7248"})]})]})})}function JB(){let[e,t,n,r,a]=we(me),i=pt(e),{t:o}=O(),s=l=>{l.preventDefault(),confirm(o("confirmResetConfig"))&&(Nl({...i,isShowContextMenu:!0}),a({...Lo(),updatedAt:new Date().toISOString()}),Ns().catch(c=>{k.error("clean local config error",c)}),ca().catch(c=>{k.error("clean cache error",c)}),nt(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},u=l=>{l.preventDefault(),l.stopPropagation(),ca().then(()=>{nt(o("cleanSuccess"))}).catch(c=>{bt(c.message)})};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("div",{class:"flex",children:[d("a",{class:"text-sm mr-6 flex item-center",href:"#",onClick:u,children:[d(hx,{}),d("span",{class:"ml-1",children:o("cleanCache")})]}),d("a",{class:"text-sm flex item-center",href:"#",onClick:s,children:[d(bx,{}),d("span",{class:"ml-1",children:o("reset")})]})]})]})}function XB({config:e}){let[t,n,r,a,i]=we(me),{t:o,setLang:s}=O(),u=l=>{n(c=>({...c,interfaceLanguage:l}))};return d("div",{class:"nav",children:[d(ye,{title:o("interface language"),description:o("desc.interfaceLanguage")}),d("select",{class:"select",onChange:l=>{s(l.target.value),u(l.target.value),J(!0)||setTimeout(()=>{Nl()},200)},children:Wi(sd,3,e.interfaceLanguage).map((l,c)=>d("option",{value:l,selected:l===e.interfaceLanguage,children:Ot(l,e.interfaceLanguage,!0)},"locale"+c))})]})}function QB({config:e,ctx:t}){let{t:n}=O(),r=Oe(),[a,i,o,s,u]=r,[l,c]=N(e.translationTheme),[m,g]=N(e.translationThemePatterns[l]),p=ne(()=>gO(l),[l]),f=le(Bn((v,C)=>{a&&i(T=>{let x=T.translationThemePatterns||{};return{...T,translationTheme:C,translationThemePatterns:{...x,[C]:v}}})},400),[i]),b=v=>{c(v),i(C=>({...C,translationTheme:v})),g(e.translationThemePatterns[v])};return z(()=>{m&&(Ks(document,l,m,e.selectTranslationFont,!0),f(m,l))},[m,l]),d(ce,{children:[d(tO,{translationTheme:l,onChange:v=>{let C=v.target;b(C?.value)}}),d("div",{class:"pt-2 text-sm","imt-state":"dual",children:d("p",{children:[n("sampleSourceText"),d("div",{class:"pt-2"}),y(),h(),d(fO,{config:e}),d(eO,{translationThemes:Ng,selectedTheme:l,selectDisplay:b})]})})]});function y(){return d(ce,{children:d("font",{class:Ys(l,!1,[],!1).join(" "),children:d("font",{class:Zs(l).join(" "),children:n("sampleTargetText")})})})}function h(){return p?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:n("customTheme")}),d("div",{class:"flex flex-col items-end",children:[p.map((v,C)=>{v.label=n(`customThemeLabel.${v.name}`);let T=m||{},x=`theme-${l}-${v.name}`,S=kC(x)||v.default||void 0,w=T[v.name]||S;return d(ua,{config:e,field:v,value:w,onSetSettings:i,onChange:A=>{g(D=>(Ks(document,l,{...D,[v.name]:A},a.selectTranslationFont),{...D,[v.name]:A}))}},"theme-prop"+l+C)}),d("a",{href:"#",class:"text-sm secondary",onClick:v=>{v.preventDefault(),g(C=>C.zoom?{zoom:C.zoom,matches:[],excludeMatches:[]}:{matches:[],excludeMatches:[]})},children:n("resetToDefaultColor")})]})]}):null}}function eO({selectedTheme:e,translationThemes:t,selectDisplay:n}){let{t:r}=O();return d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:r("previewAllThemes")}),t.map((a,i)=>d("div",{class:"pt-2 transition",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:a,checked:a===e,onChange:o=>{n(o.target.value)}}),r(`translationTheme.${a}`)]})}),d("p",{children:d("font",{class:Ys(a,!1,[],!1).join(" "),children:d("font",{class:Zs(a).join(" ")+" transition-all",children:r("sampleTargetText")})})})]})},"theme-index-"+i))]})}function tO({translationTheme:e,onChange:t}){let{t:n}=O();return d("div",{class:"nav",children:[d(ye,{title:n("translation display"),description:n("select diplay style")}),d("select",{class:"select",onChange:t,children:Ng.map((r,a)=>d("option",{value:r,selected:r===e,children:n(`translationTheme.${r}`)},"theme"+a))})]})}function nO({setSettings:e,config:t}){let{t:n}=O(),[r,a]=N(0),[i,o]=N(""),[s,u]=N(!1),l=(g,p,f)=>{u(!s),e(b=>{let y=b.translationThemePatterns||{},h=y[p]||{},v=h.matches||[],C=[...v];return f==="edit"&&(C=Zt(i,v)),C=qn(g,C),{...b,translationThemePatterns:{...y,[p]:{...h,matches:C}}}})},c=(g,p)=>{e(f=>{let b=f.translationThemePatterns||{},y=b[p]||{},v=[...y.matches||[]];return g.forEach(C=>{v=Zt(C,v)}),{...f,translationThemePatterns:{...b,[p]:{...y,matches:v}}}})},m=(g,p,f)=>{u(!s),o(g),a(f)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:"",description:n("useAboveStyleForTheseSites",{theme:n(`translationTheme.${t.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:g=>{g.preventDefault(),u(!s)},children:n("add")})})]}),s?d(la,{toggleModal:g=>{g.preventDefault(),u(!s)},onAddInterfaceUrl:(g,p)=>{l(g,t.translationTheme,p)},urlValue:i,index:r}):null,d(Ua,{urls:pO(t),type:"matches",onDeleteUrl:g=>{c(g,t.translationTheme)},onEditUrl:m})]})}function rO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();if(!e)return null;let s=l=>{$s({targetLanguage:l}),n(c=>({...c,targetLanguage:l}))},u=Qi(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("target"),description:o("translate other languages into specific language")}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Wi(u,15,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e?.targetLanguage,children:Ot(l,e?.interfaceLanguage)},"language"+c))})]})}function aO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=Tx(r),u=(l,c)=>{s(l?"matches":void 0,c)};return d(Ql,{title:t("always languages"),description:t("always translate the following languages"),languages:xx,selectLanguages:e?.translationLanguagePattern?.matches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function iO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),{handleTranslationLanguagePatternSelected:s}=Tx(r),u=(l,c)=>{s(l?"excludeMatches":void 0,c)};return d(Ql,{title:t("neverTranslateLanguagesLabel"),description:t("neverTranslateTheFollowingLanguagesDescription"),languages:xx,selectLanguages:e?.translationLanguagePattern?.excludeMatches||[],interfaceLanguage:e?.interfaceLanguage,onChange:u})}function oO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];if(g==="edit"){if(!h[c])return p;h[c]=l}return h=qn(l,h),v=Zt(l,y),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=async(l,c)=>{if(l&&l.length>0){let m=await Mt();for(let g of l){let p=g,f=m.tempTranslationUrlMatches||[],b=f.filter(h=>h.match!==p),y=!1;b.length!==f.length&&(y=!0),y&&kt({...m,tempTranslationUrlMatches:[...b]})}}r(m=>{let g=m.translationUrlPattern,p=[];g&&g.matches&&(p=g.matches);let f=[...p];return l.forEach(b=>{f=Zt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("always sites"),description:t("always translate the following sites"),onDeleteUrl:u,onSubmitAddUrl:s,urls:e?.translationUrlPattern.matches||[],type:"matches"})}function sO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),s=(l,c,m,g)=>{r(p=>{let f=p.translationUrlPattern,b=[],y=[];f&&f.matches&&f.excludeMatches&&(b=f.matches,y=f.excludeMatches);let h=[...b],v=[...y];return g==="edit"&&(v[c]=l),h=Zt(l,b),v=qn(l,v),{...p,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...p.translationUrlPattern,matches:h,excludeMatches:v}}})},u=(l,c)=>{r(m=>{let g=m.translationUrlPattern,p=[];g&&g.excludeMatches&&(p=g.excludeMatches);let f=[...p];return l.forEach(b=>{f=Zt(b,f)}),{...m,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...m.translationUrlPattern,[c]:f}}})};return d(No,{title:t("never sites"),description:t("never translate the following sites"),urls:e?.translationUrlPattern.excludeMatches||[],onDeleteUrl:u,onSubmitAddUrl:s,type:"excludeMatches"})}function Tx(e){return{handleTranslationLanguagePatternSelected:le((n,r)=>{if(!n){e(o=>{let s={...o.translationLanguagePattern};return{...o,translationLanguagePattern:{...o.translationLanguagePattern,matches:Zt(r,s.matches),excludeMatches:Zt(r,s.excludeMatches)}}});return}let a=n,i=a==="matches"?"excludeMatches":"matches";r&&e(o=>{let s={...o.translationLanguagePattern};return s[a]=qn(r,s[a]),s[i]=Zt(r,s[i]),{...o,translationLanguagePattern:{...o.translationLanguagePattern,...s}}})},[e])}}var Uh=0,Hh;async function Sx(e){if(Uh>60*10)return null;Uh++,tt.refresh(),await ut(300);let t=await tt.get(mt,null);k.debug("loopCheckUser",Uh,t),t?(clearTimeout(Hh),e(t)):Hh=setTimeout(Sx.bind(null,e),1500)}function Cx(e){let{user:t,lang:n}=e,r=je(),a=t&&t.email===`test@${et}`,{t:i}=O();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,s=o.subscription,u=mO(s.subscriptionTo),l=s.subscriptionType,c=l.startsWith("onetime_"),m=!c&&s.cancelAtPeriodEnd!="true",g="";if(m){let p="";s.isTrial&&(p=i("autoRenewTrialSuffix")),g=i("currentPlanDescriptionForContinuous",{plan:`${i(l)}${p}`,endAt:u})}else c?g=i("currentPlanDescriptionForOneTime",{plan:i(l),endAt:u,1:Y+"accounts/upgrade?type=year&lng="+n,2:Y+"accounts/upgrade?type=month&lng="+n}):hy(o)?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:i(l+"ForOnce"),endAt:u,1:Y+"billing/"}):l==="yearly"||l==="year"?g=i("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:i(l+"ForOnce"),endAt:u,1:Y+"accounts/upgrade?type=year&lng="+n}):g=i("currentPlanDescriptionForAutoRenewCaceling",{plan:i(l+"ForOnce"),endAt:u});return d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:r||a?"":i("currentPlanDescriptionForFree")})}function uO({config:e,user:t,setUser:n}){let{t:r}=O(),a=je(),i=!!e.showSponsorOnSafari,[o,s,u,l,c]=we(me),m=e.interfaceLanguage;z(()=>(tt.get(mt,null).then(b=>{b&&(n(b),lO(b.token).then(y=>{let h=y.data;h.token=b.token,tt.set(mt,h),n(h),Io()}).catch(y=>{Ml(y),y.message?.indexOf("token invalid")>=0&&n(null)}))}),()=>{clearTimeout(Hh)}),[]);let g=le(b=>{b&&b.preventDefault&&b.preventDefault(),t?.token&&cO(t.token).finally(async()=>{await tt.remove(mt),await ut(200),await tt.refresh(),n(null),Io()})},[t]),p=le(async b=>{TC()&&(b&&b.preventDefault&&b.preventDefault(),dO(is),await tt.set(Nu,!0),Sx(y=>{fm(y.token,o,s),n(y),qh?.close(),window.location.reload()}))},[n]),f=t?.avatar||Z8;return t?!t.subscription||t.subscription.subscriptionStatus!="active"?er(e)?null:d("div",{children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:t.email,children:t.email}),d(Cx,{user:t,lang:m})]}),d("div",{class:"ops",children:[d("a",{class:a&&i===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${kn}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:[r("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:li})]}),d("div",{class:"",children:d("a",{href:`${vi}?utm_campaign=extension_settings_general&from=${a?"safari":"extension"}`,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:r("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:t.email||t.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:li})]}),d(Cx,{user:t,lang:m})]}),d("div",{class:"",children:d("a",{href:vi,children:r("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:r("logout")})})]})]}):er(e)?null:d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:r("nologin")})}),d("a",{class:"py-4",href:_2,onClick:p,children:r(a?"loginForSafari":"login")})]})}function lO(e){return ee({responseType:"json",url:ft+"v1/user",method:"get",headers:{token:e}})}function cO(e){return ee({responseType:"json",url:ft+"v1/user/logout",method:"delete",headers:{token:e}})}var qh=null;function dO(e){let r=screen.width/2-230,a=screen.height/2-640/2;return qh=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${r},top=${a},width=460,height=640,chrome=yes,centerscreen=yes`),qh}function mO(e){let t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return`${n}-${r}-${a}`}function gO(e){let t=[];return Bu[e]&&(t=t.concat(Bu[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t.push({name:"weight",type:"number",default:400,required:!1}),t.push({name:"italics",type:"boolean",default:!1,required:!1}),t}function pO(e){let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]}var jh="";function fO({config:e}){let{t}=O(),[n,r]=N(!1);return d("details",{class:"pt-2 border-none",onToggle:a=>{r(a.target?.open)},children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:t("translationFont")}),d(hO,{config:e,isOpen:n})]})}function hO({config:e,isOpen:t}){let{t:n}=O(),[r,a]=N([]),[i,o]=N(!1);z(()=>{if(!t||r.length)return;let p=e.translationFonts.filter(b=>ec(b,n("sampleTargetText").charAt(0)+"a"));p.length&&p.unshift("none");let f=e.selectTranslationFont&&!p.find(b=>b===e.selectTranslationFont);(!p.length||f)&&o(!0),a(p)},[e.translationFonts,t,r,a]);let[s,u,l,c,m]=we(me),g=p=>{p!==jh&&!ec(p,n("sampleTargetText").charAt(0)+"a")&&bt(n("translationFont.notSupportErrorMessage")),u(f=>{let b=e.translationTheme,y={matches:[],excludeMatches:[]};return f&&b&&f.translationThemePatterns&&f.translationThemePatterns[b]&&(y=f.translationThemePatterns[b]),Ks(document,b,y,p),{...f,selectTranslationFont:p}})};return d("div",{class:"flex items-center justify-end",children:[r.length?d("label",{for:"translationFont.custom",class:"text-sm mr-2",onClick:()=>{o(!i),i&&(r.find(f=>f===e.selectTranslationFont)||g(jh))},children:[d("input",{type:"checkbox",id:"translationFont.custom",name:"translationFont.custom",checked:i}),n("translationFont.custom")]}):null,i?d("input",{style:{maxWidth:196},placeholder:n("translationFont.customPlaceholder"),value:e?.selectTranslationFont,onChange:p=>g(p.target.value)}):d("select",{class:"select",style:{maxWidth:196,flex:"unset"},onChange:p=>{g(p.target.value)},children:r.map((p,f)=>{let b=n(`font.${p}`);b.startsWith("font.")&&(b=p);let y=p=="none"?jh:p;return d("option",{value:y,selected:p===e?.selectTranslationFont,children:b},"locale"+f)})})]})}function bO({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),s=["dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("translationModePreferLabel"),description:t("translationModePreferDesc")}),d("select",{class:"select",onChange:u=>{u.preventDefault(),r(l=>({...l,translationMode:u.target.value}))},children:s.map(u=>d("option",{value:u,selected:e.translationMode==u,children:t(`transitionMode.${u}`)},u))})]})}function an(e){return Ae.ASSETS_BASE_URL+e}function zh(e){return d("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.class,width:e.width||16,height:e.height||10,viewBox:"0 0 320 512",children:d("path",{opacity:"1",fill:"currentColor",d:"M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"})})}function wx(e){return d("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12.7619 0.571411V3.19046H11.3333V1.99998H7.28568V12.7143H8.95235V14.1428H4.19044V12.7143H5.85711V1.99998H1.57139V3.19046H0.142822V0.571411H12.7619ZM15.619 12.7143V14.1428H9.90473V12.7143H15.619ZM15.619 9.85713V11.2857H9.90473V9.85713H15.619ZM15.619 6.99998V8.42855H9.90473V6.99998H15.619Z",fill:"currentColor"})})}var yO=({text:e,children:t,position:n="top",containerStyle:r,containerClass:a,multiple:i=!1,width:o,delay:s=0,disable:u,enableMobile:l,tipStyle:c,onHidden:m,onShow:g})=>{let[p,f]=N(!1),b=xe(null),y=xe(null),h=()=>{u||!l&&(qe().any||Cr())||(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{f(!0),g?.()},s))},v=()=>{(qe().any||Cr())&&(y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{C()},2e3))},C=()=>{b.current&&(clearTimeout(b.current),m?.()),f(!1)},T=ne(()=>{let w={padding:"6px 20px",backgroundColor:"#000000",color:"#ffffff",borderRadius:"8px",fontSize:"14px"};return i&&(w.maxWidth="200px",o&&(w.width=o+"px"),w.whiteSpace="normal"),c?.width&&(w.width=c.width),c?.maxWidth&&(w.maxWidth=c.maxWidth),c?.whiteSpace&&(w.whiteSpace=c.whiteSpace),w},[i,o,c]),x=ne(()=>{let w={position:"absolute",whiteSpace:"nowrap",zIndex:1e3,padding:10},A={...c};switch(A.width&&delete A.width,A.maxWidth&&delete A.maxWidth,n){case"top":return{...w,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"0px",...A};case"bottom":return{...w,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"0px",...A};case"left":return{...w,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"0px",...A};case"right":return{...w,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"0px",...A};default:return{}}},[n,i,o,c]),S=w=>Ld()?d("div",{style:T,role:"tooltip",children:w}):d("div",{style:T,role:"tooltip",dangerouslySetInnerHTML:{__html:w}});return d("div",{class:a,onMouseEnter:h,onMouseLeave:C,onTouchStart:()=>{l&&h()},onTouchEnd:()=>{l&&v()},style:{position:"relative",pointerEvents:"all",display:"inline-block",...r},children:[d("div",{children:t}),p&&d("div",{style:x,children:S(e)})]})},Pt=yO;var bm=!1;function Wh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=dn(o);Xe(t,n);let{t:u,lang:l}=O(),c=s&&ws(s,"translationService",l)||[],m=Ro(),g=ne(()=>{if(!m.startsWith("#services/")||!s)return null;let f=m.slice(10),b=As(s,"translationService",l,f);return d(xO,{service:f,currentTranslationServiceItem:b,ctx:s})},[m,c]);!bm&&m==="#services"&&(bm=!0),z(()=>()=>bm=!1,[]),z(()=>{m!=="#services"&&globalThis.scrollTo(0,0)},[m]);let p=async()=>{let f=`custom-ai-${kl(8)}`;if(s?.config.translationServices[f]){p();return}await n(b=>{let y=b.translationServices||{},h=Object.values(y).filter(C=>C.type==="custom-ai").length,v={};return v.type="custom-ai",v.extends="openai",v.name=`OpenAI ${h+2}`,{...b,translationServices:{...y,[f]:v}}}),window.location.href=`#services/${f}`};return!o||!s?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[m==="#services"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("translationServiceNav")})}),d("div",{class:"flex justify-end mb-6 mr-6 items-center link-container",children:[d("div",{class:"w-4 h-4 mr-2 flex items-center",onClick:()=>window.open(Hu,"_blank"),children:d(wx,{class:"cursor-pointer"})}),d("a",{class:"underline cursor-pointer secondary",onClick:()=>window.open(Hu,"_blank"),children:u("onlineTransalteCompare")})]}),d("div",{class:"flex flex-wrap",children:c.map(f=>d(vO,{data:f,ctx:s},f.id))}),d("div",{class:"flex justify-center w-full",children:d("span",{href:"#",class:"add-custom-ai-service cursor-pointer",onClick:f=>{f.preventDefault(),p()},children:u("translationServices.addCustomAI")})})]}),g]})})}function vO({data:e,ctx:t}){let{t:n,lang:r}=O(),[a,i,o,s,u]=we(me),l=a[e.id]||t.config.translationServices?.[e.id]||{},c=ne(()=>!!$a.find(R=>R==e.id),[e]),m=le(R=>{i(_=>{let F=_.translationServices?.[e.id]||{};return{..._,translationServices:{..._.translationServices,[e.id]:{...F,visible:R.target.checked}}}})},[i]),[g,p]=N(!0),f=()=>{p(!1)},b=!!e?.providers?.length||!!e?.explicitProps?.length||!!e?.optionalProps?.length,y=je(),h=t.isPro,v=l.type==="custom-ai",C=ne(()=>e.ok?n("goEditing"):n(y?"needActionLabel":c?"goLoginOrAction":"needActionLabel"),[y,h,e.id,e.ok]),T=R=>{R.stopPropagation(),R.preventDefault(),t.translationService!==e.id&&(!M()||!S||i(_=>{Ue("change_translate_service",[{name:"change_translate_service",params:{translation_service:`${_.translationService}_${e.id}`}}],t);let F={..._,translationService:e.id};return F.translationServiceChangedbyUserAt=new Date().toISOString(),F}))},x=t.translationService===e.id,S=x||_f(l,r),w=n("translationServices."+e.id),A=n("translationServices."+e.id+".introduction",{homepage:{tag:"a",href:e.homepage,target:"_blank",class:P+"-link"},1:e.link1,2:e.link2,docUrl:{tag:"a",href:e.docUrl||"",target:"_blank",class:P+"-link"}}),D=e.id;return v&&(w=`${e.name||""} (${n("translationServices.custom-ai")})`,A="",D="custom-ai"),d("div",{class:"service-container","data-selected":x?"true":"false","data-configed":S,onClick:R=>{globalThis.location.href="#services/"+e.id},children:[d("div",{class:"flex items-center justify-between mb-4",children:[d("div",{class:"flex items-center",children:[g&&d("div",{class:"w-12 h-12 border border-[#E8EBEB] rounded-full mr-3 flex items-center justify-center bg-white",children:d("img",{class:"cursor-pointer",src:an(`images/${D}.png`),onError:f,alt:"",onClick:()=>{window.location.href="#services/"+e.id}})}),d("h3",{class:"mb-0 cursor-pointer",onClick:()=>{window.location.href="#services/"+e.id},children:w})]}),d(Pt,{text:n("needSettingTip"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},disable:M(),enableMobile:!0,children:d("input",{type:"checkbox",name:e.name,role:"switch",disabled:!M()||t.translationService===e.id,checked:S,onChange:R=>{m(R)},onClick:R=>R.stopPropagation()})})]}),d("p",{dangerouslySetInnerHTML:{__html:A}}),b&&d("div",{class:"absolute right-5 bottom-3",children:d("a",{href:"#services/"+e.id,class:e.ok?"edit":"",children:C})}),t.translationService===e.id&&d("div",{class:"absolute left-5 bottom-3 service-current-default",children:n("currentDefault")}),d("a",{class:"absolute bottom-3 left-5 opacity-0 service-set-default",onClick:T,children:n("setDefault")})]});function M(){let R=!0;return e.ok?R=!0:c||(R=!1),S&&(R=!0),R}}function CO(e,t){let[n,r]=N(!1),[a]=we(me),[i,o]=N("");return[le(async u=>{if(u.preventDefault(),!!e){r(!0),o("");try{await mr({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto",refresh:!0},{...e,translationService:t?.id,rule:{...e?.rule,paragraphMinTextCount:1},sourceProgram:"verify"}),r(!1),o("ok")}catch(l){let c=l.message;try{c=l?.uiConfig?.(e)?.errMsg||l.message}catch{}r(!1),o(c)}}},[a,e]),n,i]}function xO({service:e,currentTranslationServiceItem:t,ctx:n}){let r=Oe(),[a,i,o,s,u]=r,l=pt(a),{t:c}=O(),m=pm(),g=ne(()=>{if(l&&n){let{translationServices:C}=l,T=t?.id||"",x=C?.[T],S=Vl(x,n.localConfig.aiAssistants||[]);if(S&&x){let w=iu(S);return{...x,...w,aiAssistant:S}}return x?{...x}:{}}return null},[l,n,t,e]),[p,f,b]=CO(n,t),y=!!t?.providers?.length||!!t?.explicitProps?.length||!!t?.optionalProps?.length,h=g?.type,v=c("translationServices."+e)+" "+c("setting");if(h){let C=g?.name;g.name?v=`${C} (${c("translationServices.custom-ai")}) ${c("setting")}`:v=c("translationServices.custom-ai")+" "+c("setting")}return d(ce,{children:[d("div",{class:"flex items-center justify-between flex-wrap mb-5",children:[d("div",{class:"store-return",children:[d("a",{href:"#",onClick:C=>{if(C.preventDefault(),!bm){window.location.href="#services";return}window.history.back()}}),v]}),d("div",{class:"flex flex-row",children:[f&&d("div",{class:"loading"}),!f&&b==="ok"&&d("span",{class:"verified text-green-500 mr-2",children:c("verified")}),d("a",{"aria-busy":f,href:"#",class:"secondary",onClick:p,children:c("verifyService")})]})]}),b&&b!=="ok"&&d("div",{class:"mt-4",children:d("span",{class:"verified text-red-500 mr-2",dangerouslySetInnerHTML:{__html:b}})}),y&&d("article",{children:[d(Ih,{config:l,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),d(Fh,{curServiceItem:t,t:c}),d(Bh,{curServiceItem:t,t:c}),d(Rh,{currentTranslationServiceItem:t,t:c}),Oh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,isProUser:!!m,t:c}),Nh({config:l,curServiceConfig:g,curServiceItem:t,setSettings:i,t:c,forceExpand:!0})]}),d(cx,{ctx:n,currentTranslationServiceConfig:g,currentTranslationServiceItem:t,setSettings:i})]})}function ma(e){return d("div",{class:`intro-container ${e.className||""}`,children:[d("div",{class:"intro-content",children:[d("img",{width:280,height:200,src:e.image,class:"intro-light-img"}),d("img",{width:280,height:200,src:e.nightImage,class:"intro-night-img"}),d("div",{class:"intro-right",children:[d("h1",{children:e.title}),d("p",{dangerouslySetInnerHTML:{__html:e.description}})]})]}),e.children&&d("div",{class:"intro-line"}),e.children]})}var TO=Qt+"assets/uploads/default-oade4Y.png";function Ax({assistantID:e,lang:t,hasAssistantsRoute:n}){let[r,a]=N(),[i,o]=N(),[s,u]=N(""),{t:l}=O(),[c,m]=N(""),g=le(()=>m(TO),[]),{aiAssistantsData:p,handleInstall:f,operateLoading:b}=om(),y=Oe(),[h,v]=y;Xe(h,v);let C=pt(h);z(()=>{nh(e).then(x=>{a(x),m(x.avatar),o({name:x.i18n[t]?.name||x.name,description:x.i18n[t]?.description||x.description,details:x.i18n[t]?.details||x.details}),u(lt.sanitize(x.i18n[t]?.details||x.details))}).catch(()=>{bt(l("aiAssistant.getDataError")),a(null)})},[]);let T=p?.some(x=>x.id===r?.id);return r===void 0?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):r===null?d("div",{className:"tipMsg",children:l("aiAssistant.getDataError")}):d("div",{children:[d("div",{className:"store-return mb-2",children:[d("a",{href:"#",onClick:x=>{if(x.preventDefault(),!n){window.location.href="#ai";return}window.history.back()}}),i.name+" "+l("setting")]}),d("div",{className:"flex justify-between items-center h-full p-1 mt-4 rounded-lg banner-container",children:d("div",{className:"flex flex-col h-full p-4 w-full",children:[d("div",{className:"flex justify-between items-center",children:[d("div",{className:"flex items-center",children:[d("img",{className:"w-14 h-14 rounded-lg",src:c,alt:"",onError:g}),d("div",{className:"flex flex-col items-start pl-2",children:[d("div",{className:"font-bold text-xl",children:i.name}),d("div",{className:"mt-2 h-6 text-xs",style:{color:"#999999"},children:r.author?`@${r.author}`:""})]})]}),d("div",{className:"btns",children:d(Pt,{text:l("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(r),children:d(Vh,{assistantID:e,enable:si(r),handleInstall:f,operateLoading:b,aiAssistantsData:p})})})]}),d("div",{className:"flex items-center flex-grow mt-4 text-sm min-h-16",children:i.description})]})}),d("div",{className:"py-4 font-bold",children:l("aiAssistant.detail")}),d("div",{children:d("div",{class:"text-sm details-note",dangerouslySetInnerHTML:{__html:s}})}),T&&d("div",{className:"py-4 font-bold",children:l("aiAssistant.autoEnableAssistant")}),d(Kh,{aiAssistant:r,isInstall:T}),C&&d(ce,{children:[d("div",{className:"py-4 font-bold",children:l("aiAssistant.promptDetails")}),d(ce,{children:SO.map((x,S)=>d("div",{className:"mt-2",children:d(ua,{service:"ai",config:C,field:x,value:r[x.name]||"",disabled:!0,onSetSettings:()=>{},onChange:()=>{},onFinish:()=>{}},S)},"custom-assistants-prop-"+S))})]})]})}function Vh({assistantID:e,enable:t,handleInstall:n,operateLoading:r,aiAssistantsData:a}){let{t:i}=O(),o=a?.some(c=>c.id===e),[s,u]=N(!0),l=xe(null);return z(()=>{let c=()=>{if(l.current){let m=l.current.offsetWidth>80;u(!m)}};return c(),globalThis.addEventListener("resize",c),()=>{globalThis.removeEventListener("resize",c)}},[]),d("div",{className:"assistant-btn",children:d("button",{disabled:!t,className:`py-1 px-3 text-sm rounded-2xl bg-transparent flex items-center ${o?"gray-button":""}`,style:{whiteSpace:"nowrap"},onClick:async c=>{c.stopPropagation(),await n(e,o?"remove":"add")},children:[d("span",{children:o?d(vx,{}):d(yx,{})}),d("span",{children:[s&&d("span",{ref:l,className:"install-uninstall ml-1",children:i(o?"aiAssistant.Uninstall":"aiAssistant.install")}),r&&d("div",{className:`${P}-loading-spinner`})]})]})})}function Kh({aiAssistant:e,isInstall:t}){let{t:n}=O(),[r,a,i,o,s]=we(me),u=ne(()=>{let g=r?.aiAssistantsMatches?.[e.id]?.matches;return g?Sd(e.matches||[],g):e.matches||[]},[e,r]),l=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=[...b],h=u[p];if(e.matches?.find(C=>C===h))y=Ex(e.matches||[],b,[h]),y.push(g);else{let C=y.findIndex(T=>T.endsWith(h));C!==-1&&(y[C]=g)}return{...f,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})},c=(g,p,f,b)=>{if(b==="edit")return l(g,p);a(y=>{let h=r?.aiAssistantsMatches?.[e.id]?.matches||[],v=[...h],C=e.matches?.find(x=>x===g),T=h.find(x=>x.endsWith(g));if(C&&T){if(!T.startsWith("[-]"))return;v=v.filter(x=>x!==T)}else{if(C)return;v.push(g)}return{...y,aiAssistantsMatches:{...y.aiAssistantsMatches,[e.id]:{matches:v}}}})},m=(g,p)=>{a(f=>{let b=r?.aiAssistantsMatches?.[e.id]?.matches||[],y=Ex(e.matches||[],b,g);return{...f,isChangedAlwaysTranslatedUrls:!0,aiAssistantsMatches:{...f.aiAssistantsMatches,[e.id]:{matches:y}}}})};return t?d(No,{title:n("aiAssistant.matchesTitle"),description:n("aiAssistant.matchesDescription"),onDeleteUrl:m,onSubmitAddUrl:c,urls:u||[],type:"matches"}):null}function Ex(e,t,n){let r=[...t];return n.forEach(a=>{let i=e.find(s=>s===a),o=t.find(s=>s.endsWith(a));if(i&&o){if(!o.startsWith("[-]"))return;let s=r.findIndex(u=>u.endsWith(a));s!==-1&&(r[s]=`[-]${a}`)}else o?r=r.filter(s=>s!==o):i&&r.push(`[-]${a}`)}),r}var SO=[{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function kx(e){let t=Oe(),[n,r]=t;Xe(n,r);let a=pt(n),{t:i}=O(),{aiAssistant:o,updateAiAssistant:s,handleDelete:u}=EO({id:e.assistantID,userConfig:n,setSettings:r}),l=le(async c=>{await s(c)},[s]);return!a||!o?null:d("div",{children:[d("div",{className:"store-return mb-8",children:[d("a",{href:"#",onClick:c=>{if(c.preventDefault(),!e.hasAssistantsRoute){window.location.href="#ai";return}window.history.back()}}),o.name+" "+i("setting")]}),d(ce,{children:wO.map((c,m)=>d("div",{class:"mt-2",children:d(ua,{service:"ai",config:a,field:c,value:o[c.name]||"",onSetSettings:()=>{},onChange:g=>{l({...o,[c.name]:g})},onFinish:()=>{nt(i("saved"))}},m)},"custom-assistants-prop-"+m))}),d(Kh,{aiAssistant:o,isInstall:!0}),d("div",{class:"flex justify-center mt-6",children:d("a",{class:"cursor-pointer ",style:{color:"red"},onClick:u,children:i("translationServices.delete")})})]})}var wO=[{name:"name",labelKey:"field.aiAssistantName",placeholderKey:"field.aiAssistantName",required:!0,type:"text"},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"textarea",optional:!0},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:"",optional:!0},{name:"multiplePrompt",label:"Multiple Prompt",required:!1,descriptionKey:"description.multiplePrompt",type:"textarea",default:"",optional:!0}];function EO({id:e,userConfig:t,setSettings:n}){let{t:r}=O(),a=ne(()=>t?.customAiAssistants?.find(u=>u.id===e),[e,t]),i=le(async s=>{n&&await n(u=>{let l=u.customAiAssistants||[],c=l.findIndex(m=>m.id===e);return c<0?u:(l[c]=s,{...u,customAiAssistants:l})})},[n]),o=le(async()=>{!a||!n||!globalThis.confirm(r("aiAssistant.deleteConfirm"))||(await n(u=>{let l=(u.customAiAssistants||[]).filter(c=>c.id!==e);return{...u,customAiAssistants:l}}),window.location.href="#ai")},[a,n]);return{aiAssistant:a,handleDelete:o,updateAiAssistant:i}}var ym=!1,AO=Qt+"assets/uploads/default-oade4Y.png";function Gh(){let[e,t]=N(null),[n,r]=N(!1),[a,i]=N(null),{customAssistants:o,handleAddCustomAiAssistants:s}=DO(),u=ne(()=>o.concat((e||[]).sort((v,C)=>{let T=v.priority||1e3,x=C.priority||1e3;return T-x})),[o,e]);z(()=>{(async()=>{try{r(!0);let v=await th(),C=Object.values(v);t(C),i(null)}catch{bt(y("aiAssistant.getDataError")),i(y("aiAssistant.getDataError")),t([])}finally{r(!1)}})()},[r]);let l=Oe(),[c,m]=l;Xe(c,m);let g=pt(c),p=dn(g),f=p?.config.interfaceLanguage||"zh-CN",b=Ro(),{t:y}=O();z(()=>{eh(void 0,void 0,!0)},[]),!ym&&b==="#ai"&&(ym=!0),z(()=>()=>ym=!1,[]);let h=ne(()=>{if(!b.startsWith("#ai/"))return null;let v=b.slice(4);return v.startsWith("custom")?d(kx,{assistantID:v}):d(Ax,{assistantID:v,lang:f,hasAssistantsRoute:ym})},[b,f]);return!g||!p||!u||n?d("div",{className:"flex justify-center items-center",style:"height: 80vh;",children:d("div",{className:`${P}-loading-spinner`,style:" width: 30px !important; height: 30px !important;"})}):a?d("div",{className:"tipMsg",children:a}):u.length===0&&!a?d("div",{className:"tipMsg",children:y("aiAssistant.noData")}):d(rt,{children:d(me.Provider,{value:l,children:[b==="#ai"&&d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:y("field.assistant")})}),d(ma,{image:an("images/assistant_intro.png"),nightImage:an("images/assistant_intro_night.png"),title:y("field.assistant"),description:y("aiAssistant.topBar",{1:`https://github.com/${P}/prompts`})}),d("div",{className:"flex flex-wrap",children:[u.map(v=>d(kO,{data:v,lang:f},v.id)),d("div",{className:"w-full flex justify-between",children:[d("a",{className:"underline text-sm",style:{color:"#999999"},target:"_blank",onClick:async()=>{let v=await s(g);window.location.href=`#ai/${v.id}`},children:y("aiAssistant.addCustom")}),d("a",{href:`https://github.com/${P}/prompts`,className:"underline text-sm",style:{color:"#999999"},target:"_blank",children:y("aiAssistant.moreAI")})]})]})]}),h]})})}function kO({data:e,lang:t}){let{t:n}=O(),r=e.i18n[t]||e,[a,i]=N(e.avatar),o=le(()=>i(AO),[]),{aiAssistantsData:s,handleInstall:u,operateLoading:l}=om();return d("div",{className:"assistant-container",onClick:()=>{window.location.href="#ai/"+e.id},children:[d("div",{className:"flex items-center justify-between mb-4",children:d("div",{className:"flex justify-between items-center w-full",children:[d("div",{className:"w-12 h-12 rounded-full mr-3 flex items-center justify-center",children:d("img",{className:"cursor-pointer rounded-full",src:a,alt:"",onError:o})}),d("div",{className:"mb-0 cursor-pointer pr-2 flex justify-start flex-col text-left assistant-content flex-1",children:[d("div",{className:`text-base font-bold assistant-text ${e.custom?"custom-assistant-name":""}`,children:r.name}),d("div",{className:"font-normal assistant-text",style:{color:"#999999",fontSize:"14px"},children:e.author?`@${e.author}`:""})]}),!e.custom&&d("div",{style:{marginLeft:"auto"},children:d(Pt,{text:n("aiAssistant.versionNoMatch"),position:qe().any?"left":"top",tipStyle:{whiteSpace:"pre"},enableMobile:!0,disable:si(e),children:d(Vh,{assistantID:e.id,enable:si(e),aiAssistantsData:s,handleInstall:u,operateLoading:l})})})]})}),d("p",{dangerouslySetInnerHTML:{__html:r.description}})]})}function DO(){let e=xe(!1),{t}=O(),[n,r]=Oe();Xe(n,r);let a=n?.customAiAssistants||[];return z(()=>{!n||e.current||(async()=>{try{let s=(await Kl()||[]).filter(l=>l.custom&&l.id.startsWith("custom")),u=n.customAiAssistants||[];s.forEach(l=>{u.find(m=>m.id===l.id)||u.push(l),Fo("remove",l)}),r(l=>({...l,customAiAssistants:u})),e.current=!0}catch(o){return k.error(o),[]}})()},[n,r]),{handleAddCustomAiAssistants:async o=>{let s=o?.translationServices?.openai,u={id:"custom-"+kl(8),name:`${t("aiAssistant.customAiAssistant")}-${a.length+1}`,avatar:"",priority:0,custom:!0,description:"",version:"1.0.0",extensionVersion:"1.4.10",details:"",author:"",homepage:"",props:[],matches:[],env:{},systemPrompt:s?.systemPrompt||"",prompt:s?.prompt||"",multiplePrompt:s?.multiplePrompt||"",subtitlePrompt:s?.subtitlePrompt||"",langOverrides:"",heat:0,i18n:{},maxTextGroupLengthPerRequest:s?.maxTextGroupLengthPerRequest||1,maxTextLengthPerRequest:s?.maxTextLengthPerRequest||1200};return await r(l=>({...l,customAiAssistants:(l.customAiAssistants||[]).concat([u])})),u},customAssistants:a}}var nr={};Xc.forEach(e=>{e.labelKey&&(nr[e.key]=e.labelKey)});function $h(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=N(null),{t:u}=O();if(z(()=>{Je().then(c=>{wn({config:c,url:globalThis.location.href}).then(m=>{s(m)})})},[t]),!o)return d("div",{children:"loading"});let l=o.config;return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("inputOptions")})}),d(LO,{config:l}),d(MO,{config:l}),d(PO,{config:l}),d(eo,{config:l,ctx:o,serviceType:"inputTranslationService"}),d(_O,{config:l}),d(RO,{config:l}),d(FO,{config:l}),d(IO,{config:l})]})})}function LO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();return e?d(ce,{children:[d("details",{class:"mt-3",open:!0,children:[d("summary",{children:[o("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,autoPlay:!0,src:e?.interfaceLanguage!=="zh-TW"?`${Qt}videos/input-translation-demo-202307044.mp4`:`${Qt}assets/uploads/input-translation-zh-tw-EsnKY2.mp4`})]}),d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?o("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):o("enableInputTranslationDescription",{inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage),startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslation:!!u}))},checked:e.enableInputTranslation})})]})]}):null}function MO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),s=l=>{n(c=>({...c,inputTargetLanguage:l}))};if(!e)return null;let u=Qi(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(ye,{title:o("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?o("inputTargetLanguageDescriptionForNoneKey"):o("inputTargetLanguageDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:l=>{l.preventDefault(),s(l.target.value)},children:Wi(u,12,e.interfaceLanguage).filter(l=>l!=="auto").map((l,c)=>d("option",{value:l,selected:l===e.inputTargetLanguage,children:Ot(l,e.interfaceLanguage)},"language"+c))})]})}function PO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();return e?d("div",{class:"nav",children:[d(ye,{title:o("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Ot(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;n(l=>({...l,enableInputTranslationWithoutTriggerKey:!!u}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function _O({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),s=u=>{n(l=>({...l,inputStartingTriggerKey:u}))};return e?d("div",{class:"nav",children:[d(ye,{title:o("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?o("inputStartingTriggerKeyDescriptionForNoneKey"):o("inputStartingTriggerKeyDescription",{startingKey:nr[e.inputStartingTriggerKey]?o(nr[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:Xc.filter(u=>u.skipForStarting!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputStartingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}):null}function RO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),s=u=>{n(l=>({...l,inputTrailingTriggerKey:u}))};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTrailingTriggerKeyTitle"),description:o("inputTrailingTriggerKeyDescription",{trailingKey:nr[e.inputTrailingTriggerKey]?o(nr[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:u=>{u.preventDefault(),s(u.target.value)},children:Xc.filter(u=>u.skipForTrailing!==!0).map((u,l)=>d("option",{value:u.key,selected:u.key===e.inputTrailingTriggerKey,children:u.labelKey?o(u.labelKey):u.key},"startingkey-"+l))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:o("inputHelperInfo",{1:Y+"docs/input/"})}})]}):null}function IO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O(),[s,u]=N(!1),l=h=>{u(!s)},[c,m]=N(0),[g,p]=N(""),f=(h,v,C,T)=>{l(C),n(x=>{let S=x.inputTranslationUrlPattern,w=[],A=[];S&&S.matches&&S.excludeMatches&&(w=S.matches,A=S.excludeMatches);let D=[...w],M=[...A];return T==="edit"&&(C==="matches"?D[v]=h:M[v]=h),C==="matches"?(D=qn(h,D),M=Zt(h,A)):(D=Zt(h,w),M=qn(h,M)),{...x,inputTranslationUrlPattern:{...x.inputTranslationUrlPattern,matches:D,excludeMatches:M}}})},b=(h,v)=>{n(C=>{let T=C.inputTranslationUrlPattern,x=[];v==="matches"?T&&T.matches&&(x=T.matches):T&&T.excludeMatches&&(x=T.excludeMatches);let S=[...x];return h.forEach(w=>{S=Zt(w,S)}),{...C,inputTranslationUrlPattern:{...C.inputTranslationUrlPattern,[v]:S}}})},y=(h,v,C)=>{l(v),p(h),m(C)};return e?d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:o("inputTranslationBlockUrlsTitle"),description:o("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:h=>{h.preventDefault(),l("excludeMatches")},children:o("add")})}),s?d(la,{toggleModal:h=>{h.preventDefault(),l("excludeMatches")},onSubmitAddUrl:f,type:"excludeMatches",urlValue:g,index:c}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:b,onEditUrl:y})]}):null}function FO({config:e}){let[t,n,r,a,i]=we(me),{t:o}=O();if(!e)return null;let s=()=>qe().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,u=l=>{n(c=>qe().any?{...c,inputTrailingMobileTriggerKeyTimeout:l}:{...c,inputTrailingTriggerKeyTimeout:l})};return d("nav",{children:[d(ye,{title:o("inputTrailingTriggerKeyTimeout"),description:o("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:s(),min:150,max:1e3,onChange:l=>{!l.target||Number(l.target.value)<100||u(Number(l.target.value))}})})]})}function Yh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),{t:s}=O(),[u,l]=N({}),[c,m]=N({});return z(()=>{j.storage.sync.get(null).then(g=>{l(g),j.storage.local.get(null).then(p=>{m(p)})})},[t]),!o||!t?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:s("developerDescription",{1:Y+"docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d(HO,{}),d(jO,{}),d(BO,{}),d(OO,{}),d(NO,{}),d(UO,{}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(o,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(u,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{class:"code-editor",children:JSON.stringify(c,null,2)})})]})]})})})}function BO(){let[e,t,n,r,a]=we(me),{t:i}=O(),o=l=>{try{let c=l.target.value,m={...e};if(!c)delete m.rules;else{let g=JSON.parse(c);if(!Array.isArray(g)){bt("Invalid rules, rules must be an array");return}m.rules=g}t(()=>m),nt(i("saved"))}catch(c){bt(`Invalid JSON ${c.message}`)}},s=l=>{if(l.preventDefault(),confirm(i("confirmResetConfig"))){let c={...e};delete c.rules,t(()=>c),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule code-editor",rows:10,onChange:o,placeholder:`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] - }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function NO(){let[e,t,n,r,a]=we(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),nt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function UO(){let[e,t,n,r,a]=we(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Lo()),Ns().catch(l=>{k.error("clean local config error",l)}),ca().catch(l=>{k.error("clean cache error",l)}),nt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),nt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Q+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function jO(){let[e,t,n,r,a]=we(me),i=pt(e),o=dn(i),{t:s}=O(),[u,l]=N("");return z(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=il.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Ln();if(!g){p.customAiAssistants=[];let x=p.aiAssistants||[];p.aiAssistants=x.filter(S=>!S.custom),Fr(p),nt(s("saved"));return}let f=il.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(x=>x.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(x=>x.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Fr(p),nt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function HO(){let[e,t,n,r,a]=we(me),i=pt(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Fo()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:Ou})}})]})}function qO(){let[e,t,n,r,a]=we(me),i=pt(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var zO="buildinConfig",VO={},vm=RC(zO,VO);function LS(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var WO=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},GO=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},KO=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},YO=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},QO=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},JO=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:ku+"releases",children:e})]})},ZO=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},XO=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Zh(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=vm(),[c,m]=N(null),[g,p]=N(""),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[x,S]=N(null),[T,w,A,D]=Oe();Xe(T,w);let[M,I]=N(!1),[R,B]=N(!1),L=Pr(),U=$t+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",F=$t+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",q=$t+"assets/uploads/full-intro-en-NlkG5c.mp4",Y={"zh-CN":{poster:$t+"static/official-static/assets/price/video-poster-zh-Hans.png",src:U},"zh-TW":{poster:$t+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:F},en:{poster:$t+"static/official-static/assets/price/video-poster-en.png",src:q}},te=Y.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?te=Y["zh-TW"]:r.startsWith("zh")&&(te=Y["zh-CN"]);let xe=!0;je()&&v&&(xe=v.generalRule.showSponsorOnSafari);let pe=async()=>{p("");let X=o;if(o===null)try{let se=await Br({url:bi});se?(s(se),X=se,b(!0)):(p(n("unknownError")),m(null))}catch(se){m(null),p(se.message);return}X!==null?(l(X),m(!1),t(X.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};z(()=>{Ze().then(X=>{B(X.interfaceLanguage!=="zh-TW");let se=X.buildinConfigUpdatedAt;C(X);let be=new Date(se);t(se),Br({url:bi}).then(he=>{let Le=he.minVersion,Ve=L;s(he);let J=he.resaleVersion;if(J&&(ja(Ve,J)?S(!0):S(!1)),ja(Ve,Le)){let Ee=he.buildinConfigUpdatedAt;new Date(Ee)>be?(m(!0),pe()):m(!1)}else h(!0),m(null)}).catch(he=>{m(null),p(he.message)})}),J8().then(X=>{i(X)})},[]),z(()=>{Ze().then(X=>{C(X),ia(X)})},[T,e]);let H=X=>{w(se=>{let be=!se.alpha;return be?nt(n("enableAlphaSuccess")):nt(n("disableAlphaSuccess")),{...se,alpha:be}})},W=X=>{X.preventDefault(),X.stopPropagation(),I(!0),ca().then(()=>{I(!1),nt(n("cleanSuccess")),i("0 B")}).catch(se=>{I(!1),bt(se.message)})},$=X=>{w(se=>({...se,cache:X}))},Re=X=>{w(se=>({...se,enabled:X}))},ve="aboutIntro";xe||(ve="aboutIntroWithoutSponsor");let Ye=new Date().getFullYear();return v?d(rt,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:LS(7)(H),class:`text-lg ${P}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${P}-no-select`,onClick:X=>{X.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:["V",L,n2()?"(Beta)":""]}),x===!1&&d(JO,{latestVersion:o?.resaleVersion}),x===!0&&d(ZO,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{Re(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{$(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!Z(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:W,children:n("cleanCache")})]}),g?d(XO,{handleSyncing:pe,message:g,date:e||""}):y?d(QO,{minVersion:o.minVersion}):c===null?d(KO,{}):c===!0?d(YO,{}):f?d(GO,{date:e}):d(WO,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Q+"docs/thanks/",2:Q+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+lo,5:`https://${lo}.substack.com`,6:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Q+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${lo}_tw`,10:"https://x.com/immersivetrans"})}}),R&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:$t+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:$t+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:ku+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:Ou,onClick:X=>{X.preventDefault(),ur(Ou)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Q+"docs/CHANGELOG/",onClick:X=>{X.preventDefault(),ur(`${Q}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Q,onClick:X=>{X.preventDefault(),ur(Q)},children:n("projectHomepage")})}),xe&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:te.poster,src:te.src,style:"border-radius: 38px;"})})]})]}),R&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${lo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",Ye," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var $O=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(eN,{...e})]})};function eN(e){let{onAddTag:t,tags:n}=e,r=Se(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(ce,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var MS=$O;var tN=jd();function Xh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=dn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Xe(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(rt,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(rN,{config:o,ctx:s}),d(aN,{config:o}),d(nN,{config:o,setSettings:n}),d(iN,{ctx:s}),d(oN,{ctx:s}),d(sN,{config:o}),d(lN,{config:o}),d(uN,{config:o}),d(cN,{config:o}),d(vN,{config:o}),d(dN,{config:o}),d(yN,{config:o}),d(bN,{}),d(mN,{config:o}),d(gN,{config:o}),d(pN,{config:o}),d(fN,{config:o,ctx:s,...m(u,"translationModeLang")}),d(hN,{config:o,...m(u,"translationModeUrl")})]})})})}function nN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=le(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(ce,{children:[d("div",{class:"nav",children:d(ye,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(MS,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function rN({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=we(me);return d("div",{class:"nav",children:[d(ye,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function aN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function iN({ctx:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function oN({ctx:e}){let{t}=O(),[n,r,a,i,o]=we(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(ye,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function sN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function uN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function lN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return Z(!0)?null:d("div",{class:"nav",children:[d(ye,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Nl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function cN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function dN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function mN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function gN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),[s]=vm();return s.generalRule?d("div",{class:"nav",children:[d(ye,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function pN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function fN({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=we(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:f4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],x=[...v];f?x=Array.from(new Set([...x,b])):x=x.filter(A=>A!==b);let S=C.filter(A=>A!==b),T={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:x,[m]:S}},w=Wv(e,b);return w&&(T.translationLanguagePairs=w),T})};return d($l,{title:r,description:a,languages:tN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function hN({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=we(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,x=C?.[t]||[],S=C?.[c]||[],T=[...x];h==="edit"?T[b]=f:T=Array.from(new Set([...T,f]));let w=S.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:T,[c]:w}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(No,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function bN(){let[e,t]=da(),{t:n}=O();return py()?null:d("div",{class:"nav",children:[d(ye,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function yN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function vN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(ye,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function $h(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=dn(o),{t:u}=O();return s?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${lo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}function e3(e){let{disableTipText:t}=e;return e.disabled&&t?d(Pt,{text:t,enableMobile:!0,tipStyle:{left:"unset",right:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(PS,{...e})}):d(PS,{...e})}function PS(e){return d("label",{for:e.id,children:d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})})}var cu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Cm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function Sm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function xm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var RS=[];function Tm(e,t){let[n,r]=N(RS);return z(()=>{if(n.length||!e.length)return;let i=e.filter(o=>ec(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),RS=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function t3(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var du=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],wm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function n3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=Sd(s.supportedVideoSubtitleSites),c=`
-
${o("feedbackOrMore")} + }]`,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:l=>l.preventDefault(),role:"button",children:i("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:Y+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function OO(){let[e,t,n,r,a]=we(me),{t:i}=O(),o=u=>{let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule,injectedCss:u.target.value||""},t(()=>l),nt(i("saved"))},s=u=>{if(u.preventDefault(),confirm(i("confirmResetConfig"))){let l={...e};l.generalRule||(l.generalRule={}),l.generalRule={...l.generalRule},delete l.generalRule.injectedCss,t(()=>l),nt(i("resetThisSuccess"))}};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{class:"code-editor",rows:10,onChange:o,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Y+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:s,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function NO(){let[e,t,n,r,a]=we(me),{t:i}=O(),o=u=>{u.preventDefault(),confirm(i("confirmResetConfig"))&&(t(()=>Lo()),Ns().catch(l=>{k.error("clean local config error",l)}),ca().catch(l=>{k.error("clean cache error",l)}),nt(i("resetSuccess")))};return d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{class:"code-editor",rows:10,onChange:u=>{try{let l=JSON.parse(u.target.value);t(()=>l),nt(i("saved"))}catch(l){bt(`Invalid JSON ${l.message}`)}},spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:u=>u.preventDefault(),role:"button",children:i("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:Y+"docs/advanced/",children:[i("help"),"?"]}),d("a",{href:"#",onClick:o,class:"text-sm secondary mr-2",children:i("reset")})]})]})}function UO(){let[e,t,n,r,a]=we(me),i=pt(e),o=dn(i),{t:s}=O(),[u,l]=N("");return z(()=>{if(!o)return;let g=(o.localConfig.customAiAssistants||[]).find(f=>f.id==="custom")||{};delete g.id,delete g.name,delete g.custom;let p=il.dump(g||{});l(p||"")},[o]),d("details",{class:"py-2",children:[d("summary",{children:"Edit Custom AI Assistant"}),d("textarea",{class:"code-editor",rows:10,onChange:async m=>{try{let g=m.target.value,p=await Ln();if(!g){p.customAiAssistants=[];let T=p.aiAssistants||[];p.aiAssistants=T.filter(x=>!x.custom),Fr(p),nt(s("saved"));return}let f=il.load(g);f||(f={}),Object.keys(f).length>0&&(f.id||(f.id="custom"),f.name||(f.name="Custom"),f.custom=!0);let y=p.aiAssistants||[],h=p.customAiAssistants||[],v=y.findIndex(T=>T.id===f.id);v<0?y.push(f):y[v]=f;let C=h.findIndex(T=>T.id===f.id);C<0?h.push(f):h[C]=f,p.customAiAssistants=h,p.aiAssistants=y,Fr(p),nt(s("saved"))}catch(g){bt(`Invalid YAML ${g.message}`)}},spellcheck:!1,value:u})]})}function jO(){let[e,t,n,r,a]=we(me),i=pt(e),{t:o}=O(),s=async u=>{await t(l=>({...l,beta:u})),Io()};return d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{s(!i?.beta)},checked:!!i?.beta}),o("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:o("betaDescription",{1:Ou})}})]})}function HO(){let[e,t,n,r,a]=we(me),i=pt(e),{t:o}=O(),s=u=>{t(l=>({...l,debug:u}))};return d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"debug",name:"debug",role:"switch",onChange:()=>{s(!i?.debug)},checked:i?.debug}),o("toggleDebug")]})})}var qO="buildinConfig",zO={},vm=PC(qO,zO);function Dx(e,t=2e3){return n=>{let r,a=0;return i=>{++a==e&&(n(i),a=0),clearTimeout(r),r=setTimeout(()=>a=0,t)}}}var WO=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},VO=({date:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},KO=()=>{let{t:e}=O();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},GO=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},$O=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},YO=({latestVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:ku+"releases",children:e})]})},ZO=()=>{let{t:e}=O();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},JO=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function Zh(){let[e,t]=N(null),{t:n,lang:r}=O(),[a,i]=N(n("calculating")+"..."),[o,s]=N(null),[u,l]=vm(),[c,m]=N(null),[g,p]=N(""),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[T,x]=N(null),[S,w,A,D]=Oe();Xe(S,w);let[M,R]=N(!1),[_,F]=N(!1),L=_r(),U=Qt+"assets/uploads/full-intro-zh-CN-rYaxVV.mp4",I=Qt+"assets/uploads/full-intro-zh-TW-TQk3WC.mp4",q=Qt+"assets/uploads/full-intro-en-NlkG5c.mp4",$={"zh-CN":{poster:Qt+"static/official-static/assets/price/video-poster-zh-Hans.png",src:U},"zh-TW":{poster:Qt+"assets/r2-uploads/video-poster-zh-TW2-qcLrFyk-pK_aF4QG.png",src:I},en:{poster:Qt+"static/official-static/assets/price/video-poster-en.png",src:q}},te=$.en;r==="zh-TW"||r==="zh-HK"||r==="zh-MO"||r==="zh-Hant"?te=$["zh-TW"]:r.startsWith("zh")&&(te=$["zh-CN"]);let Te=!0;je()&&v&&(Te=v.generalRule.showSponsorOnSafari);let pe=async()=>{p("");let X=o;if(o===null)try{let se=await Br({url:bi});se?(s(se),X=se,b(!0)):(p(n("unknownError")),m(null))}catch(se){m(null),p(se.message);return}X!==null?(l(X),m(!1),t(X.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),m(null))};z(()=>{Je().then(X=>{F(X.interfaceLanguage!=="zh-TW");let se=X.buildinConfigUpdatedAt;C(X);let be=new Date(se);t(se),Br({url:bi}).then(he=>{let Le=he.minVersion,We=L;s(he);let Z=he.resaleVersion;if(Z&&(ja(We,Z)?x(!0):x(!1)),ja(We,Le)){let Ee=he.buildinConfigUpdatedAt;new Date(Ee)>be?(m(!0),pe()):m(!1)}else h(!0),m(null)}).catch(he=>{m(null),p(he.message)})}),Y8().then(X=>{i(X)})},[]),z(()=>{Je().then(X=>{C(X),ia(X)})},[S,e]);let H=X=>{w(se=>{let be=!se.alpha;return be?nt(n("enableAlphaSuccess")):nt(n("disableAlphaSuccess")),{...se,alpha:be}})},V=X=>{X.preventDefault(),X.stopPropagation(),R(!0),ca().then(()=>{R(!1),nt(n("cleanSuccess")),i("0 B")}).catch(se=>{R(!1),bt(se.message)})},Q=X=>{w(se=>({...se,cache:X}))},_e=X=>{w(se=>({...se,enabled:X}))},ve="aboutIntro";Te||(ve="aboutIntroWithoutSponsor");let $e=new Date().getFullYear();return v?d(rt,{children:d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:Dx(7)(H),class:`text-lg ${P}-no-select`,children:n("about")})}),d("p",{style:{cursor:"pointer"},class:`mb-2 ${P}-no-select`,onClick:X=>{X.preventDefault(),ur(`${Y}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:["V",L,t2()?"(Beta)":""]}),T===!1&&d(YO,{latestVersion:o?.resaleVersion}),T===!0&&d(ZO,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{_e(!v.enabled)},checked:v.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{Q(!v.cache)},checked:v.cache}),n("allowCacheTranslations")]})}),!J(!0)&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",M?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:V,children:n("cleanCache")})]}),g?d(JO,{handleSyncing:pe,message:g,date:e||""}):y?d($O,{minVersion:o.minVersion}):c===null?d(KO,{}):c===!0?d(GO,{}):f?d(VO,{date:e}):d(WO,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(ve,{1:Y+"docs/thanks/",2:Y+"docs/donate/",3:"https://twitter.com/immersivetran",4:"https://t.me/"+lo,5:`https://${lo}.substack.com`,6:Y+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:Y+"pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:`mailto:support@${et}`,9:`https://www.youtube.com/@${lo}_tw`,10:"https://x.com/immersivetrans"})}}),_&&d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:Qt+"static/official-static/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:Qt+"static/official-static/assets/wechat-contact2.jpg?v=3",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:ku+"issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:Ou,onClick:X=>{X.preventDefault(),ur(Ou)},children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:Y+"docs/CHANGELOG/",onClick:X=>{X.preventDefault(),ur(`${Y}docs/CHANGELOG/#${L.replace(/\./ig,"")}`)},children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:Y,onClick:X=>{X.preventDefault(),ur(Y)},children:n("projectHomepage")})}),Te&&!1,d("li",{children:[n("watchIntroVideo"),d("div",{class:"my-4 flex justify-center",children:d("video",{controls:!0,width:"400",poster:te.poster,src:te.src,style:"border-radius: 38px;"})})]})]}),_&&d("li",{children:[n("subscribeEmail"),d("div",{class:"flex justify-center mt-4",children:d("iframe",{src:`https://${lo}.substack.com/embed`,width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}),r==="zh-CN"&&d("div",{class:"text-center my-6",style:{color:"rgb(117, 117, 117)"},children:["\u7248\u6743\u6240\u6709 \xA9 2023-",$e," ","\u4E0A\u6D77\u4E66\u540C\u6587\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 All Rights Reserved"]})]})}):null}var XO=e=>{let{onRemoveTag:t,tags:n}=e,r=a=>{let i=n[a];t&&t(i,a)};return d("div",{class:"tags-input-container",children:[n.map((a,i)=>d("div",{class:"tag",style:{paddingRight:0},children:[d("span",{children:a}),d("span",{onClick:()=>r(i),class:"delete",children:"\xD7"})]},a)),d(QO,{...e})]})};function QO(e){let{onAddTag:t,tags:n}=e,r=xe(null),[a,i]=N(!1),{t:o}=O(),s=c=>{r.current.innerText="",t&&t(c)};return d(ce,{children:[d("span",{autoFocus:!0,class:"input tag",ref:r,contentEditable:!0,style:{display:a?"inline-block":"none"},onKeyDown:c=>{c.key==="Enter"&&r.current?.textContent&&(c.preventDefault(),s(r.current?.textContent))},onBlur:()=>{i(!1),r.current.innerText=""}}),d("span",{style:{display:a?"none":"inline-block"},onClick:()=>{i(!0),setTimeout(()=>{r.current?.focus()},100)},class:"input tag add",children:o("tagsInput.add")})]})}var Lx=XO;var eN=jd();function Jh(){let e=Oe(),[t,n,r,a,i]=e,o=pt(t),s=dn(o),u=o?.translationMode==="dual",{t:l,setLang:c}=O();if(Xe(t,n),!o||!s)return d("div",{children:"loading"});let m=(g,p)=>{let f=b=>l(`${p}.translation.${b}`);return g?{matchKey:"translationMatches",title:f("title"),description:f("description")}:{matchKey:"dualMatches",title:f("dual.title"),description:f("dual.description")}};return d(rt,{children:d(me.Provider,{value:e,children:d("div",{class:"pb-32",children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("advanced")})}),d(nN,{config:o,ctx:s}),d(rN,{config:o}),d(tN,{config:o,setSettings:n}),d(aN,{ctx:s}),d(iN,{ctx:s}),d(oN,{config:o}),d(uN,{config:o}),d(sN,{config:o}),d(lN,{config:o}),d(yN,{config:o}),d(cN,{config:o}),d(bN,{config:o}),d(hN,{}),d(dN,{config:o}),d(mN,{config:o}),d(gN,{config:o}),d(pN,{config:o,ctx:s,...m(u,"translationModeLang")}),d(fN,{config:o,...m(u,"translationModeUrl")})]})})})}function tN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=le(({tag:i,index:o,action:s})=>{n(u=>{let l=u.generalRule?.glossaries||t.generalRule.glossaries,c=l,m=l.find(g=>g.k===i);return s==="add"&&!m&&(c=[...l,{k:i}]),s==="remove"&&(c=l.filter((g,p)=>p!==o)),{...u,generalRule:{...u.generalRule,glossaries:c}}})},[t]);return t?d(ce,{children:[d("div",{class:"nav",children:d(ye,{title:r("neverTranslateText.title"),description:r("neverTranslateText.description")})}),d(Lx,{tags:t.generalRule.glossaries.map(i=>i.k),onAddTag:i=>a({tag:i,action:"add"}),onRemoveTag:(i,o)=>a({tag:i,index:o,action:"remove"})})]}):null}function nN({config:e,ctx:t}){let{t:n}=O(),[r,a,i,o,s]=we(me);return d("div",{class:"nav",children:[d(ye,{title:n("paragraphMinTextCountField"),description:n("paragraphMinTextCountDesc")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:u=>{a(l=>{let c=l.generalRule||{},m=parseInt(u.target.value);if(m===0)c={...c,paragraphMinTextCount:1,paragraphMinWordCount:1};else{let g=2,p=Math.floor(m/2);p>2&&(g=p),c={...c,paragraphMinTextCount:m,paragraphMinWordCount:g}}return{...l,generalRule:c}})},name:"count",value:e.generalRule.paragraphMinTextCount,placeholder:"Text Length",required:!0})})]})}function rN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>({...l,immediateTranslationTextCount:parseInt(u)}))},name:"count",value:e.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})}function aN({ctx:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("enableLineBreak"),description:t("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:u?280:0}}})},checked:e.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]})}function iN({ctx:e}){let{t}=O(),[n,r,a,i,o]=we(me);return e.rule.lineBreakMaxTextCount<=0?null:d("div",{class:"nav",children:[d(ye,{title:t("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:s=>{let u=s.target.value;r(l=>{let c=l.generalRule||{};return{...l,generalRule:{...c,lineBreakMaxTextCount:parseInt(u)}}})},name:"count",value:e.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]})}function oN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate to the bottom of the page"),description:t("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationStartMode:u?"immediate":"dynamic"}))},checked:e.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]})}function sN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("translationPosition"),description:t("translationPositionDescription")}),d("label",{for:"translationPosition",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationPosition:u?"before":"after"}))},checked:e.translationPosition==="before",id:"translationPosition",name:"switch",role:"switch"})})]})}function uN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return J(!0)?null:d("div",{class:"nav",children:[d(ye,{title:t("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:s=>{let u=s.target.checked;Nl({...e,isShowContextMenu:u}),r(l=>({...l,isShowContextMenu:u}))},checked:e.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]})}function lN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("translate all areas of the page"),description:t("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,translationArea:u?"body":"main"}))},checked:e.translationArea==="body"})})]})}function cN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("isTranslateTitle"),description:t("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{...l.generalRule,isTranslateTitle:u}}))},checked:n.generalRule?.isTranslateTitle})})]})}function dN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("loadingThemeTitle"),description:t("loadingThemeDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,loadingTheme:s.target.value}))},children:[d("option",{value:"spinner",selected:e.loadingTheme==="spinner",children:t("loadingTheme.spinner")}),d("option",{value:"text",selected:e.loadingTheme==="text",children:t("loadingTheme.text")}),d("option",{value:"none",selected:e.loadingTheme==="none",children:t("loadingTheme.none")})]})]})}function mN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me),[s]=vm();return s.generalRule?d("div",{class:"nav",children:[d(ye,{title:t("translationLineBreakSettingTitle"),description:t("translationLineBreakSettingDescription",{count:s.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:u=>{r(l=>{let c=l.generalRule||{};return parseInt(u.target.value)===0?c={...c,blockMinTextCount:0,blockMinWordCount:0}:c={...c,blockMinTextCount:s.generalRule.blockMinTextCount,blockMinWordCount:s.generalRule.blockMinWordCount},{...l,generalRule:c}})},children:[d("option",{value:32,selected:e.generalRule.blockMinTextCount>0,children:t("smartLineBreak")}),d("option",{value:0,selected:e.generalRule.blockMinTextCount===0,children:t("alwaysLineBreak")})]})]}):null}function gN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("tempTranslateDomainTitle"),description:t("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:s=>{r(u=>({...u,tempTranslateDomainMinutes:parseInt(s.target.value)}))},children:[d("option",{value:0,selected:e.tempTranslateDomainMinutes===0,children:t("disabled")}),d("option",{value:5,selected:e.tempTranslateDomainMinutes===5,children:t("xMinutes",{count:5})}),d("option",{value:10,selected:e.tempTranslateDomainMinutes===10,children:t("xMinutes",{count:10})}),d("option",{value:15,selected:e.tempTranslateDomainMinutes===15,children:t("xMinutes",{count:15})}),d("option",{value:30,selected:e.tempTranslateDomainMinutes===30,children:t("xMinutes",{count:30})}),d("option",{value:60,selected:e.tempTranslateDomainMinutes===60,children:t("xMinutes",{count:60})})]})]})}function pN({ctx:e,config:t,matchKey:n,title:r,description:a}){let{t:i}=O(),[o,s,u,l,c]=we(me),m=n==="dualMatches"?"translationMatches":"dualMatches",g=ne(()=>n=="dualMatches"?t?.translationModeLanguagePattern?.[n]||[]:p4(e),[t,e,n]),p=(f,b)=>{s(y=>{let h=y.translationModeLanguagePattern,v=h?.[n]||[],C=h?.[m]||[],T=[...v];f?T=Array.from(new Set([...T,b])):T=T.filter(A=>A!==b);let x=C.filter(A=>A!==b),S={...y,isChangedAlwaysTranslatedUrls:!0,translationModeLanguagePattern:{...y.translationModeLanguagePattern,[n]:T,[m]:x}},w=W5(e,b);return w&&(S.translationLanguagePairs=w),S})};return d(Ql,{title:r,description:a,languages:eN,selectLanguages:g,interfaceLanguage:t?.interfaceLanguage,onChange:p})}function fN({config:e,matchKey:t,title:n,description:r}){let{t:a}=O(),[i,o,s,u,l]=we(me),c=t==="dualMatches"?"translationMatches":"dualMatches",m=(f,b,y,h)=>{o(v=>{let C=v.translationModeUrlPattern,T=C?.[t]||[],x=C?.[c]||[],S=[...T];h==="edit"?S[b]=f:S=Array.from(new Set([...S,f]));let w=x.filter(A=>A!==f);return{...v,isChangedAlwaysTranslatedUrls:!0,translationModeUrlPattern:{...v.translationModeUrlPattern,[t]:S,[c]:w}}})},g=ne(()=>e?.translationModeUrlPattern[t]||[],[e,t]);return d(No,{title:n,description:r,urls:g,onDeleteUrl:(f,b)=>{o(y=>{let h=g.filter(v=>!f.find(C=>C==v));return{...y,translationModeUrlPattern:{...y.translationModeUrlPattern,[b]:h}}})},onSubmitAddUrl:m,type:t})}function hN(){let[e,t]=da(),{t:n}=O();return gy()?null:d("div",{class:"nav",children:[d(ye,{title:n("confirmSupportMouse"),description:n("confirmSupportMouseDescription")}),d("label",{for:"confirmSupportMouse",children:d("input",{type:"checkbox",onChange:r=>{let a=r.target.checked;t({...e,confirmSupportMouse:a})},checked:e?.confirmSupportMouse===!0,id:"confirmSupportMouse",name:"switch",role:"switch"})})]})}function bN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return d("div",{class:"nav",children:[d(ye,{title:t("sameLangCheck"),description:t("sameLangCheckDescription")}),d("label",{for:"sameLangCheck",children:d("input",{type:"checkbox",id:"sameLangCheck",name:"sameLangCheck",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,sameLangCheck:u}))},checked:n.sameLangCheck})})]})}function yN({config:e}){let{t}=O(),[n,r,a,i,o]=we(me);return e.translationArea=="body"?null:d("div",{class:"nav",children:[d(ye,{title:t("navHeadEnableTranslate"),description:t("navHeadEnableTranslateDescription")}),d("label",{for:"navHeadEnableTranslate",children:d("input",{type:"checkbox",id:"navHeadEnableTranslate",name:"navHeadEnableTranslate",role:"switch",onChange:s=>{let u=s.target.checked;r(l=>({...l,generalRule:{navHeadEnableTranslate:u}}))},checked:n.generalRule?.navHeadEnableTranslate})})]})}function Xh(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=dn(o),{t:u}=O();return s?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("contact")})}),d("div",{children:d("div",{children:u("contact.description",{email:`support@${et}`})})}),d("iframe",{class:"letterbird-embed contact-embed",src:`https://letterbird.co/${lo}?origin=http://localhost:8000&hideheader=1`,width:"100%",height:"452px"})]})}):d("div",{children:"loading"})}function Qh(e){let{disableTipText:t}=e;return e.disabled&&t?d(Pt,{text:t,enableMobile:!0,tipStyle:{left:"unset",right:-40,transform:"unset",fontSize:13,textAlign:"center",width:200},multiple:!0,children:d(Mx,{...e})}):d(Mx,{...e})}function Mx(e){return d("label",{for:e.id,children:d("input",{type:"checkbox",id:e.id,name:e.id,role:"switch",disabled:e.disabled,onChange:t=>{let n=t.target.checked;e.onChange?.(n)},checked:e.checked})})}var cu=[{key:"50",label:"50%",selectIcon:!0},{key:"70",label:"70%",selectIcon:!0},{key:"80",label:"80%",selectIcon:!0},{key:"90",label:"90%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0},{key:"110",label:"110%",selectIcon:!0},{key:"120",label:"120%",selectIcon:!0},{key:"130",label:"130%",selectIcon:!0},{key:"150",label:"150%",selectIcon:!0}],Cm=[{key:"0",label:"0%",selectIcon:!0},{key:"25",label:"25%",selectIcon:!0},{key:"50",label:"50%",selectIcon:!0},{key:"75",label:"75%",selectIcon:!0},{key:"100",label:"100%",selectIcon:!0}];function xm(e){return[{key:"none",label:e("subtitle.quickButton.textShadowType.none"),selectIcon:!0},{key:"shadow",label:e("subtitle.quickButton.textShadowType.shadow"),selectIcon:!0},{key:"raised",label:e("subtitle.quickButton.textShadowType.raised"),selectIcon:!0},{key:"depressed",label:e("subtitle.quickButton.textShadowType.depressed"),selectIcon:!0},{key:"outline",label:e("subtitle.quickButton.textShadowType.outline"),selectIcon:!0}]}function Tm(e){return[{key:"#FFFFFF",label:e("subtitle.quickButton.white"),selectIcon:!0},{key:"#FFFF00",label:e("subtitle.quickButton.yellow"),selectIcon:!0},{key:"#ffa500",label:e("subtitle.quickButton.orange"),selectIcon:!0},{key:"#00FF00",label:e("subtitle.quickButton.green"),selectIcon:!0},{key:"#00FFFF",label:e("subtitle.quickButton.cyan"),selectIcon:!0},{key:"#0000FF",label:e("subtitle.quickButton.blue"),selectIcon:!0},{key:"#FF00FF",label:e("subtitle.quickButton.magenta"),selectIcon:!0},{key:"#FF0000",label:e("subtitle.quickButton.red"),selectIcon:!0},{key:"#080808",label:e("subtitle.quickButton.black"),selectIcon:!0}]}var Px=[];function Sm(e,t){let[n,r]=N(Px);return z(()=>{if(n.length||!e.length)return;let i=e.filter(o=>ec(o,t("sampleTargetText").charAt(0)+"at"));i.length&&i.unshift("none"),r(i),Px=i},[n,e]),ne(()=>n.map(i=>{let o=t(`font.${i}`);return o.startsWith("font.")&&(o=i),{key:i,label:o,selectIcon:!0}}),[n])}function e3(e,t){return[{key:`${e}FontFamily`,label:t(`subtitle.quickButton.${e}FontFamily`),rightIcon:!0},{key:`${e}FontSize`,label:t(`subtitle.quickButton.${e}FontSize`),rightIcon:!0},{key:`${e}TextColor`,label:t(`subtitle.quickButton.${e}TextColor`),rightIcon:!0},{key:`${e}FontWeight`,label:t(`subtitle.quickButton.${e}FontWeight`),rightIcon:!0}]}var du=[{key:"400",label:"400",selectIcon:!0},{key:"700",label:"700",selectIcon:!0},{key:"900",label:"900",selectIcon:!0}],wm=["translationPosition","sourceFontSize","translationFontSize","sourceTextColor","translationTextColor","backgroundColor","backgroundOpacity","textShadowType","sourceFontFamily","translationFontFamily","sourceFontWeight","translationFontWeight"];function t3(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedVideoSubtitleSites),c=``,m=[...l.map((g,p)=>` ${g.name} ${p!==l.length-1?", ":""} - `),c].join("");return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ma,{image:an("images/dual_subtitle_intro.png"),nightImage:an("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(SN,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(eo,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(CN,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(xN,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function CN(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function SN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(ce,{children:[d("div",{class:"youtube-header",children:[d(EN,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(ye,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(e3,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:Gg})}),d(e3,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("subtitle.ytAIAsrProTooltip",{1:Gg}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function xN(e){let{t}=O(),[n,r]=N(!1),a=wN(e.subtitleRule,t,n),i=le(async()=>{let s=(await Us())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return wm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(ce,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(ye,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(TN,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function TN(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(ye,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var wN=(e,t,n)=>{let r=xm(t),a=Tm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:cu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:cu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:du,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:du,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Cm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:Sm(t),selectKey:e.textShadowType}]};function EN(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var IS=Xu({presets:[d0(),g0()]});var AN=1e5;async function ci(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=kN(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:m,isModifyImage:g,skipEditableCheck:p}=r,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},b=!1,y=null;async function h(w){let{container:A,onFrame:D,onIgnoreElement:M,id:I,isLongHtml:R}=w,B=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,F=>{let q=U(F);return q==NodeFilter.FILTER_ACCEPT?Rt.mark(F,I,p):BN(F,q,r)&&C(),q}),L=A;if(U(L)===NodeFilter.FILTER_REJECT)return;for(Rt.mark(L,I,p);L;){if(i?.interruptEffectDOM)return;let F=Date.now()-t;if(F>50&&(k.debug("taskTime",F),t=Date.now(),await ut(0)),u&&u.length>0){let{currentNode:q,isMatchedSelection:Y}=v(B,L,u);if(q)L=q;else break;if(!Y)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let q=L;if(q.nodeName==="IFRAME"){D&&D(q),C(),r3(f,!0),L=B.nextNode();continue}q.nodeType===Node.ELEMENT_NODE&&(s&&a3(q,s),m&&o3(q,m));let Y=ka(q,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},q.immersiveTranslateComputedStyle||null);if(Y&&r.paragraphFirstLetterFontSize>0&&q.childNodes.length==1&&q.childNodes[0].nodeType===Node.TEXT_NODE&&q.innerText?.length==1&&q?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&(Y=!1),qt(q,o)&&!Y){x(q);let pe=null;for(;!(pe=B.nextSibling())&&B.parentNode(););L=pe;continue}let te=Mo(q);if(!FS(f,q)||Y){C(q);let pe=Y?q:q.parentElement;pe&&pe.childNodes.length>0&&S(f,pe,pe.immersiveTranslateComputedStyle||null)}te&&q.shadowRoot?.mode==="open"&&(Y?D?.(q.shadowRoot):h({...w,container:q.shadowRoot})),q.nodeType===Node.ELEMENT_NODE&&qt(q,r.likePreSelectors)&&l&&(R||PN(q))}else if(L.nodeType===Node.TEXT_NODE)x(L);else throw new Error("should not be here");L=B.nextNode(),f.commonAncestorContainer&&L&&L.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(L)}function U(F){if(F.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Ro(F)){if(m){let xe=Object.keys(m);if(xe.length>0&&qt(F,xe))for(let H of xe){let W=m[H];if(F.matches(H)){let $=m[H],Re=Object.keys($);for(let ve of Re){let Ye=$[ve];F.getAttribute(ve)!==Ye&&(Ye===null?F.removeAttribute(ve):F.setAttribute(ve,Ye))}break}}}if(!w.force&&Rt.isMarked(F,I)||qv(F,I)||Em(F,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||F.nodeName==="IFRAME"&&!Hi(F))return NodeFilter.FILTER_REJECT;if(F.nodeType===Node.ELEMENT_NODE){let xe=window.getComputedStyle(F);if(F.immersiveTranslateComputedStyle=xe,i3(xe))return M&&M(F),NodeFilter.FILTER_REJECT;let pe=ka(F,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},xe||null);if(F.isBlock=pe,qt(F,o)&&pe)return NodeFilter.FILTER_REJECT}let q=F.getBoundingClientRect(),{width:Y,height:te}=q;return F.nodeName==="IMG"&&(Y>48&&te>48?F.immersiveTranslateComputedStyle={display:"block"}:Y>0&&te>0&&g!==!1&&(F.setAttribute("width",Y),F.setAttribute("height",te))),!F.childNodes||F.childNodes&&F.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(Y>0&&Y<4||te>0&&te<4)&&(F.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(F.nodeType===Node.TEXT_NODE){let q=F.textContent?.trim();if(!q)return/^( )+$/.test(F.parentElement?.innerHTML?.trim()||"")||f.isPreWhitespace||/^\u00A0+$/.test(F.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let Y=F.parentNode;if(Y.getBoundingClientRect){let{width:te,height:xe}=Y.getBoundingClientRect();if(te>0&&te<4||xe>0&&xe<4)return NodeFilter.FILTER_REJECT}return c>0&&q.length>=c&&RN(F,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(w){k.error(w)}f&&f.commonAncestorContainer&&f.flatNodes.length>0&&C();function v(w,A,D){let M=A.immersiveTranslateComputedStyle||null;if(y){if(!y.contains(A))if(b=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(tc(A,D))b=!0,y=A,C(),S(f,y,M);else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b};else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(tc(A,D))b=!0,y=A,C(),S(f,y,M);else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b};else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b};return{currentNode:A,isMatchedSelection:!0}}function C(w){let A=f.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let R=f.flatNodes[M]?.textContent?.trim()||"";if(!R||new RegExp(r.skipTrailTextRegex).test(R)){f.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;f.commonAncestorContainer=_N(w,r);let M=[...f.flatNodes],I=f.flatNodes.filter(R=>w.parentNode?.contains(R));I.length>0&&M.length!=I.length&&(f.flatNodes=I,f.flatNodes.original=M)}let D=MN(f,a,r);D&&n&&n(D),r3(f)}function x(w){if(!FS(f,w)){C(),r3(f);let A=w.parentNode;A&&S(f,A,A.computedStyle)}f.flatNodes.push(w)}function S(w,A,D){w.commonAncestorContainer=A;let M=T(D);w.isPreWhitespace=M}function T(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function FS(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mo(t));let r=LN(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function kN(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function DN(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function a3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function LN(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mo(t)):!1}function MN(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=_d(r,a,n);o||(o=a);let s=[];for(let p of r){let f=DN(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>AN){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:Qv(o)}}else return null}function r3(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function i3(e){return e.display==="none"}var Rt={_marked_key:b2,isMarked(e,t){return y4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return oC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)Rt.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mo(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function PN(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=n,e.immersive=!0,e.formatHtml=!0)}function RN(e,t,n){let r=e.textContent||"",a=Kv(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=nC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function _S(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let l=t[u],c=Object.keys(l),m=e.querySelector(u);if(m)for(let g of c){let p=l[g];if(g==="translate"&&p==="no"){let b=m.innerText||m.textContent||"";if(!b.trim()||FN(m,a,i,o)||!aC(b,n,r))continue}m.getAttribute(g)!==p&&(p===null?m.removeAttribute(g):m.setAttribute(g,p))}}}function o3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Em(e,t){return IN(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function IN(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Fd(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function tc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function FN(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Em(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Od(o,t,n))return!0}}return!1}function BN(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&ka(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function _N(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&ka(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function OS(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new I0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=ON(u.content,t),n&&(r=US(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Jv(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function NS(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function ON(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=NN(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,m=u?.textContent?.trim().length||0;c>m&&(u=l)}),u&&i.push(u)}),!!i.length)return _d(i,document.body,t)}function NN(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function US(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes(Yc)||s3(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var nc="";async function s3(e){let t=document.title;if(!t||t.includes(Yc))return;nc!==t&&(nc=t);let n=await ze({text:t,pageLangs:[Dt(),"en"]});if(!Hs(e,n))try{let r=await dr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=nc,document.title=r.text+Yc+nc)}catch(r){throw r}}function HS(e){e.rule.isTranslateTitle&&(document.title=nc)}function mu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function Am(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?p4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + `),c].join("");return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o("subtitle")})}),d(ma,{image:an("images/dual_subtitle_intro.png"),nightImage:an("images/dual_subtitle_intro_night.png"),title:o("intro.subtitleTitle"),description:o("intro.subtitleDescription")+m}),d(CN,{config:s,setSettings:n,isPro:u.isPro}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.autoEnableSubtitle"),description:o("subtitle.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.autoEnableSubtitle",name:"subtitle.autoEnableSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],autoEnableSubtitle:p}}}))},checked:s.generalRule.subtitleRule.autoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.humanSubtitlesPreferred"),description:o("subtitle.humanSubtitlesPreferredDescription")}),d("label",{for:"subtitle.humanSubtitlesPreferred",children:d("input",{type:"checkbox",id:"subtitle.humanSubtitlesPreferred",name:"subtitle.humanSubtitlesPreferred",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],humanPreferred:p}}}))},checked:s.generalRule.subtitleRule.humanPreferred})})]}),d(eo,{title:o("youtubeService"),config:s,ctx:u,description:o("videoSubtitleTranslationDescription"),serviceType:"subtitleTranslateService"}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.showQuickButton"),description:o("subtitle.showQuickButtonDescription")}),d("label",{for:"subtitle.showQuickButton",children:d("input",{type:"checkbox",id:"subtitle.showQuickButton",name:"subtitle.showQuickButton",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],showQuickButton:p}}}))},checked:s.generalRule.subtitleRule.showQuickButton})})]}),d(vN,{translationMode:s.generalRule.subtitleRule.translationMode,setSettings:n}),d(xN,{subtitleRule:s.generalRule.subtitleRule,setSettings:n}),d("div",{class:"nav",children:[d(ye,{title:o("subtitle.disabledSubtitle"),description:o("subtitle.disabledSubtitleDescription")}),d("label",{for:"subtitle.disabledSubtitle",children:d("input",{type:"checkbox",id:"subtitle.disabledSubtitle",name:"subtitle.disabledSubtitle",role:"switch",onChange:g=>{let p=g.target.checked;n(f=>({...f,generalRule:{...f.generalRule,"subtitleRule.add":{...f.generalRule?.["subtitleRule.add"],disabled:p}}}))},checked:s.generalRule.subtitleRule.disabled})})]}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.subtitleDescription")+"
"+m}})]})})}function vN(e){let{t}=O(),n=["inherit","dual","translation"];return d("div",{class:"nav",children:[d(ye,{title:t("subtitle.transitionMode"),description:t("subtitle.transitionModeDescription")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),e.setSettings(a=>({...a,generalRule:{...a.generalRule,"subtitleRule.add":{...a.generalRule?.["subtitleRule.add"],translationMode:r.target.value}}}))},children:n.map(r=>d("option",{value:r,selected:e.translationMode==r,children:t(`transitionMode.${r}`)},r))})]})}function CN(e){let{config:t,setSettings:n}=e,{t:r}=O(),a=!!t.generalRule.ytAsrConfig?.aiEnable&&e.isPro;return d(ce,{children:[d("div",{class:"youtube-header",children:[d(wN,{}),d("strong",{class:"text-lg ml-3",children:r("subtitle.youtube.groupTitle")})]}),d("div",{class:"youtube-container",children:[d("div",{class:"nav",children:[d(ye,{title:r("subtitle.youtube.autoEnableSubtitle"),description:r("subtitle.youtube.autoEnableSubtitleDescription")}),d("label",{for:"subtitle.youtube.autoEnableSubtitle",children:d("input",{type:"checkbox",id:"subtitle.youtube.autoEnableSubtitle",name:"subtitle.youtube.autoEnableSubtitle",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],youtubeAutoEnableSubtitle:o}}}))},checked:t.generalRule.subtitleRule.youtubeAutoEnableSubtitle})})]}),d("div",{class:"nav",children:[d(ye,{title:r("subtitle.preTranslation"),description:r("subtitle.preTranslationDescription")}),d("label",{for:"subtitle.preTranslation",children:d("input",{type:"checkbox",id:"subtitle.preTranslation",name:"subtitle.preTranslation",role:"switch",onChange:i=>{let o=i.target.checked;n(s=>({...s,generalRule:{...s.generalRule,"subtitleRule.add":{...s.generalRule?.["subtitleRule.add"],preTranslation:o}}}))},checked:t.generalRule.subtitleRule.preTranslation})})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAsr"),description:r("subtitle.ytAsrDescription")}),d(Qh,{id:"subtitle.ytAsr",disabled:!t.generalRule.subtitleRule.preTranslation,disableTipText:r("subtitle.ytAsrDisableTooltip"),onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&a&&(s.aiEnable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,enable:i}}}})},checked:!!t.generalRule.ytAsrConfig?.enable&&!a})]}),d("div",{class:"nav",style:{marginLeft:24,marginTop:-16},children:[d(ye,{title:r("subtitle.ytAIAsr"),description:r("subtitle.ytAIAsrDescription",{1:Vg})}),d(Qh,{id:"subtitle.ytAIAsr",disableTipText:e.isPro?r("subtitle.ytAsrDisableTooltip"):r("subtitle.ytAIAsrProTooltip",{1:Vg}),disabled:!t.generalRule.subtitleRule.preTranslation||!e.isPro,onChange:i=>{n(o=>{let s={...o.generalRule?.["ytAsrConfig.add"]};return i&&t.generalRule.ytAsrConfig?.enable&&(s.enable=!1),{...o,generalRule:{...o.generalRule,"ytAsrConfig.add":{...s,aiEnable:i}}}})},checked:a})]})]})]})}function xN(e){let{t}=O(),[n,r]=N(!1),a=SN(e.subtitleRule,t,n),i=le(async()=>{let s=(await Us())?.generalRule?.subtitleRule;e.setSettings(u=>{let l={...u.generalRule?.["subtitleRule.add"]};return wm.forEach(c=>{l[c]&&(s[c]?l[c]=s[c]:delete l[c])}),{...u,generalRule:{...u.generalRule,"subtitleRule.add":l}}})},[e.setSettings]);return d(ce,{children:d("details",{class:"pt-2 border-none",onToggle:o=>{r(o.target?.open)},children:[d("summary",{class:"flex items-center",children:d(ye,{title:t("subtitle.stylesSetting"),description:t("subtitle.stylesSettingDescription")})}),d("div",{style:{padding:"24px 0 0 24px"},children:[a.map(o=>d(TN,{...o,onClick:s=>{s.preventDefault(),e.setSettings(u=>({...u,generalRule:{...u.generalRule,"subtitleRule.add":{...u.generalRule?.["subtitleRule.add"],[o.key]:s.target.value}}}))}})),d("div",{class:"nav",style:{padding:"10px 0",justifyContent:"flex-end"},children:d("a",{onClick:i,children:t("subtitle.resetStyle")})})]})]})})}function TN(e){let{label:t,items:n,selectKey:r}=e;return d("div",{class:"nav",style:{padding:"10px 0"},children:[d(ye,{title:t}),d("select",{class:"select",onChange:e.onClick,children:n.map(a=>d("option",{value:a.key,selected:a.key==r,children:a.label},a.key))})]})}var SN=(e,t,n)=>{let r=Tm(t),a=Sm(n?e.fonts:[],t);return[{key:"translationPosition",label:t("subtitle.quickButton.translationPosition"),items:[{key:"top",label:t("subtitle.quickButton.translationPositionTop")},{key:"bottom",label:t("subtitle.quickButton.translationPositionBottom")}],selectKey:e.translationPosition},{key:"sourceFontFamily",label:t("subtitle.quickButton.sourceFontFamily"),items:a,selectKey:e.sourceFontFamily},{key:"translationFontFamily",label:t("subtitle.quickButton.translationFontFamily"),items:a,selectKey:e.translationFontFamily},{key:"sourceFontSize",label:t("subtitle.quickButton.sourceFontSize"),items:cu,selectKey:e.sourceFontSize},{key:"translationFontSize",label:t("subtitle.quickButton.translationFontSize"),items:cu,selectKey:e.translationFontSize},{key:"sourceTextColor",label:t("subtitle.quickButton.sourceTextColor"),items:r,selectKey:e.sourceTextColor},{key:"translationTextColor",label:t("subtitle.quickButton.translationTextColor"),items:r,selectKey:e.translationTextColor},{key:"sourceFontWeight",label:t("subtitle.quickButton.sourceFontWeight"),items:du,selectKey:e.sourceFontWeight},{key:"translationFontWeight",label:t("subtitle.quickButton.translationFontWeight"),items:du,selectKey:e.translationFontWeight},{key:"backgroundColor",label:t("subtitle.quickButton.backgroundColor"),items:r,selectKey:e.backgroundColor},{key:"backgroundOpacity",label:t("subtitle.quickButton.backgroundOpacity"),items:Cm,selectKey:e.backgroundOpacity},{key:"textShadowType",label:t("subtitle.quickButton.textShadowType"),items:xm(t),selectKey:e.textShadowType}]};function wN(){return d("svg",{width:"32",height:"23",viewBox:"0 0 32 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M13.3333 16.3333V6.99998L21.3333 11.6826L13.3333 16.3333ZM31.68 5.22265C31.68 5.22265 31.3667 3.00265 30.408 2.02398C29.1907 0.73998 27.8267 0.734646 27.2013 0.659979C22.724 0.333313 16.0067 0.333313 16.0067 0.333313H15.9933C15.9933 0.333313 9.276 0.333313 4.79867 0.659979C4.172 0.734646 2.80933 0.73998 1.59067 2.02398C0.632 3.00265 0.32 5.22398 0.32 5.22398C0.32 5.22398 0 7.82931 0 10.436V12.8826C0 15.4906 0.32 18.0986 0.32 18.0986C0.32 18.0986 0.632 20.3186 1.59067 21.2973C2.80933 22.5813 4.408 22.54 5.12 22.6746C7.68 22.924 16 23 16 23C16 23 22.724 22.9893 27.2013 22.664C27.828 22.588 29.1907 22.5826 30.408 21.2986C31.368 20.32 31.68 18.0986 31.68 18.0986C31.68 18.0986 32 15.492 32 12.884V10.4386C32 7.83065 31.68 5.22265 31.68 5.22265Z",fill:"#FF0000"})})}var _x=Xu({presets:[d0(),g0()]});var EN=1e5;async function ci(e){let t=Date.now(),{onParagraph:n,filterRule:r,id:a,engineCtx:i}=e;r=AN(r);let{stayOriginalSelectors:o,globalStyles:s,selectors:u,isTransformPreTagNewLine:l,lineBreakMaxTextCount:c,globalAttributes:m,isModifyImage:g,skipEditableCheck:p}=r,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},b=!1,y=null;async function h(w){let{container:A,onFrame:D,onIgnoreElement:M,id:R,isLongHtml:_}=w,F=document.createTreeWalker(A,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,I=>{let q=U(I);return q==NodeFilter.FILTER_ACCEPT?_t.mark(I,R,p):IN(I,q,r)&&C(),q}),L=A;if(U(L)===NodeFilter.FILTER_REJECT)return;for(_t.mark(L,R,p);L;){if(i?.interruptEffectDOM)return;let I=Date.now()-t;if(I>50&&(k.debug("taskTime",I),t=Date.now(),await ut(0)),u&&u.length>0){let{currentNode:q,isMatchedSelection:$}=v(F,L,u);if(q)L=q;else break;if(!$)continue}if(L.nodeType===Node.ELEMENT_NODE||L.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let q=L;if(q.nodeName==="IFRAME"){D&&D(q),C(),n3(f,!0),L=F.nextNode();continue}q.nodeType===Node.ELEMENT_NODE&&(s&&r3(q,s),m&&i3(q,m));let $=ka(q,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},q.immersiveTranslateComputedStyle||null);if($&&r.paragraphFirstLetterFontSize>0&&q.childNodes.length==1&&q.childNodes[0].nodeType===Node.TEXT_NODE&&q.innerText?.length==1&&q?.immersiveTranslateComputedStyle?.fontSize>=r.paragraphFirstLetterFontSize+"px"&&($=!1),qt(q,o)&&!$){T(q);let pe=null;for(;!(pe=F.nextSibling())&&F.parentNode(););L=pe;continue}let te=Mo(q);if(!Rx(f,q)||$){C(q);let pe=$?q:q.parentElement;pe&&pe.childNodes.length>0&&x(f,pe,pe.immersiveTranslateComputedStyle||null)}te&&q.shadowRoot?.mode==="open"&&($?D?.(q.shadowRoot):h({...w,container:q.shadowRoot})),q.nodeType===Node.ELEMENT_NODE&&qt(q,r.likePreSelectors)&&l&&(_||MN(q))}else if(L.nodeType===Node.TEXT_NODE)T(L);else throw new Error("should not be here");L=F.nextNode(),f.commonAncestorContainer&&L&&L.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&L&&L.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(L)}function U(I){if(I.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(_o(I)){if(m){let Te=Object.keys(m);if(Te.length>0&&qt(I,Te))for(let H of Te){let V=m[H];if(I.matches(H)){let Q=m[H],_e=Object.keys(Q);for(let ve of _e){let $e=Q[ve];I.getAttribute(ve)!==$e&&($e===null?I.removeAttribute(ve):I.setAttribute(ve,$e))}break}}}if(!w.force&&_t.isMarked(I,R)||H5(I,R)||Em(I,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:o})||I.nodeName==="IFRAME"&&!Hi(I))return NodeFilter.FILTER_REJECT;if(I.nodeType===Node.ELEMENT_NODE){let Te=window.getComputedStyle(I);if(I.immersiveTranslateComputedStyle=Te,a3(Te))return M&&M(I),NodeFilter.FILTER_REJECT;let pe=ka(I,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},Te||null);if(I.isBlock=pe,qt(I,o)&&pe)return NodeFilter.FILTER_REJECT}let q=I.getBoundingClientRect(),{width:$,height:te}=q;return I.nodeName==="IMG"&&($>48&&te>48?I.immersiveTranslateComputedStyle={display:"block"}:$>0&&te>0&&g!==!1&&(I.setAttribute("width",$),I.setAttribute("height",te))),!I.childNodes||I.childNodes&&I.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&($>0&&$<4||te>0&&te<4)&&(I.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(I.nodeType===Node.TEXT_NODE){let q=I.textContent?.trim();if(!q)return/^( )+$/.test(I.parentElement?.innerHTML?.trim()||"")||f.isPreWhitespace||/^\u00A0+$/.test(I.textContent||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let $=I.parentNode;if($.getBoundingClientRect){let{width:te,height:Te}=$.getBoundingClientRect();if(te>0&&te<4||Te>0&&Te<4)return NodeFilter.FILTER_REJECT}return c>0&&q.length>=c&&PN(I,c,r.lineBreakRegexStr),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}try{await h(e)}catch(w){k.error(w)}f&&f.commonAncestorContainer&&f.flatNodes.length>0&&C();function v(w,A,D){let M=A.immersiveTranslateComputedStyle||null;if(y){if(!y.contains(A))if(b=!1,A&&A.nodeType===Node.ELEMENT_NODE)if(tc(A,D))b=!0,y=A,C(),x(f,y,M);else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b};else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b}}else if(A&&A.nodeType===Node.ELEMENT_NODE)if(tc(A,D))b=!0,y=A,C(),x(f,y,M);else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b};else return b=!1,A=w.nextNode(),{currentNode:A,isMatchedSelection:b};return{currentNode:A,isMatchedSelection:!0}}function C(w){let A=f.flatNodes.length-1;if(r.skipTrailTextRegex&&A>0)for(let M=A;M>=0;M--){let _=f.flatNodes[M]?.textContent?.trim()||"";if(!_||new RegExp(r.skipTrailTextRegex).test(_)){f.flatNodes.splice(M,1);continue}break}if(w&&w.nodeName==="BR"){if(w.hasAttribute("data-imt")&&i?.translateState=="translation")return;f.commonAncestorContainer=FN(w,r);let M=[...f.flatNodes],R=f.flatNodes.filter(_=>w.parentNode?.contains(_));R.length>0&&M.length!=R.length&&(f.flatNodes=R,f.flatNodes.original=M)}let D=LN(f,a,r);D&&n&&n(D),n3(f)}function T(w){if(!Rx(f,w)){C(),n3(f);let A=w.parentNode;A&&x(f,A,A.computedStyle)}f.flatNodes.push(w)}function x(w,A,D){w.commonAncestorContainer=A;let M=S(D);w.isPreWhitespace=M}function S(w){return w&&w.whiteSpace&&w.whiteSpace.startsWith("pre")||w&&w.whiteSpace==="break-spaces"||!1}}function Rx(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Mo(t));let r=DN(e),a=!0;return!n&&!r&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?a=!0:e.commonAncestorContainer&&(a=!1,e._currentStacks=[])),a}function AN(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let r=n!=="iframe";return t?r&&n!=="pre":r}),e}function kN(e,t,n){if(t){for(let r of t.childNodes)if(r.contains(n))return r}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function r3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+i;break}}}}function DN(e){return e&&e._currentStacks?e._currentStacks.some(t=>Mo(t)):!1}function LN(e,t,n){let{flatNodes:r,commonAncestorContainer:a}=e;if(a&&r.length>0){if(!r.map(p=>p.textContent?.trim()||"").join("")){if(!(r.original||[]).map(f=>f.textContent?.trim()||"").join())return null;e.flatNodes=r.original||[]}let o=Bd(r,a,n);o||(o=a);let s=[];for(let p of r){let f=kN(e,o,p);f&&(s.includes(f)||s.push(f))}if(s.length<1)return null;let u=s[0],l=s[s.length-1],c=[],m=u,g=0;for(;m&&(c.push(m),m!==l);){if(g++,g>EN){k.warn("loop too many times for convert root nodes, break");break}m=m.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:r,commonAncestorContainer:o,variables:{},richVariables:{},isPreWhitespace:e.isPreWhitespace,xpath:"",display:$5(o)}}else return null}function n3(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function a3(e){return e.display==="none"}var _t={_marked_key:h2,isMarked(e,t){return b4(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return iC(e,this._marked_key)},clearToParentMark(e,t){let n=e;for(;n&&t&&n!=t;)_t.clearMark(n),n=n.parentElement},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Mo(e)))return zt(e,this._marked_key,t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Mo(e)||e.nodeType==Node.DOCUMENT_FRAGMENT_NODE):!1}};function MN(e){let t=e.innerHTML,n=t.replace(/\n\r? *\n\r?/g,"

").replace(/\n\r? *\n\r?/g,"

");n!=t&&(e.innerHTML=lr?.createHTML(n)||n,e.immersive=!0,e.formatHtml=!0)}function PN(e,t,n){let r=e.textContent||"",a=K5(r,{wordRegexStr:n,sentenceMaxLength:t});if(!a)return;let i=e.parentNode;e.recordLength=a[0]?.length,e.textContent=a[0];let o=e.nextSibling;e.immersive=!0;for(let s=1;s0)for(let r of n){let a=t[r],i=Object.keys(a),o=tC(e,[r]);for(let s of o)for(let u of i){let l=a[u];s.getAttribute(u)!==l&&(l===null?s.removeAttribute(u):s.setAttribute(u,l))}}}function Fx(e,t,n,r,a,i,o){let s=Object.keys(t);if(s.length>0)for(let u of s){let{selectAll:l,...c}=t[u],m=Object.keys(c);(l?e.querySelectorAll(u):[e.querySelector(u)]).forEach(p=>{if(p)for(let f of m){let b=c[f];if(f==="translate"&&b==="no"){let h=p.innerText||p.textContent||"";if(!h.trim()||RN(p,a,i,o)||!rC(h,n,r))continue}p.getAttribute(f)!==b&&(b===null?p.removeAttribute(f):p.setAttribute(f,b))}})}}function i3(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let a of n){let i=t[a];if(e.matches(a)){let o=t[a],s=Object.keys(o);for(let u of s){let l=o[u];e.getAttribute(u)!==l&&(l===null?e.removeAttribute(u):e.setAttribute(u,l))}break}}}}function Em(e,t){return _N(e,t.excludeSelectorsRegexes)?!0:qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function _N(e,t){try{if(!t)return;let n=t;for(let[r,a]of Object.entries(n)){if(!qt(e,[r]))continue;if(Id(a,e?.textContent?.trim()||""))return!0}return!1}catch(n){return k.error(n),!1}}function tc(e,t){if(t.length===0)return!1;let n=t.filter(r=>!r.endsWith("*")).map(r=>r+" *");return qt(e,t.concat(n))}function RN(e,t,n,r){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,i=>i.nodeType===Node.ELEMENT_NODE&&Em(i,{excludeSelectors:r.excludeSelectors,selectors:r.selectors,excludeSelectorsRegexes:r.excludeSelectorsRegexes,stayOriginalSelectors:r.stayOriginalSelectors})?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let i=a.currentNode;if(i.nodeType===Node.TEXT_NODE&&parent){let o=i.textContent||"";if(o.includes("Copyright"))continue;if(Od(o,t,n))return!0}}return!1}function IN(e,t,n){return t==NodeFilter.FILTER_REJECT&&e.nodeType==Node.ELEMENT_NODE&&e.childNodes.length>=1&&e.childNodes[0].childNodes.length>=1&&ka(e,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},null)}function FN(e,t){let n=e.parentElement;for(let r=0;r<5;r++){if(!n)return e?.parentElement;if(n.isBlock==!0||n.isBlock==null&&ka(n,{blockSelectors:t.blockSelectors,extraInlineSelectors:t.extraInlineSelectors,extraBlockSelectors:t.extraBlockSelectors,atomicBlockSelectors:t.atomicBlockSelectors},null))return n;n=n?.parentElement}return e?.parentElement}function Bx(e,t){let n=null,r=null,a=e.rule.bodyRule;if(!a.enable)return{bodyIsRoot:!1,bodyNode:n,articleNode:r};if(a.bodySelector&&(n=document.querySelector(a.bodySelector)),a.articleSelector&&(r=document.querySelector(a.articleSelector)),n||r)return k.debug("body rule has confirm"),{bodyIsRoot:i(),bodyNode:n,articleNode:r};if(document.body.scrollHeight>=window.innerHeight*a.maxBodyScreenLength)return k.debug("content dom elements too long"),{bodyIsRoot:!1,bodyNode:n,articleNode:r};try{let o=window.document.cloneNode(!0),u=new R0(o,{keepClasses:!0}).parse();if(!u)throw new Error("article is null");n=BN(u.content,t),n&&(r=Nx(a,n))}catch(o){k.debug(o)}return{bodyIsRoot:i(),bodyNode:n,articleNode:r,preElements:Y5(a.preSelectors)};function i(){return e.state.translationArea==="body"?!1:!!a.bodyIsRoot}}function Ox(e,t){if(!e.rule.bodyRule.articleSelector||t.nodeType!==Node.ELEMENT_NODE)return;let n=t.querySelector(e.rule.bodyRule.articleSelector);n&&(e.articleNode!=n&&k.debug("update article node",n),e.articleNode=n)}function BN(e,t){let a=new DOMParser().parseFromString(e,"text/html").querySelectorAll("#readability-page-1 > *");if(a.length<=0)return null;let i=[];if(a.forEach(o=>{let s=ON(o),u=null;document.querySelectorAll(s).forEach(l=>{let c=l.textContent?.trim().length||0,m=u?.textContent?.trim().length||0;c>m&&(u=l)}),u&&i.push(u)}),!!i.length)return Bd(i,document.body,t)}function ON(e){let t="";return e.id&&(t+="#"+e.id),e.classList.forEach(n=>{n.includes(".")||n.includes(":")||n.includes("/")||(t+="."+n.trim())}),t}function Nx(e,t){if(t.nodeType!=Node.ELEMENT_NODE)return null;let n=null,r=Array.from(t.childNodes);if(r.filter(i=>e.articleChildTags.includes(i.nodeName)).length>=e.articleChildTagsNum)return t;for(let i=0;i0&&(r[0].target.text.includes($c)||o3(e).catch(i=>{k.error("translateTitle error:",i.name,i.message,i.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var nc="";async function o3(e){let t=document.title;if(!t||t.includes($c))return;nc!==t&&(nc=t);let n=await ze({text:t,pageLangs:[Dt(),"en"]});if(!Hs(e,n))try{let r=await mr({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n,force:!0},e);r&&r.text&&(document.originTitle=nc,document.title=r.text+$c+nc)}catch(r){throw r}}function jx(e){e.rule.isTranslateTitle&&(document.title=nc)}function mu(e){return(e.config.rtlLanguages||["ar","arc","az","dv","he","ckb","fa","ur"]).includes(e.targetLanguage)}function Am(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?g4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`}catch{return""}}function qS(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?p4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` + ${r.innerHTML}`}catch{return""}}function Hx(e){try{let t=document.head.cloneNode(!0),r=document.body.cloneNode(!0),a=e.rule.shareConfig;[...a?.removeSelectors||[]].forEach(l=>{[...t?.querySelectorAll(l),...r?.querySelectorAll(l)].forEach(c=>{c.nodeName.toLowerCase()=="script"&&c.type=="application/ld+json"||c.remove()})});let o=a.injectCss?g4():"",s="";globalThis.document.documentElement.getAttributeNames().forEach(l=>{s+=`${l}="${globalThis.document.documentElement.getAttribute(l)}" `});let u="";return globalThis.document.body.getAttributeNames().forEach(l=>{u+=`${l}="${globalThis.document.body.getAttribute(l)}" `}),` ${t.innerHTML} - ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function km(e){let t=Ov(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function Pn(e){let t=e.rule;e.isRichTranslate&&(t=l4(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"&&(n=[],a=[],i={}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var UN={sanitize:e=>e};async function d3(e,t){if(e.interruptEffectDOM)return;let n=Pn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:jo.bind(null,e),onFrame:r=>{u3(e,r,!0)},onIgnoreElement:r=>{Rt.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),$o&&zt(t,"consumeContainer",e.id)}function u3(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Hi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Bg}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,La(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=Pn(t.ctx),o=0;if(l(t,e,n))return;if(Ro(e)&&u(e)){Rt.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(Ro(m)&&(a&&a3(m,a),i&&o3(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(Rt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,Rt.clearMark(c),t.immediateTranslateCapacity>=0){await d3(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await ut(0))}else $o&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return u3(t,c.shadowRoot,n),!1;if(m==="iframe")return u3(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return tc(c,g.selectors);if(g.containerSelectors&&tc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){NS(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&Rt.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=Pn(c.ctx);return!!(Em(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function rc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!Rt.isSkipMarkEle(a)&&!Rt.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Uo(t.rootNodes),r=="original"&&n=="translation"){let s=gu(e,t.rootNodes);if(l3(s))return;to(e,s,a,t.targetNodes||[]),Uo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=gu(e,t.targetNodes,s);to(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=gu(e,t.rootNodes);if(l3(s))return;to(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=gu(e,t.targetNodes);to(e,s,a,t.rootNodes||[]),Uo(t.targetNodes)}r=="dual"&&n=="original"&&Uo(t.targetNodes),p3(t)}catch(s){k.error(s)}}}function l3(e){return!e||!Ro(e)?!1:e.classList.contains(Gt)}function gu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Uo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function to(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var jN=br(Dm,300);async function jo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||HN(t.rootNodes)||t.stepState>=2)return;t.stepState=2,$o&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Po(i),u=i.config.translationServices[i.translationService],l=Kd(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:km(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await g3(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Da(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),qN(e,t.text),m3(e,t,r)):($o&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function HN(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Ro(t)&&t.classList.contains(Gt):!1}function qN(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function m3(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),$o&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,y2,"1",!0),n=="hover"){Dm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";jN.call(e,e.ctx,a)}async function Dm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await hn(a,t,(i,o,s)=>{let u=s.id,l=zN(e,u.toString());l&&VN.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function zN(e,t){return e.find(n=>n.id===t)}function VN(e,t,n,r,a,i){let o=!1,s=r;qs(s.commonAncestorContainer,n.id)?.remove(),p3(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Gt),g.setAttribute(ns,"1");let p=MC(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),mu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=UN.sanitize(p);g.innerHTML=Or?.createHTML(f)||f,c.targetNodes=[g],rc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,x2,g.toString()),p.classList.add("notranslate",Gt,Gt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(l3(f)||to(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=WN(a,c).replaceAll(` + ${r.innerHTML}`.replaceAll(`data-${P}-translation-element-mark="1"`,"dim_m='1'").replace(/data-immersive-translate-walked=\".+?\"/g,"dim_w='1'").replace(/data-on-parse-paragraph=\".+?\"/g,"").replace(/data-consume-paragraph=\".+?\"/g,"").replace(/data-consume-container=\".+?\"/g,"").replace(/immersive-translate-target-([a-z\-]+)/g,(l,c)=>"imt_"+c.replaceAll("translation","t"))}catch{return""}}function km(e){let t=B5(e);return t.stayOriginalTags.map(r=>r.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors)}function Pn(e){let t=e.rule;e.isRichTranslate&&(t=u4(t));let n=t.selectors,r=t.excludeTags,a=t.excludeSelectors,i=t.excludeSelectorsRegexes;return e.state.translationArea==="body"?(n=[],a=[],i={}):(t.preTranslateLimiter?.keys||[]).forEach(s=>{t.preTranslateLimiter[`${s}.enableTranslate`]||a.push(...t.preTranslateLimiter[`${s}.selectors`]||[])}),{paragraphFirstLetterFontSize:t.paragraphFirstLetterFontSize,globalStyles:t.globalStyles,globalAttributes:t.globalAttributes,selectors:n,atomicBlockSelectors:t.atomicBlockSelectors,skipEditableCheck:t.skipEditableCheck,lineBreakMaxTextCount:t.lineBreakMaxTextCount,lineBreakRegexStr:t.lineBreakRegexStr,isTransformPreTagNewLine:t.isTransformPreTagNewLine,likePreSelectors:t.likePreSelectors,skipBuildContainerSelectors:t.skipBuildContainerSelectors,buildContainerSelectors:t.buildContainerSelectors,excludeSelectors:r.map(s=>s.toLowerCase()).filter(s=>s!=="code"&&s!=="img").concat(a).concat(t.additionalExcludeSelectors),excludeSelectorsRegexes:i,blockSelectors:t.allBlockTags.map(s=>s.toLowerCase()).concat(t.extraBlockSelectors),extraBlockSelectors:t.extraBlockSelectors,extraInlineSelectors:t.extraInlineSelectors.concat(t.additionalInlineSelectors),stayOriginalSelectors:t.stayOriginalTags.map(s=>s.toLowerCase()).concat(t.stayOriginalSelectors).concat(t.additionalStayOriginalSelectors),skipTrailTextRegex:t.skipTrailTextRegex}}var NN={sanitize:e=>e};async function c3(e,t){if(e.interruptEffectDOM)return;let n=Pn(e.ctx);await e.walkContainer({id:e.id,container:t,articleNode:e.ctx.articleNode,filterRule:n,bodyRule:e.ctx.rule.bodyRule,onParagraph:jo.bind(null,e),onFrame:r=>{s3(e,r,!0)},onIgnoreElement:r=>{_t.mark(r,e.id,n.skipEditableCheck),e.ignoreResizeObserver?.observe(r)},engineCtx:e}),Qo&&zt(t,"consumeContainer",e.id)}function s3(e,t,n){try{if(t instanceof HTMLIFrameElement){if(!Hi(t))return;k.debug("onFrame fragment",t);let r=t?.contentWindow?.document.body;if(r){if(t?.contentWindow?.document.querySelector(`[data-id="${Ig}"]`))return;e.injectCssToDocument(t,e.ctx);let a=e.inlineIFrames||[];a.push(t),e.inlineIFrames=a,La(t.contentWindow?.document.documentElement,e.translateState),di(r,e,n),e.dynamicContainerObserver?.observe(r,{childList:!0,subtree:!0,characterData:!0})}}else{if(k.debug("onFrame shadowRoot",t.host),!t.host)return;e.injectCssToDocument(t,e.ctx),di(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch{}}async function di(e,t,n=!0){let r=Date.now(),{globalStyles:a,globalAttributes:i}=Pn(t.ctx),o=0;if(l(t,e,n))return;if(_o(e)&&u(e)){_t.mark(e,t.id,t.ctx.rule.skipEditableCheck),await s(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m=>t.interruptEffectDOM?(k.debug("\u4E2D\u65AD"),NodeFilter.FILTER_REJECT):(_o(m)&&(a&&r3(m,a),i&&i3(m,i)),l(t,m,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(_t.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode()&&!t.interruptEffectDOM;){_t.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let m=c.currentNode;if(u(m))for(await s(m);!t.interruptEffectDOM;){if(c.nextSibling()){let g=c.currentNode;if(_t.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),u(g)){await s(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){await s(e);return}return t.observeContainers;async function s(c){if(!t.interruptEffectDOM)if(o++,_t.clearMark(c),t.immediateTranslateCapacity>=0){await c3(t,c);let m=Date.now()-r;m>100&&(k.debug("batchTaskTime",m,c),r=Date.now(),await ut(0))}else Qo&&zt(c,"observeContainer",t.id),t.containerVisibleObserver?.unobserve(c),t.containerVisibleObserver?.observe(c)}function u(c){let m=c.nodeName.toLowerCase();if(c.shadowRoot)return s3(t,c.shadowRoot,n),!1;if(m==="iframe")return s3(t,c,n),!1;if(["script","#document-fragment","img"].includes(m))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return tc(c,g.selectors);if(g.containerSelectors&&tc(c,g.containerSelectors))return!0;if(g.pageHeight){let p=c.scrollHeight;if(p>0&&pg.pageHeight*f)if(qe()){if(p>g.pageHeight*2*f)return!1}else return!1;for(let b of c.childNodes)if(b.nodeType==Node.TEXT_NODE&&b.textContent&&b.textContent.trim().length>0)return!0}}return!1}function l(c,m,g){Ox(c.ctx,m);let p=m.nodeName.toLowerCase();if(p=="script")return m.childNodes.length==0||m.childNodes.length==1&&m.childNodes[0].nodeType==Node.TEXT_NODE;if(m.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(m.nodeType!==Node.ELEMENT_NODE||g&&_t.isMarked(m,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&p==="pre")return!1;let f=Pn(c.ctx);return!!(Em(m,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,excludeSelectorsRegexes:f.excludeSelectorsRegexes,stayOriginalSelectors:f.stayOriginalSelectors})||qt(m,f.skipBuildContainerSelectors)||qt(m,f.stayOriginalSelectors))}}function rc(e,t,n){if(!t.targetNodes)return;let r=t.state||"original",a=t.commonAncestorContainer;if(!_t.isSkipMarkEle(a)&&!_t.isMarked(a,t.ctxId))return;let i=a.contains(t.rootNodes[0]),o=a.contains(t.targetNodes[0]);if(i&&o)r="dual";else if(i)r="original";else if(o)r="translation";else return;if(n!=r){t.state=n;try{if(r=="dual"&&n=="translation"&&Uo(t.rootNodes),r=="original"&&n=="translation"){let s=gu(e,t.rootNodes);if(u3(s))return;to(e,s,a,t.targetNodes||[]),Uo(t.rootNodes)}if(r=="translation"&&n=="dual"){let s=e.config.translationPosition=="before"?"after":"before",u=gu(e,t.targetNodes,s);to(e,u,a,t.rootNodes||[],s)}if(r=="original"&&n=="dual"){let s=gu(e,t.rootNodes);if(u3(s))return;to(e,s,a,t.targetNodes||[])}if(r=="translation"&&n=="original"){let s=gu(e,t.targetNodes);to(e,s,a,t.rootNodes||[]),Uo(t.targetNodes)}r=="dual"&&n=="original"&&Uo(t.targetNodes),g3(t)}catch(s){k.error(s)}}}function u3(e){return!e||!_o(e)?!1:e.classList.contains(Kt)}function gu(e,t,n){return t?(n||e.config.translationPosition)=="before"?t[0]:t[t.length-1].nextSibling:null}function Uo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function to(e,t,n,r,a){let i=a||e.config.translationPosition;if(n){if(i=="before"&&!t&&n.childNodes.length){let o=n.childNodes[0];r.forEach(s=>{n.insertBefore(s,o)});return}t?r.forEach(o=>{t.parentNode?.insertBefore(o,t)}):r.forEach(o=>{n.appendChild(o)})}}var UN=yr(Dm,300);async function jo(e,t,n=!1,r="web"){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||jN(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Qo&&zt(a,"onParseParagraph",e.id);let{ctx:i}=e,{rule:o}=i,s=Po(i),u=i.config.translationServices[i.translationService],l=Gd(t.commonAncestorContainer,t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:s,stayOriginalSelectors:km(i),ignoreRichSelectors:o.ignoreRichSelectors,smallCodeLength:o.smallCodeLength,domPurifyAddTags:o.domPurifyAddTags,richMoreWordPercent:o.richMoreWordPercent||0},u,!!i.isRichTranslate);if(!l)return;let c=i?.config?.translationLanguagePattern?.excludeMatches||[],m=await m3(i,t,l,{excludeLanguages:n?[]:c,targetLanguage:i.targetLanguage,noTranslateRegexp:i.rule.noTranslateRegexp,delimiters:Da(i.config.translationServices[i.translationService]),minTextCount:n?3:o.paragraphMinTextCount,minWordCount:o.paragraphMinWordCount,isDetectParagraphLanguage:o.detectParagraphLanguage||i.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:i.rule.ignoreZhCNandZhTW});if(m){if(k.debug("on paragraph",m.text,m),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(m))return;a.paragraphs.push(m),e.immediateTranslateCapacity>0||n?(n&&(t.force=!0),HN(e,t.text),d3(e,t,r)):(Qo&&zt(a,"observeParagraph",e.id),e.observeParagraphs.push(m),e.paragraphVisibleObserver?.unobserve(a),e.paragraphVisibleObserver?.observe(a))}return m}function jN(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?_o(t)&&t.classList.contains(Kt):!1}function HN(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function d3(e,t,n="web"){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let r=e.autoIncreaseParagraphId++;if(t.id=r.toString(),e.paragraphEntities[r]=t,e.paragraphQueue.push(r.toString()),Qo&&zt(t.commonAncestorContainer,"consumeParagraph",e.id),zt(t.commonAncestorContainer,b2,"1",!0),n=="hover"){Dm.call(e,e.ctx);return}let a=e.allTextLength>50*1e4&&e.ctx.state.translationStartMode==="immediate";UN.call(e,e.ctx,a)}async function Dm(e,t=!1){if(this.interruptEffectDOM)return;let n=this.paragraphQueue;this.paragraphQueue=[];let r=[];for(let a=0;a0)try{await hn(a,t,(i,o,s)=>{let u=s.id,l=qN(e,u.toString());l&&zN.call(null,i,o,s,l,t,n)})}catch(i){k.error("translateCurrentQueue error",i);return}}function qN(e,t){return e.find(n=>n.id===t)}function zN(e,t,n,r,a,i){let o=!1,s=r;qs(s.commonAncestorContainer,n.id)?.remove(),g3(r),s&&(e||!t)?l(e):u(r),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}));function u(c){if(!c){k.error("paragraph not found",n.id);return}if(s.error=void 0,c.targetText=t?.text||"",c.text?.trim().toLocaleLowerCase()==c.targetText?.trim().toLocaleLowerCase()){let g=c.commonAncestorContainer?.paragraphs||[],p=g?.indexOf(c);p>=0&&g.splice(p,1)}else{let g=document.createElement(a.rule.targetWrapperTag);g.classList.add("notranslate",Kt),g.setAttribute(ns,"1");let p=LC(c,a);a.config.enableEditTranslation&&g.setAttribute("contenteditable","true"),mu(a)&&g.setAttribute("dir","rtl"),g.setAttribute("lang",a.targetLanguage);let f=NN.sanitize(p);g.innerHTML=lr?.createHTML(f)||f,c.targetNodes=[g],rc(a,c,i)}o=!0}function l(c){c||(k.error("translate error",n,c,t),c=new Error("no response from server"));let{rule:m}=a,g=n.id,p=document.createElement(m.targetWrapperTag);zt(p,x2,g.toString()),p.classList.add("notranslate",Kt,Kt+"-error"),p.setAttribute("translate","no"),p.setAttribute("lang",a.targetLanguage);let f=r.rootNodes[r.rootNodes.length-1].nextSibling;if(u3(f)||to(a,f,r.commonAncestorContainer,[p]),s&&(s.error=c),p){let b=WN(a,c).replaceAll(` `,"").replaceAll('"',"""),y=c.message.replaceAll(` -`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),x=Pe(a.config.interfaceLanguage,"error.reason"),S=`<${m.targetWrapperTag} class="${P}-error notranslate"> +`,"").replaceAll('"',"""),h=Pe(a.config.interfaceLanguage,"retryAllButton"),v=Pe(a.config.interfaceLanguage,"errorTooltipTitle")+": "+y,C=Pe(a.config.interfaceLanguage,"error.retry"),T=Pe(a.config.interfaceLanguage,"error.reason"),x=`<${m.targetWrapperTag} class="${P}-error notranslate"> <${m.targetWrapperTag} class="${P}-error-wrapper"> @@ -5908,10 +5908,10 @@ x-tc-action:`+this.action.toLowerCase()+` - ${x} + ${T} - `;p.innerHTML=Or?.createHTML(S)||S}}}var zS="";async function g3(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=zS.slice(0,e.rule?.detectTextBufferLength)+" "+o),zS=s;let u=await ze({text:s,minLength:15,pageLangs:[Dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!zs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!zs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=Z0();r.isDetectParagraphLanguage&&(g="auto");let p=Dt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!U0.includes(e.translationService)&&(Z()||je())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return ki(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>ki(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function ac(){c3=0}var c3=0;function WN(e,t){c3+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new V("contextInvalidated",n)),t instanceof V){let r=t.uiConfig(e);if(n=JSON.stringify(r),c3!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(Fn,{detail:r}))}return n}function p3(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,GN(t,`[${v2}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function GN(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function VS(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Ws(document.body),pageLangs:t})),e}var KN=[];function WS(e){KN.push(e)}var f3;function GS(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=Pn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ic(e,i,t,r)}),f3=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&wr(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||b3(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ic(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!ka(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Vs(r,u.parentElement);c&&(Rt.clearToParentMark(u,c),ic(e,c,t,r));continue}ic(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{Rt.isMarked(o,e.id)||ic(e,o,t,r)})}),f3.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ic(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&h3(t),ci({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{jo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function KS(){f3?.disconnect()}var YN=` + `;p.innerHTML=lr?.createHTML(x)||x}}}var qx="";async function m3(e,t,n,r){let{text:a,html:i,pureText:o}=n,s=o||"";!r.isDetectParagraphLanguage&&e.rule?.detectTextBufferLength>0&&(s=qx.slice(0,e.rule?.detectTextBufferLength)+" "+o),qx=s;let u=await ze({text:s,minLength:15,pageLangs:[Dt(),"en"],translateService:e.translationService}),{targetLanguage:l}=r,c=i||a;if(i&&!zs({text:a||"",html:i,delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp})&&(c=a),c!=i&&!zs({text:a||"",html:"",delimiters:r.delimiters,minWordCount:r.minWordCount,minTextCount:r.minTextCount,noTranslateRegexp:r.noTranslateRegexp}))return null;t.variables=n?.variables||{},t.richVariables=n.richVariables||{},t.text=c,t.pureText=n?.pureText;let m=r.excludeLanguages||[],g=J0();r.isDetectParagraphLanguage&&(g="auto");let p=Dt(),f=u;if(f==="auto"&&!r.isDetectParagraphLanguage&&(f=p,!U0.includes(e.translationService)&&(J()||je())&&(f="auto")),t.languageByLocal=f,t.languageByClient=g,e.specialAiAssistant?.disableSameLang)return t;let b=g!=="auto"?g:f;return ki(b,l,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW})||m.length>0&&m.some(v=>ki(b,v,{ignoreZhCNandZhTW:r.ignoreZhCNandZhTW}))?null:t}function ac(){l3=0}var l3=0;function WN(e,t){l3+=1;let n=t.message;if(n.includes("Extension context invalidated.")&&(t=new W("contextInvalidated",n)),t instanceof W){let r=t.uiConfig(e);if(n=JSON.stringify(r),l3!=e.rule.toastErrorMinTimes)return n;document.dispatchEvent(new CustomEvent(In,{detail:r}))}return n}function g3(e){let t=e.commonAncestorContainer;if(!t.paragraphs?.length)return;t.recordLength=t.innerHTML.length,VN(t,`[${y2}]`).forEach(r=>{r.recordLength&&(r.recordLength=r.innerHTML.length)})}function VN(e,t){let n=e,r=[];for(;n.parentElement;){let a=n.parentElement.closest(t);if(a)r.push(a),n=a;else break}return r}async function zx(){let e="auto",t=[Ht(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await ze({text:Vs(document.body),pageLangs:t})),e}var KN=[];function Wx(e){KN.push(e)}var p3;function Vx(e){let t=e.ctx.rule.aiRule;if(k.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=e.ctx.rule,r=Pn(e.ctx),a=r.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);r.excludeSelectors.splice(a,1),document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(i=>{ic(e,i,t,r)}),p3=new MutationObserver(i=>{i.forEach(function(o){for(let s of i)if(s.target.nodeType!=Node.COMMENT_NODE)try{if(n.mutationExcludeSelectors.length>0&&Er(s.target,n.mutationExcludeSelectors))continue;let u=s.target;if(s.type=="characterData"&&(u=s.target.parentElement),!u.closest(t.messageWrapperSelector)||h3(s)&&s.type!="characterData")continue;if(u.recordLength){u.recordLength!==u.innerHTML.length&&ic(e,u,t,r,!0);continue}if((s.addedNodes||[]).length<=0&&s.type!="characterData"||u.nodeType!==Node.ELEMENT_NODE)continue;if(!ka(u,{blockSelectors:r.blockSelectors,extraInlineSelectors:r.extraInlineSelectors,extraBlockSelectors:r.extraBlockSelectors,atomicBlockSelectors:r.atomicBlockSelectors},window.getComputedStyle(u))){let c=Ws(r,u.parentElement);c&&(_t.clearToParentMark(u,c),ic(e,c,t,r));continue}ic(e,u,t,r)}catch(u){k.error(u)}}),document.querySelectorAll(`${t.messageWrapperSelector}`).forEach(o=>{_t.isMarked(o,e.id)||ic(e,o,t,r)})}),p3.observe(document.body,{childList:!0,subtree:!0,characterData:!0})}function ic(e,t,n,r,a=!1){let i=t.closest(n.messageWrapperSelector);if(!i)return;let o=t;for(;o!=i;)clearTimeout(o.timer),o=o.parentElement;clearTimeout(i.timer);let s=t;s.timer=setTimeout(()=>{a&&f3(t),ci({id:e.id,container:t,filterRule:r,force:!0,onParagraph:u=>{jo(e,u,!0)},onFrame:()=>{},onIgnoreElement:()=>{}}),s.timer=null},n.streamingDelayTime||1e3)}function Kx(){p3?.disconnect()}var GN=` .toastify { padding: 12px 20px; color: #ffffff; @@ -5994,10 +5994,10 @@ x-tc-action:`+this.action.toLowerCase()+` max-width: fit-content; } } -`,y3="immersive-translate-toastify-shadow-root",v3=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(y3)){let t=document.getElementById(y3);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=y3,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=YN,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Mm(e){e=e||{},new v3({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function YS(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function bn(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:jc,payload:e},"*")});let n=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(n)}function C3(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&Yt(o,s=>{s.preventDefault();let u=r[i];bn({method:u,data:{trigger:"shortcut"}})})}}var QN="imt-fb";function yn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${QN}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function QS(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Pm="DROP_DOWN_DEFAULT_VALUE";function S3(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=Se(null);return d("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Pm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Pm){s.current.value=Pm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Pm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var JN=({date:e})=>{let{t}=O(),[n,r]=N(!1);return z(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},ZN=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},XN=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Q+"docs/installation/"})}})},$N=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function x3(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[x,S]=N(null),T=On(),w=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:bi});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return z(()=>{Ze().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),T==="0.0.0"){h(!0);return}n({url:bi}).then(I=>{let R=I,B=R.minVersion,L=T;s(R);let U=R.latestVersion;if(U&&(ja(L,U)?S(!0):S(!1)),ja(L,B)){let F=R.buildinConfigUpdatedAt;new Date(F)>M?(l(!0),w()):l(!1)}else b(!0),l(null)}).catch(I=>{l(null),m(I.message)})})},[]),z(()=>{Ze().then(A=>{C(A),ia(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(XN,{}):c?t===!1?null:d($N,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(ZN,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(JN,{date:r}):null}):null}var JS=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var ZS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),XS=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),$S=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),ex=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var tx=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),nx=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),rx=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),ax=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function pu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function ix(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(vi,`${e.type}_user_info`);return}e.onOpenUrl(is,`${e.type}_user_info`)},children:[d("img",{src:n?$8:X8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(eU,{...e})]})}function eU(e){let{t}=O(),n=ne(()=>pu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(vi,`${e.type}_pro_logo`)},children:d("img",{src:li})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||kn)},children:[d(yn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(kn,`${e.type}_user_upgrade`)},children:[nx,d("span",{children:t("popup.upgrade")})]})}function ox({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=$i(t.config.translationService,t.config.targetLanguage),s=or;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(tU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:eS,style:{maxWidth:"unset"},class:"mx-2"}),d(nU,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function tU(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function nU(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Vi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var sx=220;function ux(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=Se(null),[o,s]=N(sx),[u,l]=N(0);return Ku(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,x=f+m.height;if(C>g.clientHeight-x){let S=Math.min(v,C);l(g.clientHeight-f-S-b)}else l(0);s(Math.max(sx,v))}},[i.current,r,t]),z(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(lx,{item:n,isDefault:!0}),ax]}),d(rU,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function rU(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=Se(null);return z(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(lx,{item:o,onClick:e.onClick},o.value))})}function lx(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:li}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}var aU={more:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAclBMVEUAAADm5ubn5+ff39/m5ubm5ubm5ubm5ubm5ubl5eXl5eXm5ubn5+fn5+fk5OTn5+fn5+f///8zMzPm5uZNTU35+fns7Oz19fXy8vJAQEDp6emAgIBmZmaZmZnMzMzZ2dmzs7NZWVmmpqZzc3O/v7+MjIwtOcgWAAAAEXRSTlMA3yAQ759Qz7+QgK9wYGBAfzNtP58AAAQESURBVFjDzVntlpowFAQJgmhrcfgIAirqvv8rNiHbZGOuV13bczo/ejj0MDvJ3I/kGj1AstykeRxDQWR5WmyTiAdPtooRIE6X3yPdrgUUGtm2dV1q1HUrG2iky5fF/RKarK3LAHWrSeOfi1fp9tJyhJx7Rfnrab4fsRJXlyzaRqt8im6Rs3ROplK5fmLdGwG05VNQCxePRCYrJa98FrUEVvxys1AeLxLIFgxfjD21e/xOxguGj3SDZ2wsI8VXfgO0Rp6Pxx2NGc/Ha8zCerHy/HjZmVWQboDie4Nxc7OBIoy/1+JR+Nu4dhv4XWNyb8HcBsqPqZoGjR73GYGvaR0zC0a1s+iOzKJj5/Qv7Mu76HdfMHCLLlxIcw5PSlg1o1OMjNMQid1BzpHK6uo1ISuR30HjwHnnEVYnTqLhW5I7OHa7bpTHaucRasrj2NG8e2xnwpQSOJqPjRW9eXetdg4HIr6wnqs+lXT46qz79jrYtxXRZY0tSzR0rAzmQ1/KSavs9D8jZcvyzopPmglQtP2tEPXygoNmBRHcuuhQQagVnDTxuQyhs+VD7yzhc6y2kPD4rAWWHGRH+gIk0RYNKfDofX8Yx/FwGwUDuYkFArsOt+s5d8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9fTPEDQLgTCjJzKkFXTPC6R57QIYZ/gAAQYQNAqJOiKTwHyaJeH9LV2IXKB/bzUi3UmeTgxfIbjp2NuE3L/5D0vSpymm5QooRzZiqKm83rzvzl8hoTV+9PH6BBGBVs0GGJUvvqL/juvNvT0Sxr777uk+RvXTf/24oxQ7H/6CpBQqmuqZKE6MP6Ha1lCqaflgjkGmxHsSmQPS4yAr8qtKi79wxDjx5f+ap4vqBdj86l7vgARRa8OIzgRRQZTjAWFjrEBgu0GG+MPYefuQ8FMhYdx271MAhZhMGp5HaUDb4BDebBkc9gRRIxYVs1PrywKT69swadXRvJtoD0iR4mm/IjMYmI5oT6sUU1Gs/nLc7jo0YymmCEn6TOjSOUdBiQt6gAAAABJRU5ErkJggg==",niu:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC/VBMVEUAAADn5+fm5ubm5ubm5ubm5ubm5ubq6urf39/k5OTm5ubm5ubn5+fm5ubm5ubm5ubl5eXo6Ojn5+f////m5ub8/PzlYgDu7u75xADvmgDyqADxogDulQDmagDkXQD0sQDukwDrhQDqfgDpeQDx8fHn5+f2uQDtjwDsiwDzrQDnbQDs7OzlZAHukQDocwD+/f36+vrp6enzrADumADsiQDmZwDpeADpdQD09PTiTgX6yADrggDpfADnbgD92gD6ygD4wADrgADkWgH3vQD2twD1tADkXwDtlRXxpQD80wDncAD7zwD5xgDzrwDsjQD39/fiUQTjUwPjVQL80QDwnwDrhwD7zAD0swD4wQD3uwDncgD81QDwnQDjVwLwoAD+5ADxpADwngD++fLiSgb+4AD+3gD2tgDwnAD//vvhRwf70ALkWQHzqQDrhADpewDmZQD98N3iSwX5wgH+4gD+3wD91wD//Pf+6AD2uwD9+ff29vb75MPxqETulg7iUQPsiAD9+O788Ob647387rP3zovwpDj0wTfvny3tkRHvnQ/+5gD99ev65d775s399Mn51qT74aD1xH3toXf51HPupFLztUX+6EDvmyPumBriURjgWhDyqAvwoQjkWAHw8PD88e3+9eT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UcKVqJ1+wBUeKZkNcH2LpDWOAmTgBA65U0AbwFZDNrWtHOORWF9BJCWQZtB2WF2R5gWwRvKXiYNobcVKb5Bt+qBEyYLDAPu6SPrvBoBRT+qJTG0GS7dyyG5qg6S3ehztC888z4fC4s+Sf7erYPeE8G/BERC/K7H+aZTa6qtThlbh/D8igukz3y7i3+B3wpsKYHk9SQ+7IbE+0okytFzU8durzh+Rsn3FC2N8v/qShXgLYD1247oQfcQhYwpo45dWw2d5RNQ7KclIpKioiEN6FBXtUBr2vcXdna2c823kG6GrPTjVtCrne7YgYim3uWvZhzLa1bI3Kt/cJQ5yjWgKQ+TqIU4942VbfD+xUzfcpbJ0fayvQWRzO9qGW1iOPsp6R/phICoYE5dlyyaKuMrla1fKXuhCRINGZLU8Wy6DSCV5vgqPSlvXy3D6loQS2RKpVm7Rz5wXw9LSEkjOTflyT14SOMzl1mPpnKbJZHXXoDFpeJx58IHWI73mXGrSpMnXd89y1DJl4mjs9Gh7EjtpFKDsV2bM2lWzAmpL6BBQPsGxYig6goHgwYfOYCDoChaY/oFggYVAZ7zljrktxB/QOVl+UuVvHNn+5cNnTFgjvY/RKTjRFj0McdKv/irpebVh+keXNPpfN/3bizP9rwDZl5kZVXIgcZn5P1zLiiqNMrlgrqqsgauSeNIKJuAhxOkwqMNiJv40ggnhpb8ajFbtwbhz8fmCSiqbtMkEfATDUI3RRtTLuH1BdCMNGRVTOS+XYKbSk/F7lJ/5JIIwO+2G9DFWNok63p7ULHk9ggKpWs1hyBCXDZ9e5SWfXvXEp1dOl0EX7JWz6Y/IbBajQU8cLovTak0+h6uU7bRUV52kn4RmD2WU15UVAAAAAElFTkSuQmCC"};function Rm(e){let t=aU[e];return t}function cx(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=uU(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(dx,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(iU,{...e,currentTranslationService:a})]}):null}function dx(e){let t=ne(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=aa(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(ux,{className:"translate-service",items:t}):d(sa,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function iU({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=sU(e,o),l=oU(e,o),c=le((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(ce,{children:m.map(({label:g,items:p},f)=>d(dx,{label:g,items:p,ctx:e},"field-"+f))})}function oU(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function sU(e,t){let{lang:n}=O();return ne(()=>{let a=As(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[Yr,Rf,e,n,t])}function uU({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Es(t,"translationService",c):[],[t,c]),g=le(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=j0(h,e,f,l,!0),C=Rm(h.id);h.id.startsWith("custom-ai")&&(C=Rm("custom-ai")),h.id.startsWith("mock")&&(C="");let x=Ya.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:x,isShowGoSetting:!h.ok&&!x}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:Rm("more"),onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function mx(e){let t;try{t=new URL(e)}catch{return!1}let n=m5(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(lU(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function lU(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function gx(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function px(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=cU(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=le(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(sa,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function cU({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&mx(e)){c=gx(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>gt(e,C)),g=!!v.find(C=>gt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=le(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(S=>S.match!==h),x=!1;C.length!==v.length&&(x=!0),x&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=le((h,v)=>{if(h==="default"){s(S=>{let T={...S.translationUrlPattern};return{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,matches:T3(e,T.matches),excludeMatches:T3(e,T.excludeMatches)}}}),b();return}let C=h,x=C==="matches"?"excludeMatches":"matches";l&&s(S=>{let T={...S.translationUrlPattern};return T[x]=T3(e,T[x]),T[C]=qn(v,T[C]),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,...T}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function T3(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!gt(e,n)):t):[]}function fx(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=dU(e);return Kr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ka[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(mU,{...e})}function dU({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>Ka.filter(s=>!(s==="Off"||Ka.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:Ra(s)}),l=Ka.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function mU(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(oc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function hx(e){let{isAlwaysTranslateLang:t}=gU({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Jt(e.currentLang,u.matches),excludeMatches:Jt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Jt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function gU({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function yx({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=Te(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:JS,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:tx,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(Hu,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:rx,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(K2,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(Pt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(bx,{...s})}):d(bx,{...s}))})}function bx(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var pU=["bing","transmart","google","yandex"];function Cx(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:li,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service`)}})]}):null}var vx="popup_trial_pro_show_count";function Sx(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=Se(!1);z(()=>{To(vx,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!pU.includes(m)},[t,n,r,i]);return z(()=>{!u||i==null||s.current||(s.current=!0,wo(vx,i+1))},[u,i,s,a]),{showTrialPro:u}}function w3(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=N(""),[l,c]=N(null),[m,g]=N(null);z(()=>{tt.get(mt,null).then(h=>{h?(c(h),g(At(h))):g(!1)}).catch(h=>{g(!1)})},[]);let p=!0,f=je();n&&f&&(p=n.generalRule.showSponsorOnSafari);let b=er(n),{showTrialPro:y}=Sx({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[b&&!m?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(ix,{isLogin:!!l,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(SU,{openSharePage:r})]}),d(ox,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(cx,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:y}),d(Cx,{showTrialPro:y,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(bU,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(vU,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(x3,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(px,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(fx,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(hx,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(hU,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(fU,{ctx:a})]}),d(yx,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),d(yU,{...e,isProUser:!!m,isShowPricing:p,setMessage:u})]})}function fU({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Gd(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function hU(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&jg.includes(i.type||""),[n,jg,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ld()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function bU(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(Pt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?XS:$S})})}function yU(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=le(h=>{i&&(o(v=>Ui({...v},h)),e.onUpdateFloatBallEnable(h.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ii(i,s.rawUserConfig),m=Te(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[ZS,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(CU,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(S3,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:h=>{h.value==="openPremium"?(globalThis.open(kn),e.onClose()):h.value==="changeToOnlyTranslationMode"?f("translation"):h.value==="changeToDualTranslationMode"?f("dual"):h.value==="translateTheWholePage"?e.onTranslateTheWholePage():h.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():h.value==="translateTheMainPage"?e.onTranslateTheMainPage():h.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):h.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):h.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):h.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):h.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):h.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):h.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):h.value==="options"?(e.openOptionsPage(),e.onClose()):h.value==="changeToTranslateTheWholePage"?b():h.value==="changeToTranslateTheMainPage"?y():h.value==="about"?e.openAboutPage():h.value==="toggleEnabled"?e.onToggleEnabled():h.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):h.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):h.value==="goPro"?e.onOpenUrl(kn,g):h.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):h.value==="openInstruction"?e.onOpenUrl(Uu,g):h.value==="cleanCache"?ca().then(()=>e.onClose()):h.value==="disableFloatBall"?l({...c,enable:!1}):h.value==="enableFloatBall"?l({...c,enable:!0}):h.value=="webReport"&&e.onWebReport()},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(h){h.preventDefault(),e.openOptionsPage()}function f(h){e.onSwitchTranslationMode(h)}function b(){e.setSettings(h=>({...h,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(h=>({...h,translationArea:"main"})),e.onTranslateTheMainPage()}}function vU({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Ao(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Zn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):Z()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(vr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${Ra(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function CU({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=On();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),ur(`${Q}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function SU(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),ex]})}var w9e=1e3*3600*24;async function xx(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[E2]:t.toISOString()}),await E3(),Z()||await b5()}catch(t){k.error("run cron task failed",t)}}async function E3(){try{let e=await Ir(),t=await ee({url:bi});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;ja(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Ta({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function Im(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});Xe(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,b]=N(null),y=Se(!1);z(()=>{!f||y.current||(y.current=!0,Ue("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,y]);let h=B=>{r(B.detail)};z(()=>(document.addEventListener(mo,h,!1),Ir().then(B=>{l(B);let L=Dt();p(L);let U=ot();r(U),xx(B.interval)}),document.addEventListener("urlChange",x),()=>{document.removeEventListener("pageTranslatedStatus",h),document.removeEventListener("urlChange",x)}),[]),z(()=>{Ir().then(B=>{l(B)})},[a]),z(()=>{c&&u&&Fm().then(B=>{b(B)})},[c,u]);let v=le((B,L)=>{S("change_translate_service",!1,{translation_service:`${B}_${L}`})()},[]);if(!u||!f)return null;return d(w3,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:B=>{S("switchTranslationMode",!0,{mode:B})()},request:ee,onClose:T,onToggleEnabled:w,onChangeService:v,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),onTranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onWebReport:S("webReport",!0),onTranslatePdf:()=>{D(ko(f.rule)||c)},openAboutPage:I,openSharePage:S("shareToDraft",!0),onSetPageLanguage:C,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Fr,onSetBuildinConfig:s5,onAutoEnableSubtitleChanged:S("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:S("toggleEnableEditTranslation",!0),updateContextState:B=>S("updateContextState",!0,B)(),onOpenUrl:A,onUpdateFloatBallEnable:S("updateFloatBallEnable",!0)});function C(B){p(B);let L=QS(c,B,u.sourceLanguageUrlPattern);i(U=>({...U,sourceLanguageUrlPattern:L})),Sr(B)}function x(){m(globalThis.location.href)}function S(B,L,U={}){let F={trigger:"page_popup",...U};return()=>{bn({method:B,data:F}),L&&t()}}function T(){t()}function w(){i(B=>({...B,enabled:!B.enabled})),setTimeout(()=>{T()},50)}function A(B,L){let U=B;L&&(U=`${B}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),od(U,!0),setTimeout(()=>{T()},50)}function D(B){B&&(Ls(!1,B),setTimeout(()=>{T()},50))}function M(B=!0,L=""){wa(B,L),setTimeout(()=>{t()},50)}function I(){id(),setTimeout(()=>{t()},50)}function R(){h5(),setTimeout(()=>{t()},50)}}function Dx(){let[e,t]=N("Original");return z(()=>{let n=ot();t(n);let r=a=>{t(a.detail)};return document.addEventListener(mo,r),()=>{document.removeEventListener(mo,r)}},[]),{pageStatus:e}}function Lx(){let[e,t]=N("Original");return z(()=>{let n=Ds();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Fu,r),()=>{document.removeEventListener(Fu,r)}},[]),{mangaStatus:e}}var Tx=6,xU={position:"right",top:335};function Mx({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=Se(null),o=Se(null),[s,u]=N(!1),l=Se(!1);l.current=s;let c=Se(null),m=Se(!1),g=Se(n.floatBallConfig||xU),p=Se(0),f=Se(0),b=Se(0),y=Se(!1),h=Se(0),v=Se(0),C=Se(0),x=Se(0),S=Se(!1),T=le(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let A=qe().any||vr();c.current=setTimeout(()=>{u(w),y.current=!1},A?3e3:0)}},[u,c,y,a]);return z(()=>{a||u(!1)},[a]),z(()=>{if(i.current&&g.current){let w=A3(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),z(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),T(!0),C.current=L.clientX,x.current=L.clientY,S.current=!1,(qe().any||vr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{wx({startX:p.current,startY:f.current,endX:C.current,endY:x.current})||(S.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",I),document.addEventListener("mouseup",D),document.addEventListener("touchend",R),document.addEventListener("touchcancel",R)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,x.current=L.clientY,S.current))return;let U=L.clientY-f.current+b.current,F=A3(U);i.current.style.top=`${F}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),B(),m.current=!1,clearTimeout(c.current),y.current||T(!1),S.current)return;wx({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let F=A3(L.clientY-30);g.current.top=F;let q=await Ln();Fr({...q,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},I=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},B=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",R),document.removeEventListener("touchcancel",R)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,T,e]),z(()=>{if(qe().any)return;let w=D=>{D.target===i.current&&!y.current||!l.current&&Ax(D)&&c.current||(y.current=!0,T(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&Ax(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||T(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",A)}},[i,m,T,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:T}}function wx({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>Tx||i>Tx}function Px(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function Rx(){let[e,t]=N(!1);return z(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var Ex="hasShownFloatingBallGuide",TU="2024-01-06";function Ix(e,t){let[n,r]=N(!1),a=le(()=>{Je(Ex,new Date().toISOString()),r(!0)},[r]);z(()=>{if(!e.config.enableShowFloatingBallGuide||Dt()==e.targetLanguage)return;let o=gt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Bt(Ex,""),u=await Bt("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Vc,o),()=>{document.removeEventListener(Vc,o)}},[]);let i=le(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function Fx(){document.dispatchEvent(new CustomEvent(Vc))}function Bx(e,t){let n=Se(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=le(()=>{e?.config.floatBallTooltipRule&&(qe().any||vr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);z(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=le(async()=>{if(!e)return;n.current=n.current+1,m();let b=await cn();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=ne(()=>qe().any||!r||vr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||vr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${Ra(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function A3(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var k3=0;function Ax(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(k3=Date.now(),!0):Date.now()-k3<100}function _x(e,t){z(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(go,n),()=>{globalThis.document.addEventListener(go,n)}},[e,t])}function Ox(e,t){let n=Se(e);n.current=e,z(()=>{!n.current||!t||Ue("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var kx="imt-float-ball-active";function Nx(e){z(()=>{let t=!!document.querySelector(`meta[name='${kx}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(kx)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(qc,n),()=>{document.removeEventListener(qc,n)}},[])}function Ux(e){document.dispatchEvent(new CustomEvent(qc,{detail:{active:e}}))}function wU({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return z(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(ce,{children:[e&&d("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${P}-sheet-content`,children:n})})]})}var Bm=wU;var Ho="imt-fb";function Hx(e){if(globalThis.innerWidth<=385)return d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(jx,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(jx,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function jx(e){let{t}=O(),[n,r]=N("UntilNext"),a=ad()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Ho}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Ho}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(yn,{type:"modal-close"})})]}),d("div",{class:`${Ho}-close-radio-content mt-3`,children:o.map(s=>d(EU,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ea(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Ho}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Ho}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function EU(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=AU(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Ho}-radio-sel`:`${Ho}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function AU(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var qo="imt-fb";function qx(e){let{t}=O(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${qo}-guide-container`,style:r,children:[d("img",{class:`${qo}-guide-bg ${e.fixedPosition}`,src:kU}),d("div",{class:`${qo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${qo}-guide-img`,src:an("images/float_ball_intro.png")}),d("div",{class:`${qo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` -${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var kU="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZIMjU4LjkxNEMyNjkuOTU5IDE2IDI3OC45MTQgMjQuOTU0MyAyNzguOTE0IDM2VjE3My4wNzVMMjg5LjEyOCAxNzguNzQyQzI5MS43NzggMTgwLjIxMyAyOTEuODk0IDE4My45ODIgMjg5LjMzOSAxODUuNjEyTDI3OC45MTQgMTkyLjI2M1YzMjhDMjc4LjkxNCAzMzkuMDQ2IDI2OS45NTkgMzQ4IDI1OC45MTQgMzQ4SDQwQzI4Ljk1NDMgMzQ4IDIwIDMzOS4wNDYgMjAgMzI4VjM2WiI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WFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var zx="imt-manga";function Vx({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===P+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=le(()=>{if(t(),!a.isPro){if(a.user)return window.open(O2);window.open(B2)}},[a,t]);return e?d("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${zx}-guide-bg ${r}`,src:`${$t}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${zx}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(yn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var mi="imt-fb";function D3(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Xe(r,a);let s=pt(r),u=e.ctx,{isFullScreen:l}=Rx(),[c,m]=N(!1),g=Se(c);g.current=c;let[p,f]=N(!0),{pageStatus:b}=Dx(),y=ii(u,r),h=le(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&bn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,bn,m]),v=le(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:x,active:S,ballRef:T,floatBallConfigRef:w,setActive:A}=Mx({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:I,handleCloseGuide:R}=Ix(e.ctx,y),{closeTransform:B,logoContainerTransform:L,settingTransform:U,mangaTransform:F}=Px(y,S||I);Ox(u,S);let{tooltipDelay:q,disableTooltip:Y,tooltipText:te,handleShowTooltip:xe}=Bx(u,b);_x(m,g),Nx(A);let H=globalThis.innerWidth<=385;return C?d(ce,{children:d("div",{class:`${mi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:S||I||c?"all":"none"},ref:x,children:[d(DU,{ctx:u,setVisible:f,closeTransform:B,setActive:A,getModalStyle:()=>Wx(w.current.top,300,D)}),d(Pt,{enableMobile:!0,text:te,position:M,delay:q,onShow:xe,disable:Y,children:d("div",{class:`${mi}-btn ${D} btn-animate `,ref:T,style:{transform:L,opacity:S||I?1:.5},children:d("div",{children:[d(yn,{type:"logo"}),d(yn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(PU,{ctx:u,mangaTransform:F,floatBallConfigRef:w,fixedPosition:D,hidden:I}),d("div",{style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:[d(Pt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{od(W2,!0)},children:d(yn,{type:"file"})})}),d(Pt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${mi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(yn,{type:"setting"})})}),d(IU,{ctx:u,tooltipPosition:M,rule:y,active:S})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:d(Pt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(co,{detail:{type:"webReport"}}))}})})}),d(L3,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>Wx(w.current.top,500,D)}),d(qx,{visible:I,top:w.current.top,fixedPosition:D,onClose:()=>{R(),A(!1)}})]})}):null}function DU(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ii(e.ctx,i),c=le(g=>{e.ctx&&o(p=>Ui({...p},g))},[e.ctx,o]),m=le(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(ce,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(yn,{type:"close"})}),d(Hx,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function L3(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Bm,{isOpen:e.visible,onClose:e.onClose,children:d(Im,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:d(Im,{onClose:e.onClose})})}):null}function LU(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var Wx=(e,t,n)=>{let a=LU().height,i={position:"fixed"},o=0;return r2()&&(e=MU.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},MU={position:"right",right:0,top:335};function PU({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=Lx(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();z(()=>{c||Ln().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),kt(p))})},[c,s]);let g=le(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await tt.get(mt,null);if(At(f)){e.user=f,e.isPro=!0,bn({method:"toggleTranslateManga"});return}s(!0);return}bn({method:"toggleTranslateManga"})},[]);return!Gd(l)||r||!l?.enable?null:d(ce,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(yn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(yn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(yn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(Pt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(co,{detail:{type:"mangaReport"}}))}})})]}),d(Vx,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var RU="float_ball_upgrade_show_count";function IU(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=Se(!1),[u,l]=N(null),c=ne(()=>pu(n.config),[n]),m=p=>pu(p)?.upgradeShowCountCacheKey||RU;z(()=>{To(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=pu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return z(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wo(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(Pt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||qg,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${mi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(yn,{type:"upgrade"})})})}):d(Pt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(qg,"_blank")},children:d(yn,{type:"upgrade"})})})}async function Gx(){try{let e=await Ze(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});FU(a,e,n),document.documentElement.appendChild(r)}catch{}}function FU(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Te(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);BU(e,[i]),e.appendChild(r),va(d(Qi,{lang:t.interfaceLanguage,children:d(_U,{ctx:n})}),r)}function BU(e,t){for(let n of t){if(Z()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function _U(e){let[t,n]=N(!1),r=Se(t);r.current=t;let a=Se(""),i=Se("");z(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(go,u),()=>{globalThis.document.addEventListener(go,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(L3,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function _m(e){document.dispatchEvent(new CustomEvent(go,{detail:e||{}}))}function OU(e,t){for(let n of t){if(Z()&&!Zn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function M3(){let e=await Ir(),t=await cn(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await g4(r,t),i=gt(r.url,a?.blockUrls),o=await Mt();if(!a?.enable||i)return Gx();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return NU(u,e,o,r),document.documentElement.appendChild(s),s}function Kx(){let e=document.getElementById(P+"-popup");e&&e.remove(),M3()}function NU(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Te(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);OU(e,[o]),e.appendChild(a),va(d(Qi,{lang:t.interfaceLanguage,children:d(D3,{localConfig:n,ctx:r})}),a)}var Yx=!1;async function Qx(){Yx||(Yx=!0,M3().catch(e=>{k.error("init popup error",e)}))}var sc=null;function uc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");sc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function P3(){let e=globalThis.location.href;if(!(!sc||sc.url!==e||!sc.subtitleItems.length))return sc}async function Jx(){let e=P3();if(!e)return;let t=await Mt();t.downloadSubtitle=e,await kt(t),Ea(G2)}async function Zx(){let e=await Mt();if(e.downloadSubtitle)return e.downloadSubtitle}async function Xx(e,t){let n,r;if(t){let a=Am(e);n=new Blob([a],{type:"text/html"}),r=await Qt(),r=Oi(!1,r)}return{siteUrl:location.href,pluginVersion:On(),isMobile:qe().any,platform:_i(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function $x(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var R3={};function no(e){let t=Om(e)||{};R3[e.sourceUrl+"_"+e.to]={...t,...e}}function Om(e){return R3[e.sourceUrl+"_"+e.to]}async function eT(e,t){let n=location.href,r=Object.values(R3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:_i(),images:[],version:On()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=Am(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Qt();a.userConfig=Oi(!1,o)}return a}async function tT(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var lc={width:94,height:80};function nT(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?nT(e.parentElement,t+1):e}function fu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=nT(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=lc.width+"px",c.style.height=lc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-lc.width)/2+"px",c.style.top=l.top-u.top+(l.height-lc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-lc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` +`,b3="immersive-translate-toastify-shadow-root",y3=class{defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}};constructor(t){this.version="1.12.0",this.options={},this.toastElement=null,this._rootElement=document.body,this._init(t)}showToast(){if(this.toastElement=this._buildToast(),typeof this.options.selector=="string")this._rootElement=document.getElementById(this.options.selector);else if(this.options.selector instanceof HTMLElement||this.options.selector instanceof ShadowRoot)this._rootElement=this.options.selector;else if(document.getElementById(b3)){let t=document.getElementById(b3);this._rootElement=t.shadowRoot}else{let t=document.createElement("div");t.setAttribute("translate","no"),t.className="no-translate immersive-translate-toastify-shadow-root",t.id=b3,t.style.all="initial",t.style.zIndex="2147483647",document.body.appendChild(t);let n=t.attachShadow({mode:"open"}),r=document.createElement("style");r.textContent=GN,n.appendChild(r),this._rootElement=n}if(!this._rootElement)throw"Root element is not defined";return this._rootElement.insertBefore(this.toastElement,this._rootElement.firstChild),this._reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(()=>{this._removeElement(this.toastElement)},this.options.duration)),this}hideToast(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this._removeElement(this.toastElement)}_init(t){this.options=Object.assign(this.defaults,t),this.options.backgroundColor,this.toastElement=null,this.options.gravity=t.gravity==="bottom"?"toastify-bottom":"toastify-top",this.options.stopOnFocus=t.stopOnFocus===void 0?!0:t.stopOnFocus,t.backgroundColor&&(this.options.style.background=t.backgroundColor)}_buildToast(){if(!this.options)throw"Toastify is not initialized";let t=document.createElement("div");t.className=`toastify on ${this.options.className}`,t.className+=` toastify-${this.options.position}`,t.className+=` ${this.options.gravity}`;for(let n in this.options.style)t.style[n]=this.options.style[n];if(this.options.ariaLive&&t.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,this.options.avatar!==""){let n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar",this.options.position=="left"?t.appendChild(n):t.insertAdjacentElement("afterbegin",n)}if(this.options.close===!0){let n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Close"),n.className="toast-close",n.innerHTML="✖",n.addEventListener("click",a=>{a.stopPropagation(),this._removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)});let r=window.innerWidth>0?window.innerWidth:screen.width;this.options.position=="left"&&r>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0&&(t.addEventListener("mouseover",n=>{window.clearTimeout(t.timeOutValue)}),t.addEventListener("mouseleave",()=>{t.timeOutValue=window.setTimeout(()=>{this._removeElement(t)},this.options.duration)})),typeof this.options.destination<"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&t.addEventListener("click",n=>{n.stopPropagation(),this.options.onClick()}),typeof this.options.offset=="object"){let n=this._getAxisOffsetAValue("x",this.options),r=this._getAxisOffsetAValue("y",this.options),a=this.options.position=="left"?n:`-${n}`,i=this.options.gravity=="toastify-top"?r:`-${r}`;t.style.transform=`translate(${a},${i})`}return t}_removeElement(t){t.className=t.className.replace(" on",""),window.setTimeout(()=>{this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),this._reposition()},400)}_reposition(){let t={top:15,bottom:15},n={top:15,bottom:15},r={top:15,bottom:15},a=this._rootElement.querySelectorAll(".toastify"),i;for(let o=0;o0?window.innerWidth:screen.width)<=360?(a[o].style[i]=`${r[i]}px`,r[i]+=s+u):a[o].classList.contains("toastify-left")===!0?(a[o].style[i]=`${t[i]}px`,t[i]+=s+u):(a[o].style[i]=`${n[i]}px`,n[i]+=s+u)}}_getAxisOffsetAValue(t,n){return n.offset[t]?isNaN(n.offset[t])?n.offset[t]:`${n.offset[t]}px`:"0px"}};function Mm(e){e=e||{},new y3({gravity:"bottom",duration:1500,style:{background:"#222",color:"#f2f2f2"},...e}).showToast()}function Gx(e,t){let n=t.matches||[],r=t.excludeMatches||[];if(r&&!Array.isArray(r)&&(r=[r]),n&&!Array.isArray(n)&&(n=[n]),r.length>0){if(r.includes(e)||r.includes(""))return!1;for(let a of r)if(a.includes("*")&&new RegExp(a).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let a of n)if(a.includes("*")&&new RegExp(a).test(e))return!0}return!1}function bn(e){Sa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(r=>{k.error("send content message request failed",e,r)}),document.querySelectorAll("iframe").forEach(r=>{r.contentWindow&&r.contentWindow.postMessage({author:jc,payload:e},"*")});let n=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(n)}function v3(e){let t=e.shortcuts||{},r=Object.keys(t).reduce((i,o)=>(i[t[o]]=o,i),{}),a=Object.keys(r);for(let i of a){let o=i.replace(/MacCtrl/ig,"Ctrl");o&&$t(o,s=>{s.preventDefault();let u=r[i];bn({method:u,data:{trigger:"shortcut"}})})}}var $N="imt-fb";function yn({type:e,hidden:t,className:n,onClick:r,style:a}){return e=="logo"?d("svg",{onClick:r,hidden:t,style:a,className:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",class:`${$N}-logo-img`,children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M5 15v2a2 2 0 0 0 1.85 1.995L7 19h3v2H7a4 4 0 0 1-4-4v-2h2zm13-5l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16 10h2zm-1 2.885L15.753 16h2.492L17 12.885zM8 2v2h4v7H8v3H6v-3H2V4h4V2h2zm9 1a4 4 0 0 1 4 4v2h-2V7a2 2 0 0 0-2-2h-3V3h3zM6 6H4v3h2V6zm4 0H8v3h2V6z",fill:"rgba(255,255,255,1)"})]}):e=="close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{"clip-path":"url(#clip0_2589_9951)",children:d("path",{d:"M7 14C5.14348 14 3.36301 13.2625 2.05025 11.9497C0.737498 10.637 0 8.85652 0 7C0 5.14348 0.737498 3.36301 2.05025 2.05025C3.36301 0.737498 5.14348 0 7 0C8.85652 0 10.637 0.737498 11.9497 2.05025C13.2625 3.36301 14 5.14348 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM4.183 5.064L6.118 7L4.183 8.936C4.12409 8.99361 4.07719 9.06234 4.04502 9.1382C4.01285 9.21406 3.99605 9.29554 3.99559 9.37794C3.99513 9.46034 4.01101 9.54201 4.04234 9.61823C4.07366 9.69444 4.11978 9.76369 4.17805 9.82195C4.23631 9.88022 4.30556 9.92634 4.38177 9.95766C4.45799 9.98898 4.53966 10.0049 4.62206 10.0044C4.70446 10.004 4.78594 9.98715 4.8618 9.95498C4.93766 9.92281 5.00639 9.87591 5.064 9.817L7 7.882L8.936 9.817C9.05327 9.93168 9.21104 9.99548 9.37506 9.99457C9.53908 9.99365 9.69612 9.92809 9.8121 9.8121C9.92809 9.69612 9.99365 9.53908 9.99457 9.37506C9.99548 9.21104 9.93168 9.05327 9.817 8.936L7.882 7L9.817 5.064C9.87591 5.00639 9.92281 4.93766 9.95498 4.8618C9.98715 4.78594 10.004 4.70446 10.0044 4.62206C10.0049 4.53966 9.98898 4.45799 9.95766 4.38177C9.92634 4.30556 9.88022 4.23631 9.82195 4.17805C9.76369 4.11978 9.69444 4.07366 9.61823 4.04234C9.54201 4.01101 9.46034 3.99513 9.37794 3.99559C9.29554 3.99605 9.21406 4.01285 9.1382 4.04502C9.06234 4.07719 8.99361 4.12409 8.936 4.183L7 6.118L5.064 4.183C4.94673 4.06832 4.78896 4.00452 4.62494 4.00543C4.46092 4.00635 4.30388 4.07191 4.1879 4.1879C4.07191 4.30388 4.00635 4.46092 4.00543 4.62494C4.00452 4.78896 4.06832 4.94673 4.183 5.064Z",fill:"#B1B1B1","fill-opacity":"0.32"})}),d("defs",{children:d("clipPath",{id:"clip0_2589_9951",children:d("rect",{width:"14",height:"14",fill:"white"})})})]}):e=="setting"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M6.55741 0L9.06847 0.00329403C9.84824 0.00470579 10.4802 0.636235 10.4812 1.41647L10.4821 1.82588C10.9687 2.0278 11.4297 2.28671 11.8553 2.59718L12.1913 2.40329C12.516 2.21676 12.9013 2.1665 13.2629 2.26352C13.6246 2.36055 13.933 2.59695 14.1207 2.92094L15.3795 5.09365C15.5601 5.40546 15.6149 5.7744 15.5328 6.12523C15.4507 6.47606 15.2378 6.78235 14.9376 6.98165L14.8609 7.02871L14.5235 7.22353C14.5819 7.76273 14.5736 8.30708 14.4986 8.84424L14.7372 8.98259C15.0496 9.16307 15.2812 9.45606 15.3848 9.80165C15.4884 10.1472 15.456 10.5193 15.2944 10.8419L15.2553 10.9153L14.076 12.9576C13.8955 13.27 13.6025 13.5017 13.2569 13.6053C12.9113 13.7088 12.5392 13.6765 12.2167 13.5148L12.1433 13.4753L11.8172 13.2871C11.4074 13.5817 10.9651 13.8283 10.4991 14.0221L10.4995 14.5831C10.5 14.9434 10.3629 15.2904 10.1163 15.5532C9.86972 15.816 9.53215 15.9748 9.17247 15.9972L9.08306 16L6.57153 15.9967C6.19697 15.9961 5.83793 15.847 5.57312 15.5821C5.30831 15.3172 5.15932 14.9581 5.15883 14.5835L5.15788 13.9073C4.76852 13.7244 4.39771 13.5044 4.05059 13.2504L3.44918 13.5967C3.12448 13.7834 2.73902 13.8337 2.37726 13.7367C2.01551 13.6397 1.70698 13.4032 1.5193 13.0791L0.260473 10.9064C0.0799611 10.5945 0.0252226 10.2255 0.107423 9.87467C0.189623 9.52384 0.402569 9.21757 0.702826 9.01835L0.779062 8.97129L1.3913 8.61835C1.34424 8.17129 1.34188 7.71765 1.38706 7.26494L0.707532 6.87247C0.395061 6.69207 0.163305 6.39911 0.0596515 6.05351C-0.0440025 5.70791 -0.0117246 5.33577 0.149885 5.01318L0.189415 4.93976L1.36871 2.89741C1.54919 2.58502 1.84218 2.35337 2.18777 2.2498C2.53336 2.14624 2.90547 2.17859 3.228 2.34023L3.30141 2.37976L3.89436 2.72188C4.28027 2.42082 4.69854 2.1637 5.14141 1.95529L5.14047 1.41694C5.14001 1.05657 5.27707 0.709596 5.52367 0.446813C5.77028 0.184029 6.10786 0.0252343 6.46753 0.00282354L6.55741 0ZM6.55553 1.41506L6.55694 2.85271L5.74377 3.23576C5.39553 3.39906 5.06706 3.60094 4.764 3.83718L4.01247 4.424L2.62941 3.62494L2.59365 3.60518L1.41483 5.64753L2.88636 6.49694L2.79506 7.40612C2.75968 7.7598 2.76078 8.11619 2.79836 8.46965L2.8953 9.38541L1.48494 10.1976L2.7433 12.3704L4.14377 11.5647L4.88636 12.1087C5.15997 12.309 5.45231 12.4823 5.7593 12.6264L6.57106 13.008L6.57388 14.5816L9.08447 14.5849L9.08306 13.0791L9.95553 12.7158C10.3216 12.5635 10.6689 12.3698 10.9908 12.1384L11.7329 11.6047L12.8506 12.2499L14.0289 10.2075L12.9654 9.592L13.0972 8.64847C13.1561 8.22659 13.1628 7.79904 13.1169 7.37553L13.0181 6.45882L14.1555 5.80235L12.8967 3.62965L11.7645 4.28235L11.0214 3.74024C10.686 3.4956 10.3229 3.29152 9.93953 3.13224L9.06894 2.77082L9.06659 1.41835L6.55553 1.41506ZM9.37153 5.47624C10.0214 5.85201 10.4955 6.47036 10.6898 7.19547C10.8841 7.92058 10.7827 8.69316 10.4078 9.34353C10.2223 9.66543 9.97517 9.9476 9.68053 10.1739C9.38589 10.4002 9.04953 10.5662 8.69068 10.6623C8.33183 10.7585 7.95754 10.7829 7.58923 10.7343C7.22092 10.6856 6.86582 10.5648 6.54424 10.3788C5.89445 10.003 5.4204 9.38458 5.2262 8.65948C5.032 7.93438 5.13352 7.16184 5.50847 6.51153C5.69395 6.18963 5.94107 5.90746 6.23571 5.68117C6.53034 5.45488 6.86671 5.28891 7.22556 5.19275C7.58441 5.09659 7.9587 5.07213 8.32701 5.12077C8.69532 5.16942 9.05042 5.29021 9.372 5.47624H9.37153ZM6.73388 7.21835C6.54638 7.54388 6.49567 7.9305 6.5929 8.29336C6.69012 8.65623 6.92733 8.96571 7.25247 9.15388C7.41305 9.24679 7.59037 9.30712 7.77429 9.33143C7.9582 9.35574 8.14511 9.34355 8.32431 9.29556C8.50351 9.24757 8.67149 9.16472 8.81864 9.05174C8.96579 8.93877 9.08923 8.7979 9.18188 8.63718C9.55883 7.98353 9.356 7.15435 8.73435 6.74494L8.66377 6.70118L8.59035 6.66165C8.26834 6.49988 7.89663 6.46742 7.55145 6.57093C7.20626 6.67444 6.91375 6.90608 6.73388 7.21835Z",fill:"#6C6F73"})}):e==="file"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6861 1L15.2353 4.54635V7.11765V14.6471V15.5882C15.2353 15.9627 15.0866 16.3217 14.8218 16.5865C14.557 16.8513 14.198 17 13.8235 17H4.41176C4.03734 17 3.67825 16.8513 3.4135 16.5865C3.14874 16.3217 3 15.9627 3 15.5882V14.6471V7.11765V2.41176C3 2.03734 3.14874 1.67825 3.4135 1.4135C3.67825 1.14874 4.03734 1 4.41176 1H11.6861ZM11.8692 3.17882V4.74212H13.4334L11.8692 3.17882ZM4.41171 15.5882V14.647V2.41176H10.4574L10.4578 6.15341H13.8235V14.647V15.5882H4.41171ZM12.7739 7.51746H5.46094V8.6155H12.7739V7.51746ZM5.46094 9.98805H12.7739V11.0861H5.46094V9.98805ZM9.5127 12.36H5.46094V13.458H9.5127V12.36Z",fill:"#6C6F73"})}):e==="translated"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"5.5",cy:"5.5",r:"5.5",fill:"#68CD52"}),d("path",{d:"M1.40857 5.87858L2.24148 5.18962L4.15344 6.64214C4.15344 6.64214 6.33547 4.15566 9.00658 2.48145L9.32541 2.87514C9.32541 2.87514 6.28665 5.55844 4.71735 9.07881L1.40857 5.87858Z",fill:"white"})]}):e==="modal-close"?d("svg",{onClick:r,hidden:t,style:a,className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M4.41083 4.41066C4.5671 4.25443 4.77902 4.16667 4.99999 4.16667C5.22096 4.16667 5.43289 4.25443 5.58916 4.41066L9.99999 8.82149L14.4108 4.41066C14.4877 4.33107 14.5797 4.26758 14.6813 4.22391C14.783 4.18023 14.8923 4.15724 15.003 4.15628C15.1136 4.15532 15.2234 4.1764 15.3258 4.21831C15.4282 4.26021 15.5212 4.32208 15.5995 4.40033C15.6777 4.47857 15.7396 4.57162 15.7815 4.67403C15.8234 4.77644 15.8445 4.88618 15.8435 4.99682C15.8426 5.10747 15.8196 5.21682 15.7759 5.31849C15.7322 5.42016 15.6688 5.51212 15.5892 5.58899L11.1783 9.99982L15.5892 14.4107C15.741 14.5678 15.825 14.7783 15.8231 14.9968C15.8212 15.2153 15.7335 15.4243 15.579 15.5788C15.4245 15.7333 15.2155 15.821 14.997 15.8229C14.7785 15.8248 14.568 15.7408 14.4108 15.589L9.99999 11.1782L5.58916 15.589C5.43199 15.7408 5.22149 15.8248 5.00299 15.8229C4.7845 15.821 4.57549 15.7333 4.42098 15.5788C4.26647 15.4243 4.17883 15.2153 4.17693 14.9968C4.17503 14.7783 4.25903 14.5678 4.41083 14.4107L8.82166 9.99982L4.41083 5.58899C4.2546 5.43272 4.16684 5.22079 4.16684 4.99982C4.16684 4.77885 4.2546 4.56693 4.41083 4.41066Z",fill:"#C4C4C4"})}):e=="manga"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("g",{id:"manhua",children:[d("path",{id:"Vector",d:"M14.8853 4.92364C14.8853 4.92364 16.3905 10.4362 22.6668 4C22.6668 4 20.3381 10.8907 25.3364 10.0843C25.3364 10.0843 22.0563 15.6994 29 18.0599C29 18.0599 22.9934 19.306 21.1617 28C21.1617 28 17.7679 24.54 14.8853 27.3549C14.8853 27.3549 13.3233 23.5724 7.33097 26.27C7.33097 26.27 10.1141 20.6549 4.83179 21.0507C4.83179 21.0507 7.16057 18.8955 3 15.9047C3 15.9047 7.50137 16.1833 6.33697 11.7117C6.33697 11.7117 10.0005 12.3421 8.66576 6.82957C8.65156 6.81491 12.4855 9.80574 14.8853 4.92364Z",fill:"#EA4C89"}),d("path",{id:"Vector_2",d:"M20.8599 13.7022C20.885 13.1361 20.9543 12.5713 20.9959 12.0052C21.0337 11.568 20.8107 11.2794 20.3876 11.18C20.0759 11.1013 19.7508 11.0867 19.433 11.137C19.1951 11.1945 18.9542 11.2396 18.7113 11.2721C18.2403 11.3028 17.9973 11.5275 17.9796 11.988C17.977 12.0833 17.9596 12.1777 17.928 12.268C17.3034 13.9102 16.6774 15.5499 16.0503 17.1873C16.0301 17.2401 16.0062 17.2904 15.9671 17.3776C15.7291 16.8975 15.4281 16.4898 15.2745 15.9986C14.8073 14.5152 14.3186 13.033 13.8312 11.5594C13.6826 11.1112 13.3489 10.9344 12.8754 11.0216C12.7889 11.0365 12.7008 11.0398 12.6134 11.0314C12.2241 10.9938 11.8311 11.0404 11.4623 11.1677C11.0946 11.2991 10.9498 11.557 11.0152 11.9254C11.0428 12.0371 11.0643 12.1503 11.0795 12.2643C11.1223 13.1902 11.1777 14.1087 11.2054 15.0321C11.257 16.7992 11.2117 18.5651 11.0858 20.3284C11.0644 20.6354 11.0304 20.9424 11.0228 21.2494C11.0115 21.6092 11.1613 21.7811 11.5266 21.8143C11.9976 21.8573 12.4711 21.8708 12.9421 21.9088C13.0309 21.9201 13.121 21.9003 13.1962 21.8528C13.2714 21.8053 13.3268 21.7334 13.3527 21.6497C13.3996 21.5394 13.4252 21.4216 13.4282 21.3022C13.4295 20.8258 13.4207 20.3493 13.4081 19.8741C13.393 19.3264 13.3917 18.7763 13.3438 18.231C13.2857 17.5839 13.266 16.934 13.2847 16.2847C13.2847 16.2466 13.291 16.2073 13.2985 16.1312C13.3338 16.2024 13.3514 16.2356 13.3665 16.2712C13.9017 17.5228 14.3617 18.8037 14.7443 20.1074C14.7928 20.2421 14.7928 20.3889 14.7443 20.5237C14.6322 20.8196 14.7141 21.037 14.9659 21.1377C15.4445 21.3268 15.9331 21.4926 16.4155 21.6731C16.4865 21.7033 16.566 21.7091 16.6408 21.6895C16.7157 21.6698 16.7815 21.6259 16.8273 21.565C16.9085 21.4643 16.9743 21.3526 17.0225 21.2335C17.0537 21.1374 17.0798 21.0399 17.1006 20.9412C17.3185 20.2425 17.5653 19.5499 17.7517 18.8438C17.9785 17.9723 18.2624 17.1158 18.6018 16.2798C18.6201 16.2439 18.6411 16.2094 18.6647 16.1766C18.6761 16.2319 18.6761 16.254 18.6761 16.2761C18.6345 17.59 18.5955 18.8978 18.5501 20.2056C18.5363 20.5949 18.491 20.9829 18.4809 21.3722C18.4721 21.705 18.6207 21.8708 18.9557 21.9002C19.4355 21.9432 19.9191 21.9592 20.4002 21.9973C20.4888 22.0079 20.5784 21.9875 20.653 21.9399C20.7277 21.8922 20.7827 21.8203 20.8082 21.7369C20.8531 21.6305 20.8766 21.5167 20.8775 21.4017C20.88 20.7668 20.8674 20.132 20.8674 19.4971C20.8662 19.2846 20.8687 19.0722 20.8523 18.8622C20.8158 18.3968 20.7264 17.9314 20.7339 17.4685C20.7515 16.2122 20.8044 14.9572 20.8599 13.7022Z",fill:"white"})]})}):e=="loading"?d("svg",{onClick:r,className:n,hidden:t,style:a,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M9.42859 0C9.84288 0 10.1929 0.387143 10.1929 0.847143V3.99429C10.1929 4.45429 9.84431 4.84143 9.42859 4.84143C9.01431 4.84143 8.66431 4.45571 8.66431 3.99429V0.847143C8.66431 0.387143 9.01288 0 9.42859 0Z",fill:"#E9E9E9"}),d("path",{d:"M14.1301 1.38877C14.5158 1.62591 14.6301 2.12163 14.4258 2.52305L12.9515 5.19448C12.901 5.28714 12.8325 5.36876 12.75 5.43455C12.6675 5.50035 12.5727 5.54898 12.4712 5.5776C12.3696 5.60621 12.2634 5.61424 12.1586 5.60119C12.0539 5.58814 11.9529 5.55429 11.8615 5.50163C11.6787 5.38432 11.5468 5.20237 11.4923 4.9921C11.4377 4.78184 11.4645 4.55874 11.5672 4.36734L13.0415 1.69591C13.2686 1.29448 13.7443 1.15305 14.1301 1.38877Z",fill:"#989697"}),d("path",{d:"M17.4685 4.75707C17.5813 4.95451 17.6123 5.18824 17.5549 5.40825C17.4975 5.62826 17.3563 5.81705 17.1614 5.93422L14.4971 7.52564C14.0971 7.76993 13.6014 7.62422 13.3657 7.20707C13.2532 7.00994 13.2222 6.77667 13.2793 6.55702C13.3365 6.33737 13.4771 6.14874 13.6714 6.03136L16.3357 4.43993C16.7371 4.21993 17.2557 4.34136 17.4685 4.7585V4.75707Z",fill:"#9B999A"}),d("path",{d:"M18.8572 9.42835C18.8572 9.84263 18.47 10.1926 18.01 10.1926H14.8629C14.4029 10.1926 14.0157 9.84406 14.0157 9.42835C14.0157 9.01406 14.4029 8.66406 14.8629 8.66406H18.01C18.47 8.66406 18.8572 9.01263 18.8572 9.42835Z",fill:"#A3A1A2"}),d("path",{d:"M17.4686 14.1303C17.3515 14.3134 17.1697 14.4455 16.9594 14.5003C16.7491 14.5552 16.5259 14.5286 16.3343 14.426L13.6629 12.9517C13.5702 12.9012 13.4886 12.8327 13.4228 12.7503C13.357 12.6678 13.3084 12.573 13.2798 12.4714C13.2512 12.3698 13.2431 12.2636 13.2562 12.1589C13.2692 12.0542 13.3031 11.9532 13.3558 11.8617C13.4731 11.6789 13.655 11.547 13.8653 11.4925C14.0755 11.4379 14.2986 11.4647 14.49 11.5674L17.1615 13.0417C17.5629 13.2689 17.7043 13.7446 17.4686 14.1303Z",fill:"#ABA9AA"}),d("path",{opacity:"0.7",d:"M14.1 17.4686C13.9026 17.5814 13.6689 17.6124 13.4489 17.555C13.2288 17.4976 13.04 17.3564 12.9229 17.1615L11.3315 14.4972C11.0872 14.0972 11.2329 13.6015 11.65 13.3658C11.8472 13.2533 12.0804 13.2224 12.3001 13.2795C12.5197 13.3366 12.7084 13.4773 12.8257 13.6715L14.4172 16.3358C14.6372 16.7372 14.5157 17.2558 14.0986 17.4686H14.1Z",fill:"#B2B2B2"}),d("path",{opacity:"0.6",d:"M9.42859 18.8571C9.01431 18.8571 8.66431 18.4699 8.66431 18.0099V14.8628C8.66431 14.4028 9.01288 14.0156 9.42859 14.0156C9.84288 14.0156 10.1929 14.4028 10.1929 14.8628V18.0099C10.1929 18.4699 9.84431 18.8571 9.42859 18.8571Z",fill:"#BAB8B9"}),d("path",{opacity:"0.5",d:"M4.72717 17.4685C4.5441 17.3514 4.41195 17.1696 4.35713 16.9593C4.30231 16.749 4.32885 16.5258 4.43145 16.3342L5.90574 13.6628C5.95622 13.5701 6.02472 13.4885 6.1072 13.4227C6.18969 13.3569 6.2845 13.3083 6.38606 13.2797C6.48762 13.251 6.59387 13.243 6.69857 13.2561C6.80327 13.2691 6.90431 13.303 6.99574 13.3556C7.38145 13.5914 7.49431 14.0885 7.29002 14.4899L5.81574 17.1614C5.5886 17.5628 5.11288 17.7042 4.72717 17.4685Z",fill:"#C2C0C1"}),d("path",{opacity:"0.4",d:"M1.38862 14.1002C1.27584 13.9027 1.24483 13.669 1.30223 13.449C1.35964 13.229 1.50089 13.0402 1.69576 12.923L4.36004 11.3316C4.76004 11.0873 5.25576 11.233 5.49147 11.6502C5.60393 11.8473 5.63491 12.0806 5.5778 12.3002C5.52069 12.5199 5.38 12.7085 5.18576 12.8259L2.52004 14.4173C2.12004 14.6373 1.60004 14.5159 1.38862 14.0987V14.1002Z",fill:"#CBCBCB"}),d("path",{d:"M0 9.42835C0 9.01406 0.387143 8.66406 0.847143 8.66406H3.99429C4.45429 8.66406 4.84143 9.01263 4.84143 9.42835C4.84143 9.84263 4.45571 10.1926 3.99429 10.1926H0.847143C0.387143 10.1926 0 9.84406 0 9.42835Z",fill:"#D2D2D2"}),d("path",{opacity:"0.2",d:"M1.38852 4.72705C1.50561 4.54398 1.68746 4.41183 1.89774 4.35701C2.10803 4.30219 2.33125 4.32873 2.52281 4.43133L5.19424 5.90562C5.28689 5.9561 5.36851 6.0246 5.43431 6.10708C5.5001 6.18957 5.54874 6.28438 5.57735 6.38594C5.60597 6.48749 5.61399 6.59375 5.60094 6.69845C5.5879 6.80315 5.55405 6.90419 5.50138 6.99562C5.38407 7.17844 5.20212 7.31029 4.99186 7.36484C4.78159 7.4194 4.55849 7.39263 4.3671 7.2899L1.69567 5.81562C1.29424 5.58847 1.15281 5.11276 1.38852 4.72705Z",fill:"#DADADA"}),d("path",{d:"M4.75719 1.38849C4.95463 1.27571 5.18837 1.24471 5.40838 1.30211C5.62838 1.35952 5.81718 1.50077 5.93434 1.69564L7.52577 4.35992C7.77005 4.75992 7.62434 5.25564 7.20719 5.49135C7.01006 5.60381 6.77679 5.63479 6.55714 5.57768C6.33749 5.52056 6.14886 5.37988 6.03148 5.18564L4.44005 2.51992C4.22005 2.11992 4.34148 1.59992 4.75862 1.38849H4.75719Z",fill:"#E2E2E2"})]}):e=="manga-feedback"?d("svg",{onClick:r,hidden:t,className:n,style:a,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.9999 3C15.1688 3 15.336 3.03326 15.492 3.09787C15.648 3.16248 15.7897 3.25719 15.9091 3.37658C16.0285 3.49597 16.1232 3.6377 16.1878 3.79369C16.2524 3.94968 16.2857 4.11687 16.2857 4.28571V12.8571C16.2857 13.026 16.2524 13.1932 16.1878 13.3492C16.1232 13.5052 16.0285 13.6469 15.9091 13.7663C15.7897 13.8857 15.648 13.9804 15.492 14.045C15.336 14.1096 15.1688 14.1429 14.9999 14.1429H8.32366L5.37766 16.0736C5.313 16.1159 5.23809 16.14 5.16086 16.1433C5.08363 16.1465 5.00696 16.1288 4.93897 16.0921C4.87097 16.0553 4.81418 16.0008 4.77462 15.9344C4.73506 15.868 4.71419 15.7922 4.71423 15.7149V14.1429H2.99995C2.83111 14.1429 2.66392 14.1096 2.50793 14.045C2.35194 13.9804 2.2102 13.8857 2.09081 13.7663C1.97142 13.6469 1.87672 13.5052 1.8121 13.3492C1.74749 13.1932 1.71423 13.026 1.71423 12.8571V4.28571C1.71423 3.94472 1.84969 3.61769 2.09081 3.37658C2.33193 3.13546 2.65896 3 2.99995 3H14.9999ZM14.9999 4.28571H2.99995V12.8571H5.99995V14.1287L7.94009 12.8571H14.9999V4.28571ZM9.54852 8.57143V9.85714H5.99995V8.57143H9.54852ZM11.9999 6V7.28571H5.99995V6H11.9999Z",fill:"#6C6F73"})}):e==="upgrade"?d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",style:a,viewBox:"0 0 18 18",fill:"none",children:[d("path",{d:"M16.8349 1.42689C16.7899 1.13816 16.7744 1.12574 16.4779 1.07141C16.2031 1.02018 15.9283 1 15.652 1C15.3819 1 15.1118 1.01863 14.8433 1.04657C13.7644 1.15834 12.7119 1.39895 11.6905 1.76686C9.88197 2.41884 8.28617 3.39216 6.99462 4.83429C6.93563 4.89949 6.87508 4.92122 6.79902 4.92122C6.78039 4.92122 6.76176 4.91967 6.74158 4.91811C6.19826 4.85912 5.65339 4.76443 5.10852 4.76443H5.07126C4.0995 4.77219 3.34195 5.21772 2.81571 6.04201C2.52852 6.49219 2.24289 6.94392 1.95571 7.39565C1.68871 7.81479 1.41549 8.22771 1.15625 8.6515C0.788348 9.25381 1.13607 9.9772 1.82066 10.0284C2.64495 10.0905 3.46924 10.1402 4.29354 10.1852C4.44256 10.193 4.50621 10.2333 4.52018 10.3917C4.56986 10.9164 4.70957 11.4162 4.99054 11.868C5.53852 12.7466 6.33642 13.2294 7.35476 13.3644C7.73819 13.4156 7.72732 13.4187 7.75526 13.8146C7.8096 14.6063 7.86858 15.3995 7.9431 16.1897C7.98967 16.6833 8.36999 17 8.79378 17C8.96143 17 9.13685 16.9503 9.3014 16.8432C10.2219 16.2409 11.1518 15.6479 12.0444 15.0052C12.8764 14.406 13.2381 13.5616 13.131 12.5293C13.086 12.0868 13.0488 11.6429 13.0037 11.2004C12.9898 11.0638 13.0224 10.9598 13.1295 10.862C14.435 9.66518 15.3664 8.21684 16.0029 6.57291C16.5353 5.19754 16.8535 3.77869 16.8986 2.30242C16.9001 2.2605 16.9017 2.21859 16.9017 2.17823C16.9063 1.9252 16.8737 1.67527 16.8349 1.42689Z",fill:"url(#paint0_linear_13204_228)"}),d("path",{d:"M12.4813 7H12.4922C13.3249 7 13.9955 6.33959 14.0064 5.50543C14.0163 4.70286 13.3507 4.01283 12.5595 4H12.5318C11.7218 4 11.0265 4.59329 11.0068 5.51431C10.99 6.29121 11.6951 6.99408 12.4813 7Z",fill:"#F8C235"}),d("path",{d:"M6.46823 14.9385C6.03823 15.3732 5.60357 15.8016 5.17513 16.2347C5.07267 16.3387 4.96246 16.4024 4.83516 16.4024C4.78549 16.4024 4.73271 16.3931 4.67682 16.3713C4.47347 16.2968 4.37567 16.1462 4.36636 15.9351C4.36015 15.8016 4.36325 15.6681 4.36015 15.5346C4.35549 15.3763 4.35394 15.3188 4.29184 15.3188C4.25769 15.3188 4.20646 15.3359 4.1273 15.3623C3.64452 15.5222 3.16329 15.6836 2.68051 15.8435C2.60755 15.8684 2.53304 15.8854 2.46163 15.8854C2.39333 15.8854 2.32502 15.8699 2.25672 15.8327C2.05026 15.7162 1.97264 15.5098 2.05492 15.2568C2.21481 14.7616 2.38401 14.2679 2.54701 13.7727C2.61842 13.5585 2.61376 13.5538 2.38246 13.5492C2.24275 13.5476 2.10304 13.5492 1.96333 13.543C1.75997 13.5336 1.6156 13.4343 1.53954 13.2418C1.46658 13.054 1.51315 12.891 1.64976 12.7528C2.09838 12.3026 2.54856 11.8525 2.99874 11.4038C3.07946 11.3231 3.17571 11.2734 3.27972 11.2734C3.29058 11.2734 3.30145 11.2734 3.31076 11.275C3.55448 11.2781 3.68953 11.3868 3.77802 11.6351C4.12109 12.6131 4.74513 13.3536 5.65014 13.8565C5.8504 13.9668 6.05996 14.0568 6.27729 14.1313C6.67003 14.2648 6.75852 14.6451 6.46823 14.9385Z",fill:"#F8C235"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13204_228",x1:"6.21416",y1:"17",x2:"17.8599",y2:"9.43011",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#272727"}),d("stop",{offset:"0.990396","stop-color":"#696969"})]})})]}):null}function $x(e,t,n){let r=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),r=t!=="auto"?n[t].matches:[];let a={},i=Object.keys(n);for(let l of i){let m=n[l].matches;for(let g of m)a[g]||(a[g]=[]),a[g].push(l)}let o=a[e];if(o&&o.length>0)for(let l of o)n[l].matches.indexOf(e)>-1&&(n[l]={...n[l],matches:n[l].matches.filter(m=>m!==e)});let s=new Set(r);if(t==="auto")return{...n};s.add(e);let u=Array.from(s);return{...n,[t]:{...n[t],matches:u}}}var Pm="DROP_DOWN_DEFAULT_VALUE";function C3(e){let{showArrow:t,onSelected:n,className:r,menus:a,maxWidth:i,style:o}=e;r=r||"",t=t??!0,i=i||80;let s=xe(null);return d("select",{ref:s,autoComplete:"off",class:`min-select ${t?"":"min-select-no-arrow"} ${r||""}`,value:Pm,style:{maxWidth:`${i}px`,...o},onChange:u=>{u.preventDefault();let l=u.target.value;if(s.current&&l!==Pm){s.current.value=Pm,s.current?.dispatchEvent(new Event("change"));let c=a.find(m=>m.value===l);c&&n(c)}},children:[{value:Pm,label:e.label}].concat(a).map((u,l)=>d("option",{value:u.value,children:u.label},"option-"+l))})}var YN=({date:e})=>{let{t}=O(),[n,r]=N(!1);return z(()=>{setTimeout(()=>{r(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},ZN=({minVersion:e})=>{let{t}=O();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},JN=()=>{let{t:e}=O();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:Y+"docs/installation/"})}})},XN=({message:e,handleSyncing:t,date:n})=>{let{t:r}=O();return d("p",{class:"text-sm",children:[r("failToSyncRules")," ",d("a",{onClick:t,children:r("retry")}),d("br",{}),r("failedReason"),"\uFF1A",e,d("br",{}),r("currentRuleVersion"),"\uFF1A",n]})};function x3(e){let{isShowError:t,request:n}=e,[r,a]=N(null),{t:i}=O(),[o,s]=N(null),[u,l]=N(null),[c,m]=N(""),[g,p]=N(!1),[f,b]=N(!1),[y,h]=N(!1),[v,C]=N(null),[T,x]=N(null),S=On(),w=async()=>{m("");let A=o;if(o===null)try{let D=await n({url:bi});D?(s(D),A=D,p(!0)):(m(i("unknownError")),l(null))}catch(D){l(null),m(D.message);return}A!==null?(e.setStorageBuildinConfig(A),l(!1),a(A.buildinConfigUpdatedAt)):(m(i("canNotFetchRemoteRule")),l(null))};return z(()=>{Je().then(A=>{let D=A.buildinConfigUpdatedAt;C(A);let M=new Date(D);if(a(D),S==="0.0.0"){h(!0);return}n({url:bi}).then(R=>{let _=R,F=_.minVersion,L=S;s(_);let U=_.latestVersion;if(U&&(ja(L,U)?x(!0):x(!1)),ja(L,F)){let I=_.buildinConfigUpdatedAt;new Date(I)>M?(l(!0),w()):l(!1)}else b(!0),l(null)}).catch(R=>{l(null),m(R.message)})})},[]),z(()=>{Je().then(A=>{C(A),ia(A)})},[r]),v?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:y?d(JN,{}):c?t===!1?null:d(XN,{handleSyncing:w,message:c,date:r||""}):f?t===!1?null:d(ZN,{minVersion:o.minVersion}):u===null||u===!0?null:g?d(YN,{date:r}):null}):null}var Yx=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.4284 6.59193L15.1187 2.28564H6.28557C5.83092 2.28564 5.39488 2.46626 5.07339 2.78775C4.7519 3.10924 4.57129 3.54527 4.57129 3.99993V9.71422V18.8571V19.9999C4.57129 20.4546 4.7519 20.8906 5.07339 21.2121C5.39488 21.5336 5.83092 21.7142 6.28557 21.7142H17.7141C18.1688 21.7142 18.6048 21.5336 18.9263 21.2121C19.2478 20.8906 19.4284 20.4546 19.4284 19.9999V18.8571V9.71422V6.59193ZM15.341 6.82964V4.93136L17.2404 6.82964H15.341ZM6.28551 18.8571V19.9999H17.7141V18.8571V8.54335H13.6272L13.6267 3.99992H6.28551V18.8571Z"}),d("rect",{x:"7.55957",y:"10.2002",width:"8.88",height:"1.8",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"13.2002",width:"8.88",height:"1.68",fill:"#EA4C89"}),d("rect",{x:"7.55957",y:"16.0801",width:"4.92",height:"1.8",fill:"#EA4C89"})]});var Zx=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 20 20",fill:"#B3B3B3",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0402 2.56219C10.8673 2.38914 10.6329 2.29178 10.3883 2.2915H9.61327C9.36886 2.29316 9.13508 2.39169 8.96323 2.5655C8.79138 2.7393 8.6955 2.97417 8.6966 3.21859V4.08317L7.88827 4.38838C7.27152 4.62052 6.69744 4.95314 6.18931 5.37275L5.51952 5.92484L4.76848 5.4915L4.7539 5.48317C4.61453 5.40172 4.45595 5.35893 4.29452 5.35921C4.13241 5.35919 3.97315 5.40182 3.83273 5.48282C3.69231 5.56382 3.57567 5.68033 3.49452 5.82067L3.12577 6.45817C3.00657 6.66857 2.9746 6.91731 3.03672 7.15101C3.09885 7.38471 3.25012 7.58474 3.45806 7.70817L3.47056 7.72171L4.21952 8.15505L4.07785 9.00817C3.96954 9.6575 3.96954 10.3203 4.07785 10.9696L4.2164 11.8207L3.46848 12.2519L3.44556 12.2655C3.23393 12.3881 3.07956 12.5896 3.0163 12.8259C2.95303 13.0622 2.98603 13.3139 3.10806 13.5259L3.50077 14.2061C3.58233 14.3463 3.6992 14.4627 3.83975 14.5436C3.9803 14.6246 4.13961 14.6673 4.30181 14.6675C4.46324 14.6678 4.62182 14.625 4.76119 14.5436L4.7841 14.53L5.53306 14.0978L6.20181 14.6457C6.70534 15.0591 7.27331 15.3871 7.88306 15.6165L8.6914 15.9217V16.7853C8.6914 17.0298 8.78849 17.2644 8.96134 17.4375C9.1342 17.6105 9.36868 17.7079 9.61327 17.7082H10.3883C10.5096 17.7086 10.6299 17.685 10.7422 17.6389C10.8544 17.5928 10.9565 17.525 11.0425 17.4393C11.1285 17.3537 11.1968 17.2519 11.2435 17.1399C11.2901 17.0278 11.3142 16.9077 11.3143 16.7863V15.9217L12.1226 15.6165C12.7394 15.3844 13.3135 15.0517 13.8216 14.6321L14.4914 14.08L15.2424 14.5134L15.257 14.5228C15.469 14.6447 15.7206 14.6775 15.9567 14.614C16.1929 14.5505 16.3941 14.3959 16.5164 14.1842L16.8851 13.5467C17.0068 13.3348 17.0397 13.0834 16.9764 12.8473C16.9132 12.6113 16.759 12.41 16.5476 12.2873L16.532 12.278L15.782 11.8457L15.9237 10.9915C16.032 10.3422 16.032 9.67938 15.9237 9.03005L15.7851 8.179L16.5331 7.74775L16.556 7.73421C16.7676 7.61158 16.922 7.41003 16.9852 7.17376C17.0485 6.93749 17.0155 6.68577 16.8935 6.4738L16.5008 5.79359C16.4192 5.65338 16.3023 5.53699 16.1618 5.45603C16.0212 5.37506 15.8619 5.33234 15.6997 5.33213C15.5383 5.33185 15.3797 5.37464 15.2404 5.45609L15.2174 5.46963L14.4685 5.90192L13.7997 5.354C13.2962 4.94059 12.7282 4.61262 12.1185 4.38317L11.3101 4.07796V3.21442C11.3101 2.96983 11.2131 2.73524 11.0402 2.56219ZM9.61327 1.0415H10.3883C10.6736 1.04164 10.9562 1.09798 11.2197 1.20731C11.4833 1.31663 11.7228 1.4768 11.9245 1.67867C12.1261 1.88054 12.2861 2.12016 12.3951 2.38384C12.5042 2.64753 12.5603 2.93011 12.5601 3.21546C13.2969 3.49312 13.9834 3.88931 14.5924 4.38838L14.6154 4.37484C14.8625 4.2313 15.1356 4.13798 15.4189 4.10025C15.7023 4.06251 15.9903 4.0811 16.2664 4.15495C16.5425 4.2288 16.8013 4.35644 17.028 4.53057C17.2547 4.7047 17.4447 4.92187 17.5872 5.16963L17.9799 5.84984C18.1226 6.09693 18.2153 6.36972 18.2525 6.65262C18.2897 6.93552 18.2709 7.22299 18.197 7.49859C18.123 7.7742 17.9956 8.03254 17.8218 8.25885C17.648 8.48516 17.4313 8.67501 17.1841 8.81755L17.1612 8.83109C17.2248 9.21777 17.2569 9.60899 17.257 10.0009C17.2552 10.4017 17.2203 10.8016 17.1529 11.1967L17.1685 11.205C17.6673 11.4933 18.0313 11.9678 18.1803 12.5243C18.3294 13.0809 18.2513 13.6738 17.9633 14.1728L17.5956 14.8103C17.3075 15.3093 16.833 15.6734 16.2765 15.8227C15.72 15.9719 15.1269 15.894 14.6279 15.6061L14.6133 15.5978C13.999 16.1043 13.3053 16.5059 12.5601 16.7863C12.5599 17.3622 12.331 17.9145 11.9237 18.3217C11.5165 18.729 10.9642 18.9579 10.3883 18.9582H9.61327C9.32792 18.958 9.04539 18.9017 8.78181 18.7924C8.51823 18.683 8.27877 18.5229 8.07709 18.321C7.87541 18.1191 7.71547 17.8795 7.6064 17.6158C7.49733 17.3521 7.44126 17.0696 7.4414 16.7842C6.70459 16.5066 6.01812 16.1104 5.40911 15.6113L5.38619 15.6248C5.13939 15.7686 4.86664 15.8623 4.58357 15.9005C4.30049 15.9387 4.01267 15.9206 3.73659 15.8474C3.4605 15.7741 3.20159 15.6471 2.97469 15.4736C2.74779 15.3001 2.55736 15.0835 2.41431 14.8363L2.0216 14.1561C1.8789 13.909 1.78628 13.6362 1.74904 13.3533C1.7118 13.0704 1.73068 12.7829 1.80459 12.5073C1.87849 12.2317 2.00599 11.9734 2.17977 11.7471C2.35356 11.5208 2.57025 11.3309 2.81744 11.1884L2.84035 11.1748C2.7767 10.7882 2.74465 10.3969 2.74452 10.005C2.74637 9.60425 2.78121 9.20429 2.84869 8.80921L2.83306 8.80088C2.33422 8.51264 1.97027 8.0381 1.82123 7.48158C1.67218 6.92506 1.75025 6.33214 2.03827 5.83317L2.40598 5.19046C2.69404 4.69144 3.16851 4.32727 3.72504 4.17803C4.28157 4.02879 4.87459 4.1067 5.37369 4.39463L5.38827 4.40296C6.00243 3.89603 6.69615 3.49408 7.4414 3.21338C7.44167 2.63745 7.67058 2.08518 8.07783 1.67794C8.48507 1.27069 9.03734 1.04178 9.61327 1.0415ZM11.1583 8.26761C10.8156 8.03869 10.4129 7.9165 10.0008 7.9165C9.44828 7.9165 8.91838 8.136 8.52768 8.5267C8.13698 8.9174 7.91748 9.4473 7.91748 9.99984C7.91748 10.4119 8.03967 10.8147 8.26859 11.1573C8.49751 11.4999 8.82288 11.7669 9.20356 11.9246C9.58424 12.0823 10.0031 12.1235 10.4073 12.0431C10.8114 11.9628 11.1826 11.7643 11.474 11.473C11.7653 11.1816 11.9637 10.8104 12.0441 10.4063C12.1245 10.0021 12.0832 9.58326 11.9256 9.20258C11.7679 8.8219 11.5009 8.49653 11.1583 8.26761ZM8.14891 7.22827C8.69708 6.862 9.34154 6.6665 10.0008 6.6665C10.8849 6.6665 11.7327 7.01769 12.3578 7.64281C12.983 8.26794 13.3341 9.11578 13.3341 9.99984C13.3341 10.6591 13.1387 11.3036 12.7724 11.8517C12.4061 12.3999 11.8855 12.8271 11.2764 13.0794C10.6673 13.3317 9.99712 13.3977 9.35051 13.2691C8.70391 13.1405 8.10997 12.823 7.64379 12.3569C7.17762 11.8907 6.86015 11.2967 6.73153 10.6501C6.60291 10.0035 6.66892 9.33331 6.92122 8.72423C7.17351 8.11514 7.60075 7.59454 8.14891 7.22827Z"})}),Jx=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{d:"M22.9331 7.46673V21.3334C22.9331 22.2667 22.1331 23.0667 21.1997 23.0667H10.1331V22.0001V20.9334H20.9331V7.60006H15.3331L11.0664 18.0001C10.7997 18.6667 10.1331 19.0667 9.46641 19.0667H2.79974C1.86641 19.0667 1.06641 18.2667 1.06641 17.3334V3.46673C1.06641 2.5334 1.86641 1.7334 2.79974 1.7334L12.9331 1.7334V2.80007V3.86673H2.93307V17.3334H9.33307L13.5997 6.9334C13.8664 6.26673 14.5331 5.86673 15.1997 5.86673H21.3331C22.2664 5.60006 22.9331 6.40007 22.9331 7.46673Z"}),d("path",{d:"M5.904 11.4063L5.472 13H4L6.056 6H7.96L10 13H8.496L8.072 11.4063H5.904ZM7.688 9.95389L7.048 7.54323H6.952L6.296 9.95389H7.688Z",fill:"#EA4C89"}),d("path",{d:"M19.4337 18.9805C18.403 18.6732 17.5907 18.3117 16.9968 17.8961C16.6999 18.1039 16.3542 18.2965 15.9597 18.474C15.5652 18.6558 15.1071 18.8312 14.5854 19L14 17.8831C14.9035 17.6494 15.6076 17.3918 16.1124 17.1104C15.8579 16.816 15.6394 16.4848 15.4571 16.1169C15.2789 15.7489 15.1262 15.3312 14.9989 14.8636H14.1718V13.8182H16.456C16.4178 13.5844 16.3669 13.3312 16.3033 13.0584L17.5504 13L17.6522 13.8182H19.8091V14.8636H18.9374C18.8059 15.3485 18.6532 15.7749 18.4793 16.1429C18.3054 16.5108 18.0976 16.8377 17.8558 17.1234C18.4327 17.4524 19.1474 17.6926 20 17.8442L19.4337 18.9805ZM16.1633 14.8636C16.3118 15.487 16.5854 16.013 16.9841 16.4416C17.1707 16.2424 17.3256 16.0152 17.4486 15.7597C17.5758 15.5 17.684 15.2013 17.7731 14.8636H16.1633Z",fill:"#EA4C89"})]}),Xx=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"#222222",children:[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 2H3C1.89543 2 1 2.89543 1 4V20C1 21.1046 1.89543 22 3 22H7V20H3V4H13V2ZM21 2H17V4H21V20H11V22H21C22.1046 22 23 21.1046 23 20V4C23 2.89543 22.1046 2 21 2Z"}),d("path",{d:"M10.5387 14.1787L9.96267 16H8L10.7413 8H13.28L16 16H13.9947L13.4293 14.1787H10.5387ZM12.9173 12.5187L12.064 9.76369H11.936L11.0613 12.5187H12.9173Z",fill:"#EA4C89"})]}),Qx=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"#666666",children:d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 8H9C8.44772 8 8 8.44772 8 9V11H20V9C20 8.44772 19.5523 8 19 8ZM21 11V9C21 7.89543 20.1046 7 19 7H9C7.89543 7 7 7.89543 7 9V11V12V19C7 20.1046 7.89543 21 9 21H13V20H9C8.44772 20 8 19.5523 8 19V12H20V14H21V12V11ZM9 9H11V10H9V9ZM17 9H15V10H17V9ZM12 9H14V10H12V9ZM21 17H18V14H17V17H14V18H17V21H18V18H21V17Z"})});var eT=d("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M18.2857 2.28564C18.7404 2.28564 19.1764 2.46626 19.4979 2.78775C19.8194 3.10924 20 3.54527 20 3.99993V19.9999C20 20.2251 19.9557 20.448 19.8695 20.656C19.7834 20.8639 19.6571 21.0529 19.4979 21.2121C19.3387 21.3713 19.1497 21.4976 18.9417 21.5837C18.7338 21.6699 18.5108 21.7142 18.2857 21.7142H5.71429C5.48916 21.7142 5.26624 21.6699 5.05826 21.5837C4.85027 21.4976 4.66129 21.3713 4.5021 21.2121C4.34292 21.0529 4.21664 20.8639 4.13049 20.656C4.04434 20.448 4 20.2251 4 19.9999V3.99993C4 3.54527 4.18061 3.10924 4.5021 2.78775C4.82359 2.46626 5.25963 2.28564 5.71429 2.28564H18.2857ZM18.2857 3.99993H5.71429V19.9999H18.2857V3.99993Z"}),d("path",{d:"M12.784 9.719V16H11.233V9.719H9.198V8.366H14.819V9.719H12.784Z",fill:"#EA4C89"})]}),tT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[d("g",{"clip-path":"url(#clip0_13006_12686)",children:[d("path",{d:"M11.8713 0.320171C11.8375 0.103619 11.8259 0.0943048 11.6035 0.0535558C11.3974 0.0151353 11.1913 0 10.9841 0C10.7815 0 10.5789 0.0139711 10.3775 0.0349277C9.56837 0.118754 8.77901 0.299214 8.01293 0.575143C6.65657 1.06413 5.45971 1.79412 4.49105 2.87572C4.44681 2.92461 4.4014 2.94091 4.34435 2.94091C4.33038 2.94091 4.31641 2.93975 4.30127 2.93859C3.89378 2.89434 3.48513 2.82332 3.07648 2.82332H3.04853C2.31971 2.82915 1.75155 3.16329 1.35687 3.78151C1.14148 4.11914 0.927257 4.45794 0.711869 4.79674C0.511617 5.11109 0.306708 5.42078 0.112277 5.73862C-0.163652 6.19036 0.0971414 6.7329 0.610579 6.77132C1.2288 6.81789 1.84702 6.85515 2.46524 6.88891C2.57701 6.89473 2.62474 6.925 2.63522 7.04376C2.67248 7.43728 2.77726 7.81217 2.98799 8.15097C3.39898 8.80994 3.9974 9.17202 4.76116 9.27331C5.04873 9.31173 5.04058 9.31406 5.06153 9.61094C5.10228 10.2047 5.14653 10.7997 5.20241 11.3923C5.23734 11.7625 5.52258 12 5.84042 12C5.96616 12 6.09772 11.9627 6.22113 11.8824C6.91154 11.4307 7.60893 10.9859 8.27838 10.5039C8.90242 10.0545 9.17369 9.42117 9.09336 8.64694C9.05959 8.31513 9.03165 7.98215 8.99789 7.65033C8.98741 7.54788 9.01186 7.46987 9.09219 7.39653C10.0713 6.49888 10.7699 5.41263 11.2472 4.17968C11.6466 3.14815 11.8852 2.08402 11.919 0.976812C11.9202 0.945377 11.9213 0.913942 11.9213 0.883671C11.9248 0.693897 11.9004 0.506452 11.8713 0.320171Z",fill:"url(#paint0_linear_13006_12686)"}),d("path",{d:"M8.60616 4.5H8.61431C9.23886 4.5 9.74176 4.00469 9.74992 3.37907C9.75734 2.77715 9.25814 2.25962 8.66475 2.25H8.64398C8.0365 2.25 7.51506 2.69497 7.50022 3.38574C7.48761 3.96841 8.01647 4.49556 8.60616 4.5Z",fill:"#424242"}),d("path",{d:"M4.09626 10.4539C3.77376 10.7799 3.44777 11.1012 3.12643 11.426C3.04959 11.504 2.96693 11.5518 2.87146 11.5518C2.8342 11.5518 2.79462 11.5448 2.75271 11.5285C2.60019 11.4726 2.52684 11.3597 2.51985 11.2013C2.5152 11.1012 2.51753 11.0011 2.5152 10.901C2.5117 10.7822 2.51054 10.7391 2.46397 10.7391C2.43836 10.7391 2.39994 10.7519 2.34056 10.7717C1.97847 10.8917 1.61755 11.0127 1.25547 11.1327C1.20075 11.1513 1.14487 11.1641 1.09131 11.1641C1.04008 11.1641 0.988855 11.1524 0.937628 11.1245C0.782782 11.0372 0.724569 10.8823 0.786275 10.6926C0.906193 10.3212 1.0331 9.95093 1.15534 9.57953C1.2089 9.41886 1.20541 9.41537 1.03193 9.41188C0.92715 9.41071 0.822367 9.41188 0.717583 9.40722C0.565066 9.40024 0.45679 9.32572 0.399741 9.18136C0.345021 9.04048 0.379949 8.91823 0.482403 8.81462C0.818874 8.47698 1.15651 8.13935 1.49414 7.80288C1.55468 7.74233 1.62687 7.70508 1.70487 7.70508C1.71302 7.70508 1.72117 7.70508 1.72816 7.70624C1.91095 7.70857 2.01224 7.79007 2.0786 7.97635C2.3359 8.70983 2.80393 9.26518 3.48269 9.6424C3.63288 9.72506 3.79006 9.79259 3.95305 9.84848C4.24761 9.9486 4.31397 10.2338 4.09626 10.4539Z",fill:"#F8C235"})]}),d("defs",{children:[d("linearGradient",{id:"paint0_linear_13006_12686",x1:"12.0001",y1:"0.857143",x2:"3.42864",y2:"8.57143",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#FFEAB5"}),d("stop",{offset:"1","stop-color":"#F9C235"})]}),d("clipPath",{id:"clip0_13006_12686",children:d("rect",{width:"12",height:"12",fill:"white"})})]})]}),nT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#333333",children:[d("path",{d:"M15.119 2.28564L19.4287 6.59193V9.71422H20.5716V18.2571H19.4287V19.9999C19.4287 20.4546 19.2481 20.8906 18.9266 21.2121C18.6051 21.5336 18.1691 21.7142 17.7144 21.7142H6.28585C5.8312 21.7142 5.39516 21.5336 5.07367 21.2121C4.75218 20.8906 4.57157 20.4546 4.57157 19.9999V18.2571H3.42871V9.71422H4.57157V3.99993C4.57157 3.54527 4.75218 3.10924 5.07367 2.78775C5.39516 2.46626 5.8312 2.28564 6.28585 2.28564H15.119ZM17.7144 18.2571H6.28585V19.9999H17.7144V18.2571ZM8.63157 12.2096H7.01157V16.2982H8.04014V15.0536H8.29728C8.54564 15.0535 8.79349 15.0311 9.03785 14.9868C9.16759 14.9595 9.29487 14.9217 9.41843 14.8736C9.52471 14.8256 9.62414 14.7691 9.71671 14.7039C9.88471 14.5771 10.0099 14.4194 10.0921 14.2308C10.171 14.0319 10.2104 13.8245 10.2104 13.6085C10.2074 13.4189 10.1727 13.2312 10.1076 13.0531C10.0363 12.8759 9.92753 12.7162 9.78871 12.5851C9.62612 12.4456 9.43469 12.3437 9.22814 12.2868C9.03272 12.2392 8.83266 12.2134 8.63157 12.2096ZM11.923 12.2096H10.483V16.2982H11.923C12.0841 16.2948 12.2453 16.2811 12.4064 16.2571C12.5504 16.2331 12.691 16.1971 12.8281 16.1491C12.9516 16.0976 13.0699 16.0376 13.183 15.9691C13.2859 15.8936 13.3801 15.8079 13.4659 15.7119C13.5481 15.6091 13.6201 15.4994 13.6819 15.3828C13.7405 15.2549 13.7887 15.1225 13.8259 14.9868C13.8773 14.7468 13.9047 14.5034 13.9081 14.2565C13.9045 14.0895 13.8908 13.9229 13.867 13.7576C13.8432 13.6109 13.807 13.4664 13.759 13.3256C13.7108 13.1984 13.6506 13.0762 13.579 12.9605C13.5072 12.8544 13.4244 12.7562 13.3321 12.6674C13.234 12.5825 13.1271 12.5084 13.0133 12.4462C12.8897 12.3844 12.7606 12.3345 12.6276 12.2971C12.3966 12.2425 12.1603 12.2132 11.923 12.2096ZM16.927 12.2096H14.191V16.2982H15.2196V14.7554H16.7059V13.9582H15.2196V13.0325H16.927V12.2096ZM12.0876 13.0325C12.2041 13.0359 12.3139 13.0685 12.4167 13.1302C12.523 13.2022 12.6104 13.2948 12.679 13.4079C12.7544 13.5451 12.8076 13.6891 12.8384 13.8399C12.8624 13.9805 12.8761 14.1211 12.8796 14.2616C12.8761 14.4056 12.8624 14.5479 12.8384 14.6885C12.808 14.8383 12.7542 14.9823 12.679 15.1154C12.6104 15.2251 12.523 15.3159 12.4167 15.3879C12.3166 15.4455 12.2031 15.4756 12.0876 15.4754H11.5116V13.0325H12.0876ZM8.53385 13.0325C8.62642 13.0359 8.71728 13.0531 8.80643 13.0839C8.88528 13.1148 8.95557 13.1594 9.01728 13.2176C9.127 13.3376 9.18185 13.4782 9.18185 13.6394C9.18185 13.8108 9.11843 13.9531 8.99157 14.0662C8.92377 14.1241 8.84508 14.1678 8.76014 14.1948C8.66777 14.2188 8.57272 14.2309 8.47728 14.2308H8.04014V13.0325H8.53385ZM13.627 3.99936L6.28585 3.99993V9.71422H17.7144V8.54336H13.6276L13.627 3.99936ZM15.3413 4.93079V6.82907H17.2407L15.3413 4.93079Z"}),d("rect",{x:"3",y:"9.6001",width:"18",height:"9",fill:"url(#paint0_linear_13006_12647)"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.2002 12H8.8202C9.02128 12.0037 9.22135 12.0296 9.41677 12.0771C9.62332 12.134 9.81474 12.2359 9.97734 12.3754C10.1162 12.5066 10.2249 12.6662 10.2962 12.8434C10.3613 13.0215 10.3961 13.2093 10.3991 13.3989C10.3991 13.6149 10.3596 13.8223 10.2808 14.0211C10.1985 14.2097 10.0733 14.3674 9.90534 14.4943C9.81277 14.5594 9.71334 14.616 9.60705 14.664C9.4835 14.712 9.35621 14.7499 9.22648 14.7771C8.98211 14.8215 8.73427 14.8439 8.48591 14.844H8.22877V16.0886H7.2002V12ZM10.6716 12H12.1116C12.349 12.0035 12.5852 12.0328 12.8162 12.0874C12.9492 12.1249 13.0783 12.1748 13.2019 12.2366C13.3157 12.2988 13.4226 12.3729 13.5208 12.4577C13.6131 12.5465 13.6958 12.6448 13.7676 12.7509C13.8392 12.8665 13.8995 12.9888 13.9476 13.116C13.9957 13.2567 14.0318 13.4012 14.0556 13.548C14.0794 13.7133 14.0931 13.8799 14.0968 14.0469C14.0933 14.2937 14.0659 14.5371 14.0145 14.7771C13.9773 14.9128 13.9291 15.0453 13.8705 15.1731C13.8088 15.2897 13.7368 15.3994 13.6545 15.5023C13.5688 15.5983 13.4745 15.684 13.3716 15.7594C13.2585 15.828 13.1402 15.888 13.0168 15.9394C12.8796 15.9874 12.7391 16.0234 12.5951 16.0474C12.4339 16.0714 12.2728 16.0851 12.1116 16.0886H10.6716V12ZM14.3796 12H17.1156V12.8229H15.4082V13.7486H16.8945V14.5457H15.4082V16.0886H14.3796V12ZM12.6053 12.9206C12.5025 12.8589 12.3928 12.8263 12.2762 12.8229H11.7002V15.2657H12.2762C12.3917 15.266 12.5052 15.2358 12.6053 15.1783C12.7116 15.1063 12.7991 15.0154 12.8676 14.9057C12.9428 14.7727 12.9966 14.6286 13.0271 14.4789C13.0511 14.3383 13.0648 14.196 13.0682 14.052C13.0648 13.9114 13.0511 13.7709 13.0271 13.6303C12.9962 13.4794 12.9431 13.3354 12.8676 13.1983C12.7991 13.0851 12.7116 12.9926 12.6053 12.9206ZM8.99505 12.8743C8.90591 12.8434 8.81505 12.8263 8.72248 12.8229H8.22877V14.0211H8.66591C8.76134 14.0212 8.8564 14.0091 8.94877 13.9851C9.03371 13.9581 9.11239 13.9144 9.18019 13.8566C9.30705 13.7434 9.37048 13.6011 9.37048 13.4297C9.37048 13.2686 9.31562 13.128 9.20591 13.008C9.14419 12.9497 9.07391 12.9051 8.99505 12.8743Z",fill:"#FFC736"}),d("defs",{children:d("linearGradient",{id:"paint0_linear_13006_12647",x1:"8.625",y1:"19.3501",x2:"19.5",y2:"9.6001",gradientUnits:"userSpaceOnUse",children:[d("stop",{"stop-color":"#222222"}),d("stop",{offset:"1","stop-color":"#696969"})]})})]}),rT=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:d("path",{d:"M8.0023 9.68007L3.83278 5.51245L3.02478 6.32007L8.00268 11.2953L12.9756 6.32007L12.1673 5.51245L8.0023 9.68007Z",fill:"#838383"})});function pu(e){try{if(!e.discountActivity||!e.discountActivity.enable)return null;let t=new Date(e.discountActivity.start).getTime(),n=new Date(e.discountActivity.end).getTime(),r=Date.now();if(rn)return null;let a=e.interfaceLanguage;return e.discountActivity.title=e.discountActivity.titleI18n[a]||e.discountActivity.titleI18n.en,e.discountActivity.tips=e.discountActivity.tipsI18n[a]||e.discountActivity.tipsI18n.en,e.discountActivity}catch{}}function aT(e){let{config:t,isLogin:n,isProUser:r}=e,{t:a}=O();return er(t)&&!r?d("div",{}):d("div",{class:"flex items-center",children:[d("a",{class:"flex items-center text-decoration-none cursor-pointer",target:"_blank",onClick:o=>{if(o.preventDefault(),n){e.onOpenUrl(vi,`${e.type}_user_info`);return}e.onOpenUrl(is,`${e.type}_user_info`)},children:[d("img",{src:n?X8:J8}),d("span",{class:"text-xs ml-1 text-label",children:a(n?"loggedIn":"notLogin")})]}),d(QN,{...e})]})}function QN(e){let{t}=O(),n=ne(()=>pu(e.config),[e.config]);return e.isProUser?d("a",{title:t("popup.openProForPro"),target:"_blank",class:"ml-2 cursor-pointer",onClick:r=>{r.preventDefault(),e.onOpenUrl(vi,`${e.type}_pro_logo`)},children:d("img",{src:li})}):n?d("a",{class:"upgrade-pro-discount-act",target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(n.popupUrl||kn)},children:[d(yn,{type:"upgrade",style:{height:14,width:14,marginRight:-2}}),d("span",{children:n.title})]}):d("a",{class:"upgrade-pro ml-1 text-decoration-none cursor-pointer",title:t("popup.openPro"),target:"_blank",onClick:r=>{r.preventDefault(),e.onOpenUrl(kn,`${e.type}_user_upgrade`)},children:[tT,d("span",{children:t("popup.upgrade")})]})}function iT({currentLang:e,ctx:t,onSetPageLanguage:n,setSettings:r,updateContextState:a}){let{t:i}=O();if(!t)return null;let o=Qi(t.config.translationService,t.config.targetLanguage),s=or;o.length<=30&&(s=o.indexOf("auto")>=0?o:["auto",...o]);let u=o.filter(c=>c!=="auto"),l=t.state.targetLanguage??t.config.targetLanguage;return d("div",{class:"flex mt-4 items-center",children:[d(eU,{supportedLanguages:s,interfaceLanguage:t.config.interfaceLanguage,currentLang:e,value:t.sourceLanguage,onSelected:n}),d("img",{src:Q8,style:{maxWidth:"unset"},class:"mx-2"}),d(tU,{supportedLanguages:u,interfaceLanguage:t.config.interfaceLanguage,value:l,label:i("popupTarget"),onSelected:c=>{r(m=>({...m,targetLanguage:c})),a({targetLanguage:c})}})]})}function eU(e){let{t}=O(),{value:n,currentLang:r}=e,a=t("popupSourceLanguage");return n==="auto"&&r&&r!=="auto"&&(a=t("languages.auto")),d("div",{class:"language-select-container",children:[d("label",{children:a}),d("select",{autoComplete:"off",class:"language-select",onChange:i=>{let o=i.target.value;o&&e.onSelected(o)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((i,o)=>{let s=Ot(i,e.interfaceLanguage),u="";return i==="auto"&&n==="auto"&&(r&&r==="auto"?u=t("languages.auto"):u=Ot(r,e.interfaceLanguage)+` (${t("languages.auto")})`),d("option",{value:i,selected:i===e.value,children:u||s},"selectlink"+o)})})]})}function tU(e){return d("div",{class:"language-select-container",children:[d("label",{children:e.label}),d("select",{autoComplete:"off",class:"language-select",onChange:t=>{let n=t.target.value;n&&e.onSelected(n)},children:Wi(e.supportedLanguages,12,e.interfaceLanguage).map((t,n)=>{let r=Ot(t,e.interfaceLanguage);return d("option",{value:t,selected:t===e.value,children:r},"selectlink"+n)})})]})}var oT=220;function sT(e){let{items:t}=e,n=t.find(c=>c.selected),[r,a]=N(!1),i=xe(null),[o,s]=N(oT),[u,l]=N(0);return Gu(()=>{if(!i.current)return;let c=i.current,m=c.getBoundingClientRect(),g=c.closest(".popup-container");if(g){let p=g.getBoundingClientRect(),f=m.top-p.top,b=20,y=30,h=5,v=g.clientHeight-b*2,C=t.length*y+h*3,T=f+m.height;if(C>g.clientHeight-T){let x=Math.min(v,C);l(g.clientHeight-f-x-b)}else l(0);s(Math.max(oT,v))}},[i.current,r,t]),z(()=>{if(!i.current||!r)return;let c=m=>{i.current?.contains(m.target)||a(!1)};return document.addEventListener("click",c),()=>{document.removeEventListener("click",c)}},[i,r]),d("div",{class:`custom-select-container ${e.className||""}`,ref:i,children:[d("div",{className:"flex items-center",style:{paddingRight:12},onClick:()=>{a(!r)},children:[d(uT,{item:n,isDefault:!0}),rT]}),d(nU,{contentTop:u,items:e.items,visible:r,maxHeight:o,onClick:()=>{a(!1)}})]})}function nU(e){let{visible:t,items:n,maxHeight:r,onClick:a}=e,i=xe(null);return z(()=>{if(!t||!i.current)return;let o=i.current,s=n.findIndex(l=>l.selected);if(s<0)return;let u=s*30;ud(uT,{item:o,onClick:e.onClick},o.value))})}function uT(e){let t=e.item,{t:n}=O();return t?d("div",{class:`custom-select-item ${t.selected?"selected":""}`,onClick:()=>{e.onClick?.(t),!e.isDefault&&t.onSelected?.(t)},children:[!!t.img&&d("img",{class:"custom-select-item-img",src:t.img}),d("span",{children:[t.label,t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:["(",d("img",{src:li}),n("orCustom"),")"]}),t.isShowGoSetting&&!t.isShowProOrCustom&&d("span",{class:"custom-select-item-pro",children:n("needAction")})]})]}):null}function lT(e){let{t}=O(),{translationServiceItems:n,translationServiceOptions:r}=oU(e),a=ne(()=>n.find(i=>i.selected)?.id,[n]);return n.length?d("div",{class:"translation-service-container mt-3",children:[d(cT,{label:t("popupService"),items:r,ctx:e.ctx,class:e.showTrialPro?"border-bottom-radius-0":"",isServices:!0}),d(rU,{...e,currentTranslationService:a})]}):null}function cT(e){let t=ne(()=>{let n=e.items.find(i=>i.selected);if(!n||n.value!="auto")return e.items;e.ctx.specialAiAssistant=aa(e.ctx,e.ctx.translationService,!0);let r=e.ctx.specialAiAssistant?.id;if(!r){let o=e.ctx.config?.translationServices?.[e.ctx.translationService];if(!o?.fallbackAssistantId||o?.fallbackAssistantId=="common")r="common";else return e.items}let a=e.items.find(i=>i.value==r);return!a||n.label.indexOf(a.label)>=0||(n.label=`${n.label} (${a.label})`),e.items},[e]);return d("div",{class:`min-select-container ${e.class||""}`,children:[d("label",{class:"inline-block text-label mb-0 text-gray-6",style:{minWidth:60,flexShrink:0},children:[e.label,"\uFF1A"]}),e.isServices?d(sT,{className:"translate-service",items:t}):d(sa,{className:"translate-service transform-padding-left",maxWidth:300,items:t})]})}function rU({ctx:e,setSettings:t,onRestorePage:n,openOptionsPage:r,pageStatus:a,onTranslatePage:i,currentTranslationService:o}){let{t:s}=O(),u=iU(e,o),l=aU(e,o),c=le((g,p)=>{t(f=>{let b=f.translationServices||{},y=b[u.id]||{};return{...f,translationServices:{...b,[u.id]:{...y,[g]:p}}}}),a==="Translated"&&(e.rule.isTranslateWhenServiceChanged?setTimeout(()=>{i()},1):setTimeout(()=>{n()},1))},[u]),m=ne(()=>u?.props.filter(g=>g.type==="select").map(g=>{let p=g.name;g.label&&(p=g.label),g.labelKey&&(p=s(g.labelKey));let f=g.options.map(b=>({label:`${b.label?s(b.label):b.value}`,value:b.value,selected:b.value==l[g.name],onSelected:y=>{if(b.action=="jumpOptions"){let h=b.args||[];r(...h);return}c(g.name,b.value)}}));return{label:p,items:f}}),[l,r]);return!l||!u?.props?.length||!m||!m?.length?null:d(ce,{children:m.map(({label:g,items:p},f)=>d(cT,{label:g,items:p,ctx:e},"field-"+f))})}function aU(e,t){return ne(()=>{let{translationServices:r}=e.config;return r&&r[t]?r[t]||{}:{}},[e,t])}function iU(e,t){let{lang:n}=O();return ne(()=>{let a=As(e,"translationService",n,t);return a?.props[0]?.labelKey=="field_label.assistant"&&(a.props[0].labelKey="field.assistant"),a},[$r,Pf,e,n,t])}function oU({isProUser:e,ctx:t,setSettings:n,pageStatus:r,onChangeService:a,onTranslatePage:i,onRestorePage:o,openOptionsPage:s,updateContextState:u}){let{t:l,lang:c}=O(),m=ne(()=>t?Es(t,"translationService",c):[],[t,c]),g=le(f=>{let b=m.find(y=>y.id===f.value);if(b.ok){if(u({translationService:b.id}),n(y=>(a(y.translationService||"",b.id),{...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),r!="Translated")return;b.props.length===0?t.rule.isTranslateWhenServiceChanged&&setTimeout(()=>{i()},1):setTimeout(()=>{o()},1)}else n(y=>({...y,translationService:b.id,translationServiceChangedbyUserAt:new Date().toISOString()})),setTimeout(()=>{s(!1,"#services/"+f.value)},100)},[s,o,i,a,n]),p=ne(()=>{let f=er(t.config),y=m.filter(h=>t.config.showUnconfiguredTranslationServiceInPopup===!1?h.ok:!0).map(h=>{let v=j0(h,e,f,l,!0),C=(h.id,void 0);h.id.startsWith("custom-ai")&&(C=void 0),h.id.startsWith("mock")&&(C="");let T=$a.includes(h.id)&&!h.ok&&!f;return{label:v,value:h.id,selected:h.selected,img:C,onSelected:g,isShowProOrCustom:T,isShowGoSetting:!h.ok&&!T}});return y.push({label:l("moreTranslationServices"),value:"more",selected:!1,isShowProOrCustom:!1,isShowGoSetting:!1,img:void 0,onSelected:()=>{s(!1,"#services")}}),y},[m,t,g,l]);return{translationServiceItems:m,translationServiceOptions:p}}function dT(e){let t;try{t=new URL(e)}catch{return!1}let n=dv(),r="";try{r=new URL(n).hostname}catch{}return r&&t.hostname===r?!0:!(sU(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function sU(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function mT(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function gT(e){let{t}=O(),{currentUrlObj:n,isAlwaysTranslateDomain:r,isNeverTranslateDomain:a,handleTranslationUrlPatternSelected:i}=uU(e),[o,s]=N(()=>a?"excludeMatches":"matches"),u=ne(()=>r||a||!1,[r,a]),l=le(c=>{s(c),u&&i(c,n.hostname)},[s,i,u]);return d("div",{class:"flex justify-between mt-5",children:[d(sa,{style:{width:"unset",flex:"unset"},maxWidth:230,className:"transform-padding-left min-select",items:[{label:t("alwaysTranslateThisSite"),value:"matches",selected:o==="matches",onSelected:()=>{l("matches")}},{label:t("neverTranslateThisSite"),value:"excludeMatches",selected:o==="excludeMatches",onSelected:()=>{l("excludeMatches")}}].filter(Boolean)}),d("input",{type:"checkbox",role:"switch",checked:u,class:"shrink-0",onChange:c=>{let m=c.target.checked;i(m?o:"default",n.hostname)}})]})}function uU({currentUrl:e,ctx:t,currentLang:n,onSetLocalConfig:r,pageStatus:a,onRestorePage:i,onTranslatePage:o,setSettings:s,onClose:u}){let l=null,c=null,m=null,g=null,p=null,{translationUrlPattern:f}=t.config;if(l=ne(()=>new URL(e||""),[e]),t.config&&e&&dT(e)){c=mT(e);let{matches:h,excludeMatches:v}=f;m=!!h.find(C=>gt(e,C)),g=!!v.find(C=>gt(e,C))}if(n&&n!=="auto"){let{translationLanguagePattern:h}=t.config,{matches:v}=h;v.includes(n)?p=!0:p=!1}let b=le(()=>{let h=l.hostname,v=t.localConfig.tempTranslationUrlMatches||[],C=v.filter(x=>x.match!==h),T=!1;C.length!==v.length&&(T=!0),T&&r({...t.localConfig,tempTranslationUrlMatches:[...C]})},[r]),y=le((h,v)=>{if(h==="default"){s(x=>{let S={...x.translationUrlPattern};return{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,matches:T3(e,S.matches),excludeMatches:T3(e,S.excludeMatches)}}}),b();return}let C=h,T=C==="matches"?"excludeMatches":"matches";l&&s(x=>{let S={...x.translationUrlPattern};return S[T]=T3(e,S[T]),S[C]=qn(v,S[C]),{...x,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...x.translationUrlPattern,...S}}}),C==="matches"&&a==="Original"?setTimeout(()=>{o(),u()},100):C==="excludeMatches"&&a==="Translated"&&setTimeout(()=>{i(),u()},100)},[o,u,a,b]);return{currentUrlObj:l,currentUrlWithoutHash:c,isAlwaysTranslateDomain:m,isNeverTranslateDomain:g,isAlwaysTranslateLang:p,handleTranslationUrlPatternSelected:y}}function T3(e,t){return t?(Array.isArray(t)||(t=[t]),e?t.filter(n=>!gt(e,n)):t):[]}function pT(e){let{t}=O(),{ctx:n,setSettings:r}=e,a=lU(e);return Gr(n.localConfig)?a.length?d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[t("mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:a})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:n.config.generalRule.mouseHoverHoldKey!=="Off",onChange:i=>{let o=i.target.checked;r(s=>{let u=s.generalRule?.mouseHoverPreferenceKey||n.config.generalRule.mouseHoverPreferenceKey||Ga[0];return{...s,generalRule:{...s.generalRule,mouseHoverHoldKey:o?u:"Off"}}})}})]}):null:d(cU,{...e})}function lU({ctx:e,openOptionsPage:t,setSettings:n}){let{t:r}=O(),a=ne(()=>{let s=e.config.generalRule,u=s.mouseHoverPreferenceKey;return s.mouseHoverHoldKey!=="Off"&&u!==s.mouseHoverHoldKey&&(u=s.mouseHoverHoldKey),u},[e]),i=ne(()=>Ga.filter(s=>!(s==="Off"||Ga.includes(a)&&s==="OtherCustom")),[e,a]);return ne(()=>i.map(s=>{let u=r("mouseHoldKey",{key:_a(s)}),l=Ga.includes(a),c=s===a;return s==="Auto"?u=r("mouseHoldKeyAuto"):s==="Off"?u=r("mouseHoldKeyOff"):s==="OtherCustom"?u=l?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:a}):s==="Other"?u=r("mouseHoldKeyOther"):s==="MouseHoldKeyPressHold"&&(u=r("mouseHoldKeyPressHold")),l||s==="OtherCustom"&&(c=!0),{label:u,value:s,selected:c,onSelected:m=>{m.value==="Other"?t(void 0,"#shortcuts"):n(g=>{let p={...g.generalRule,mouseHoverPreferenceKey:m.value};return e.config.generalRule.mouseHoverHoldKey!=="Off"&&(p.mouseHoverHoldKey=m.value),{...g,generalRule:p}})}}}),[i,a])}function cU(e){let{ctx:t,setSettings:n}=e,{t:r}=O(),a=t.config.generalRule,i=Object.keys(oc).filter(l=>l!="touchShortcutsOff"),o=a.touchShortcutsToggleTranslateTouchElement,s=a.touchShortcutsToggleTranslateTouchElementPreferenceKey,u=s||"touchShortcutsOff";return o!=="touchShortcutsOff"&&o!==s&&(u=o),d("div",{class:"flex mt-3 items-center justify-between",children:[d("div",{class:"flex items-center",children:[d("label",{class:"mb-0 mr-2 shrink-0",children:[r("touch.mouse-translate"),":"]}),d(sa,{style:{width:"100%",maxWidth:"100%"},className:"transform-padding-left min-select",items:i.map((l,c)=>({value:l,label:r(l),selected:l==u,onSelected(m){n(g=>{let p={...g.generalRule,touchShortcutsToggleTranslateTouchElementPreferenceKey:m.value};return t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff"&&(p.touchShortcutsToggleTranslateTouchElement=m.value),{...g,generalRule:p}})}}))})]}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:t.config.generalRule.touchShortcutsToggleTranslateTouchElement!=="touchShortcutsOff",onChange:l=>{let c=l.target.checked;n(m=>{let g=m.generalRule?.touchShortcutsToggleTranslateTouchElementPreferenceKey||t.config.generalRule.touchShortcutsToggleTranslateTouchElementPreferenceKey||"slide.left";return{...m,generalRule:{...m.generalRule,touchShortcutsToggleTranslateTouchElement:c?g:"touchShortcutsOff"}}})}})]})}function fT(e){let{isAlwaysTranslateLang:t}=dU({ctx:e.ctx,currentLang:e.currentLang}),{t:n}=O();if(e.currentLang!=="auto")return d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0 text-overflow-ellipsis flex-1",children:n("alwaysTranslateSomeLanguage",{language:Ot(e.currentLang,e.ctx.config.interfaceLanguage,!1,!0)})}),d("input",{id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",type:"checkbox",role:"switch",class:"shrink-0",checked:!!t,onChange:a=>{let i=a.target.checked;r(i?"matches":void 0)}})]});return d("span",{});function r(a){if(!a){e.setSettings(s=>{let u={...s.translationLanguagePattern};return{...s,translationLanguagePattern:{...s.translationLanguagePattern,matches:Zt(e.currentLang,u.matches),excludeMatches:Zt(e.currentLang,u.excludeMatches)}}});return}let i=a,o=i==="matches"?"excludeMatches":"matches";e.currentLang&&e.setSettings(s=>{let u={...s.translationLanguagePattern};return u[i]=qn(e.currentLang,u[i]),u[o]=Zt(e.currentLang,u[o]),{...s,translationLanguagePattern:{...s.translationLanguagePattern,...u}}}),i==="matches"&&e.pageStatus==="Original"&&setTimeout(()=>{e.onTranslatePage(),e.onClose()},100)}}function dU({ctx:e,currentLang:t}){let n=null;if(t&&t!=="auto"){let{translationLanguagePattern:r}=e.config,{matches:a}=r;a.includes(t)?n=!0:n=!1}return{isAlwaysTranslateLang:n}}function bT({onOpenUrl:e,openOptionsPage:t,type:n,isHiddenProSafari:r}){let{t:a}=O(),i=Se(),o=ne(()=>{let s=[{title:a("widget.translateFile"),icon:Yx,tooltipText:a("translateFileTooltip"),tooltipStyle:{left:-10,transform:"unset",fontSize:13,width:210,maxWidth:210},tooltipMultiple:!0,onClick:()=>{e(i.TRANSLATE_FILE_URL,`${n}_btn_document`)}},{title:a("widget.text"),icon:eT,tooltipText:a("widget.textTooltip"),tooltipStyle:{fontSize:13},onClick:()=>{e(Hu,`${n}_btn_text`)}}];return r||s.push({title:"PDF Pro",icon:nT,tooltipText:a("browser.PdfProFile"),tooltipStyle:{left:"unset",right:-10,transform:"unset",fontSize:13},onClick:()=>{e(K2,`${n}_btn_pdfpro`)}}),s},[i,e,t,a,r]);return d("div",{class:"widgets-container mt-5",children:o.map(s=>s.tooltipText?d(Pt,{text:s.tooltipText,containerStyle:{flex:1},tipStyle:s.tooltipStyle,multiple:s.tooltipMultiple,children:d(hT,{...s})}):d(hT,{...s}))})}function hT(e){return d("div",{class:"widget-item",onClick:e.onClick,children:[e.icon,d("span",{class:"ml-1 text-gray-6",children:e.title})]})}var mU=["bing","transmart","google","yandex"];function vT(e){let{t}=O();return e.showTrialPro?d("div",{class:"trial-pro-container",children:[d("label",{class:"mb-0",children:t("popup.trial_pro_service")}),d("img",{src:li,className:"cursor-pointer",onClick:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service_logo`)}}),d("div",{class:"flex-1"}),d("input",{type:"checkbox",role:"switch",class:"shrink-0",checked:!1,onChange:n=>{e.onOpenUrl(kn,`${e.type}_trial_pro_service`)}})]}):null}var yT="popup_trial_pro_show_count";function CT(e){let{ctx:t,isHidden:n,isProUser:r,setLocalConfig:a}=e,[i,o]=N(null),s=xe(!1);z(()=>{So(yT,0).then(l=>{o(l)})},[]);let u=ne(()=>{if(n||r||i==null||!t.config.popupConfig.enableTrialPro)return!1;let l=t.config.popupConfig.trialProShowLimit,c=t.localConfig;if(i>=l)return!1;let m=t.translationService;return!!mU.includes(m)},[t,n,r,i]);return z(()=>{!u||i==null||s.current||(s.current=!0,wo(yT,i+1))},[u,i,s,a]),{showTrialPro:u}}function S3(e){let{setSettings:t,config:n,openSharePage:r,ctx:a,errorMsg:i,onAutoEnableSubtitleChanged:o}=e,[s,u]=N(""),[l,c]=N(null),[m,g]=N(null);z(()=>{tt.get(mt,null).then(h=>{h?(c(h),g(At(h))):g(!1)}).catch(h=>{g(!1)})},[]);let p=!0,f=je();n&&f&&(p=n.generalRule.showSponsorOnSafari);let b=er(n),{showTrialPro:y}=CT({ctx:a,isHidden:b,isProUser:!!m,setLocalConfig:e.onSetLocalConfig});return d("div",{class:`popup-container ${e.className||""}`,style:e.style,children:[d("div",{class:"popup-content text-sm",children:[b&&!m?d("div",{style:{marginTop:-12}}):d("div",{class:"flex items-center justify-between ml-1",style:{height:28},children:[d(aT,{isLogin:!!l,isProUser:!!m,config:n,type:e.type,onOpenUrl:e.onOpenUrl}),d(vU,{openSharePage:r})]}),d(iT,{ctx:e.ctx,setSettings:e.setSettings,onSetPageLanguage:e.onSetPageLanguage,currentLang:e.currentLang,updateContextState:e.updateContextState}),d(lT,{isProUser:!!m,ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onChangeService:e.onChangeService,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,openOptionsPage:e.openOptionsPage,updateContextState:e.updateContextState,showTrialPro:y}),d(vT,{showTrialPro:y,onOpenUrl:e.onOpenUrl,type:e.type}),d("div",{class:"flex flex-row mt-3 items-center",children:[d(fU,{ctx:a,setSettings:e.setSettings,onSwitchTranslationMode:e.onSwitchTranslationMode}),d(bU,{ctx:e.ctx,pageStatus:e.pageStatus,currentUrl:e.currentUrl,onTranslatePdf:e.onTranslatePdf,onToggleTranslate:e.onToggleTranslate,disabledButton:e.disabledButton,noPermissionPDF:e.noPermissionPDF})]}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${s?"":"display-none"}`,children:s}),d("div",{class:`text-sm text-gray-9 mt-4 ml-1 ${i?"":"display-none"}`,style:{color:"#D0931D"},children:i}),d(x3,{isShowError:!1,request:e.request,setStorageBuildinConfig:e.onSetBuildinConfig}),d("div",{class:"text-sm px-1 text-gray-2",children:[d(gT,{ctx:e.ctx,setSettings:e.setSettings,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onRestorePage:e.onRestorePage,currentUrl:e.currentUrl,currentLang:e.currentLang,onClose:e.onClose,onSetLocalConfig:e.onSetLocalConfig}),d(pT,{ctx:e.ctx,openOptionsPage:e.openOptionsPage,setSettings:e.setSettings}),d(fT,{ctx:a,currentLang:e.currentLang,pageStatus:e.pageStatus,onTranslatePage:e.onTranslatePage,onClose:e.onClose,setSettings:e.setSettings}),d(pU,{onAutoEnableSubtitleChanged:o,ctx:a,setSettings:t}),d(gU,{ctx:a})]}),d(bT,{type:e.type,onOpenUrl:e.onOpenUrl,openOptionsPage:e.openOptionsPage,isHiddenProSafari:b})]}),d(hU,{...e,isProUser:!!m,isShowPricing:p,setMessage:u})]})}function gU({ctx:e}){if(e.rule.imageRule?.type!="manga"||!Kd(e.rule.imageRule))return null;let{t}=O();return d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",children:t("popup.mangaSiteSupport")})})}function pU(e){let{t}=O(),{ctx:n,setSettings:r,onAutoEnableSubtitleChanged:a}=e,i=n.rule.subtitleRule;if(!ne(()=>!i.disabled&&Ug.includes(i.type||""),[n,Ug,i]))return null;let s=i.autoEnableSubtitle;return i.type==="youtube"&&i.youtubeAutoEnableSubtitle&&(s=!0),Ld()?d("div",{class:"flex justify-between mt-3 items-center",children:d("label",{class:"mb-0",style:{color:"#D0931D"},children:t("trustTypeError")})}):d("div",{class:"flex justify-between mt-3 items-center",children:[d("label",{class:"mb-0",children:t("autoEnableSubtitle")}),d("input",{type:"checkbox",role:"switch",id:"autoEnableSubtitle",name:"autoEnableSubtitle",checked:s,onChange:u=>{let l=u.target.checked;r(c=>{let m={...c.generalRule?.["subtitleRule.add"],autoEnableSubtitle:l};return i.type==="youtube"&&!l&&(m.youtubeAutoEnableSubtitle=!1),{...c,generalRule:{...c.generalRule,"subtitleRule.add":m}}}),a()}})]})}function fU(e){let{t}=O(),n=e.ctx.state.translationMode,r=()=>{let i=n==="dual"?"translation":"dual";e.setSettings(o=>({...o,translationMode:i})),e.onSwitchTranslationMode(i)},a=t(n==="dual"?"changeToOnlyTempTranslationMode":"changeToDualTempTranslationMode");return d(Pt,{text:a,multiple:!0,tipStyle:{left:-20,transform:"unset",fontSize:13,whiteSpace:"pre"},children:d("div",{class:"translate-mode mr-2 ",onClick:r,children:n==="dual"?Jx:Xx})})}function hU(e){let{t,lang:n}=O(),{isProUser:r,isShowPricing:a,ctx:i,setSettings:o}=e,{config:s}=e.ctx,u=60;n.startsWith("zh")||(u=70);let l=le(v=>{i&&(o(C=>Ui({...C},v)),e.onUpdateFloatBallEnable(v.enable))},[i,o,e.onUpdateFloatBallEnable]),c=ii(i,s.rawUserConfig),m=Se(),g=`${e.type}_more`;if(!c)return null;return d("footer",{children:d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer",children:[d("div",{class:"setting flex flex-row items-center justify-center secondary clickable",onClick:p,children:[Zx,d("span",{class:"ml-1 text-gray-6",children:t("options")})]}),d(yU,{ctx:e.ctx,onToggleEnabled:e.onToggleEnabled,setSettings:e.setSettings,setMessage:e.setMessage}),d(C3,{label:t("more"),showArrow:!0,maxWidth:u,className:"text-gray-6 transform-padding-left more",onSelected:v=>{v.value==="openPremium"?(globalThis.open(kn),e.onClose()):v.value==="changeToOnlyTranslationMode"?f("translation"):v.value==="changeToDualTranslationMode"?f("dual"):v.value==="translateTheWholePage"?e.onTranslateTheWholePage():v.value==="translateToThePageEndImmediately"?e.onTranslateToThePageEndImmediately():v.value==="translateTheMainPage"?e.onTranslateTheMainPage():v.value==="translateLocalPdfFile"?e.onOpenUrl(m.PDF_VIEWER_URL,`${e.type}_more_pdf`):v.value==="pdfProFile"?e.onOpenUrl(m.PDF_PRO_URL,`${e.type}_more_pdfpro`):v.value==="translateText"?e.onOpenUrl(m.TEXT_TRANSLATE_URL,g):v.value==="translateLocalHtmlFile"?e.onOpenUrl(m.HTML_VIEWER_URL,g):v.value==="translateLocalSubtitleFile"?e.onOpenUrl(m.SUBTITLE_BUILDER_URL,g):v.value==="donate"?(globalThis.open(s.donateUrl),e.onClose()):v.value==="feedback"?(globalThis.open(s.feedbackUrl),e.onClose()):v.value==="options"?(e.openOptionsPage(),e.onClose()):v.value==="changeToTranslateTheWholePage"?b():v.value==="changeToTranslateTheMainPage"?y():v.value==="about"?e.openAboutPage():v.value==="toggleEnabled"?e.onToggleEnabled():v.value==="openEbookViewer"?e.onOpenUrl(m.EBOOK_VIEWER_URL,g):v.value==="openEbookBuilder"?e.onOpenUrl(m.EBOOK_BUILDER_URL,g):v.value==="goPro"?e.onOpenUrl(kn,g):v.value=="editTranslation"?(s.enableEditTranslation=!s.enableEditTranslation,e.onToggleEnableEditTranslation(!!s.enableEditTranslation)):v.value==="openInstruction"?e.onOpenUrl(Uu,g):v.value==="cleanCache"?ca().then(()=>e.onClose()):v.value==="disableFloatBall"?l({...c,enable:!1}):v.value==="enableFloatBall"?l({...c,enable:!0}):v.value=="webReport"?e.onWebReport():v.value=="switchNavEnableTranslate"&&h(!!s.generalRule.preTranslateLimiter?.["side.enableTranslate"])},menus:[{label:"\u{1F4D9} "+t("widget.instruction"),value:"openInstruction"},e.ctx.state.translationMode==="dual"&&{label:"\u{1F524} "+t("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},e.ctx.state.translationMode==="translation"&&{label:"\u{1F521} "+t("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},s.translationArea==="main"&&{label:"\u{1F480} "+t("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},s.translationArea==="body"&&{label:"\u{1F4D6} "+t("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},s.translationArea==="main"&&(s.generalRule.preTranslateLimiter?.["side.enableTranslate"]?{label:"\u{1F4AA} "+t("disableNavTranslate"),value:"switchNavEnableTranslate"}:{label:"\u{1F4AA} "+t("enableNavTranslate"),value:"switchNavEnableTranslate"}),{label:"\u26A1 "+t("translateToThePageEndImmediately"),value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+t("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+t("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+t("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},{label:"\u2747\uFE0F "+t("browser.PdfProFile"),value:"pdfProFile"},{label:"\u{1F310} "+t("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+t("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},c?.enable&&{label:"\u2B55 "+t("floatBallOptions.disable"),value:"disableFloatBall"},!c?.enable&&{label:"\u2B55 "+t("floatBallOptions.enable"),value:"enableFloatBall"},{label:"\u{1F58C}\uFE0F "+(s.enableEditTranslation?t("disableEditTranslation"):t("enableEditTranslation")),value:"editTranslation"},r===!1&&a&&{label:"\u{1F451} "+t("upgradeToPro"),value:"goPro"},{label:"\u{1F9F9} "+t("widget.cache"),value:"cleanCache"},{label:"\u{1F4AC} "+t("widget.webReport"),value:"webReport"},{label:"\u2764\uFE0F "+t(a?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})});function p(v){v.preventDefault(),e.openOptionsPage()}function f(v){e.onSwitchTranslationMode(v)}function b(){e.setSettings(v=>({...v,translationArea:"body"})),e.onTranslateTheWholePage()}function y(){e.setSettings(v=>({...v,translationArea:"main"})),e.onTranslateTheMainPage()}function h(v){e.setSettings(C=>(setTimeout(()=>e.onTranslatePage(),100),{...C,generalRule:{...C.generalRule,"preTranslateLimiter.add":{"side.enableTranslate":!v}}}))}}function bU({currentUrl:e,pageStatus:t,onTranslatePdf:n,ctx:r,onToggleTranslate:a,disabledButton:i,noPermissionPDF:o}){let{t:s,lang:u}=O(),l=r.config,c=ne(()=>new URL(e||""),[e]),m=c?.pathname.toLowerCase().endsWith(".pdf");Ao(r?.rule)&&!m&&(m=!0);let g=s("translate");t==="Translated"||t==="Error"?g=s("show-original"):t==="Original"?m?Jn()&&c.protocol==="file:"||o?g=s("translate-firefox-local-pdf"):J()?g=s("noSupportTranslate-pdf"):g=s("translate-pdf"):g=s("translate"):g=s(t);let p=s("translateToThePageEndImmediately");return(t==="Original"||t==="Translated")&&(l.shortcuts.toggleTranslatePage&&(Cr()?r.rule.touchShortcutsToggleTranslatePage&&r.rule.touchShortcutsToggleTranslatePage!=="touchShortcutsOff"&&(g+=` (${s(r.rule.touchShortcutsToggleTranslatePage)})`):g+=` (${_a(l.shortcuts.toggleTranslatePage)})`),l.shortcuts.toggleTranslateToThePageEndImmediately&&(p+=` (${l.shortcuts.toggleTranslateToThePageEndImmediately})`)),d("button",{class:"mb-0 main-button",onClick:()=>{m?n&&n():a()},"aria-busy":t==="Translating",disabled:i||t==="Translating",children:g})}function yU({ctx:e,onToggleEnabled:t,setSettings:n,setMessage:r}){let{t:a,lang:i}=O(),o=On();return d("div",{class:"flex",children:d("span",{style:{cursor:"pointer"},class:`${P}-no-select text-sm text-gray-c2`,onClick:s=>{s.preventDefault(),ur(`${Y}docs/CHANGELOG/#${o.replace(/\./ig,"")}`)},children:["V",o,e.config.enabled?null:d("a",{href:"#",onClick:t,children:[" ","(",a("hasBeenDisabled"),")"]})]})})}function vU(e){let{t}=O();return d("div",{class:"share-button-container",onClick:e.openSharePage,children:[d("span",{class:"text-gray-9",children:t("buildSnapshots")}),Qx]})}var w9e=1e3*3600*24;async function xT(e){try{let t=new Date;k.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await j.storage.local.set({[w2]:t.toISOString()}),await w3(),J()||await hv()}catch(t){k.error("run cron task failed",t)}}async function w3(){try{let e=await Ir(),t=await ee({url:bi});ia(e);let n=e.buildinConfigUpdatedAt,r=new Date(n),a=t.buildinConfigUpdatedAt,i=new Date(a),o=t.minVersion,s=j.runtime.getManifest().version;ja(s,o)?i>r?(await j.storage.local.set({buildinConfig:t}),k.info(`sync remote rules success, latest: ${new Date(a).toLocaleString()}`),Sa({method:"updateGlobalCtx",data:{}},{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(u=>{k.error("send content message request failed from cron task",u)})):k.debug(`no need to sync rules, latest: ${r}`):k.info(`local version is too old, please update to ${o} or later`)}catch(e){k.error("sync rules error: ",e)}}function _m(e){let{onClose:t}=e,[n,r]=N("Original"),[a,i,o,s]=Oe(()=>{setTimeout(()=>{x("updateGlobalContext",!1)()},250)});Xe(a,i);let[u,l]=N(null),[c,m]=N(globalThis.location.href),[g,p]=N("auto"),[f,b]=N(null),y=xe(!1);z(()=>{!f||y.current||(y.current=!0,Ue("show_page_popup",[{name:"show_page_popup",params:{}}],f))},[f,y]);let h=F=>{r(F.detail)};z(()=>(document.addEventListener(mo,h,!1),Ir().then(F=>{l(F);let L=Dt();p(L);let U=ot();r(U),xT(F.interval)}),document.addEventListener("urlChange",T),()=>{document.removeEventListener("pageTranslatedStatus",h),document.removeEventListener("urlChange",T)}),[]),z(()=>{Ir().then(F=>{l(F)})},[a]),z(()=>{c&&u&&Rm().then(F=>{b(F)})},[c,u]);let v=le((F,L)=>{x("change_translate_service",!1,{translation_service:`${F}_${L}`})()},[]);if(!u||!f)return null;return d(S3,{type:"float_ball_popup",className:e.className,onSwitchTranslationMode:F=>{x("switchTranslationMode",!0,{mode:F})()},request:ee,onClose:S,onToggleEnabled:w,onChangeService:v,onTranslateTheWholePage:x("translateTheWholePage",!0),openOptionsPage:M,onToggleTranslate:x("toggleTranslatePage",!0),onTranslateTheMainPage:x("translateTheMainPage",!0),onTranslateToThePageEndImmediately:x("translateToThePageEndImmediately",!0),onTranslatePage:x("translatePage",!0),onRestorePage:x("restorePage",!1),onWebReport:x("webReport",!0),onTranslatePdf:()=>{D(ko(f.rule)||c)},openAboutPage:R,openSharePage:x("shareToDraft",!0),onSetPageLanguage:C,setSettings:i,config:u,pageStatus:n,ctx:f,currentUrl:c,currentLang:g,onSetLocalConfig:Fr,onSetBuildinConfig:ov,onAutoEnableSubtitleChanged:x("autoEnableSubtitleChanged",!0),onToggleEnableEditTranslation:x("toggleEnableEditTranslation",!0),updateContextState:F=>x("updateContextState",!0,F)(),onOpenUrl:A,onUpdateFloatBallEnable:x("updateFloatBallEnable",!0)});function C(F){p(F);let L=$x(c,F,u.sourceLanguageUrlPattern);i(U=>({...U,sourceLanguageUrlPattern:L})),Tr(F)}function T(){m(globalThis.location.href)}function x(F,L,U={}){let I={trigger:"page_popup",...U};return()=>{bn({method:F,data:I}),L&&t()}}function S(){t()}function w(){i(F=>({...F,enabled:!F.enabled})),setTimeout(()=>{S()},50)}function A(F,L){let U=F;L&&(U=`${F}?utm_source=extension&utm_medium=extension&utm_campaign=${L}`),od(U,!0),setTimeout(()=>{S()},50)}function D(F){F&&(Ls(!1,F),setTimeout(()=>{S()},50))}function M(F=!0,L=""){wa(F,L),setTimeout(()=>{t()},50)}function R(){id(),setTimeout(()=>{t()},50)}function _(){fv(),setTimeout(()=>{t()},50)}}function kT(){let[e,t]=N("Original");return z(()=>{let n=ot();t(n);let r=a=>{t(a.detail)};return document.addEventListener(mo,r),()=>{document.removeEventListener(mo,r)}},[]),{pageStatus:e}}function DT(){let[e,t]=N("Original");return z(()=>{let n=Ds();t(n);let r=a=>{t(a.detail)};return document.addEventListener(Iu,r),()=>{document.removeEventListener(Iu,r)}},[]),{mangaStatus:e}}var TT=6,CU={position:"right",top:335};function LT({handleBallClick:e,isShow:t,localConfig:n,handleMobileBallLongPress:r,popupVisible:a}){let i=xe(null),o=xe(null),[s,u]=N(!1),l=xe(!1);l.current=s;let c=xe(null),m=xe(!1),g=xe(n.floatBallConfig||CU),p=xe(0),f=xe(0),b=xe(0),y=xe(!1),h=xe(0),v=xe(0),C=xe(0),T=xe(0),x=xe(!1),S=le(w=>{if(!a)if(clearTimeout(c.current),w)u(w);else{let A=qe().any||Cr();c.current=setTimeout(()=>{u(w),y.current=!1},A?3e3:0)}},[u,c,y,a]);return z(()=>{a||u(!1)},[a]),z(()=>{if(i.current&&g.current){let w=E3(g.current.top);g.current.top=w,i.current.style.top=`${w}px`,i.current.style.display="flex"}},[t,i]),z(()=>{if(!o.current||!i.current)return;let w=L=>{L.preventDefault&&L.preventDefault(),p.current=L.clientX,f.current=L.clientY,h.current=Date.now(),b.current=i.current.offsetTop,m.current=!0,clearTimeout(c.current),S(!0),C.current=L.clientX,T.current=L.clientY,x.current=!1,(qe().any||Cr())&&(clearTimeout(v.current),v.current=setTimeout(()=>{ST({startX:p.current,startY:f.current,endX:C.current,endY:T.current})||(x.current=!0,r())},500)),document.addEventListener("mousemove",A),document.addEventListener("touchmove",R),document.addEventListener("mouseup",D),document.addEventListener("touchend",_),document.addEventListener("touchcancel",_)},A=L=>{if(L.preventDefault&&L.preventDefault(),!m.current||!i.current||(C.current=L.clientX,T.current=L.clientY,x.current))return;let U=L.clientY-f.current+b.current,I=E3(U);i.current.style.top=`${I}px`},D=async L=>{if(L.preventDefault&&L.preventDefault(),F(),m.current=!1,clearTimeout(c.current),y.current||S(!1),x.current)return;ST({startX:p.current,startY:f.current,endX:L.clientX,endY:L.clientY})||(clearTimeout(v.current),e());let I=E3(L.clientY-30);g.current.top=I;let q=await Ln();Fr({...q,floatBallConfig:g.current})},M=L=>{L.preventDefault&&L.preventDefault(),w(L.changedTouches[0])},R=L=>{L.preventDefault&&L.preventDefault(),A(L.changedTouches[0])},_=L=>{L.preventDefault&&L.preventDefault(),D(L.changedTouches[0])},F=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("touchmove",R),document.removeEventListener("mouseup",D),document.removeEventListener("touchend",_),document.removeEventListener("touchcancel",_)};return o.current.addEventListener("mousedown",w),o.current.addEventListener("touchstart",M),()=>{o.current&&(o.current.removeEventListener("mousedown",w),o.current.removeEventListener("touchstart",M))}},[t,o,i,c,m,n,S,e]),z(()=>{if(qe().any)return;let w=D=>{D.target===i.current&&!y.current||!l.current&&ET(D)&&c.current||(y.current=!0,S(!0),clearTimeout(c.current))},A=D=>{if(!(!l.current&&ET(D)&&c.current)){if(m.current){y.current=!1;return}D.target===i.current&&!y.current||S(!1)}};return i.current?.addEventListener("mouseover",w),i.current?.addEventListener("mouseout",A),()=>{i.current?.removeEventListener("mouseover",w),i.current?.removeEventListener("mouseout",A)}},[i,m,S,t,y,l]),{ballRef:o,floatBallConfigRef:g,containerRef:i,active:s,setActive:S}}function ST({startX:e,startY:t,endX:n,endY:r}){let a=Math.abs(n-e),i=Math.abs(r-t);return a>TT||i>TT}function MT(e,t){let n=e?.fixedPosition||"right",r=e?.clickType==="translate",a=ne(()=>t?"":n=="left"?"translateX(-100%)":"translateX(100%)",[n,t]),i=ne(()=>t&&r?"":n=="left"?"translateX(-20px)":"translateX(20px)",[n,t,r]),o=ne(()=>t&&r?"":n=="left"?"translateX(-60px)":"translateX(60px)",[n,t,r]),s=ne(()=>t&&r?"":n=="left"?"translateX(-8px)":"translateX(8px)",[n,t,r]);return{closeTransform:a,logoContainerTransform:i,settingTransform:o,mangaTransform:s}}function PT(){let[e,t]=N(!1);return z(()=>{let n=()=>{document.querySelector("video")&&t(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n)}},[]),{isFullScreen:e}}var wT="hasShownFloatingBallGuide",xU="2024-01-06";function _T(e,t){let[n,r]=N(!1),a=le(()=>{Ze(wT,new Date().toISOString()),r(!0)},[r]);z(()=>{if(!e.config.enableShowFloatingBallGuide||Dt()==e.targetLanguage)return;let o=gt(e.url,t?.guideBlockUrls);!t||o||(async()=>{let s=await Ft(wT,""),u=await Ft("installedAt","");u&&new Date(u){let o=()=>{a()};return document.addEventListener(Wc,o),()=>{document.removeEventListener(Wc,o)}},[]);let i=le(()=>{r(!1)},[]);return{isShowGuide:n,handleCloseGuide:i}}function RT(){document.dispatchEvent(new CustomEvent(Wc))}function IT(e,t){let n=xe(0),[r,a]=N(!0),[i,o]=N(!1),s=Oe(),[u,l]=s,{t:c}=O(),m=le(()=>{e?.config.floatBallTooltipRule&&(qe().any||Cr()?o(n.current>=(e.config.floatBallTooltipRule.h5MainBtnTooltipMaxShowCount||2)):a(n.current>=(e.config.floatBallTooltipRule.mainBtnTooltipImmediateShowCount||5)))},[a,n,e,o]);z(()=>{e&&(n.current=e.config.pcFloatBallMainBtnTooltipShownCount||0,qe().any&&(n.current=e.config.h5FloatBallMainBtnTooltipShownCount||0),m())},[e]);let g=le(async()=>{if(!e)return;n.current=n.current+1,m();let b=await cn();l(y=>{let h={...b};return qe().any?h.h5FloatBallMainBtnTooltipShownCount=n.current:h.pcFloatBallMainBtnTooltipShownCount=n.current,h})},[l,m,n,e]),p=ne(()=>qe().any||!r||Cr()?0:e?.config.floatBallTooltipRule?.mainBtnTooltipDelayTime||2e3,[r,e]),f=ne(()=>{if(qe().any||Cr())return c("floatBall.longPress");let b="";return t!=="Original"?b=c("floatBall.showOriginal"):e?.targetLanguage?b=c("floatBall.translateToLanguage",{language:Ot(e.targetLanguage,e.targetLanguage,!0)}):b=c("floatBall.translate"),e?.config.shortcuts.toggleTranslatePage&&(b+=`(${_a(e.config.shortcuts.toggleTranslatePage)})`),b},[t,e]);return{disableTooltip:i,tooltipDelay:p,tooltipText:f,handleShowTooltip:g}}function E3(e){return Math.max(Math.min(e,globalThis.innerHeight-200),10)}var A3=0;function ET(e){return e.target?.id=="manga-button"||e?.fromElement?.id=="manga-button"?(A3=Date.now(),!0):Date.now()-A3<100}function FT(e,t){z(()=>{let n=r=>{let a=r.detail;a.open===void 0||a.open===null?e(!t.current):e(a.open)};return globalThis.document.addEventListener(go,n),()=>{globalThis.document.addEventListener(go,n)}},[e,t])}function BT(e,t){let n=xe(e);n.current=e,z(()=>{!n.current||!t||Ue("show_float_ball",[{name:"show_float_ball",params:{}}],n.current)},[n,t])}var AT="imt-float-ball-active";function OT(e){z(()=>{let t=!!document.querySelector(`meta[name='${AT}'][content='true']`);t||(t=new URL(globalThis.location.href).searchParams.get(AT)==="true"),t&&setTimeout(()=>{e(!0)},10);let n=r=>{r.detail.active?e(!0):e(!1)};return document.addEventListener(qc,n),()=>{document.removeEventListener(qc,n)}},[])}function NT(e){document.dispatchEvent(new CustomEvent(qc,{detail:{active:e}}))}function TU({isOpen:e,onClose:t,children:n}){let[r,a]=N(e);return z(()=>{e?setTimeout(()=>{a(!0)},10):setTimeout(()=>{a(!1)},400)},[e]),!r&&!e?null:d(ce,{children:[e&&d("div",{className:`${P}-sheet-backdrop ${e?"visible":""}`,style:{zIndex:2147483646},onClick:t}),d("div",{className:`${P}-sheet ${e&&r?"visible":""}`,style:{zIndex:2147483647},children:d("div",{className:`${P}-sheet-content`,children:n})})]})}var Im=TU;var Ho="imt-fb";function jT(e){if(globalThis.innerWidth<=385)return d(Im,{isOpen:e.visible,onClose:e.onClose,children:d(UT,{contentStyle:{width:"100%"},onConfirm:e.onCloseConfirm,onClose:e.onClose})});let r=a=>{a?.target?.id===`${P}-popup-overlay`&&e.onClose()};return e.visible?d("div",{onClick:r,id:`${P}-popup-overlay`,class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.style||e.getModalStyle?.(),children:d(UT,{title:e.title,settingUrl:e.settingUrl,onConfirm:e.onCloseConfirm,onClose:e.onClose})})}):null}function UT(e){let{t}=O(),[n,r]=N("UntilNext"),a=ad()+"#floating",i=t("closeQuickTranslation.settingOpen",{1:e.settingUrl||a}),o=[{title:t("closeQuickTranslation.untilNext"),type:"UntilNext"},{title:t("closeQuickTranslation.currentWebsite"),type:"CurrentWebsite",description:i},{title:t("closeQuickTranslation.alwaysClose"),type:"AlwaysClose",description:i}];return d("div",{class:`${Ho}-close-content`,style:e.contentStyle,children:[d("div",{class:"flex justify-between",children:[d("div",{class:`${Ho}-close-title`,children:e.title||t("closeQuickTranslation")}),d("div",{class:"clickable",onClick:e.onClose,children:d(yn,{type:"modal-close"})})]}),d("div",{class:`${Ho}-close-radio-content mt-3`,children:o.map(s=>d(SU,{onClick:()=>{r(s.type)},title:s.title,description:s.description,selected:s.type===n,onLinkClick:u=>{Ea(u)}},s.type))}),d("div",{class:"flex mt-3 flex-end",children:[d("div",{class:`${Ho}-default-btn`,onClick:e.onClose,children:t("closeQuickTranslation.cancel")}),d("div",{class:`${Ho}-primary-btn ml-2`,onClick:()=>{e.onConfirm&&e.onConfirm(n)},children:t("closeQuickTranslation.confirm")})]})]})}function SU(e){let{selected:t,title:n,description:r,onLinkClick:a}=e,i=wU(r||"");return d("div",{class:"flex items-center clickable",style:"padding: 8px 0",onClick:e.onClick,children:[d("div",{class:t?`${Ho}-radio-sel`:`${Ho}-radio-nor`,children:d("div",{})}),d("div",{class:"ml-2 text-sm",children:[d("span",{children:n}),r?d("small",{class:"muted text-sm",children:i.map(o=>o.type==="text"?o.value:d("a",{onClick:()=>o.href&&a&&a(o.href),children:o.value}))}):null]})]})}function wU(e){let t=[],n=/((.*?)<\/a>)|([^<]+)/g,r=Array.from(e.matchAll(n));for(let a of r){let i=a[2],o=a[3],s=a[4];i&&o?t.push({type:"link",href:i,value:o}):s&&t.push({type:"text",value:s})}return t}var qo="imt-fb";function HT(e){let{t}=O(),n=a=>{a?.target?.id===P+"-popup-overlay"&&e.onClose()},r=ne(()=>{let a={position:"fixed",top:e.top+60};return e.fixedPosition=="left"&&(a.left=48),e.fixedPosition=="right"&&(a.right=48),a},[e.top,e.fixedPosition]);return e.visible?d("div",{onClick:n,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${qo}-guide-container`,style:r,children:[d("img",{class:`${qo}-guide-bg ${e.fixedPosition}`,src:EU}),d("div",{class:`${qo}-guide-content ${e.fixedPosition}`,children:[d("img",{class:`${qo}-guide-img`,src:an("images/float_ball_intro.png")}),d("div",{class:`${qo}-guide-message`,children:[t("floatBall.guideClickToTranslate"),qe().any?` +${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide-button`,onClick:e.onClose,children:t("floatBall.iKnow")})]})]})}):null}var EU="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEyIiBoZWlnaHQ9IjM3MiIgdmlld0JveD0iMCAwIDMxMiAzNzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSBtZWV0Ij4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8zNjQ4XzEyODAyKSI+CjxwYXRoIGQ9Ik0yMCAzNkMyMCAyNC45NTQzIDI4Ljk1NDMgMTYgNDAgMTZI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U9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzM2NDhfMTI4MDIiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzY0OF8xMjgwMiIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM2NDhfMTI4MDIiIHgxPSIxNTcuNSIgeTE9IjE2IiB4Mj0iMTU3LjUiIHkyPSIzNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0ZGOTJCQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";var qT="imt-manga";function zT({visible:e,onClose:t,top:n,fixedPosition:r,ctx:a}){let{t:i}=O(),o=m=>{m?.target?.id===P+"-popup-overlay"&&t()},s=ne(()=>{let m={position:"fixed",top:n+60+42};return r=="left"&&(m.left=48-22),r=="right"&&(m.right=48-22),m},[n,r]),u=a.isPro?i("guide.mangaProTip"):i("guide.mangaNoProTip"),l=a.isPro?i("floatBall.iKnow"):i("upgradeToProWithProfile"),c=le(()=>{if(t(),!a.isPro){if(a.user)return window.open(B2);window.open(I2)}},[a,t]);return e?d("div",{onClick:o,id:P+"-popup-overlay",class:`${P}-popup-overlay`,style:{pointerEvents:"all"},children:d("div",{class:"imt-fb-guide-container",style:s,children:[d("img",{class:`${qT}-guide-bg ${r}`,src:`${Qt}static/extension/images/popup-manga-bg.png`}),d("div",{class:`${qT}-guide-content ${r}`,children:[d("div",{class:"imt-fb-guide-message",children:u}),d("div",{class:"imt-fb-primary-btn imt-fb-guide-button img-manga-guide-button",onClick:c,children:l})]}),d(yn,{className:"img-manga-close",type:"close",onClick:t})]})}):null}var mi="imt-fb";function k3(e){let{t}=O(),n=Oe(),[r,a,i,o]=n;Xe(r,a);let s=pt(r),u=e.ctx,{isFullScreen:l}=PT(),[c,m]=N(!1),g=xe(c);g.current=c;let[p,f]=N(!0),{pageStatus:b}=kT(),y=ii(u,r),h=le(()=>{if(y?.clickType==="popup")return m(!0);y?.clickType==="translate"&&bn({method:"toggleTranslatePage",data:{trigger:"float_ball"}})},[y,bn,m]),v=le(()=>{m(!0)},[m]),C=p&&!!s,{containerRef:T,active:x,ballRef:S,floatBallConfigRef:w,setActive:A}=LT({handleBallClick:h,handleMobileBallLongPress:v,isShow:C,localConfig:e.localConfig,popupVisible:c}),D=y?.fixedPosition||"right",M=D==="right"?"left":"right",{isShowGuide:R,handleCloseGuide:_}=_T(e.ctx,y),{closeTransform:F,logoContainerTransform:L,settingTransform:U,mangaTransform:I}=MT(y,x||R);BT(u,x);let{tooltipDelay:q,disableTooltip:$,tooltipText:te,handleShowTooltip:Te}=IT(u,b);FT(m,g),OT(A);let H=globalThis.innerWidth<=385;return C?d(ce,{children:d("div",{class:`${mi}-container ${D} notranslate`,style:{zIndex:l?-1:2147483647,pointerEvents:x||R||c?"all":"none"},ref:T,children:[d(AU,{ctx:u,setVisible:f,closeTransform:F,setActive:A,getModalStyle:()=>WT(w.current.top,300,D)}),d(Pt,{enableMobile:!0,text:te,position:M,delay:q,onShow:Te,disable:$,children:d("div",{class:`${mi}-btn ${D} btn-animate `,ref:S,style:{transform:L,opacity:x||R?1:.5},children:d("div",{children:[d(yn,{type:"logo"}),d(yn,{type:"translated",className:"imt-float-ball-translated",hidden:b==="Original"})]})})}),d(LU,{ctx:u,mangaTransform:I,floatBallConfigRef:w,fixedPosition:D,hidden:R}),d("div",{style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:[d(Pt,{text:t("translateFileTooltip"),multiple:!0,position:M,containerClass:"btn-animate",tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{od(W2,!0)},children:d(yn,{type:"file"})})}),d(Pt,{text:t("floatBall.setting"),position:M,containerClass:"btn-animate",children:d("div",{class:`${mi}-more-button`,onClick:()=>{A(!0),m(!0)},children:d(yn,{type:"setting"})})}),d(PU,{ctx:u,tooltipPosition:M,rule:y,active:x})]}),d("div",{hidden:u.rule.imageRule?.type?.startsWith("manga")||b!="Translated",style:{marginTop:"12px",transform:U},class:`${mi}-more-buttons btn-animate`,children:d(Pt,{text:t("reportTip"),position:M,containerClass:"btn-animate",children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(co,{detail:{type:"webReport"}}))}})})}),d(D3,{onClose:()=>{A(!1),m(!1)},isSheet:H,visible:c,getModalStyle:()=>WT(w.current.top,500,D)}),d(HT,{visible:R,top:w.current.top,fixedPosition:D,onClose:()=>{_(),A(!1)}})]})}):null}function AU(e){let{t}=O(),[n,r]=N(!1),a=Oe(),[i,o,s,u]=a,l=ii(e.ctx,i),c=le(g=>{e.ctx&&o(p=>Ui({...p},g))},[e.ctx,o]),m=le(g=>{l&&(e.setVisible(!1),g==="AlwaysClose"?c({...l,enable:!1}):g==="CurrentWebsite"&&c({...l,blockUrls:[...l.blockUrls,globalThis.location.hostname]}))},[c,l,e.setVisible]);return d(ce,{children:[d("div",{title:t("floatBall.close"),class:"btn-animate",style:{transform:e.closeTransform,padding:4,cursor:"pointer"},onClick:()=>{e.setActive(!0),r(!0)},children:d(yn,{type:"close"})}),d(jT,{visible:n,onClose:()=>{e.setActive(!1),r(!1)},getModalStyle:e.getModalStyle,onCloseConfirm:m})]})}function D3(e){let t=n=>{n?.target?.id===P+"-popup-overlay"&&e.onClose()};return e.isSheet?d(Im,{isOpen:e.visible,onClose:e.onClose,children:d(_m,{onClose:e.onClose,className:"popup-container-sheet"})}):e.visible?d("div",{onClick:t,style:e.overlayStyle,id:P+"-popup-overlay",class:`${P}-popup-overlay`,children:d("div",{class:`${P}-popup-wrapper`,style:e.getModalStyle(),children:d(_m,{onClose:e.onClose})})}):null}function kU(){return{width:globalThis.innerWidth||document.documentElement.clientWidth,height:globalThis.innerHeight||document.documentElement.clientHeight}}var WT=(e,t,n)=>{let a=kU().height,i={position:"fixed"},o=0;return n2()&&(e=DU.top),i.top=e-o,i.top+t>=a?(i.bottom=30,delete i.top):i.top<=10&&(i.top=10),n==="left"?i.left=65:i.right=65,i},DU={position:"right",right:0,top:335};function LU({ctx:e,floatBallConfigRef:t,fixedPosition:n,hidden:r,className:a,mangaTransform:i}){let[o,s]=N(!1),{mangaStatus:u}=DT(),l=e.rule.imageRule,c=!l?.type?.startsWith("manga"),{t:m}=O();z(()=>{c||Ln().then(p=>{p.showMangaGuide||(p.showMangaGuide=!0,s(!0),kt(p))})},[c,s]);let g=le(async p=>{if(p.preventDefault(),p.stopPropagation(),!e.isPro){let f=await tt.get(mt,null);if(At(f)){e.user=f,e.isPro=!0,bn({method:"toggleTranslateManga"});return}s(!0);return}bn({method:"toggleTranslateManga"})},[]);return!Kd(l)||r||!l?.enable?null:d(ce,{children:[d("div",{hidden:c,class:`imt-manga-button imt-no-events btn-animate ${a||""}`,id:"manga-button",style:u!="Original"?{opacity:1,transform:i}:{transform:i},children:[d(yn,{type:"manga",onClick:g,hidden:u=="Translating"}),d(yn,{type:"translated",onClick:g,hidden:u!="Translated",className:"imt-manga-translated"}),d(yn,{type:"loading",onClick:g,style:"margin:9px",hidden:u!="Translating",className:"imt-float-ball-loading"}),d(Pt,{enableMobile:!0,text:m("reportTip"),position:"left",delay:100,onShow:void 0,disable:!1,children:d(yn,{type:"manga-feedback",className:"imt-manga-feedback",onClick:()=>{document.dispatchEvent(new CustomEvent(co,{detail:{type:"mangaReport"}}))}})})]}),d(zT,{ctx:e,visible:o,top:t.current.top,fixedPosition:n,onClose:()=>{s(!1)}})]})}var MU="float_ball_upgrade_show_count";function PU(e){let{tooltipPosition:t,ctx:n,rule:r,active:a}=e,{t:i}=O(),o=er(n.config),s=xe(!1),[u,l]=N(null),c=ne(()=>pu(n.config),[n]),m=p=>pu(p)?.upgradeShowCountCacheKey||MU;z(()=>{So(m(n.config),0).then(p=>{l(p)})},[n]);let g=ne(()=>{if(!r?.upgradeVisible||o||n.isPro||u==null)return!0;let f=pu(n.config)?.upgradeShowLimit||r.upgradeShowLimit;return u>=f},[r,n,o,u]);return z(()=>{g||!n?.localConfig||s.current||!a||u==null||(s.current=!0,wo(m(n.config),u+1))},[g,n,s,a,u]),g?null:c?d(Pt,{text:c.tips||i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(c.floatBallUrl||Hg,"_blank")},style:{width:34,height:34,borderRadius:17,background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d("div",{class:`${mi}-more-button`,style:{width:30,height:30,borderRadius:15,border:"1px solid white",background:"linear-gradient(90deg, #CEFBFA 11.33%, #D7F56F 63.75%, #FCCD5E 100%)"},children:d(yn,{type:"upgrade"})})})}):d(Pt,{text:i("floatBall.upgrade"),position:t,containerClass:"btn-animate",multiple:!0,tipStyle:{width:210,maxWidth:210},children:d("div",{class:`${mi}-more-button`,onClick:()=>{globalThis.open(Hg,"_blank")},children:d(yn,{type:"upgrade"})})})}async function VT(){try{let e=await Je(),t={url:globalThis.location.href,config:e},n=await wn(t),r=document.createElement("div");r.id=P+"-popup",r.setAttribute("style","all: initial");let a=r.attachShadow({mode:"open"});_U(a,e,n),document.documentElement.appendChild(r)}catch{}}function _U(e,t,n){let r=document.createElement("div");r.id="mount",r.style.display="block";let a=Se(),i=[a.IMMERSIVE_TRANSLATE_PICO_CSS,a.IMMERSIVE_TRANSLATE_COMMON_CSS,a.IMMERSIVE_TRANSLATE_POPUP_CSS,a.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);RU(e,[i]),e.appendChild(r),va(d(Yi,{lang:t.interfaceLanguage,children:d(IU,{ctx:n})}),r)}function RU(e,t){for(let n of t){if(J()&&!Jn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}function IU(e){let[t,n]=N(!1),r=xe(t);r.current=t;let a=xe(""),i=xe("");z(()=>{let u=l=>{let c=l.detail;a.current=c.style||"",i.current=c.overlayStyle||"",c.open===void 0||c.open===null?n(!r.current):n(c.open)};return globalThis.document.addEventListener(go,u),()=>{globalThis.document.addEventListener(go,u)}},[r]);let o=globalThis.innerWidth,s=qe().any&&o<=450;return d(D3,{visible:t,overlayStyle:`background-color: rgba(0, 0, 0, 0.5); ${i.current}`,getModalStyle:()=>`position: fixed; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); ${a.current}`,isSheet:s,onClose:()=>{n(!1)}})}function Fm(e){document.dispatchEvent(new CustomEvent(go,{detail:e||{}}))}function FU(e,t){for(let n of t){if(J()&&!Jn()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}async function L3(){let e=await Ir(),t=await cn(),n={url:globalThis.location.href,config:e},r=await wn(n),a=await m4(r,t),i=gt(r.url,a?.blockUrls),o=await Mt();if(!a?.enable||i)return VT();let s=document.createElement("div");s.id=P+"-popup",s.setAttribute("style","all: initial");let u=s.attachShadow({mode:"open"});return BU(u,e,o,r),document.documentElement.appendChild(s),s}function KT(){let e=document.getElementById(P+"-popup");e&&e.remove(),L3()}function BU(e,t,n,r){let a=document.createElement("div");a.id="mount",a.style.display="block";let i=Se(),o=[i.IMMERSIVE_TRANSLATE_PICO_CSS,i.IMMERSIVE_TRANSLATE_COMMON_CSS,i.IMMERSIVE_TRANSLATE_POPUP_CSS,i.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);FU(e,[o]),e.appendChild(a),va(d(Yi,{lang:t.interfaceLanguage,children:d(k3,{localConfig:n,ctx:r})}),a)}var GT=!1;async function $T(){GT||(GT=!0,L3().catch(e=>{k.error("init popup error",e)}))}var sc=null;function uc(e,t,n){let r=globalThis.location.href,a=document.createElement("div");sc={title:document.title,url:r,subtitleItems:t.map(i=>{if(i.text.includes("<"))try{a.innerHTML=i.text,i.text=a.innerText}catch{}return i}),sourceLang:n,targetLang:e.state.targetLanguage||e.targetLanguage,translationService:e.subtitleTranslateService}}function M3(){let e=globalThis.location.href;if(!(!sc||sc.url!==e||!sc.subtitleItems.length))return sc}async function YT(){let e=M3();if(!e)return;let t=await Mt();t.downloadSubtitle=e,await kt(t),Ea(V2)}async function ZT(){let e=await Mt();if(e.downloadSubtitle)return e.downloadSubtitle}async function JT(e,t){let n,r;if(t){let a=Am(e);n=new Blob([a],{type:"text/html"}),r=await Yt(),r=Oi(!1,r)}return{siteUrl:location.href,pluginVersion:On(),isMobile:qe().any,platform:Bi(),sourceLanguage:e.sourceLanguage,targetLanguage:e.targetLanguage,userConfig:r,userAgent:navigator.userAgent,htmlBlob:n}}async function XT(e,t,n,r,a){let{htmlBlob:i,...o}=r,s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","web"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var P3={};function no(e){let t=Bm(e)||{};P3[e.sourceUrl+"_"+e.to]={...t,...e}}function Bm(e){return P3[e.sourceUrl+"_"+e.to]}async function QT(e,t){let n=location.href,r=Object.values(P3).filter(i=>i.siteUrl==n),a={targetLanguage:e.targetLanguage,siteUrl:n,hasLog:t,userAgent:navigator.userAgent,isMobile:qe().any,platform:Bi(),images:[],version:On()};if(t){a.images=r.map(s=>({comicHash:s.comicHash,imgHash:s.imgHash,targetUrl:s.targetUrl,taskId:s.taskId,error:s.error}));let i=Am(e);a.htmlBlob=new Blob([i],{type:"text/html"});let o=await Yt();a.userConfig=Oi(!1,o)}return a}async function eS(e,t,n,r,a){let{htmlBlob:i,...o}=r;n||(o.images=[]);let s=new FormData;i&&n&&s.append("file",i,"sample");let u=await ea();return s.append("resource",r.siteUrl),s.append("reason",t),s.append("metaData",JSON.stringify(o)),s.append("feedType","comic"),s.append("deviceId",u),s.append("domain",location.hostname),a&&s.append("contactInfo",a),await fetch(`${ft}v1/feed-back/web-report-log`,{method:"POST",body:s,headers:{token:e.user?.token||""}}).then(async l=>(await ji(l,"web"),l.json()))}var lc={width:94,height:80};function tS(e,t=1){if(!e)return;if(t>3)return e;let n=e.getBoundingClientRect();return!n.width||!n.height?tS(e.parentElement,t+1):e}function fu(e,t,n,r){let a=Pe.bind(null,e.config.interfaceLanguage),i=tS(t.parentElement);if(!i)return;let o=globalThis.getComputedStyle(i);o.position!=="absolute"&&o.position!=="fixed"&&(i.style.position="relative");let s=e.rule.imageRule.opImageType=="append",u=i.getBoundingClientRect(),l=t.getBoundingClientRect(),c=document.createElement("div");if(c.style.minWidth=lc.width+"px",c.style.height=lc.height+"px",c.style.position="absolute",c.style.left=l.left-u.left+(l.width-lc.width)/2+"px",c.style.top=l.top-u.top+(l.height-lc.height)/2+"px",c.style.padding="8px",s&&(c.style.left="50%",c.style.transform="translateX(-50%)",c.style.top=(u.height-lc.height)/2+"px"),e.rule.imageRule.loadingStyle){let m=e.rule.imageRule.loadingStyle,g=c.getAttribute("style")||"";c.setAttribute("style",g+m)}if(c.classList.add("imt-image-status"),c.innerHTML=` ${a("imageState.reading")}... `,n=="translating"&&c.classList.add("imt-loading"),n=="error"){let m=a("translateFail");r==="gif_not_supported"&&(m=a("imageState.gifNotSupported")),c.innerHTML=` @@ -6011,25 +6011,25 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide - ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function I3(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var cc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function rT(e,t,n){if(e=="manga")return eT(t,n);if(e=="web")return Xx(t,n)}function aT(e,t,n,r,a,i){if(e=="manga")return tT(t,n,a,i,r);if(e=="web")return $x(t,n,a,i,r)}function Nm(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; + ${a("translateSuccess")}`),i.appendChild(c),(n=="error"||n=="success")&&setTimeout(()=>{c.remove()},2e3),c}function _3(e,t,n){if(!t)return null;let r=t.querySelector("span");if(!r)return null;let a=["detecting","detecting_recognizing","recognizing","color_detecting","line_merging"],i=["inpainting_translating","translating","inpainting","rendering"],o=Pe.bind(null,e.config.interfaceLanguage);n=="extension_uploading"&&(r.textContent=o("imageState.loading")+"..."),a.includes(n)&&(r.textContent=o("imageState.detectingRecognizing")+"..."),i.includes(n)&&(r.textContent=o("imageState.translating")+"..."),["saving","completed","saved"].includes(n)&&(r.textContent=o("imageState.generating")+"..."),n==="pending"&&(r.textContent=o("imageState.pending")+"...")}var cc=class extends Error{type;constructor(t,n){super(t),this.name="ImtImageError",this.type=n}};function nS(e,t,n){if(e=="manga")return QT(t,n);if(e=="web")return JT(t,n)}function rS(e,t,n,r,a,i){if(e=="manga")return eS(t,n,a,i,r);if(e=="web")return XT(t,n,a,i,r)}function Om(e,t,n,r,a,i,o){let s=Pe.bind(null,t.config.interfaceLanguage),u=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;function l(D){return u.test(D.trim())}let c=()=>p.value.trim()===""||!l(f.value)||f.value.trim()==="",m=document.createElement("div");m.innerText=s("reportInfo.title"),m.setAttribute("style","text-align:left;margin-top:-20px;"),r.append(m);let g=document.createElement("div");g.setAttribute("style","display:flex;flex-direction:column;");let p=document.createElement("textarea");p.placeholder=s("reportInfo.reasonDesc"),p.required=!0,p.setAttribute("style",`border-radius: 12px; border: 1px solid #ECF0F7; background: #FAFBFC; min-height: 100px; padding: 9px 12px; - flex: 1;`),p.addEventListener("input",function(){T.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; + flex: 1;`),p.addEventListener("input",function(){S.disabled=c(),A&&(A.style.display=this.value.trim()===""?"block":"none")}),g.append(p),a.append(g);let f=document.createElement("input");f.type="email",f.id="emailReport",f.size=30,f.setAttribute("style",`border: 1px solid #ECF0F7; padding: 4px 8px; background: #FAFBFC; - font-size: 14px;`);let b="";tt.get(mt,null).then(D=>{D&&(b=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);T.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let x=document.createElement("label");x.htmlFor=C.id,x.innerText=s("reportInfo.attachLog"),x.setAttribute("style","margin-left:8px");let S=document.createElement("div");S.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),S.append(C),S.append(x),a.append(S);let T=document.createElement("button");T.className=P+"-btn",T.innerText=s("reportInfo.submit"),T.disabled=!0,T.onclick=async()=>{if(T.uploading||p.value.trim()===""||!l(f.value))return;let D=await rT(e,t,C.checked);T.uploading=!0;try{iT(T,!0),await aT(e,t,p.value,f.value!==b?f.value:"",C.checked,D),UU(s,r,a,i,o)}catch{jU(t,n,s,r,a,i,o,e)}finally{T.uploading=!1,iT(T,!1)}},i.appendChild(T);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function iT(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function UU(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` + font-size: 14px;`);let b="";tt.get(mt,null).then(D=>{D&&(b=D.email,f.value=D.email)});let y=document.createElement("label");y.htmlFor=f.id,y.innerText=s("reportInfo.email"),y.setAttribute("style","display: block; margin-right: 10px;word-break:keep-all;");let h=document.createElement("div");h.setAttribute("style","display: flex; align-items: center; text-align: left; margin: 16px 0 0;"),h.append(y),h.append(f),a.append(h);let v=document.createElement("div");v.textContent=s("reportInfo.emailError"),v.setAttribute("style","color: red; font-size: 12px; margin-top: 4px; visibility: hidden;text-align: left;"),a.append(v),f.addEventListener("input",function(){let D=l(this.value);S.disabled=c(),D?v.style.visibility="hidden":v.style.visibility="visible"});let C=document.createElement("input");C.type="checkbox",C.checked=!0,C.id="cbMangaReport";let T=document.createElement("label");T.htmlFor=C.id,T.innerText=s("reportInfo.attachLog"),T.setAttribute("style","margin-left:8px");let x=document.createElement("div");x.setAttribute("style","margin: 4px 0 0;text-align:left;display:flex;align-items:center"),x.append(C),x.append(T),a.append(x);let S=document.createElement("button");S.className=P+"-btn",S.innerText=s("reportInfo.submit"),S.disabled=!0,S.onclick=async()=>{if(S.uploading||p.value.trim()===""||!l(f.value))return;let D=await nS(e,t,C.checked);S.uploading=!0;try{aS(S,!0),await rS(e,t,p.value,f.value!==b?f.value:"",C.checked,D),OU(s,r,a,i,o)}catch{NU(t,n,s,r,a,i,o,e)}finally{S.uploading=!1,aS(S,!1)}},i.appendChild(S);let w=document.createElement("div");w.setAttribute("style","flex-basis:100%;width:100%;"),i.appendChild(w);let A=document.createElement("p");A.setAttribute("style","color:red;margin-bottom:0;font-size:12px;text-align:center;"),A.textContent=s("reportInfo.tip"),i.appendChild(A)}function aS(e,t){let n=e.querySelector("#report-loading");n?.remove(),t&&(n=document.createElement("div"),n.id="report-loading",n.classList.add(P+"-loading-spinner"),e.appendChild(n))}function OU(e,t,n,r,a){t.innerHTML="",n.innerHTML="",r.innerHTML="";let i=document.createElement("div");i.innerHTML=` - `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function jU(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` + `,n.append(i);let o=document.createElement("div");o.innerText=e("reportInfo.submitSuccess"),o.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),n.append(o);let s=document.createElement("button");s.setAttribute("style","margin-top:36px"),s.className=P+"-btn",s.innerText=e("reportInfo.ok"),s.onclick=()=>{a(s,!0)},r.append(s)}function NU(e,t,n,r,a,i,o,s){r.innerHTML="",a.innerHTML="",i.innerHTML="";let u=document.createElement("div");u.innerHTML=` - `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=P+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Nm(s,e,t,r,a,i,o)},i.append(m)}function F3(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function Um(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var jm=[],oT=[];async function _3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(O3()||jm.includes(t))return"";if(jm.length>=s)return new Promise((l,c)=>{oT.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});jm.push(t);try{let u=await VU(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await sT(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{jm.shift(),(async()=>{let u=oT.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await _3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function HU(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ft}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${uT(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await ee({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function qU(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function zU(e,t,n){let r=await qU(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),Z()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):ee({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await L5(a)})}async function VU(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=WU(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await Um(u);no({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await HU(e,r,l,n.type);if(c.objectKey&&no({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await zU(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return Z()?m=await fetch(B3()+"/trigger",{method:"POST",body:ud(u),headers:{token:e.user?.token||""}}).then(async g=>(await ji(g,"manga"),g.json())):m=await ee({url:B3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),no({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function sT(e,t,n,r,a){let i=O3();if(i)return;Rr("Translating",i);let o=await ee({url:B3()+`/${t}/task-state?comicHash=${n}&domain=${uT(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await Yv(t,r.queryIntervalTime||100),sT(e,t,n,r,a))}function B3(){return ft+"comics"}function WU(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function uT(e){return e.replaceAll(".","_")}var Vt,N3,qm,mc,on=!1;function O3(){return on}var lT=!1;function mT(e){if(Vt=e.rule.imageRule,!e.isPro||!Vt.type)return;on=!1,!lT&&Vt.injectedCss&&(tr(document,`${Vt.injectedCss}`,P+"-image-injected-css"),lT=!0);let t=!1,n=_n(async function(){Vt?.disableMarkSelector&&(t=!!document.querySelector(Vt.disableMarkSelector));let a=fT(Vt);for(let i of a){if(on)return;i.isMarked&&!Vt?.disableMarkElement||(i.isMarked=!0,await ut(20),await r(i,t))}},100);if(Ue("translate_manga",[{name:"translate_manga"}],e),n(),N3=new MutationObserver(a=>{n()}),N3.observe(document.body,{childList:!0,subtree:!0}),Vt.intersectionRootMargin){let a=Vt?.intersectionRootSelector?document.querySelector(Vt?.intersectionRootSelector):void 0;mc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(zo(e,o.target),mc?.unobserve(o.target))})},{root:a,rootMargin:Vt.intersectionRootMargin,threshold:Vt.intersectionThreshold})}qm=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Vt?.intersectionRootMargin?(mc?.unobserve(a),mc?.observe(a)):await zo(e,a)))}}async function zo(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Ds();if(n&&(on=!1),on||ej(e,t)||t.hasTranslate)return;Vt=e.rule.imageRule;let o=!1;Vt?.disableMarkSelector&&(o=!!document.querySelector(Vt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=KU(e,t);u||(s=fu(e,t,"translating")),n&&Ue("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await YU(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await GU(e,t,o,a,s)),on&&!n)return;l?(t.translationStatus="success",u||fu(e,t,"success")):(u||fu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",on))}catch(l){if(on&&!n||(t.translationStatus="error",a=="manga"&&(Rr("Error",on),$U(e,l)),u))return;if(l instanceof cc)return fu(e,t,"error",l.type);fu(e,t,"error")}finally{n&&Rr(i,on),s?.remove()}}function gT(){if(!Vt)return;on=!0,N3?.disconnect(),qm?.disconnect(),mc?.disconnect();let e=fT(Vt);for(let t of e)Vo(t)}function Vo(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Vo(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function GU(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await QU(l,c,t.cloneNode(!0))}else o=await hT(t);if(on)return;if(!o||o.size<6*1e4){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await F3(o);return await U3(e,t,s)?!0:s?pT({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function pT({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await ZU(n)||n,u=r||a;try{if(on)return;Rr("Translating",on),I3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};no(l);let m=await _3(e,u,s,a,i,g=>{I3(e,o,g)});return m?(l.targetUrl=m,no(l),await bT(Vt,t,m),Rr("Translated",on),!0):!1}catch(l){if(no({sourceUrl:u,to:e.targetLanguage,error:l.message}),on)return;throw l}}async function U3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl?(await bT(Vt,t,a.targetUrl||""),Rr("Translated",on),!0):!1}function KU(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Om(r);return a&&a?.targetUrl}return!1}async function YU(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!XU(a,i)){qm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await U3(e,t,o))return!0;let s=null;if(Rr("Translating",on),on)return;if(i.startsWith("blob:")){let m=await fetch(i);await ji(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await JU(i);else{let m=await ee({url:i,responseType:"base64"});s=await ld(m)}if(on)return;if(await AC(s))throw new cc("GIFs not supported","gif_not_supported");let l=await F3(s);if(!o&&(o=l,await U3(e,t,o)))return!0;if(!o)return!1;return pT({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function fT(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function hT(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function QU(e,t,n){return new Promise((r,a)=>{ee({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await hT(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function bT(e,t,n){try{return await cT(e,t,n)}catch{let a=await tj(n);return cT(e,t,a)}}async function cT(e,t,n){return new Promise((a,i)=>{if(on)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function JU(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function ZU(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function XU(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Fd(e.inValidSrcRegex,t):!0}var Hm=0,dc=0;function $U(e,t){if(Hm!=0){dc++;return}if(t.message.indexOf("quota exceeded")>0){dT(e,t);return}dc++,Hm=setTimeout(()=>{if(dc<(Vt.errorTimes||3)){Hm=0,dc=0;return}dT(e,t),dc=0,Hm=0},Vt.errorInterval||3e3)}function dT(e,t){let r=new V("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(Fn,{detail:r}))}function j3(e){return e.classList.contains("imt-img")||e.hasTranslate}function ej(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function tj(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var nj="showImagePricingModal";function zm(e){document.dispatchEvent(new CustomEvent(nj,{detail:JSON.stringify({trigger:e})}))}var Ha=null;async function yT(e,{srcUrl:t}){if(!oi(e))return;if(!await xs(e)){zm("image_right_menu");return}if(!Ha){k.error("rightMenu image ele not found",t,Ha);return}if(Ha.translationStatus!=="translating"){if(Ha.hasTranslate){Vo(Ha);return}if(t!==Ha.src)try{let r=new URL(t),a=new URL(Ha.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,Ha.src,r);return}zo(e,Ha,!0,"image_right_menu")}}function vT(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Ha=e.target)})}var CT=0;function pc(e){let t=Date.now();if(t-CT<2e3||(CT=t,rj()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,gc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Te();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=P+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,gc)}setTimeout(()=>{aj()},100)}function rj(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function aj(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function gc(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function ST(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await cn();ln({...l,sameLangCheck:!1}),o(i,!0)})}var xT=0;async function TT(e){let t=Date.now();if(t-xT<2e3||(xT=t,ij()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&H3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,H3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=Te();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=P+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",x=>{x.target==g&&(g.style.display="none")}),e(g,u,l,H3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{oj()},100),m=setTimeout(c,2500)}function ij(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function oj(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function H3(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function q3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",wT({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(F2)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(t0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(U2)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)},z3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{ET(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Qt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await ln(f),wT({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function wT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(t)}var AT=!1,Zt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},DT=[()=>{Yt.unbind()}],kT=[...DT],sj=br(async()=>{await wa()},50),uj=br(async()=>{await id()},50),lj=br(async()=>{await p5()},50),cj=br(async()=>{await g5()},50),LT=br(e=>{bn({method:e,data:{trigger:"userscript_menu"}})},50),V3=!1,dj=_n(()=>{let e=globalThis.getSelection()?.toString().trim();!V3&&e&&e.length>0?Sl({text:e}):Sl({})},50),mj=()=>{V3=!0,setTimeout(()=>{V3=!1},100)};Zt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(AT)return;AT=!0,Z()||a5(),n.addEventListener("securitypolicyviolation",Zt.handleSecurityPolicyViolation),document.addEventListener(ie+"DocumentMessageUser",BT),document.addEventListener(ie+"DocumentMessageUpdateUser",_T),document.addEventListener(ie+"ChangeSuccessService",OT.bind(null,t)),document.addEventListener(ie+"ChangeService",NT.bind(null,t)),document.addEventListener(Fn,Zt.showErrorByEvent.bind(null,t)),document.addEventListener(Hc,Zt.showToastByEvent.bind(null,t)),document.addEventListener(co,Zt.showModal.bind(null,t)),n.addEventListener(ie+"EbookLoaded",Zt.handleEbookLoaded),n.addEventListener(l2,Zt.handleThirdPartyTell.bind(null,t)),n.addEventListener(c2,Zt.eventUpload.bind(null,t)),n.addEventListener(zc,a=>{St()||Y3(a,t)}),n.addEventListener(m2,jT),n.addEventListener("click",a=>{Zt.handleClick(a,t)}),document.addEventListener("selectionchange",dj),document.addEventListener("contextmenu",mj),vT(),St()&&e.addEventListener("message",Zt.handleGlobalMessage,!1),Z()&&(St()||n.addEventListener(jr,Zt.handlePopupInit)),St()||Yi.rootIframe(Zc).handleAsk("throttleRequest",d8)};function MT(e,t){fj(),Zt.SetupDomListenersForOnce(t,e),Z()&&(St()||(C3(e.config),hj(e.config))),vr()&&HT(e,t),je()&&C3(e.config)}Zt.handlePopupInit=e=>{Qx()};Zt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===jc&&Ta(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Zt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){gc(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Ue(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),PT({method:"retryFailedParagraphs"}),gc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}pc(q3.bind(null,t,o,i,s));return}}};async function gj(){let e=await Qt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await ln(e)}async function pj(){let e=await Qt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await ln(e)}Zt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;TT(ST.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Zt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;pc(q3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Zt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?pc(Nm.bind(null,"manga",e)):r=="webReport"&&pc(Nm.bind(null,"web",e))};Zt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=G3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")PT({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")f5(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")gj();else if(i.type==="toggleEnableInputTranslation")pj();else if(i.type==="syncAppSetting")RT(i.data);else if(i.type==="translatePage")bj(i.data);else if(i.type==="getAsyncTranslationServiceList")a=ws(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=$i(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await yj(i.data,o)}catch(s){fc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await vj(o,i.data)}catch(s){fc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await rd(i.data):i.type==="getAsyncDownloadSubtitle"?a=await Zx():i.type==="sharePage"?Y3({detail:i.data},r):i.type==="switchTranslationMode"?W3(i.data):i.type=="getAsyncAiAssistants"?a=await Gl():i.type=="addAiAssistantAsync"?a=await Bo("add",i.data):i.type=="removeAiAssistantAsync"?a=await Bo("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await K3(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await UT(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Id("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await ov(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await v5()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await C5()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await sv(i.data)):i.type==="openPopup"?_m({...i.data,open:!0}):i.type==="closePopup"?_m({...i.data,open:!1}):i.type==="togglePopup"?_m({...i.data}):i.type==="getPageStatusAsync"?a=ot():i.type==="restorePage"?Cj():i.type==="getPageLanguageAsync"?a=Dt():i.type==="showFloatBallGuide"?Fx():i.type=="getAsyncDetectAndSetLanguage"?a=await FT(i.data):i.type=="setFloatBallActive"?Ux(i.data):LT(i.type);a!=null&&i.id&&fc(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Zt.handleEbookLoaded=e=>{setTimeout(()=>{IT()},10)};Zt.handleSecurityPolicyViolation=e=>{Ae.HAS_CSP_ERROR="1"};Zt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ue(n.name,[{name:n.name}],{...e})};function fj(){kT.forEach(e=>{e()}),kT=DT}function hj(e){if(Z()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=F0.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:Ru,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Iu,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Mu,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Fg,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Mu?sj():i.id===Fg?uj():i.id===Iu?lj():i.id===Ru?cj():LT(i.id)},i.key)}}function PT(e){Ta(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(t)}async function RT(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await at(Fe(),t)}async function bj(e){let t=await RT(e);mr(t)}function fc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function yj({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await hn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function vj(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await hn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof V?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof V?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function Cj(){ot()!=="Original"&&ga()}var Wo={};async function Q3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Sr(n),n}async function qT(e){let t=0,n=0;Xn("Translating");let r=Dt(),a=Z0(),i=[...document.querySelectorAll(".source-text")];if(Hs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(qs(m,c.id)?.remove(),m.appendChild(Rl(e,c.id,!0)))}),await s(l),await ut(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await hn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=qs(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Wo[g]={ok:!1,sentence:m},VT(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Wo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function zT(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Wo),a=[],i=[];for(let o of r){let s=Wo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Wo[o],c.appendChild(Rl(e,o)),i.push(s.sentence))}}}try{await hn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=qs(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Wo[l]={ok:!1,sentence:u},VT(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Wo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function J3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function VT(e,t,n,r,a){if(!(a instanceof V))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(Fn,{detail:i}))}var Vm={};async function WT(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Sr(n),n}async function GT(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Vm),n=[];for(let r of t){let a=Vm[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Gc}='${r}']`);o&&o.remove(),n.push(a)}}try{ac(),await Lm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function KT(e){Object.values(Vm).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=gu(e,t.targetNodes);to(e,i,r,t.rootNodes||[]),Uo(t.targetNodes)}else n==="dual"&&Uo(t.targetNodes)}),Xn("Original")}async function YT(e){Xn("Translating");let t=fl(),n=Da(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;zi(l,e);let c=l.body;if(!c)continue;La(l.documentElement,e.state.translationMode);let m=Pn(e);m.isModifyImage=!1;let g=[];await ci({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await ut(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=Kd(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:km(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await g3(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),Vm[p.id]=p)}Lm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function Wm(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Hi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,Z3,QT=!1,Gm=null,Sj=` + `,a.append(u);let l=document.createElement("div");l.innerText=n("reportInfo.submitFail"),l.setAttribute("style","color: #333;text-align: center;font-size: 20px;font-weight: 700;margin: 24px 36px;"),a.append(l);let c=document.createElement("div");c.innerText=n("reportInfo.submitFailDes"),c.setAttribute("style","color: #333;text-align: center;font-size: 14px;font-style: normal;font-weight: 400;margin:12px; 16px 0;"),a.append(c);let m=document.createElement("button");m.setAttribute("style","margin-top:36px"),m.className=P+"-btn",m.innerText=n("error.retry"),m.onclick=()=>{r.innerHTML="",a.innerHTML="",i.innerHTML="",Om(s,e,t,r,a,i,o)},i.append(m)}function R3(e){return new Promise((t,n)=>{if(!e)return t("");let r=new FileReader;r.onloadend=async function(){let a=r.result;if(!a)return t("");if(typeof a=="string")return n("blob parse string");let i=await crypto.subtle.digest("SHA-256",a),s=Array.from(new Uint8Array(i)).map(u=>u.toString(16).padStart(2,"0")).join("");t(s)},r.onerror=n,r.readAsArrayBuffer(e)})}async function Nm(e){let t=new TextEncoder().encode(JSON.stringify(e)),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}var Um=[],iS=[];async function F3(e,t,n,r,a="manga",i){let s=e.rule.imageRule.concurrency||4;if(B3()||Um.includes(t))return"";if(Um.length>=s)return new Promise((l,c)=>{iS.push({args:{sourceUrl:t,blob:n,imgHash:r},resolve:l,reject:c})});Um.push(t);try{let u=await qU(e,t,n,r,a);if(typeof u=="string")return u;let{task_id:l,comicHash:c}=u;return await oS(e,l,c,e.rule.imageRule,i)||""}catch(u){throw k.error("err",u),u}finally{Um.shift(),(async()=>{let u=iS.shift();if(u){let{args:l,resolve:c,reject:m}=u;try{let g=await F3(e,l.sourceUrl,l.blob,l.imgHash,a);c(g)}catch(g){m(g)}}})()}}async function UU(e,t,n,r){let a=r?.replace("image/","");a=="undefined"&&(a="jpg");let i=`${ft}v1/img/img-upload-url?fileType=${a}&imgHash=${t}&comicHash=${n}&domain=${sS(location.hostname)}`;return e.rule.imageRule?.forceRefresh&&(i+="&force=1"),await ee({responseType:"json",url:i,headers:{token:e.user?.token||""}}).then(s=>s.data)}function jU(e,t,n,r,a){let i=new Image;return e.endsWith("svg")?i.src=e:i.src=URL.createObjectURL(t),new Promise((o,s)=>{i.onload=function(){let u=document.createElement("canvas"),l=u.getContext("2d");if(!l)return;let c=i.width,m=i.height;r&&a&&(c>m?(i.width>r&&(m=i.height*r/i.width,c=r),i.height>a&&(c*=a/m,m=a)):(i.height>a&&(c*=a/m,m=a),i.width>r&&(m=i.height*r/i.width,c=r))),u.width=c,u.height=m,l.drawImage(i,0,0,c,m),u.toBlob(function(g){o(g)},"image/jpeg",n)},i.onerror=function(u){o(null)}})}async function HU(e,t,n){let r=await jU(e,t,.9)||t,a=r.size>t.size?t:r;return t.type=="text/plain"&&(a=r),J()?fetch(n,{method:"PUT",body:a,headers:new Headers({"Content-Type":a.type})}):ee({url:n,method:"PUT",requestType:"blob",responseType:"raw",headers:{"Content-Type":a.type},body:await Dv(a)})}async function qU(e,t,n,r,a="manga"){let o=(e.rule.imageRule||{mangaTranslator:"openai",commonTranslator:"deepl"})[a+"Translator"],s=zU(e.rule.imageRule,e.targetLanguage,o),u={imgHash:r,size:"M",detector:"auto",translator:s.translator,direction:s.direction,tgt_lang:s.lang,type:a},l=await Nm(u);no({sourceUrl:t,to:e.targetLanguage,comicHash:l});let c=await UU(e,r,l,n.type);if(c.objectKey&&no({sourceUrl:t,to:e.targetLanguage,objectKey:c.objectKey}),c.imgUrl)return c.imgUrl;c.preSignedURL&&await HU(t,n,c.preSignedURL),u.objectKey=c.objectKey,u.comicHash=l;let m;return J()?m=await fetch(I3()+"/trigger",{method:"POST",body:ud(u),headers:{token:e.user?.token||""}}).then(async g=>(await ji(g,"manga"),g.json())):m=await ee({url:I3()+"/trigger",method:"POST",requestType:"formData",responseType:"json",body:u,headers:{token:e.user?.token||""}}),no({sourceUrl:t,to:e.targetLanguage,taskId:m.task_id}),{task_id:m.task_id,comicHash:l}}async function oS(e,t,n,r,a){let i=B3();if(i)return;Rr("Translating",i);let o=await ee({url:I3()+`/${t}/task-state?comicHash=${n}&domain=${sS(location.hostname)}`,responseType:"json",headers:{token:e.user?.token||""},timeout:60*1e3});if(a?.(o.state),o.state.startsWith("error")){k.error("error",o);return}return o.finished&&o.state=="saved"?o.oss_url:(await G5(t,r.queryIntervalTime||100),oS(e,t,n,r,a))}function I3(){return ft+"comics"}function zU(e,t,n){let r=e.latinLang||["en","fr","es","pt","pt-br","it"],a=oa[n];if(!a||n=="auto")return{lang:t,direction:r.includes(t)?"h":"auto",translator:"auto"};let i=a.langMap.get(t);return i=i?.replaceAll(" ",""),{lang:i??t,translator:i?n:"auto",direction:r.includes(t)?"h":"auto"}}function sS(e){return e.replaceAll(".","_")}var Wt,O3,Hm,mc,on=!1;function B3(){return on}var uS=!1;function dS(e){if(Wt=e.rule.imageRule,!e.isPro||!Wt.type)return;on=!1,!uS&&Wt.injectedCss&&(tr(document,`${Wt.injectedCss}`,P+"-image-injected-css"),uS=!0);let t=!1,n=Bn(async function(){Wt?.disableMarkSelector&&(t=!!document.querySelector(Wt.disableMarkSelector));let a=pS(Wt);for(let i of a){if(on)return;i.isMarked&&!Wt?.disableMarkElement||(i.isMarked=!0,await ut(20),await r(i,t))}},100);if(Ue("translate_manga",[{name:"translate_manga"}],e),n(),O3=new MutationObserver(a=>{n()}),O3.observe(document.body,{childList:!0,subtree:!0}),Wt.intersectionRootMargin){let a=Wt?.intersectionRootSelector?document.querySelector(Wt?.intersectionRootSelector):void 0;mc=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&(zo(e,o.target),mc?.unobserve(o.target))})},{root:a,rootMargin:Wt.intersectionRootMargin,threshold:Wt.intersectionThreshold})}Hm=new MutationObserver(a=>{a.forEach(i=>{if(i.target instanceof HTMLImageElement){if(i.attributeName!="src")return;i.target instanceof HTMLImageElement&&i.target.src&&r(i.target,t)}if(i.target instanceof HTMLCanvasElement){if(i.attributeName!="height")return;Number(i.target.getAttribute("height"))>0&&r(i.target,t)}})});async function r(a,i){a&&(!i&&a.hasTranslate||(Wt?.intersectionRootMargin?(mc?.unobserve(a),mc?.observe(a)):await zo(e,a)))}}async function zo(e,t,n,r){let a=e.rule.imageRule.type||"common",i=Ds();if(n&&(on=!1),on||XU(e,t)||t.hasTranslate)return;Wt=e.rule.imageRule;let o=!1;Wt?.disableMarkSelector&&(o=!!document.querySelector(Wt.disableMarkSelector)),t.translationStatus="translating";let s=null,u=VU(e,t);u||(s=fu(e,t,"translating")),n&&Ue("translate_image",[{name:"translate_image",params:{trigger:r||""}}],e);try{let l=!1;if(t instanceof HTMLImageElement?l=await KU(e,t,a,s):t instanceof HTMLCanvasElement&&(l=await WU(e,t,o,a,s)),on&&!n)return;l?(t.translationStatus="success",u||fu(e,t,"success")):(u||fu(e,t,"error"),t.translationStatus="error",!n&&a==="manga"&&Rr("Error",on))}catch(l){if(on&&!n||(t.translationStatus="error",a=="manga"&&(Rr("Error",on),JU(e,l)),u))return;if(l instanceof cc)return fu(e,t,"error",l.type);fu(e,t,"error")}finally{n&&Rr(i,on),s?.remove()}}function mS(){if(!Wt)return;on=!0,O3?.disconnect(),Hm?.disconnect(),mc?.disconnect();let e=pS(Wt);for(let t of e)Wo(t)}function Wo(e){if(e.hasTranslate=!1,e.isMarked=!1,e.translationStatus=void 0,e.classList.contains("imt-img")){e.parentElement?.querySelectorAll("img")?.forEach(r=>{r.classList.contains("imt-img")||r.hasTranslate&&Wo(r)});return}let t=e.parentElement?.querySelector(".imt-img");if(t){if(t.style.display="none",t==e)return;e.style.display="inherit";return}if(e instanceof HTMLImageElement){let n=e.getAttribute("bak_src");if(!n)return;e.setAttribute("src",n),e.setAttribute("srcset",n),e.removeAttribute("bak_src")}}async function WU(e,t,n,r,a){let i=e.rule.imageRule;if(!n&&t.hasTranslate)return;let o=null;if(i.urlFetchType=="canvasArgs"){let u=t.getAttribute("data")||"";if(!u)return;let{url:l,args:c}=JSON.parse(atob(u));o=await GU(l,c,t.cloneNode(!0))}else o=await fS(t);if(on)return;if(!o||o.size<6*1e4){Hm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let s=await R3(o);return await N3(e,t,s)?!0:s?gS({context:e,imgEle:t,blob:o,imgHash:s,type:r,loading:a}):!1}async function gS({context:e,imgEle:t,blob:n,cacheKey:r,imgHash:a,type:i,loading:o}){let s=await YU(n)||n,u=r||a;try{if(on)return;Rr("Translating",on),_3(e,o,"extension_uploading");let l={sourceUrl:u,to:e.targetLanguage,imgHash:a,siteUrl:location.href};no(l);let m=await F3(e,u,s,a,i,g=>{_3(e,o,g)});return m?(l.targetUrl=m,no(l),await hS(Wt,t,m),Rr("Translated",on),!0):!1}catch(l){if(no({sourceUrl:u,to:e.targetLanguage,error:l.message}),on)return;throw l}}async function N3(e,t,n){if(!n)return!1;let r={sourceUrl:n,to:e.targetLanguage},a=Bm(r);return a&&a?.targetUrl?(await hS(Wt,t,a.targetUrl||""),Rr("Translated",on),!0):!1}function VU(e,t){if(t instanceof HTMLImageElement){let r={sourceUrl:t.src,to:e.targetLanguage},a=Bm(r);return a&&a?.targetUrl}return!1}async function KU(e,t,n="manga",r){let a=e.rule.imageRule;if(t.classList.contains("imt-img"))return;let i=t.src||"";if(!ZU(a,i)){Hm?.observe(t,{attributeOldValue:!0,attributes:!0});return}t.hasTranslate=!0;let o=c(i);if(await N3(e,t,o))return!0;let s=null;if(Rr("Translating",on),on)return;if(i.startsWith("blob:")){let m=await fetch(i);await ji(m),s=await m.blob()}else if(a.urlFetchType=="img")s=await $U(i);else{let m=await ee({url:i,responseType:"base64"});s=await ld(m)}if(on)return;if(await EC(s))throw new cc("GIFs not supported","gif_not_supported");let l=await R3(s);if(!o&&(o=l,await N3(e,t,o)))return!0;if(!o)return!1;return gS({context:e,imgEle:t,blob:s,cacheKey:o,imgHash:l,type:n,loading:r});function c(m){if(!m?.startsWith("blob:")&&!a.enableBlobCache)return m}}function pS(e){if(!e?.imageSelectors)return[];let t=[];return e.imageSelectors?.forEach(n=>{t.push(...document.querySelectorAll(n))}),t}function fS(e){return new Promise((t,n)=>{try{if(!e.getContext("2d"))return null;e.toBlob(function(a){t(a)},"image/png")}catch(r){n(r)}})}function GU(e,t,n){return new Promise((r,a)=>{ee({url:e,responseType:"base64"}).then(i=>{let o=document.createElement("img");o.src=i,o.onload=async()=>{let s=n.getContext("2d");t.forEach(l=>{s?.drawImage?.apply(s,[o,...l])});let u=await fS(n);r(u)},o.onerror=()=>{a(new Error("\u65E0\u6CD5\u83B7\u53D6Canvas\u4E0A\u4E0B\u6587"))}}).catch(i=>a(i))})}async function hS(e,t,n){try{return await lS(e,t,n)}catch{let a=await QU(n);return lS(e,t,a)}}async function lS(e,t,n){return new Promise((a,i)=>{if(on)return a("");if(e?.opImageType=="append"||e?.opImageType=="insertFirst"){let o=t.parentElement?.querySelectorAll(".imt-img"),s=o?.[0];o&&o.forEach(u=>u.remove()),t instanceof HTMLImageElement?(s=t.cloneNode(!0),s.classList.add("imt-img"),e.imageStyle&&s.setAttribute("style",e.imageStyle),s.hasTranslate=!0,s.onload=()=>{s&&r(s),t.style.display="none",a("")},s.removeAttribute("srcset")):t instanceof HTMLCanvasElement&&(s=document.createElement("img"),s.onload=()=>{let u=t.cloneNode(!0);u.removeAttribute("data"),u.classList.add("imt-img"),u.style.display="unset",u.hasTranslate=!0,u.getContext("2d")?.drawImage(s,0,0),r(u),t.style.display="none",a("")}),s.setAttribute("src",n),s.onerror=()=>{i("")}}else if(t instanceof HTMLImageElement){let o=t.src||"";t.setAttribute("bak_src",o),t.setAttribute("src",n),t.setAttribute("srcset",n),t.onload=()=>{a("")},t.onerror=()=>{i("")}}});function r(a){e.opImageType=="insertFirst"?t.parentElement?.insertBefore(a,t.parentElement?.firstChild):t.parentElement?.appendChild(a)}}function $U(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="Anonymous",r.onload=function(){let a=document.createElement("canvas"),i=a.getContext("2d");a.width=r.width,a.height=r.height,i.drawImage(r,0,0),a.toBlob(o=>{o?t(o):n(new Error("Blob conversion failed"))},"image/png")},r.onerror=function(){n(new Error("Image loading failed"))},r.src=e})}function YU(e,t=.92){return new Promise((n,r)=>{try{if(e.type==="image/webp"){let a=new Image;a.src=URL.createObjectURL(e),a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let o=i.getContext("2d");if(!o)return r("ctx is null");o.drawImage(a,0,0),i.toBlob(function(s){n(s)},"image/jpeg",t)},a.onerror=function(){r("\u65E0\u6CD5\u52A0\u8F7DWebP\u56FE\u7247\u3002")}}else n(e)}catch(a){r(a)}})}function ZU(e,t){return!t||t.startsWith("/")?!1:e.inValidSrcRegex?!Id(e.inValidSrcRegex,t):!0}var jm=0,dc=0;function JU(e,t){if(jm!=0){dc++;return}if(t.message.indexOf("quota exceeded")>0){cS(e,t);return}dc++,jm=setTimeout(()=>{if(dc<(Wt.errorTimes||3)){jm=0,dc=0;return}cS(e,t),dc=0,jm=0},Wt.errorInterval||3e3)}function cS(e,t){let r=new W("manga",t.message).uiConfig(e);document.dispatchEvent(new CustomEvent(In,{detail:r}))}function U3(e){return e.classList.contains("imt-img")||e.hasTranslate}function XU(e,t){return t.classList.contains("imt-img")||t.classList.contains("imt-img-loading")}async function QU(e){let n=await(await fetch(e)).blob();return URL.createObjectURL(n)}var ej="showImagePricingModal";function qm(e){document.dispatchEvent(new CustomEvent(ej,{detail:JSON.stringify({trigger:e})}))}var Ha=null;async function bS(e,{srcUrl:t}){if(!oi(e))return;if(!await Ts(e)){qm("image_right_menu");return}if(!Ha){k.error("rightMenu image ele not found",t,Ha);return}if(Ha.translationStatus!=="translating"){if(Ha.hasTranslate){Wo(Ha);return}if(t!==Ha.src)try{let r=new URL(t),a=new URL(Ha.src);if(!(r.origin===a.origin&&r.pathname===a.pathname)){k.error("rightMenu image srcUrl not match",r,a);return}}catch(r){k.error("rightMenu image srcUrl not invalid",t,Ha.src,r);return}zo(e,Ha,!0,"image_right_menu")}}function yS(){document.addEventListener("contextmenu",e=>{e.target instanceof HTMLImageElement&&(Ha=e.target)})}var vS=0;function pc(e){let t=Date.now();if(t-vS<2e3||(vS=t,tj()))return;let n=`${P}-modal-root`,r=`${P}-modal`,a=document.getElementById(n),i=`${P}-modal-title`,o=`${P}-modal-body`,s=`${P}-modal-footer`,u;if(a){u=a.shadowRoot.querySelector(`.${r}`);let l=u.querySelector(`.${i}`),c=u.querySelector(`.${s}`),m=u.querySelector(`.${o}`);l.innerHTML="",c.innerHTML="",m.innerHTML="",e(u,l,m,c,gc)}else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-error-modal-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let l=a.attachShadow({mode:"open"}),c=document.createElement("style"),m=Se();c.textContent=m.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,l.appendChild(c),u=document.createElement("div"),u.className=r+" notranslate",u.id=r;let g=document.createElement("div");g.className=P+"-modal-content notranslate",u.appendChild(g);let p=document.createElement("span");p.textContent="\xD7",p.className=P+"-close",g.appendChild(p);let f=document.createElement("div");f.className=i+" notranslate",g.appendChild(f);let b=document.createElement("div");b.className=o+" notranslate",g.appendChild(b);let y=document.createElement("div");y.className=s,g.appendChild(y),l.appendChild(u),p.onclick=function(){u.style.display="none"},l.addEventListener("click",h=>{h.target==u&&(u.style.display="none")}),e(u,f,b,y,gc)}setTimeout(()=>{nj()},100)}function tj(){let e=document.querySelector(`#${P}-modal-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-modal`)?.style.display=="block":!1}function nj(){let e=document.querySelector(`#${P}-modal-root`);if(e&&(e.style.display="block",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-modal`);t&&(t.style.display="block")}}function gc(e,t=!1){let n=document.querySelector(`#${P}-modal-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-modal`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function CS(e,t,n="sameLang",r,a,i,o){let s=Pe.bind(null,e.config.interfaceLanguage),u=t;n=="sameLang"&&(u=s("sameLangNoTranslate")),a.innerText=u,i.innerText=s("neverShowFuture"),n=="sameLang"&&(i.style.display="flex",i.onclick=async()=>{let l=await cn();ln({...l,sameLangCheck:!1}),o(i,!0)})}var xS=0;async function TS(e){let t=Date.now();if(t-xS<2e3||(xS=t,rj()))return;let n=`${P}-toast-root`,r=`${P}-toast`,a=document.getElementById(n),i=`${P}-toast-msg`,o=`${P}-toast-content`,s=`${P}-toast-hidden`,u,l,c=()=>{l&&j3(l,!0)},m,g;if(a)g=a.shadowRoot.querySelector(`.${r}`),u=g.querySelector(`.${i}`),l=g.querySelector(`.${s}`),u.innerHTML="",e(g,u,l,j3);else{a=document.createElement("div"),a.setAttribute("translate","no"),a.className=`no-translate ${P}-toast-shadow-root`,a.id=n,a.style.all="initial",a.style.zIndex="2147483647",document.body.appendChild(a);let b=a.attachShadow({mode:"open"}),y=document.createElement("style"),h=Se();y.textContent=h.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,b.appendChild(y),g=document.createElement("div"),g.className=r+" notranslate",g.id=r;let v=document.createElement("div");v.className=o,g.appendChild(v),u=document.createElement("div"),u.className=i+" notranslate",v.appendChild(u),l=document.createElement("div"),l.className=s+" notranslate",l.style.display="none",v.appendChild(l),b.appendChild(g);let C=document.createElement("span");C.textContent="\xD7",C.className=P+"-toast-close",g.appendChild(C),C.onclick=function(){g.style.display="none"},b.addEventListener("click",T=>{T.target==g&&(g.style.display="none")}),e(g,u,l,j3)}let p=()=>{clearTimeout(m)},f=()=>{clearTimeout(m),m=setTimeout(c,2500)};g.addEventListener("mouseenter",p),g.addEventListener("mouseleave",f),setTimeout(()=>{aj()},100),m=setTimeout(c,2500)}function rj(){let e=document.querySelector(`#${P}-toast-root`);return e&&e.shadowRoot?e.shadowRoot.querySelector(`#${P}-toast`)?.style.display=="flex":!1}function aj(){let e=document.querySelector(`#${P}-toast-root`);if(e&&(e.style.display="flex",e.shadowRoot)){let t=e.shadowRoot.querySelector(`#${P}-toast`);t&&(t.style.display="flex")}}function j3(e,t=!1){let n=document.querySelector(`#${P}-toast-root`);if(!n||n.style.display=="none")return;let r=n.shadowRoot.querySelector(`#${P}-toast`);r&&r!==e&&(!t&&r.contains(e)||(r.style.display="none"))}function H3(e,t,n,r="retry",a,i,o,s,u){let l=Pe.bind(null,e.config.interfaceLanguage),c=t||l("errorModalTitle"),m=l("unknownError");i.innerText=c,o.innerHTML=lt.sanitize(n||m,{ADD_ATTR:["target"]}),s.innerText="";let g="",p=document.createElement("button");if(r=="retry"){g=l("retryAllButton"),p.setAttribute(`data-${P}-action`,"retry");let f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("viewBox","0 0 16 16"),f.setAttribute("width","20"),f.setAttribute("height","20"),f.innerHTML='',p.appendChild(f),p.onclick=()=>{a.style.display="none",SS({method:"retryFailedParagraphs"}),u(p,!0)}}else if(r=="login")g=l("goLogin"),p.onclick=()=>{u(p,!0),window.open(R2)};else if(r=="upgrade")g=l("upgradeToPro"),p.onclick=()=>{u(p,!0),window.open(t0)};else if(r=="loginOrUpgrade")g=l("upgradeToProWithProfile"),p.onclick=()=>{u(p,!0),window.open(N2)};else if(r=="setting")g=l("goSettings"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)};else if(r=="changeService"||r=="changeProService"){let f=e.rule.detectionServiceOrder;r=="changeProService"&&f&&(f=["deepl","openai",...f]),g=l("detectServiceLoading"),p.onclick=()=>{u(p,!0),window.open(Ae.OPTIONS_URL)},q3(e,e.config.translationService,!1,f).then(b=>{b?(g=l("toggleToService",{service:l("translationServices."+b)}),p.innerHTML=lt.sanitize(g),p.onclick=()=>{wS(b),u(p,!0)}):(g=l("goSettings"),p.innerHTML=lt.sanitize(g))})}else if(r=="autoEnableSubtitle")g=l("subtitle.enableDualSubtitleActionLabel"),p.onclick=async()=>{let f=await Yt();f.generalRule||(f.generalRule={}),f.generalRule["subtitleRule.add"]||(f.generalRule["subtitleRule.add"]={}),f.generalRule["subtitleRule.add"].autoEnableSubtitle=!0,await ln(f),SS({method:"autoEnableSubtitleChanged",data:{trigger:"quick_button"}}),u(p,!0)};else if(r=="refreshPage")g=l("refreshPage"),p.onclick=()=>{window.location.reload()};else if(r=="none")return;p.className=P+"-btn",p.innerHTML+=lt.sanitize(g),s.appendChild(p)}function SS(e){Sa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(t)}var ES=!1,Jt={SetupDomListenersForOnce:()=>{},handleSecurityPolicyViolation:()=>{},showErrorByEvent:()=>{},showToastByEvent:()=>{},showModal:()=>{},handleEbookLoaded:()=>{},handleThirdPartyTell:()=>{},eventUpload:()=>{},handleClick:()=>{},handlePopupInit:()=>{},handleGlobalMessage:()=>{}},kS=[()=>{$t.unbind()}],AS=[...kS],ij=yr(async()=>{await wa()},50),oj=yr(async()=>{await id()},50),sj=yr(async()=>{await gv()},50),uj=yr(async()=>{await mv()},50),DS=yr(e=>{bn({method:e,data:{trigger:"userscript_menu"}})},50),z3=!1,lj=Bn(()=>{let e=globalThis.getSelection()?.toString().trim();!z3&&e&&e.length>0?xl({text:e}):xl({})},50),cj=()=>{z3=!0,setTimeout(()=>{z3=!1},100)};Jt.SetupDomListenersForOnce=(e,t)=>{let n=e.document;if(ES)return;ES=!0,J()||rv(),n.addEventListener("securitypolicyviolation",Jt.handleSecurityPolicyViolation),document.addEventListener(ie+"DocumentMessageUser",IS),document.addEventListener(ie+"DocumentMessageUpdateUser",FS),document.addEventListener(ie+"ChangeSuccessService",BS.bind(null,t)),document.addEventListener(ie+"ChangeService",OS.bind(null,t)),document.addEventListener(In,Jt.showErrorByEvent.bind(null,t)),document.addEventListener(Hc,Jt.showToastByEvent.bind(null,t)),document.addEventListener(co,Jt.showModal.bind(null,t)),n.addEventListener(ie+"EbookLoaded",Jt.handleEbookLoaded),n.addEventListener(u2,Jt.handleThirdPartyTell.bind(null,t)),n.addEventListener(l2,Jt.eventUpload.bind(null,t)),n.addEventListener(zc,a=>{xt()||G3(a,t)}),n.addEventListener(d2,US),n.addEventListener("click",a=>{Jt.handleClick(a,t)}),document.addEventListener("selectionchange",lj),document.addEventListener("contextmenu",cj),yS(),xt()&&e.addEventListener("message",Jt.handleGlobalMessage,!1),J()&&(xt()||n.addEventListener(jr,Jt.handlePopupInit)),xt()||$i.rootIframe(Jc).handleAsk("throttleRequest",c8)};function LS(e,t){gj(),Jt.SetupDomListenersForOnce(t,e),J()&&(xt()||(v3(e.config),pj(e.config))),Cr()&&jS(e,t),je()&&v3(e.config)}Jt.handlePopupInit=e=>{$T()};Jt.handleGlobalMessage=e=>{let t=e;t&&t.data&&t.data.payload&&t.data.author===jc&&Sa(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})};Jt.handleClick=(e,t)=>{let n=e.target;if(!n||!n.getAttribute){gc(n);return}let r=n.getAttribute(`data-${P}-event`);r&&Ue(r,[{name:r}],{...t,sourceLanguage:"none"});let a=n.getAttribute(`data-${P}-action`);if(a){if(e.preventDefault(),a==="retry"){typeof e.stopPropagation=="function"&&e.stopPropagation(),MS({method:"retryFailedParagraphs"}),gc(n,!0);return}else if(a=="toast-error"){let i=n.getAttribute(`data-${P}-tooltip-text`)||"",o="",s="retry";try{let u=JSON.parse(i);o=u.title,i=u.errMsg,s=u.action}catch{}pc(H3.bind(null,t,o,i,s));return}}};async function dj(){let e=await Yt(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,r=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(r=e.translationUrlPattern.matches||[]),!n&&r.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await ln(e)}async function mj(){let e=await Yt(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await ln(e)}Jt.showToastByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{msg:a,type:i}=r;TS(CS.bind(null,e,a,i))}catch(r){k.warn("parse message error",r)}};Jt.showErrorByEvent=(e,t)=>{let n=t;if(n?.detail)try{let r=n.detail;if(!r||!r.type)return;let{title:a,errMsg:i,action:o}=r;pc(H3.bind(null,e,a,i,o))}catch(r){k.warn("parse message error",r)}};Jt.showModal=(e,t)=>{let n=t;if(!n?.detail)return;let r=n.detail.type;r=="mangaReport"?pc(Om.bind(null,"manga",e)):r=="webReport"&&pc(Om.bind(null,"web",e))};Jt.handleThirdPartyTell=async(e,t)=>{let n=t;k.debug("receive third party message",n);let r=V3()||e;if(n&&n.detail){let a=null;try{let i=JSON.parse(n.detail);if(i&&i.type){if(i.type==="retryFailedParagraphs")MS({method:"retryFailedParagraphs"});else if(i.type==="updateCommands")pv(i.data);else if(i.type==="toggleEnableDefaultAlwaysTranslatedUrls")dj();else if(i.type==="toggleEnableInputTranslation")mj();else if(i.type==="syncAppSetting")PS(i.data);else if(i.type==="translatePage")fj(i.data);else if(i.type==="getAsyncTranslationServiceList")a=ws(r,"translationService");else if(i.type==="getAsyncTargetLanguageList")a=Qi(i.data?.translationService,i.data?.targetLanguage);else if(i.type==="getAsyncTranslationMeta"){let o=r.state.translationService||r.config.translationService;a={targetLanguage:r.state.targetLanguage||r.targetLanguage,translationService:o,translationMode:r.state.translationMode}}else if(i.type=="getAsyncTranslateContent"){let o={...r,translationService:i.data.service};try{a=await hj(i.data,o)}catch(s){fc(i.type,s.uiConfig(o),i.id)}}else if(i.type=="getAsyncTranslateMultipleResults"){let o={...r,translationService:i.data.service};try{a=await bj(o,i.data)}catch(s){fc(i.type,{status:"error",error:s.uiConfig(o)},i.id)}}else i.type==="getAsyncLanguageByText"?a=await rd(i.data):i.type==="getAsyncDownloadSubtitle"?a=await ZT():i.type==="sharePage"?G3({detail:i.data},r):i.type==="switchTranslationMode"?W3(i.data):i.type=="getAsyncAiAssistants"?a=await Kl():i.type=="addAiAssistantAsync"?a=await Fo("add",i.data):i.type=="removeAiAssistantAsync"?a=await Fo("remove",i.data):i.type=="getMiniConfigAsync"||i.type=="getConfig"?a=await K3(r):i.type=="setMiniConfigAsync"||i.type=="setConfig"?a=await NS(r,i.data):i.type=="getDeviceInfoAsync"?r.rule.allowInnerInvoke&&(a=await Rd("auto",r.targetLanguage)):i.type=="setABGroupAsync"?r.rule.allowInnerInvoke&&(a=await i5(i.data)):i.type==="getIsSupportIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await yv()):i.type==="getIsOnToolbarAsync"?r.rule.allowInnerInvoke&&(a=await vv()):i.type==="setCampaignAsync"?r.rule.allowInnerInvoke&&(a=await o5(i.data)):i.type==="openPopup"?Fm({...i.data,open:!0}):i.type==="closePopup"?Fm({...i.data,open:!1}):i.type==="togglePopup"?Fm({...i.data}):i.type==="getPageStatusAsync"?a=ot():i.type==="restorePage"?yj():i.type==="getPageLanguageAsync"?a=Dt():i.type==="showFloatBallGuide"?RT():i.type=="getAsyncDetectAndSetLanguage"?a=await RS(i.data):i.type=="setFloatBallActive"?NT(i.data):DS(i.type);a!=null&&i.id&&fc(i.type,a,i.id)}}catch(i){k.warn("parse message error",i)}}};Jt.handleEbookLoaded=e=>{setTimeout(()=>{_S()},10)};Jt.handleSecurityPolicyViolation=e=>{Ae.HAS_CSP_ERROR="1"};Jt.eventUpload=(e,t)=>{let n=t.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ue(n.name,[{name:n.name}],{...e})};function gj(){AS.forEach(e=>{e()}),AS=kS}function pj(e){if(J()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=I0.commands,a=[...Object.keys(t).filter(i=>i==="toggleTranslatePage").map(i=>{let o=t[i].description,s=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(s=Pe(e.interfaceLanguage,`browser.${o.slice(6,-2)}`)),{id:i,title:s}}),{id:_u,title:Pe(e.interfaceLanguage,"browser.openEbookViewer"),key:"e"},{id:Ru,title:Pe(e.interfaceLanguage,"browser.openEbookBuilder"),key:"m"},{id:Mu,title:Pe(e.interfaceLanguage,"browser.openOptionsPage"),key:"o"},{id:Rg,title:Pe(e.interfaceLanguage,"browser.openAboutPage"),key:"a"}];for(let i of a)GM.registerMenuCommand(i.title,()=>{i.id===Mu?ij():i.id===Rg?oj():i.id===Ru?sj():i.id===_u?uj():DS(i.id)},i.key)}}function MS(e){Sa(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{k.error("send content message request failed",e,n)});let t=new CustomEvent(jr,{detail:e});globalThis.document.dispatchEvent(t)}async function PS(e){let t={};return e?.translationMode&&(t.translationMode=e.translationMode),e?.translationService&&(t.translationService=e.translationService),e?.targetLanguage&&(t.targetLanguage=e.targetLanguage),e?.translationStartMode&&(t.translationStartMode=e.translationStartMode),await at(Ie(),t)}async function fj(e){let t=await PS(e);gr(t)}function fc(e,t,n){globalThis.document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({id:n,type:e,payload:t})}))}async function hj({textList:e,from:t,to:n,service:r},a){if(a.rule.id!=="immersive")return;let i=e.map(s=>({text:s||"",id:0,from:t,to:n,url:a.url,fromByClient:t,force:!0})),o=null;try{let s=await hn({sentences:i},{...a,isRichTranslate:!1,translationService:r},u=>o=u);if(o)throw o;return s}catch(s){throw s}}async function bj(e,t){let{textList:n,from:r,to:a,service:i,sourceProgram:o}=t;if(!e.rule.allowInnerInvoke)return;let s=n.map((u,l)=>({text:u||"",id:l,from:r,to:a,url:e.url,fromByClient:r,force:!0}));try{let u=[],l={...e,isRichTranslate:!1,translationService:i};return o&&(l.sourceProgram=o),await hn({sentences:s},l,(c,m,g)=>{let p=null;c&&(p={name:c?.name,message:c?.message,status:c instanceof W?c.status:"error"}),u[g.id]={error:p,errorUIConfig:c instanceof W?c?.uiConfig(e):null,sentence:m,sentenceRequest:g}}),{status:"success",data:u.map(c=>c)}}catch(u){throw u}}function yj(){ot()!=="Original"&&ga()}var Vo={};async function $3(){let t=[...document.querySelectorAll(".source-text")].map(r=>r.textContent).join(""),n=await ze({text:t,minLength:200,pageLangs:[Ht(),"en"]});return Tr(n),n}async function HS(e){let t=0,n=0;Xn("Translating");let r=Dt(),a=J0(),i=[...document.querySelectorAll(".source-text")];if(Hs(e,r))return;let o=i.filter(u=>u.innerText?.trim()).map((u,l)=>({text:u.innerText||"",id:l,from:r,to:e.targetLanguage,url:"https://google.com",fromByClient:a,force:!0,node:u}));document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:o.length}})}));try{let u=o;for(;u.length;){let l=u.slice(0,100);u=u.slice(100),l.forEach(c=>{let m=c.node.parentElement?.parentElement?.querySelector(".target-text");zt(c.node,"id",c.id+""),m&&(qs(m,c.id)?.remove(),m.appendChild(_l(e,c.id,!0)))}),await s(l),await ut(0)}}catch(u){throw u}finally{t=0,n=0,Xn("Translated")}async function s(u){await hn({sentences:u},{...e,sourceProgram:"subtitle"},(l,c,m)=>{n+=1;let g=m.id,p=qs(document.body,g);if(!p)return;let f=p.parentElement;f&&(p.remove(),l?(t+=1,f.innerHTML=lt.sanitize(`${l.message}`),Vo[g]={ok:!1,sentence:m},zS(u,e,t,n,l)):c&&(f.innerHTML=lt.sanitize(c.text),Vo[g]={ok:!0,sentence:m}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!l}})})))})}}async function qS(e){let t=0,n=0;Xn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let r=Object.keys(Vo),a=[],i=[];for(let o of r){let s=Vo[o];if(!s.ok){let l=document.querySelector(`#error-id-${o}`);if(l){let c=l.parentElement;l.remove(),c&&(delete Vo[o],c.appendChild(_l(e,o)),i.push(s.sentence))}}}try{await hn({sentences:i},e,(o,s,u)=>{n+=1;let l=u.id,c=qs(document.body,l);if(!c)return;let m=c.parentElement;m&&(c.remove(),o?(t+=1,m.innerHTML=lt.sanitize(`${o.message}`),Vo[l]={ok:!1,sentence:u},zS(i,e,t,n,o)):s&&(m.innerHTML=lt.sanitize(s.text),Vo[l]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{t=0,n=0,Xn("Translated")}}function Y3(){Xn("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}function zS(e,t,n,r,a){if(!(a instanceof W))return;let i=a.uiConfig(t);i.action=="retry"&&(i.action="none"),(n===t.rule.toastErrorMinTimes||r===e.length)&&document.dispatchEvent(new CustomEvent(In,{detail:i}))}var zm={};async function WS(){let e=[...document.querySelectorAll("iframe")],t="";for(let r of e){let a=r.contentDocument;if(!a)continue;let i=a.body;if(i&&(t=t+i.innerText||"",t.length>1e3))break}let n=await ze({text:t,pageLangs:["en"]});return Tr(n),n}async function VS(e){Xn("Translating"),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(zm),n=[];for(let r of t){let a=zm[r];if(a.error){let o=a.commonAncestorContainer.querySelector(`[${Kc}='${r}']`);o&&o.remove(),n.push(a)}}try{ac(),await Lm(n,e,e.state.translationMode||e.config.translationMode)}catch{}finally{Xn("Translated")}}function KS(e){Object.values(zm).forEach(t=>{let n=t.state,r=t.commonAncestorContainer,{targetNodes:a}=t;if(a)if(n==="translation"){let i=gu(e,t.targetNodes);to(e,i,r,t.rootNodes||[]),Uo(t.targetNodes)}else n==="dual"&&Uo(t.targetNodes)}),Xn("Original")}async function GS(e){Xn("Translating");let t=fl(),n=Da(e.config.translationServices[e.translationService]),r=[...document.querySelectorAll("iframe")],a=0,i=1;for(let u of r){let l=u.contentDocument;if(!l)continue;zi(l,e);let c=l.body;if(!c)continue;La(l.documentElement,e.state.translationMode);let m=Pn(e);m.isModifyImage=!1;let g=[];await ci({id:t,container:c,filterRule:m,onParagraph:f=>{g.push(f)}});let p=await s(g);a+=p,o(Math.max(a,1e4)),await ut(0)}o(a),Xn("Translated");function o(u){document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:u}})}))}async function s(u){let l=[],c=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant);try{for(let m of u){let g=Gd(m.commonAncestorContainer,m.flatNodes,{isPreWhitespace:m.isPreWhitespace||!1,delimiters:n,stayOriginalSelectors:km(e),ignoreRichSelectors:e.rule.ignoreRichSelectors,smallCodeLength:e.rule.smallCodeLength,domPurifyAddTags:e.rule.domPurifyAddTags,richMoreWordPercent:e.rule.richMoreWordPercent||0},e.config.translationServices?.[e.translationService],c);if(!g)continue;m.id=(i++).toString();let p=await m3(e,m,g,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:n,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});p&&(l.push(p),zm[p.id]=p)}Lm(l,{...e,isRichTranslate:c},e.state.translationMode||e.config.translationMode)}catch{}return l.length}}function Wm(){let e=[...document.querySelectorAll("iframe")].map(t=>{if(!(!Hi(t)||!t.contentWindow))return t.contentWindow}).filter(t=>!!t);return[window,...e]}var zn=!1,Z3,$S=!1,Vm=null,vj=` .${P}-input { position: absolute; top: 0; @@ -6081,20 +6081,20 @@ ${t("floatBall.longPress")}`:""]}),d("div",{class:`${qo}-primary-btn ${qo}-guide box-shadow: 130px 0 var(--loading-color); } } -`;function ZT(e){Wm().forEach(t=>{xj(e,t)})}function xj(e,t){let{config:n}=e;if(e.isInputTranslationExcludeUrl){k.debug("exclude url for input");return}if(Gm===!1){k.debug("disable for this time");return}let r={...n.inputLanguageCodeAlias};or.forEach(g=>r[g]=[g,...r[g]||[]]);let a=n.inputStartingTriggerKeyAlias[n.inputStartingTriggerKey]||[];a.includes(n.inputStartingTriggerKey)||a.unshift(n.inputStartingTriggerKey),r[n.inputTargetLanguage]=[...a,...r[n.inputTargetLanguage]];let i=n.inputTrailingTriggerKeyTimeout;qe().any&&(i=n.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:n.inputTrailingTriggerKeyRepeatTimes,triggerKey:n.inputTrailingTriggerKey,triggerTimeout:i,codePrefix:n.inputStartingTriggerKey,codeAlias:r,flatAlias:Object.values(r).flat(),codePrefixAlias:n.inputStartingTriggerKeyAlias},s=0,u=Date.now();m();function l(g){if(zn||Gm===!1)return;let p=Qm(t.document,e.rule.enableInputDeepActive),f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(kj(g,o.triggerKey,o.codePrefixAlias)?c({...g,target:p}):s=0)}async function c(g){Date.now()-u=o.triggerTimes&&JT(t,o,g.target)&&(s=0,e1(g,e,t,o))}function m(){Z3=l,t.removeEventListener("keyup",Z3),t.addEventListener("keyup",Z3,!0)}Dj(e)}function XT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let r=[],a=n[e]||[];a.includes(e)||a.unshift(e);for(let i of a){let o=t.map(s=>{let u=i+s;return a.includes(s)||(u+=" "),u});r.push(...o)}return new RegExp(r.join("|"))}function Km(e,t){for(let[n,r]of Object.entries(t))if(r.includes(e))return n;return""}var hu;function X3(e){let t=e.parentElement;if(!t)return;hu=document.createElement("div"),hu.className=P+"-input";let n=`
`;hu.innerHTML=Or?.createHTML(n)||n,t.appendChild(hu);let r=e.getRootNode();if(r instanceof ShadowRoot){let o=document.createElement("style");o.textContent=Sj,r.appendChild(o)}let a=t,i=!1;do{let o=getComputedStyle(a).position;if(["fixed","absolute","relative"].includes(o)){i=!0;break}a=a.parentElement}while(a);if(a=t,!i)do{if(getComputedStyle(a).position==="static"){a.style.position="relative";break}a=a?.parentElement||null}while(a)}function $3(){hu&&hu.remove()}async function Tj(e,t=window){if(zn)return;let r=globalThis.getSelection()?.toString();if(r){r1(e,t,r,"shortcutKey");return}try{let h=function(){p=e.config.inputTargetLanguage;let C=g.split(" ")[0];C&&C[0]&&(C=C[0].toLowerCase()+C.slice(1)),C.trim()&&u.flatAlias.includes(C)?(p=Km(C,u.codeAlias),m=g.slice(C.length+1)):m=g},v=function(){p="";let C=XT(u),x=g.split(C);if(x.length<2)return;if(m=x[x.length-1],c=x[0],x.length>2){let T=g.lastIndexOf(m),w=g.slice(0,T).lastIndexOf(x[x.length-2]);c=g.slice(0,w+x[x.length-2].length)}if(c.endsWith(u.codePrefix))return;if(c.endsWith(":")&&u.codePrefix=="/"){c="",m="";return}let S=g.slice(c.length+1,g.indexOf(m)).trim();if(p=Km(S,u.codeAlias),!p){k.warn("not found alias",S);return}},{config:a}=e,i={...a.inputLanguageCodeAlias};or.forEach(C=>i[C]=[C,...i[C]||[]]);let o=a.inputStartingTriggerKeyAlias[a.inputStartingTriggerKey]||[];o.includes(a.inputStartingTriggerKey)||o.unshift(a.inputStartingTriggerKey),i[a.inputTargetLanguage]=[...o,...i[a.inputTargetLanguage]];let s=a.inputTrailingTriggerKeyTimeout;qe().any&&(s=a.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:a.inputTrailingTriggerKeyRepeatTimes,triggerKey:a.inputTrailingTriggerKey,triggerTimeout:s,codePrefix:a.inputStartingTriggerKey,codeAlias:i,flatAlias:Object.values(i).flat(),codePrefixAlias:a.inputStartingTriggerKeyAlias},l=t.document.activeElement;if(!l||l.tagName==="BODY")return;zn=!0;let c="",m="",g=fa(l)||"",p=e.config.inputTargetLanguage;e.config.inputStartingTriggerKey==="none"?h():(v(),!p&&e.config.enableInputTranslationWithoutTriggerKey&&h());let f=$T(m,u),b=await ze({text:f,pageLangs:["en"]});k.debug("translateContent",f,b);let y={text:f||"",id:0,from:b,to:p,url:"https://google.com",fromByClient:b,force:!0};if(!y.text||y.text.length>5e3)return;X3(l),Je(Bu,Date.now());try{e.specialAiAssistant=aa(e,e.inputTranslationService,!0);let C=await dr(y,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});n1(e),iw(e,t,l,c+C.text)}catch(C){if(C instanceof V){let x=C.uiConfig(e);a1(x.action)&&(x.action="none"),t.document.dispatchEvent(new CustomEvent(Fn,{detail:x}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,$3()}}async function e1(e,t,n,r){if(!zn)try{let g=function(){u=t.config.inputTargetLanguage;let f=s.split(" ")[0];f&&f[0]&&(f=f[0].toLowerCase()+f.slice(1)),f.trim()&&r.flatAlias.includes(f)?(u=Km(f,r.codeAlias),o=s.slice(f.length+1)):o=s},p=function(){u="";let f=XT(r),b=s.split(f);if(b.length<2)return;if(o=b[b.length-1],i=b[0],b.length>2){let h=s.lastIndexOf(o),v=s.slice(0,h).lastIndexOf(b[b.length-2]);i=s.slice(0,v+b[b.length-2].length)}if(i.endsWith(r.codePrefix))return;if(i.endsWith(":")&&r.codePrefix=="/"){i="",o="";return}let y=s.slice(i.length+1,s.indexOf(o)).trim();if(u=Km(y,r.codeAlias),!u){k.warn("not found alias",y);return}},a=Qm(n.document,t.rule.enableInputDeepActive);if(!a)return;zn=!0;let i="",o="",s=fa(a)||"",u=t.config.inputTargetLanguage;r.codePrefix==="none"?g():(p(),!u&&t.config.enableInputTranslationWithoutTriggerKey&&g());let l=$T(o,r),c=await ze({text:l,pageLangs:["en"]});k.debug("translateContent",l,c);let m={text:l||"",id:0,from:c,to:u,url:"https://google.com",fromByClient:c,force:!0};if(!m.text)return;if(t.config.isShowInputTranslationConsent&&!QT){QT=!0;let f=await Lj(t);if(e.target&&e.target.focus(),f==="disable_once"||f==="disable_forever"){if(Gm=!1,f==="disable_forever"){let b=await Qt();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await ln(b)}else if(f==="disable_once"){let b=await Qt();b.isShowInputTranslationConsent=!1,await ln(b)}return}else if(f==="close_disable_once"||f==="close_disable_forever"){if(Gm=!1,f==="close_disable_forever"){let b=await Qt();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await ln(b)}return}else if(f==="enable"){let b=await Qt();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await ln(b)}else if(f==="close_enable"){let b=await Qt();b.enableInputTranslation=!0,await ln(b)}}X3(a),Je(Bu,Date.now());try{t.specialAiAssistant=aa(t,t.inputTranslationService,!0);let f=await dr(m,{...t,isRichTranslate:!1,translationService:t.inputTranslationService});n1(t),iw(t,n,a,i+f.text)}catch(f){if(f instanceof V){let b=f.uiConfig(t);a1(b.action)&&(b.action="none"),n.document.dispatchEvent(new CustomEvent(Fn,{detail:b}))}}finally{zn=!1}}catch(a){throw zn=!1,a}finally{zn=!1,$3()}}function JT(e,t,n){if(!n)return!1;if(t1(n)){let r=n.selectionStart||0,a=n.value.length,i=n.value.split(` -`).reverse()[0],o=i.trim(),s=a<=r;k.debug("cursorPosition",r,"textLength",a),k.debug("input isTail",s,"tailHasText",o);let u=s&&!!o;return t.triggerKey=="space"&&u?/\S\s{3,}$/.test(i):u}else{let r=e.getSelection();if(!r)return k.debug("No active selection found."),!1;if(r.rangeCount>0){let a=r.getRangeAt(0),i=a.startContainer;if(i.nodeType===Node.TEXT_NODE){let o=wj(i,n);k.debug("Current text node:",i.textContent),k.debug("Cursor position within text node:",a.startOffset);let s=i.textContent?.length===a.startOffset&&o,u=n.innerText?.split(` -`).reverse(),l=je()?u[0]||u[1]:u[0];k.debug("editdiv isTail",s,"tailHasText",l);let c=s&&!!l;return t.triggerKey=="space"&&c?/\S\s{3,}$/.test(l):c}else k.debug("Cursor is not within a text node.")}}return!1}function wj(e,t){let n;function r(a){if(a.nodeType===Node.TEXT_NODE)n=a;else for(let i of a.childNodes)r(i)}return r(t),n==e}function $T(e,t){let{triggerTimes:n,triggerKey:r}=t,a=0,i=" ";r.length==1?(a=n,i=r):r.toLowerCase()=="space"&&(a=n);let o=e.length;for(let s=e.length-1;s>=e.length-a;s--){if([10,8629].includes(e[s].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[r]||[],i].includes(e[s]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function ew(e,t){let n=t.innerHTML,r=fa(t);return{html:n.replace(r,e),text:e}}function Ym(e,t,n=!1){let r=fa(t)?.trim()?.replace(/\n/g,""),a=e?.text?.trim()?.replace(/\n/g,"");return n?r?.endsWith(a):r?.indexOf(a)>=0}function fa(e){return e.value||e.innerText||e.textContent}async function pa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ej(e,t,n){await pa(10);let r=new DataTransfer;e.forEach(a=>{a==="plain"&&r.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:r,bubbles:!0,cancelable:!0})),r.clearData(),await pa(10)}async function tw(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await pa(10))}async function nw(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await pa(20),(t.value||t.value==="")&&(t.value=e.text)}async function rw(e,t){t1(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await pa(20))}var aw=[Ej.bind(null,["plain"])];function t1(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Aj(e,t){if(t1(t))return;t.focus();let n=e.getSelection();if(!n)return;let r=e.document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r)}async function iw(e,t,n,r){await pa(50),await Aj(t,n),await pa(50);let a=e.rule.inputConfig,i=ew(r,n);try{await pa(50),a?.execCommandDeleteEnable&&!Zn()&&fa(n)?.trim()!=""&&(t.document.execCommand("delete"),await pa(50)),k.debug("clearContent",fa(n))}catch(o){k.error(o)}for(let o of[...aw,nw,rw,tw]){await o(i,n);let s=ow(t);if(!s)return;if(k.debug("setContent",o.name,Ym(i,s),fa(s),i),Ym(i,s))break}}function ow(e){return e.document.activeElement}function n1(e,t=""){Ue("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage,trigger:t}}],e)}function kj(e,t,n){let r="";e&&e.code&&(r=e.code.toLowerCase());let a="";e&&e.key&&(a=e.key.toLowerCase());let i=n[t]||[];return!!(i.includes(r)||i.includes(a)||r===t||a===t)}async function Dj(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Bt(t,"")||Number(await Bt(Bu,0))>0)return;let a=e.rule.inputConfig,i=a.tutorialsSelectors,o=a.tutorialsText;if((i?.length||0)>0&&o)for(let s=0;s{Mj()},100),new Promise(m=>{let g=m;if(o){let R=o.shadowRoot;if(!R)return;s=R.querySelector(`.${n}`);let B=s.querySelector(`.${r}`),L=s.querySelector(`.${i}`),U=s.querySelector(`.${a}`)}else{let R=document.createElement("div");R.setAttribute("translate","no"),R.className=`no-translate ${P}-error-modal-input-shadow-root`,R.id=t,R.style.all="initial",R.style.zIndex="2147483647",document.body.appendChild(R);let B=R.attachShadow({mode:"open"}),L=document.createElement("style"),U=Te();L.textContent=U.IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS,B.appendChild(L),s=document.createElement("div"),s.className=n+" notranslate",s.id=n;let F=document.createElement("div");F.className=P+"-modal-content notranslate "+P+"-modal-content-in-input",s.appendChild(F);let q=document.createElement("span");q.textContent="\xD7",q.className=P+"-close",F.appendChild(q),u=document.createElement("div"),u.className=r+" notranslate",F.appendChild(u),c=document.createElement("div"),c.className=a+" notranslate",F.appendChild(c),l=document.createElement("div"),l.className=i,F.appendChild(l),B.appendChild(s),q.onclick=function(){A(),m("close")},B.addEventListener("click",Y=>{Y.target==s&&(s.style.display="none",m("close"))})}document.addEventListener("keydown",I);let p=Pe.bind(null,e.config.interfaceLanguage),f=`
${gm} ${p("modalEnableInputTranslationTitle")}
`;u.innerHTML=Or?.createHTML(f)||f,c.innerHTML=Or?.createHTML("")||"";let b=document.createElement("p"),y=p("modalEnableInputTranslationDesc",{1:Q+"docs/input/"});b.innerHTML=Or?.createHTML(y)||y,b.style.cssText="margin-bottom:12px",c.appendChild(b);let h=document.createElement("div");h.style.cssText="margin-bottom: 12px;";let v=lt.sanitize(p("disableInputTranslationTips",{option:`${p("options")}`,learnMore:`${p("learnMore")}`}));h.innerHTML=Or?.createHTML(v)||v,c.appendChild(h);let C=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let R=0;R0){let r=t.getRangeAt(0).startContainer;if(r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r instanceof HTMLElement)return r}return e}async function r1(e,t,n,r){if(zn)return;try{let o=Qm(t.document,e.rule.enableInputDeepActive),s=globalThis.getSelection();if(!o||!n||!s)return;zn=!0;let u=e.config.inputTargetLanguage,l=await ze({text:n,pageLangs:["en"]});k.debug("translateSelection",n,l);let c={text:n||"",id:0,from:l,to:u,url:"https://google.com",fromByClient:l,force:!0};if(!c.text)return;X3(o),Je(Bu,Date.now());try{if(e.specialAiAssistant=aa(e,e.inputTranslationService,!0),n1(e,r),o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement){let m=await dr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});i(t,o,m.text)}else{let m=await dr(c,{...e,isRichTranslate:!1,translationService:e.inputTranslationService});a(e,t,o,m.text)}}catch(m){if(m instanceof V){let g=m.uiConfig(e);a1(g.action)&&(g.action="none"),document.dispatchEvent(new CustomEvent(Fn,{detail:g}))}}finally{zn=!1}}catch(o){throw zn=!1,o}finally{zn=!1,$3()}async function a(o,s,u,l){let c=o.rule.inputConfig,m=ew(l,u);try{await pa(50),c?.execCommandDeleteEnable&&!Zn()&&fa(u)?.trim()!=""&&(s.document.execCommand("delete"),await pa(50)),k.debug("clearContent",fa(u))}catch(g){k.error(g)}for(let g of[...aw,nw,rw,tw]){await g(m,u);let p=ow(s);if(!p)return;if(k.debug("setContent",g.name,Ym(m,p),fa(p),m),Ym(m,p))break}}function i(o,s,u){let l=s.selectionStart,c=s.selectionEnd;if(l===null||c===null||l===c)return;s.focus();let m=new InputEvent("beforeinput",{inputType:"deleteContentBackward",data:null,bubbles:!0,cancelable:!0});if(s.dispatchEvent(m),!m.defaultPrevented){o.document.execCommand("delete",!1);let g=new InputEvent("beforeinput",{inputType:"insertText",data:u,bubbles:!0,cancelable:!0});if(s.dispatchEvent(g),!g.defaultPrevented){o.document.execCommand("insertText",!1,u);let p=new Event("input",{bubbles:!0,cancelable:!0});s.dispatchEvent(p)}}}}function a1(e){return e==="retry"||e==="changeService"}function Jm({parent:e,ctx:t,Component:n,props:r={},style:a="",id:i,initialCSS:o=!0,isInsertMount:s}){let u=i;e.querySelector(`#${u}`)&&document.querySelector(`#${u}`)?.remove();let l=document.createElement("div");l.id=u,o&&l.setAttribute("style","all: initial");let c=l.attachShadow({mode:"open"});a&&tr(c,a),e.appendChild(l);let m=c;if(s){let g=document.createElement("div");g.id="mount",g.style.display="block",c.appendChild(g),m=g}va(d(Qi,{lang:t.config.interfaceLanguage,children:d(n,{...r})}),m)}function bu(e){return yu(e).subtitles}function yu(e){let t=[],n=e.split(/\r?\n/),r={},a=-1;return n.forEach((i,o)=>{let s=i.match(/(?(\d{2}:)*\d{2}([.,]\d{3})?) --> (?(\d{2}:)*\d{2}([.,]\d{3})?)(?${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${D1.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},qH=e=>/]*>[\s\S]*]*>/.test(e),Ww=An({name:Vw,build:HH,detect:qH,helper:D1,parse:jH});var zH="srt",Cc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},VH=(e,t)=>{let n=[],r=t.eol||`\r -`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Cc.toMilliseconds(s[2]),u.end=Cc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},WH=(e,t)=>{let n="",r=t.eol||`\r -`;for(let a=0;a ${Cc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},GH=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),Gw=An({name:zH,build:WH,detect:GH,helper:Cc,parse:VH});var KH="sub",L1=25,YH=(e,t)=>{t.fps||=L1;let n=t.fps>0?t.fps:L1,r=[],a=t.eol||`\r -`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:L1,r="",a=t.eol||`\r -`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},JH=e=>/^\{\d+\}\{\d+\}.*/.test(e),Kw=An({name:KH,build:QH,detect:JH,parse:YH});var ZH="vtt",Sc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},XH=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=Sc.toMilliseconds(s[2]),l.end=Sc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},$H=(e,t)=>{let n=t.eol||`\r -`,r=`WEBVTT${n}${n}`;for(let a=0;a ${Sc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},eq=e=>/^\s*WEBVTT\r?\n/.test(e),Yw=An({name:ZH,build:$H,detect:eq,helper:Sc,parse:XH});var tq={vtt:Yw,lrc:qw,smi:Ww,ssa:Uw,ass:jw,sub:Kw,srt:Gw,sbv:zw,json:Hw},Qw=tq;var nq=e=>JSON.parse(JSON.stringify(e)),M1=class{format=Qw;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),tg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];mu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ie+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&tr(document,`${t.join(` -`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await at(Fe(),{});if(this.initConfig(n),await ut(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(cw(r),dw(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!gt(Fe(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle||this.tempEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:this.i18nFormat(`translationServices.${this.ctx.subtitleTranslateService}`)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` +`;function CH(){return d("span",{class:"logo",dangerouslySetInnerHTML:{__html:gm}})}function xH(){return d("svg",{class:"select",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1447",width:"16",height:"16",children:d("path",{d:"M431.56 832.334c-20.505 0-40.192-8.093-54.833-22.734L232.181 665.055l-73.49-70.821c-19.088-18.396-19.651-48.782-1.255-67.871s48.782-19.649 67.871-1.256l74.444 71.752 129.435 129.436 363.619-514.333c15.303-21.647 45.258-26.79 66.903-11.485 21.646 15.304 26.789 45.257 11.485 66.903L494.981 799.523c-13.239 18.726-33.936 30.582-56.786 32.529a78.116 78.116 0 0 1-6.635 0.282z","p-id":"1448",fill:"#ffffff"})})}function TH(){return d("svg",{class:"go-back",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4330",width:"16",height:"16",children:d("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"#ffffff","p-id":"4331"})})}function SH(){return d("svg",{class:"right",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11630",width:"16",height:"16",children:d("path",{d:"M765.7 486.8L314.9 134.7c-5.3-4.1-12.9-0.4-12.9 6.3v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1c16.4-12.8 16.4-37.6 0-50.4z","p-id":"11631",fill:"#ffffff"})})}var T1=class{name;helper;build;detect;parse;constructor({name:t,build:n,detect:r,helper:a,parse:i}){this.name=t,this.helper=a,this.build=n,this.detect=o=>{if(typeof o!="string")throw new Error("Expected string content!");return r(o)},this.parse=(o,s)=>{if(typeof o!="string")throw new Error("Expected string content!");return i(o,s)}}},An=e=>new T1(e);var wH="ssa",Ko={toMilliseconds:e=>{let t=/^\s*(\d+:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i*10},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3/10);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<10?"0":""}${a}`}},S1=(e,t)=>{let n,r=null,a=[],i=t.eol||`\r +`,o=e.split(/\r?\n\s*\n/);for(let s=0;sx.split(S,w).join(S).length)(y,",",r.length-1)+1;v.content=y.substring(T),v.data.Text=v.content,v.text=v.content.replace(/\\N/g,i).replace(/\{[^}]+\}/g,""),a.push(v)}}}}}t.verbose}return a},w1=(e,t)=>{let n=t.eol||`\r +`,r=t.format==="ass",a=e.find(l=>l.type=="meta"),i=typeof a?.data=="object"?a.data:null,o=e.find(l=>l.type=="style"),s=typeof o?.data=="object"?o.data:null,u="";u+=`[Script Info]${n}`,u+=`ScriptType: ${i?.ScriptType||`v4.00${r?"+":""}${n}`} `,i?.WrapStyle&&(u+=`WrapStyle: ${i?.WrapStyle}${n}`),i?.ScaledBorderAndShadow&&(u+=`ScaledBorderAndShadow: ${i?.ScaledBorderAndShadow}${n}`),u+=`Collisions: Normal${n}`,u+=n,r?(u+=`[V4+ Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding${n}`,u+=`Style: ${s?.Name||"DefaultVCD"}, ${s?.Fontname||"Arial"},${s?.Fontsize||"28"},${s?.PrimaryColour||"&H00B4FCFC"},${s?.SecondaryColour||"&H00B4FCFC"},${s?.OutlineColour||"&H00000008"},${s?.BackColour||"&H80000008"},${s?.Bold||"-1"},${s?.Italic||"0"},${s?.Underline||"0"},${s?.StrikeOut||"0"},${s?.ScaleX||"100"},${s?.ScaleY||"100"},${s?.Spacing||"0.00"},${s?.Angle||"0.00"},${s?.BorderStyle||"1"},${s?.Outline||"1.00"},${s?.Shadow||"2.00"},${s?.Alignment||"2"},${s?.MarginL||"30"},${s?.MarginR||"30"},${s?.MarginV||"30"},${s?.Encoding||"0"}${n}`):(u+=`[V4 Styles]${n}`,u+=`Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding${n}`,u+=`Style: DefaultVCD, Arial,28,11861244,11861244,11861244,-2147483640,-1,0,1,1,2,2,30,30,30,0,0${n}`),u+=n,u+=`[Events]${n}`,u+=`Format: ${r?"Layer":"Marked"}, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text${n}`;for(let l=0;l/^\s*\[Script Info\]\r?\n/.test(e)&&/\s*\[Events\]\r?\n/.test(e)?e.indexOf("[V4+ Styles]")>0?"ass":"ssa":!1,Nw=An({name:wH,build:w1,detect:E1,helper:Ko,parse:S1});var EH="ass",Uw=An({name:EH,build:w1,detect:E1,helper:Ko,parse:S1});var AH="json",kH=(e,t)=>JSON.parse(e),DH=(e,t)=>JSON.stringify(e,void 0,2),LH=e=>{try{let t=JSON.parse(e);return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"}catch{return!1}},jw=An({name:AH,build:DH,detect:LH,parse:kH});var MH="lrc",A1={toMilliseconds:e=>{let t=/^\s*(\d+):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=t[3]?parseInt(t[3]):0;return n*60*1e3+r*1e3+a*10},toTimeString:e=>{let t=Math.floor(e/1e3/60),n=Math.floor(e/1e3%60),r=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}.${r<100?"0":""}${r<10?"0":Math.floor(r/10)}`}},PH=(e,t)=>{let n=null,r=[],a=e.split(/\r?\n/);for(let i=0;i{let n="",r=!1,a=t.eol||`\r +`;for(let i=0;i/\r?\n\[\d+:\d{1,2}(?:[.,]\d{1,3})?\].*\r?\n/.test(e),Hw=An({name:MH,build:_H,detect:RH,helper:A1,parse:PH});var IH="sbv",vc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},FH=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/);for(let i=0;i>[^:]+:\s*/g,""),n.push(u);continue}t.verbose}return n},BH=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a/\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*[,;]\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),qw=An({name:IH,build:BH,detect:OH,helper:vc,parse:FH});var zw="smi",k1={htmlEncode:e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r?\n/g,"
"),htmlDecode:(e,t)=>e.replace(//gi,t||`\r +`).replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},NH=(e,t)=>{if(t.format&&t.format!==zw)throw new Error(`Invalid format: ${t.format}`);let n=[],r=t.eol||`\r +`,a=/]*>([\s\S]*)<\/TITLE>/i.exec(e);if(a){let l={};l.type="meta",l.name="title",l.data=a[1].replace(/^\s*/g,"").replace(/\s*$/g,""),n.push(l)}let i=/]*>([\s\S]*)<\/STYLE>/i.exec(e);if(i){let l={};l.type="meta",l.name="style",l.data=i[1],n.push(l)}let o=e.replace(/^[\s\S]*]*>/gi,"").replace(/<\/BODY[^>]*>[\s\S]*$/gi,""),s=null,u=o.split(/]+Start\s*=\s*["']?(\d+)[^\d>]*>([\s\S]*)/i.exec(c);if(m){let g={};g.type="caption",g.start=parseInt(m[1]),g.end=g.start+2e3,g.duration=g.end-g.start,g.content=m[2].replace(/^<\/SYNC[^>]*>/gi,"");let p=!0,f=/^([\s\S]*)/i.exec(g.content)||/^]*)>([\s\S]*)/i.exec(g.content);if(f){let b=f[2].replace(/\s+/gi,r).replace(//gi,r).replace(/<[^>]+>/g,""),b=b.replace(/^\s+/g,"").replace(/\s+$/g,""),p=b.replace(/ /gi," ").replace(/\s+/g,"").length===0,g.text=k1.htmlDecode(b,r)}!t.preserveSpaces&&p?t.verbose:n.push(g),s&&(s.end=g.start,s.duration=s.end-s.start),s=g;continue}t.verbose}return n},UH=(e,t)=>{let n=t.eol||`\r +`,r="";r+=`${n}`,r+=`${n}`,r+=`${t.title||""}${n}`,r+=`${n}`,r+=`${n}`,r+=`${n}`;for(let a=0;a${n}`,r+=`

${k1.htmlEncode(i.text||"")}${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`),r+=`${n}`,r+=`

 ${t.closeTags?"

":""}${n}`,t.closeTags&&(r+=`
${n}`);continue}t.verbose}}return r+=`${n}`,r+=`${n}`,r},jH=e=>/]*>[\s\S]*]*>/.test(e),Ww=An({name:zw,build:UH,detect:jH,helper:k1,parse:NH});var HH="srt",Cc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=parseInt(t[1]),r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r},${a<100?"0":""}${a<10?"0":""}${a}`}},qH=(e,t)=>{let n=[],r=t.eol||`\r +`,a=e.split(/\r?\n\s*\n/g);for(let i=0;i\s*(\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\r?\n([\s\S]*)$/.exec(a[i]);if(s){let u={};u.type="caption",u.index=parseInt(s[1]),u.start=Cc.toMilliseconds(s[2]),u.end=Cc.toMilliseconds(s[3]),u.duration=u.end-u.start;let l=s[4].split(/\r?\n/);u.content=l.join(r),u.text=u.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,"").replace(/>>[^:]*:\s*/g,""),n.push(u);continue}t.verbose}return n},zH=(e,t)=>{let n="",r=t.eol||`\r +`;for(let a=0;a ${Cc.toTimeString(i.end)}${r}`,n+=i.text+r,n+=r;continue}t.verbose}return n},WH=e=>/\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?\s*-->\s*\d{1,2}:\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?/.test(e),Vw=An({name:HH,build:zH,detect:WH,helper:Cc,parse:qH});var VH="sub",D1=25,KH=(e,t)=>{t.fps||=D1;let n=t.fps>0?t.fps:D1,r=[],a=t.eol||`\r +`,i=e.split(/\r?\n/g);for(let o=0;o{let n=(t.fps||0)>0?t.fps:D1,r="",a=t.eol||`\r +`;for(let i=0;i=0?o.frame.start:o.start*n,u=typeof o.frame=="object"&&o.frame.end>=0?o.frame.end:o.end*n,l=o.text.replace(/\r?\n/,"|");r+=`{${s}}{${u}}${l}${a}`;continue}t.verbose}return r},$H=e=>/^\{\d+\}\{\d+\}.*/.test(e),Kw=An({name:VH,build:GH,detect:$H,parse:KH});var YH="vtt",xc={toMilliseconds:e=>{let t=/^\s*(\d{1,2}:)?(\d{1,2}):(\d{1,2})(?:[.,](\d{1,3}))?\s*$/.exec(e);if(!t)throw new Error(`Invalid time format: ${e}`);let n=t[1]?parseInt(t[1].replace(":","")):0,r=parseInt(t[2]),a=parseInt(t[3]),i=t[4]?parseInt(t[4]):0;return n*3600*1e3+r*60*1e3+a*1e3+i},toTimeString:e=>{let t=Math.floor(e/1e3/3600),n=Math.floor(e/1e3/60%60),r=Math.floor(e/1e3%60),a=Math.floor(e%1e3);return`${(t<10?"0":"")+t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}.${a<100?"0":""}${a<10?"0":""}${a}`}},ZH=(e,t)=>{let n=1,r=[],a=e.split(/\r?\n\s*\n/);for(let i=0;i\s*((?:\d{1,2}:)?\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?).*\r?\n([\s\S]*)$/.exec(a[i]);if(s){let l={};l.type="caption",l.index=n++,s[1]&&(l.cue=s[1].replace(/[\r\n]*/g,"")),l.start=xc.toMilliseconds(s[2]),l.end=xc.toMilliseconds(s[3]),l.duration=l.end-l.start;let c=s[4].split(/\r?\n/);l.content=c.join(" "),l.text=l.content.replace(/<[^>]+>/g,"").replace(/\{[^}]+\}/g,""),r.push(l);continue}let u=/^([A-Z]+)(\r?\n([\s\S]*))?$/.exec(a[i])||/^([A-Z]+)\s+([^\r\n]*)$/.exec(a[i]);if(u){let l={};l.type="meta",l.name=u[1],u[3]&&(l.data=u[3]),r.push(l);continue}t.verbose}return r},JH=(e,t)=>{let n=t.eol||`\r +`,r=`WEBVTT${n}${n}`;for(let a=0;a ${xc.toTimeString(i.end)}${n}`,r+=i.text+n,r+=n;continue}t.verbose}return r},XH=e=>/^\s*WEBVTT\r?\n/.test(e),Gw=An({name:YH,build:JH,detect:XH,helper:xc,parse:ZH});var QH={vtt:Gw,lrc:Hw,smi:Ww,ssa:Nw,ass:Uw,sub:Kw,srt:Vw,sbv:qw,json:jw},$w=QH;var eq=e=>JSON.parse(JSON.stringify(e)),L1=class{format=$w;list=()=>Object.keys(this.format);detect=t=>{let n=this.list();for(let r=0;r"u"||typeof i.detect!="function")continue;let o=i.detect(t);if(o===!0||o===a)return a}return""};parse=(t,n={})=>{let r=n.format||this.detect(t);if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.parse;if(typeof i!="function")throw new Error(`Subtitle format does not support 'parse' op: ${r}`);return i(t,n)};build=(t,n={})=>{let r=n.format||"srt";if(!r||r.trim().length===0)throw new Error("Cannot determine subtitle format!");let a=this.format[r];if(typeof a>"u")throw new Error(`Unsupported subtitle format: ${r}`);let i=a.build;if(typeof i!="function")throw new Error(`Subtitle format does not support 'build' op: ${r}`);return i(t,n)};convert=(t,n={})=>{let r={};typeof n=="string"?r.to=n:r=n;let a={format:r.from||void 0,verbose:r.verbose,eol:r.eol},i=this.parse(t,a);r.resync&&(i=this.resync(i,r.resync));let o={format:r.to||r.format,verbose:r.verbose,eol:r.eol};return this.build(i,o)};resync=(t,n={})=>{let r,a,i=!1,o;if(typeof n=="function")r=n;else if(typeof n=="number")o=n,r=u=>[u[0]+o,u[1]+o];else if(typeof n=="object")o=(n.offset||0)*(n.frame?n.fps||25:1),a=n.ratio||1,i=n.frame||!1,r=u=>[Math.round(u[0]*a+o),Math.round(u[1]*a+o)];else throw new Error("Argument 'options' not defined!");let s=[];for(let u=0;u{let a=this[t];if(!a)return;let i=a.apply(this,[r]);i instanceof Promise&&(i=await i),eg.sendMessages({id:n,data:i})})}injectCSS(){let t=this.config.injectedCss||[];mu(this.ctx)&&this.isEnableSubtitle()&&(zt(document.documentElement,ie+"_rtl",this.ctx.targetLanguage),this.config.rtlInjectedCss?.length?t.push(...this.config.rtlInjectedCss):this.config.loadingContainerSelector&&t.push(`[data-${P}_rtl] ${this.config.loadingContainerSelector} * {direction: rtl;}`)),t.length&&tr(document,`${t.join(` +`)}`,P+"-subtitle-dynamic-injected-css")}initConfig(t){this.ctx=t,this.config=t.rule.subtitleRule}async requestSubtitle(t){let n=await at(Ie(),{});if(this.initConfig(n),await ut(200),!!this.isEnableSubtitle()){if(t.url){let r=t.url+this.ctx.targetLanguage+this.getTranslationMode(),a=this.getMemoryCache(r);if(a)return a;let i=await this.loadSubtitle(t.url);return i&&this.setMemoryCache(r,i),i}else if(t.fetchInfo)try{let{input:r,options:a}=JSON.parse(t.fetchInfo),o=(r.url||"")+this.ctx.targetLanguage,s=this.getMemoryCache(o);if(s)return s;let u=await this.loadSubtitleWithFetch(lw(r),cw(a));return u&&this.setMemoryCache(o,u),u}catch(r){return k.error(r),null}}}loadSubtitle(t){return Promise.resolve(null)}loadSubtitleWithFetch(t,n){return Promise.resolve(null)}async onPageStatusChange(){}async autoEnableSubtitleChanged(){globalThis.location.reload()}async onTranslationModeChanged(){}mutationVideoChange(){}isEnableSubtitle(){return this.config.disabled||this.config.translationOnlyPattern&&!gt(Ie(),this.config.translationOnlyPattern)?!1:this.config.autoEnableSubtitle||this.tempEnableSubtitle}setMemoryCache(t,n){if(this.memoryCacheMap.set(t,n),this.memoryCacheMap.size>this.cacheSize){let r=[...this.memoryCacheMap.keys()][0];r&&this.memoryCacheMap.has(r)&&this.memoryCacheMap.delete(r)}}getMemoryCache(t){return this.config.disableSubsCache?null:this.memoryCacheMap.get(t)}i18nFormat(t,n){return Pe(this.ctx.config.interfaceLanguage,t,n)}getLoadingText(t){let n=this.i18nFormat("subtitleLoading");return t&&(n=this.i18nFormat("subtitleTranslating",{service:this.i18nFormat(`translationServices.${this.ctx.subtitleTranslateService}`)})),n}showSubtitleLoading(t){if(!this.config.loadingContainerSelector)return;let n=this.getLoadingText(t),r=document.querySelector(this.config.loadingContainerSelector);if(!r)return;let a=Math.min(20,r.offsetWidth/40),i=document.getElementById(this.loadingNodeId);i&&this.hideSubtitleLoading(),i=document.createElement("div"),i.setAttribute("id",this.loadingNodeId);let o=` {{text}} `;i.setAttribute("style","position: absolute; bottom: 5%; left: 0; right: 0; display: flex; justify-content: center; z-index: 1024;"+this.config.loadingStyle||""),i.innerHTML=lt.sanitize(o.replace("{{text}}",n)),r?.appendChild(i)}hideSubtitleLoading(){if(!this.config.loadingContainerSelector)return;let t=document.querySelector(this.config.loadingContainerSelector),n=document.getElementById(this.loadingNodeId);!t||!n||t.removeChild(n)}async _translateSubtitle(t,n,r=` -`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=$m(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),uc(this.ctx,n,r)}getTranslationMode(t){return gi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector)||!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n,r){if(!this.config.attachRule?.appendSelector)return;$e(this.ctx,n);let a=t.filter(i=>i.text);pi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:a,ctx:this.ctx,lang:n},r),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(bc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=_n(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&Jm({id:P+"quick-button",parent:n,ctx:this.ctx,Component:Ow,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle},style:Nw+this.config.quickButtonRule?.injectCSS||""})}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Ko.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return rd(t.slice(0,50).map(n=>n.text).join(" "))}};function Zw(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var ig=class extends yt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){let t=super.isEnableSubtitle();return this.config.translationOnlyPattern&&!gt(Fe(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=ct(re(r),this.ctx.targetLanguage);if(a||gi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Fw(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=Iw(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ft}subtitles/yt-asr-subs`;try{let a=await Um(t),o=(await ee({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!ct(re(o),r)&&!gi(re(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!ct(re(m.languageCode),r)&&!gi(re(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>re(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=re(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=Zw(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>re(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>re(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return re(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!ct(re(a[u]),this.ctx.targetLanguage)&&!gi(re(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:lw(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await at(Fe(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&bc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await at(Fe(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let i=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(i?.width&&i.width<500)return!1}let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=Zm(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return ct(re(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Fe()&&(this.lastReportUrl=Fe(),$e(this.ctx,re(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),Xm(a.arrayBuffer,a.document))}catch{}}};var og=class extends yt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang,!0)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(ct(re(i),this.ctx.targetLanguage))return null;$e(this.ctx,re(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:re(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,re(i),!0);return}this.downloadSubtitle(o,re(i),[]);let u=await this.requestHumanSubtitle(o,re(i),r);if(u)return this.handleIOSFullScreen(u,re(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,re(i));return l?(this.handleIOSFullScreen(l,re(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[re(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=vu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!Z()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));hc(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Fe()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ao=class extends yt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(ct(re(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),re(i.language)),i.isTranslated=!0;return}$e(this.ctx,re(i.language)),this.translateSubtitle([...i.cues||[]],re(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>rq(i.text));return(await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].text=i.displayText}),t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}};function rq(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var qa=class extends ao{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&$e(this.ctx,re(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(ct(re(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,re(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Tu=class extends qa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=yu(r),i=await ze({text:a.subtitles.map(l=>l.text).join(` -`),pageLangs:[Ht(),"en"]});if(ct(re(i),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}this.showSubtitleLoading(!0),$e(this.ctx,re(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ro(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}};var sg=class extends yt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(ct(re(a),this.ctx.targetLanguage))return null;$e(this.ctx,re(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,re(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:d1(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ha(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${d1(c.text)} -${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var ug=class extends ao{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(ct(re(i),this.ctx.targetLanguage))return null;$e(this.ctx,re(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,re(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,re(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=bu(t),s=bu(i),u=vu(o,s);return{text:ro(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=bu(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ha(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} -${u}`)}),ro(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[re(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Fe()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var lg=class extends yt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=Xw(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=Xw(o,r.itemsPath):s=iq(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>xc(l,r.textKey)).join(` -`),pageLangs:[Ht(),"en"]});if(ct(re(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:xc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),$e(this.ctx,re(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>xc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=aq(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function Xw(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Vs(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,$e(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Gt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Gt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return wr(t,["."+Gt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Gt);if(!a){let o=document.createElement("font");o.classList.add(Gt),o.classList.add("notranslate");let s=c4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Dt(),"en"]});return Hs(t,r)?void 0:(await dr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=ot(),n=await at(Fe(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await at(Fe(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var cg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=oq(r),o=await ze({text:i.map(u=>u.textContent).join(` -`),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=$w(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=await this.translateSubtitle(a,i,re(o));if(this.config.enableHookDownload)try{let u=$w(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),re(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ha(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Tc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}},Tc="http://www.w3.org/ns/ttml";function oq(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Tc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Tc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Tc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function $w(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Tc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:e7(i),end:e7(o),text:s})}),r}function e7(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var dg=class extends yt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=yu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(ct(o,this.ctx.targetLanguage))return null;if($e(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,re(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=vu(n.subtitles,bu(u));return n.subtitles=l,ro(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ha(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} -${s}`)}),ro(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>re(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=lq(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` -`);return ze({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Fe()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=uq(r),i=sq(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function sq(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function uq(e){let t=[];for(let n of e.split(` -`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function lq(e){let t=[];for(let n of e.split(` -`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var mg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=Zm(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await ze({text:o.join(` -`),pageLangs:[Ht(),"en"]});return ct(re(s),this.ctx.targetLanguage)?null:($e(this.ctx,re(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),Xm(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var gg=class extends yt{async requestSubtitle(t){let n=await at(Fe(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Tu(this.ctx).loadSubtitle(i.url);if(!s)return;let u=i1(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}uw(a),c1(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var pg=class extends yt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(t7).forEach(n=>{t7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),ct(re(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&($e(this.ctx,t),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=mw(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},t7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var fg=class extends qa{constructor(t){super(t),new wu(t)}};var hg=class extends qa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Ko.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` -`),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Ko.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var bg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` -`),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),$e(this.ctx,re(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),re(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` -`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=s1(f,l),h=s1(b,l),v=En(y),C=En(h);u==="duration"&&(C=v+C);let x=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(x||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var yg=class extends yt{hasSubtitle=!1;async mutationVideoChange(){let t=cq(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&($e(this.ctx,"ja","av"),this.hasSubtitle=!0,pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await ee({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Ko.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function cq(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var vg=class extends yt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&($e(this.ctx,n.language_code),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var dq={youtube:ig,netflix:og,webvtt:Tu,khanacademy:sg,udemy:ug,hulu:gg,mubi:vg,text_track:ao,text_track_dynamic:qa,general:lg,live:wu,ebutt:cg,disneyplus:dg,"fmp4.xml":mg,multi_attach_vtt:pg,twitter:fg,subsrt:hg,xml:bg,av:yg},Cg;async function Lw(e){try{Z()&&await ut(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=dq[t.type];if(!n)return;Cg=new n(e)}catch(t){k.error(t)}}async function P1(){Cg?.onPageStatusChange()}async function mq(e,t){if(Cg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&St())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ue("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function gq(){Cg?.onTranslationModeChanged()}r5({autoEnableSubtitleChanged:mq,reloadSubtitleWithTranslationModeChanged:gq});var fe=null;function yc(){return fe||null}function ag(e){let t=Pn(e);zi(document,e),pq(e),Sq(e,t),yq(e),Cq(e),bq(fe,t),Xn("Translated"),vq(fe),WS(xu),fq(fe),P1(),Lq()}function pq(e){let t=e.rule.initialSelectorGlobalAttributes;if(e.state.translationArea==="main"&&t){let n=Pn(e);e.rule.navHeadEnableTranslate&&Object.entries(t).forEach(([r,a])=>{a.sideHead&&delete t[r]}),_S(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}mu(e)&&zt(document.documentElement,ie+"_rtl",e.targetLanguage)}function fq(e){let t=e.ctx;o7(t,!0),GS(e),Gv(window.location.href)}function hq(e){let t=e.ctx;o7(t,!1),KS()}async function bq(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=OS(e.ctx,t);if(k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await di(s,e);await di(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await di(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}async function yq(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Mt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await kt({...t,tempTranslationUrlMatches:[...i]})}}function vq(e){e.ctx.rule.isTranslateTitle&&(s3(e.ctx),e.titleDynamicObserver=jS(e.ctx))}function Cq(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function v1(e,t){fe&&(e.isRichTranslate=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=Pn(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",La(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function Sq(e,t){let n=fl();fe&&(n=fe.id),fe=fe||{},fe.ctx=e,fe.id=n,fe.paragraphQueue=fe.paragraphQueue||[],v1(e,t),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||kq(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Dq(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||wq(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||Eq(fe),fe.injectCssToDocument=Sg,fe.walkContainer=ci,e.specialAiAssistant=aa(e,e.translationService,!0),window.onerror=Tq(fe,e),window.immersiveTranslateSwitchTranslateState=I1.bind(fe)}function i7(e,t){t.getRootNode()instanceof ShadowRoot?Sg(t.getRootNode(),e):Sg(t.ownerDocument,e),xq(e)}function xq(e){fe||(fe={},fe.ctx=e,fe.id=fl(),R1(fe,e))}function R1(e,t){e.paragraphQueue=[],e.injectCssToDocument=Sg,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=I1.bind(e);let n=aa(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=js(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function xu(e=!0){fe&&(Xn("Original"),P1(),hq(fe),ac(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),HS(fe.ctx),Nv(),Uv(),e&&I1.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function Tq(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),xu(),n=setTimeout(()=>{ag(t)},e.urlChangeDelay||2e3)),!0}}function wq(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await d3(e,r.target),n.unobserve(r.target))})}function Eq(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{m3(e,o)}),n.unobserve(a)}})})}var n7;function Aq(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(n7),e.translateState=="original"?!1:(xu(e.urlChangeDelay>20),n7=setTimeout(()=>{let a=e.ctx;ag(a)},e.urlChangeDelay),!0)):!1}function kq(e){let t=e.ctx.rule,n=Pn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&Aq(e)||e.interruptEffectDOM)return;let a=Bd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!wr(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&wr(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Qc)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;r7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&b3(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&r7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!Rt.isSkipMarkEle(i.target)&&!Rt.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||ka(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Vs(n,o.parentElement);l&&(Rt.clearToParentMark(o,l),a7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Gt])?!1:o.contains(l)).length&&a7(e,i.target)}catch(o){k.error(o)}})}function r7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{h3(n),ci({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{jo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function a7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;Rt.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function h3(e){e.paragraphs=[],Rt.clearMark(e),e.querySelectorAll("."+Gt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,Rt.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function b3(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Gt]))).length==0}function Dq(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);i3(i)||(n.unobserve(r.target),Rt.clearMark(a),di(a,e))}})}async function I1(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await ga(),await ut(50),bn({method:"translatePage"});return}this.translateState=e,La(document.documentElement,e),this.inlineIFrames?.forEach(t=>{La(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{rc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Gt}`).forEach(t=>t.remove())}function Sg(e,t){if(e instanceof HTMLIFrameElement){zi(e.contentDocument,t);return}zi(e,t)}async function Mw(e){let t=St(),n="auto";if(Z()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=v4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Ws(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Ws(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=v4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await u5();return n==="auto"&&(n=await VS()),$y(n),n}async function Pw(){if(!fe)return;ac(),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Gc}='${n}']`);i&&i.remove()}}Dm.call(fe,fe.ctx)}async function Y3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ue("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Dt()});let r=fe?.ctx||t,a=await Mt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:qS(r)},await kt(a);let o=Te().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ea(o)}catch(i){k.error(i)}}async function jT(){let e=await Mt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(g2,{detail:JSON.stringify(e.draft)}))}async function Lq(){try{if(await Do("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ea();await ee({url:ft+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Qr("reportActive","1")}catch(e){k.error(e)}}function o7(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(es,{detail:{tempEnableSubtitle:t}}))}var Mq=new AbortController,{signal:Pq}=Mq,Ec=0,Ac=0,Yo=!1,io,s7=0,fi=[];function C1(e){Rq(),Wm().forEach(t=>{xg(e,t)})}function xg(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Oq(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,xg(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,xg(n,t))}t.document.addEventListener(Lu,s),fi.push(()=>{t.document.removeEventListener(Lu,s)});let u=br(g=>{if(!(Math.abs(g.clientX-Ec)+Math.abs(g.clientY-Ac)<=3)&&(Ec=g.clientX,Ac=g.clientY,Yo&&!io&&_1(n,!1,t),o||Yo&&!io)){let p=d7(n.rule,t);if(p){if(B1(p))return;Tg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;B1(p)||(Tg(n,!0,t),_1(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Yt.getPressedKeyCodes();if(f.length>1&&Yt[p]&&(s7=Date.now(),Yo=!1),f.length===1&&Yt[p]){let b=Date.now();Yo=!0,io&&clearTimeout(io),io=setTimeout(()=>{let y=s7-b;y>0&&y<=i?Yo=!1:l(g),io=void 0},i)}};if(fi.push(()=>{io&&clearTimeout(io)}),a)return;wc("mousemove",u,t),fi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():Yo=!1}if(wc("blur",m,t),fi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=R2;wc("keyup",u7,t),fi.push(()=>{t.removeEventListener("keyup",u7)}),p.includes(g)?Yt("*",{scope:"mouseHover",element:t.document},c):Yt(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),Yt.setScope("mouseHover"),fi.push(()=>{Yt.deleteScope("mouseHover")})}}function Rq(){fi.forEach(e=>e()),fi=[],Yt.setScope("all")}function u7(e){Yo=!1}function wc(e,t,n=window){return n.addEventListener(e,t,{signal:Pq})}function Tg(e,t,n,r){if(r=r||d7(e.rule,n),!r){k.debug("can not find selection part!");return}if(Fq(e,r,t))return;if(B1(r)){k.debug("exclude dom");return}i7(e,r);let i=yc();i&&(i.setupMouseHoverListener=xg);let o=Pn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=R1(i,e);ci({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{Bd(n.document.documentElement)!==e.state.translationMode&&La(n.document.documentElement,e.state.translationMode),jo(u,l,!0,"hover").then(m=>{if(m&&!s){s=!0;let g=Date.now();Je(h2,g);let p={translation_service:u?.translationService||""};Ue("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function d7(e,t){return Iq(Ec,Ac,e,t)}function Iq(e,t,n,r){let a=lC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=cC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:c7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{_q(e,a)}),!0}function Bq(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function _q(e,t){let n=yc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{rc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function F1(e){return!!(e.host&&e.mode)}function l7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||F1(n))return e;for(;n&&n.nodeName!=="BODY"&&!F1(n)&&b4(n,t);){let r=n.parentNode;if(r&&F1(r))break;n=r}return n}function c7(e,t){return e.nodeType===Node.TEXT_NODE||b4(e,t)?l7(e,t):e}function m7(e,t,n){Ec=t.clientX,Ac=t.clientY,Tg(e,!0,n),_1(e,!0,n)}async function _1(e,t,n,r){if(!oi(e))return;let a=dC(Ec,Ac,e.rule,n);if(!a||A4(a.src)||a.translationStatus==="translating")return;let i=j3(a);if(i&&!t||i&&!r)return;if(i){Vo(a);return}if(!await xs(e)){zm("image_mouse_hover");return}zo(e,a,!0,"image_mouse_hover")}function Oq(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Tg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};wc("mousedown",i,t),wc("mouseup",o,t),fi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var kc=[];function O1(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),kc.push(()=>{document.removeEventListener("click",i)})}function g7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),kc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function wg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),kc.push(()=>{document.removeEventListener("touchstart",r)})}var oc={touchShortcutsOff:()=>{},"multipleClick.2":O1,"multipleClick.3":O1,"multipleClick.4":O1,"slide.left":g7,"slide.right":g7,"fingers.2":wg,"fingers.3":wg,"fingers.4":wg,"fingers.5":wg};async function HT(e,t=window){try{qq();let n=await cn(),r=Jc.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=N1(e,n,a.command),o=oc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{Hq(a.command,e,t,l)})})}catch(n){k.error(n)}}function N1(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var Nq=()=>{h1();let e=new CustomEvent(jr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},Uq=()=>{y1();let e=new CustomEvent(jr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},jq=()=>{b1();let e=new CustomEvent(jr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},p7=0,Hq=(e,t,n,r)=>{if(!(new Date().getTime()-p7<200)){if(p7=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")Nq();else if(e==="touchShortcutsToggleTranslationMask")jq();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")Uq();else if(e==="touchShortcutsToggleTranslateTouchElement")m7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};e1(r,t,n,s)}}};function qq(){kc.forEach(e=>{e()}),kc=[]}function Dc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(oc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=Ka.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d(sa,{className:"select",maxWidth:250,items:Ka.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:Ra(f)}),y=Ka.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(ye,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(ye,{title:r,description:i||""}),d("div",{class:"nav",children:[d(sa,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Vh,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(Vh,{width:20,height:16})})})})]})]})}function U1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=da(),{t:u}=O(),l=pt(t),c=dn(l);return l?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ma,{image:an("images/hover_intro.png"),nightImage:an("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Kr(o)&&d(Dc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||nt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(zq,{setSettings:n,config:l,localConfig:o}),d(eo,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function zq({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Kr(n)?null:d(Dc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||nt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function j1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=dn(o),u=le(g=>{s&&n(p=>Ui({...p},g))},[s,n]),l=ii(s,t),{t:c}=O(),m=le((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ma,{image:an("images/float_ball_intro.png"),nightImage:an("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(Vq,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(Wq,{t:m,rule:l,updateFloatBallRule:u}),d(Gq,{t:m,rule:l,updateFloatBallRule:u}),d(Kq,{t:m,rule:l,updateFloatBallRule:u})]})})}function Vq({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function Wq({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);z(()=>{Yt("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Jt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(la,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ua,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function Gq({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function Kq({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function H1(){let e=Oe(),[t,n,r,a,i]=e,[o]=da();Xe(t,n);let[s,u]=N(null),{t:l,lang:c}=O();z(()=>{Ze().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Es(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=Jc.filter(b=>{if(b.name==="touch"){let y=Kr(o);return k.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Kr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let S="";v==="finger"?S=N1(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?S=t.generalRule[h]:S=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?S=t.shortcuts[h]:S=g.shortcuts[h];let T=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(T=l(`${h}`));let w,A;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[h],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:h,type:v,shortcut:S,title:T,description:C,service:w,serviceIdList:A,disabled:!(Z(!0)||Xo())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return Z(!0)||(Zn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):Xo()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>fo(Dc,{...h,key:`shortcut-${v}`,onChange:(C,x)=>{n(S=>{if(h.type==="finger"){let w={...S.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...S,generalRule:w}}else if(h.type==="mouseHoverHoldKey"){let w={...S.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...S,generalRule:w}}else if(h.type.startsWith("translateWithCustom")){let T={...S?.shortcuts};if(m.includes(C)){let A=T.translateWithCustomServices||{};return{...S,shortcuts:{...T,translateWithCustomServices:{...A,[h.command]:C}}}}let w={...S,shortcuts:{...T,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}else{let T={...S?.shortcuts},w={...S,shortcuts:{...T,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}}),x||nt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function Yq(){let[e,t]=N(null);return z(()=>{Ze().then(n=>{t(n)})},[]),e}function q1(){let[e,t,n,r,a]=Oe(),i=Yq(),{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return z(()=>{e&&m()},[e]),d(ce,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});bo.saveAs(g,P+"-config-"+Os()+".txt")}}}function z1(){let e=Pr(),{t,lang:n}=O();return d(ce,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Q,target:"_blank",children:[d(pS,{}),d("h1",{children:t("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:r=>{r.preventDefault(),ur(`${Q}docs/CHANGELOG/#${e.replace(/\./ig,"")}`)},children:e}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(Qq,{}),d(Jq,{})]})]}),d("div",{className:"header-navbar-height"})]})}function Qq(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:N2,target:"_blank",children:[d(fS,{}),d("span",{children:e("options.navbar.installApp")})]})}function Jq(){let{t:e}=O();return d(Pt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:V2,target:"_blank",children:[d(hS,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function V1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=Sd(s.supportedMangaSites),c=`
+`){let a=t.map((o,s)=>({text:o.replace(/\n/," ")||"",id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0})),i=[];return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{o?i[u.id]=Xm(this.ctx,o):s?i[u.id]=s.text:i[u.id]=this.i18nFormat("translateFail")}),i.map((o,s)=>{let u="";return this.getTranslationMode(n)==="translation"?u=o:u=`${t[s].replace(/\n/g," ")||""}${r}${o}`,{text:t[s]||"",translation:o,displayText:u}})}updateDownloadSubtitle(t){let{subtitleItems:n,lang:r,translations:a}=t;a.length===n.length&&n.forEach((i,o)=>{i.translation=a[o].translation}),uc(this.ctx,n,r)}getTranslationMode(t){return gi(t,this.ctx.targetLanguage)?"translation":this.config.translationMode&&this.config.translationMode!=="inherit"?this.config.translationMode:this.ctx.state.translationMode}quickButtonObserver=null;mutationQuickButton(){if(this.isDisableQuickButton())return;let t=this.config?.quickButtonRule;t&&(this.quickButtonObserver&&this.quickButtonObserver.disconnect(),this.quickButtonObserver=new MutationObserver(()=>{if(!t.appendSelector)return null;t.ccEnableSelector&&!document.querySelector(t.ccEnableSelector)||!document.querySelector(t.appendSelector)||document.getElementById(this.quickButtonId)||this.reloadQuickButton()}),this.quickButtonObserver.observe(document,{subtree:!0,childList:!0}))}isDisableQuickButton(){return this.config.disabled||!this.config.showQuickButton||!this.config.quickButtonRule?.appendSelector}async isShowQuickButton(){return!0}quickButtonId=P+"-quick-button-container";getAppendQuickButtonElement(){if(!this.config.quickButtonRule||!this.config.quickButtonRule.appendSelector)return null;let t=document.querySelector(this.config.quickButtonRule.appendSelector);if(!t)return;let n=document.createElement("div");if(n.id=this.quickButtonId,this.config.quickButtonRule.insertBeforeSelector){let r=document.querySelector(this.config.quickButtonRule.insertBeforeSelector);r&&t.insertBefore(n,r)}else t.append(n);return n}attachSubtitle(t,n,r){if(!this.config.attachRule?.appendSelector)return;Qe(this.ctx,n);let a=t.filter(i=>i.text);pi(this.ctx,this.config.attachRule.appendSelector,{videoSelector:this.config.videoSelector||"video",subtitleItems:a,ctx:this.ctx,lang:n},r),this.isAttachSubtitled=!0}removeAttachSubtitle(){!this.config.attachRule?.appendSelector||!this.isAttachSubtitled||(bc(this.config.attachRule.appendSelector),this.isAttachSubtitled=!1)}reloadQuickButton=Bn(this._reloadQuickButton,100);async _reloadQuickButton(){if(this.isDisableQuickButton()||(document.getElementById(this.quickButtonId)?.remove(),!await this.isShowQuickButton()))return;let n=this.getAppendQuickButtonElement();n&&Ym({id:P+"quick-button",parent:n,ctx:this.ctx,Component:Bw,props:{ctx:this.ctx,tempEnableSubtitle:this.tempEnableSubtitle},style:Ow+this.config.quickButtonRule?.injectCSS||""})}handleTempEnableSubtitle(t){let{detail:n}=t;this.tempEnableSubtitle=n.tempEnableSubtitle}async _fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}async fetchSubtitleList(t,n){try{let r=await this._fetchSubtitle(t,n);return r?Go.parse(r).filter(s=>s.type==="caption").map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text})):null}catch{return null}}detectSubtitlesLang(t){return rd(t.slice(0,50).map(n=>n.text).join(" "))}};function Zw(e){if(!e)return null;try{let t=e;return e.startsWith("//")?t=globalThis.location.protocol+e:e.startsWith("/")?t=`${globalThis.location.protocol}//${globalThis.location.host}${e}`:e.startsWith("http")||(t=`${globalThis.location.protocol}//${e}`),new URL(t).toString()}catch{return e}}var ag=class extends yt{autoShowObserver=null;videoSrc=null;currentUrl=null;mutationVideoChange(){let t=this.config,n=document;this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let r=n.querySelector(t.videoSelector||"video"),a=r&&r.getAttribute("src"),i=window.location.href;if(a&&a!=this.videoSrc){if(!(t.videoADSelector&&document.querySelector(t.videoADSelector))&&this.isEnableSubtitle()){let s=!this.videoSrc&&!this.isAttachSubtitled;this.inject.triggerSubtitle({force:s})}(!this.currentUrl||!i?.startsWith(this.currentUrl))&&this.removeAttachSubtitle(),this.videoSrc=a,this.currentUrl=i,this.reloadQuickButton(),this.tempEnableSubtitle=!1}a||this.removeAttachSubtitle(),this.removeAttachSubtitleWithUserClose()}),this.autoShowObserver.observe(n,{subtree:!0,childList:!0})}removeAttachSubtitleWithUserClose(){let t=this.config;if(!t.attachRule?.appendSelector||!t.subtitleButtonSelector||!t.videoPlayerSelector||!this.isAttachSubtitled)return;let n=document.querySelector(t.videoPlayerSelector);if(!n)return;let r=n.querySelector(t.subtitleButtonSelector);!r||r?.getAttribute("aria-pressed")==="true"||this.removeAttachSubtitle()}isEnableSubtitle(){let t=super.isEnableSubtitle();return this.config.translationOnlyPattern&&!gt(Ie(),this.config.translationOnlyPattern)?!1:(document.querySelector("#dualMarkStyle")&&(t=!1),this.config.youtubeAutoEnableSubtitle&&(t=!0),t)}async loadSubtitle(t){try{let n=await this.inject.getVideoMeta();if(n?.videoDetails?.isLive)return this.translateLiveSubtitle(t);n&&this.modifyLanguageNode(n);let r=this.getLangCodeFromSubtitleUrl(t),a=ct(re(r),this.ctx.targetLanguage);if(a||gi(r,this.ctx.targetLanguage)){let m=this.getSourceSubtitleUrlWithSameLanguage(t,n);if(m)return this.loadSubtitle(m)}let i=this.ctx.rule.ytAsrConfig,o=this.config.preTranslation&&i?.enable,s=!!i?.aiSupportLanguages?.find(m=>m===r),u=this.config.preTranslation&&i?.aiEnable&&this.ctx.isPro&&s;if(Rw(t)&&(o||u)){let m=await this.requestOriginalEvents(t);u&&this.requestServerMerge(m,r);let g=_w(m,r,this.ctx.rule.ytAsrConfig);if(g){this.attachSubtitle(g,r);return}}let l=await this.requestOriginalSubtitle(t);if(!l||!l?.length)return null;if(a){let m=this.formatToSubtitleItem(l);return this.attachSubtitle(m,r),null}let c=await this.requestHumanSubtitle(l,n);return c?.length||(c=await this.requestYoutubeTranslateSubtitle(t,l,n)),c?.length||(c=this.formatToSubtitleItem(l)),this.attachSubtitle(c,r),null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestServerMerge(t,n){if(!this.ctx.user?.token)return;let r=`${ft}subtitles/yt-asr-subs`;try{let a=await Nm(t),o=(await ee({url:r,method:"POST",body:JSON.stringify({subtitles:t,subtitleHash:a}),headers:{"Content-Type":"application/json",token:this.ctx.user.token}})).data.map(s=>({start:s.start/1e3,end:s.end/1e3,text:s.text}));if(k.debug("yt asr merge subtitles:",o),o){this.attachSubtitle(o,n);return}}catch(a){k.error(a)}}getSourceSubtitleUrlWithSameLanguage(t,n){let r=this.ctx.targetLanguage,a=new URL(t),i=a.searchParams.get("tlang"),o=a.searchParams.get("lang")||"";if(i&&!ct(re(o),r)&&!gi(re(o),r))return a.searchParams.delete("tlang"),a.toString();let s=n?.captions?.playerCaptionsTracklistRenderer?.captionTracks.filter(m=>!ct(re(m.languageCode),r)&&!gi(re(m.languageCode),r));if(!this.config.autoSwitchSubtitleWithSameLanguage||!s)return null;let u=s.find(m=>m.kind);if(!u&&s.length&&(u=s.sort((g,p)=>re(g.languageCode)==="en"?-1:0)[0]),!u)return;let l=re(u.languageCode),c=this.getHumanCaptionTrack(l,n);return c?c.baseUrl:u.baseUrl}requestOriginalSubtitle(t){let n=new URL(t),r=this.getLangCodeFromSubtitleUrl(t);return n.searchParams.delete("fmt"),this.fetchSubtitle(n.toString(),r)}async requestOriginalEvents(t){let n=new URL(t),r=await fetch(n.toString());if(!r.ok)throw new Error("request subtitle error");return(await r.json()).events}async requestHumanSubtitle(t,n){if(!this.config.humanPreferred||!n)return null;let r=this.getHumanCaptionTrack(this.ctx.targetLanguage,n);if(!r)return null;let a=Zw(r.baseUrl);if(!a)return null;let i=await this.fetchSubtitle(a,this.ctx.targetLanguage,!1);return i.length?this.mergeSubtitles(t,i):null}async requestYoutubeTranslateSubtitle(t,n,r){if(this.config.preTranslation)return null;let a=this.getYoutubeTranslateLang(this.ctx.targetLanguage,r),i=new URL(t);i.searchParams.delete("fmt"),i.searchParams.set("tlang",a);let o=await this.fetchSubtitle(i.toString(),this.ctx.targetLanguage),s=o.filter(u=>!!u.text);return Math.abs(n.length-s.length)>n.length*.1?null:this.formatToSubtitleItem(n).map((u,l)=>({...u,translation:o[l]?.text}))}getHumanCaptionTrack(t,n){if(n&&n.captions)return n.captions.playerCaptionsTracklistRenderer.captionTracks.find(a=>re(a.languageCode)===t&&!a.kind)}getYoutubeTranslateLang(t,n){let r=t;if(n&&n.captions){let a=n.captions.playerCaptionsTracklistRenderer?.translationLanguages?.find(i=>re(i.languageCode)===t);a&&(r=a.languageCode)}return r}getLangCodeFromSubtitleUrl(t){let n=new URL(t),r=n.searchParams.get("tlang")||n.searchParams.get("lang")||"";return re(r)}modifyLanguageObserver=null;modifyLanguageNode(t){let n=this.config,r=P+"-bilingual-subtitle-mark";if(!n.languageSelector||!t.captions)return;let a=t.captions.playerCaptionsTracklistRenderer.captionTracks.reduce((o,s)=>(Object.values(s.name).forEach(u=>{o[u]=s.languageCode}),o),{});this.modifyLanguageObserver&&this.modifyLanguageObserver.disconnect(),this.modifyLanguageObserver=new MutationObserver(()=>{if(!this.isEnableSubtitle()){document.querySelectorAll(`[${r}]`).forEach(s=>{s.remove()});return}document.querySelectorAll(n.languageSelector).forEach(s=>{let u=s.innerText.trim();if(a[u]&&!ct(re(a[u]),this.ctx.targetLanguage)&&!gi(re(a[u]),this.ctx.targetLanguage)){let l=document.createElement("span");l.innerText=`-${this.i18nFormat("bilingual")}`,l.setAttribute(r,"true"),s.appendChild(l)}})});let i=n.videoPlayerSelector&&document.body.querySelector(n.videoPlayerSelector)||document;this.modifyLanguageObserver.observe(i,{subtree:!0,childList:!0})}async fetchSubtitle(t,n,r=!0){let a=["zh-Hans","zh-Hant","zh-CN","zh-TW","zh-HK","zh","zh-SG","yue","nan","yue-HK","nan-TW","hak-TW","hak","ja","ko","th","km","lo","my"].includes(n)?"":" ",i=await fetch(t);if(!i.ok)throw new Error("request subtitle error");let o=await i.text(),l=[...new window.DOMParser().parseFromString(o,"text/xml").querySelectorAll("text")].map(c=>({tStartMs:Math.round(1e3*c.getAttribute("start")),dDurationMs:Math.round(1e3*c.getAttribute("dur")),text:uw(c.textContent||"").replace(/\s*\n\s*/g,a)}));return r?l.reduce((c,m,g)=>{if(g==0)return c=c.concat(m),c;let p=c[c.length-1];return m.tStartMs{o.text===o.translation&&(o.translation="")}),i}formatToSubtitleItem(t){return t.map(n=>({start:n.tStartMs/1e3,end:(n.tStartMs+n.dDurationMs)/1e3,text:n.text}))}async autoEnableSubtitleChanged(){let t=await at(Ie(),{});this.initConfig(t),this.reloadQuickButton(),!this.config.disabled&&(!this.isEnableSubtitle()&&this.config.attachRule?.appendSelector&&bc(this.config.attachRule.appendSelector),!(this.isEnableSubtitle()&&this.isAttachSubtitled)&&this.inject.triggerSubtitle({force:!0}))}async onTranslationModeChanged(){let t=await at(Ie(),{});this.initConfig(t),!this.config.disabled&&(!this.config.translationMode||this.config.translationMode!=="inherit"||this.inject.triggerSubtitle({force:!0}))}mutationQuickButton(){}async isShowQuickButton(){if(this.config.videoPlayerSelector){let i=document.querySelector(this.config.videoPlayerSelector)?.getBoundingClientRect();if(i?.width&&i.width<500)return!1}let t=await this.inject.getVideoMeta(),n=!!t?.captions?.playerCaptionsTracklistRenderer.captionTracks.length,r=t?.videoDetails?.isLive&&t.streamingData?.adaptiveFormats?.find(a=>/text\/mp4/.test(a.mimeType||""));return n||!!r}lastReportUrl="";async translateLiveSubtitle(t){try{let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");let r=await n.arrayBuffer(),a=Zm(r);if(!a)return null;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||""),s=await ze({text:o.join(` +`),pageLangs:[Ht(),"en"]});return ct(re(s),this.ctx.targetLanguage)?null:(this.lastReportUrl!==Ie()&&(this.lastReportUrl=Ie(),Qe(this.ctx,re(s),"youtube.live")),(await this._translateSubtitle(o,s)).forEach((c,m)=>{i[m]&&(i[m].innerHTML=c.displayText)}),Jm(a.arrayBuffer,a.document))}catch{}}};var ig=class extends yt{autoShowObserver=null;url=null;cacheSubtitleItems={};mutationVideoChange(){this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{let t=window.location.href;if(t&&t!=this.url&&t.includes("/watch/")){this.url=t;let n=this.getVideoId();n&&this.cacheSubtitleItems[n]&&this.attachSubtitle(this.cacheSubtitleItems[n].subtitleItems,this.cacheSubtitleItems[n].lang,!0)}}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0})}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(ct(re(i),this.ctx.targetLanguage))return null;Qe(this.ctx,re(i));let o=await this.fetchSubtitle(t,!0);if(!o)return null;let s=this.getSubtitlesByDoc(o);if(this.config.attachRule?.appendSelector){let c=this.isMatchVideoMeta(t,r);if(c&&r?.movieId&&(this.cacheSubtitleItems[r.movieId]={subtitleItems:s,lang:re(i)}),c&&n&&r?.movieId!==n)return;this.attachSubtitle(s,re(i),!0);return}this.downloadSubtitle(o,re(i),[]);let u=await this.requestHumanSubtitle(o,re(i),r);if(u)return this.handleIOSFullScreen(u,re(i)),u.documentElement.outerHTML;let l=await this.translateSubtitle(o,s,re(i));return l?(this.handleIOSFullScreen(l,re(i)),l.documentElement.outerHTML):null}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}isMatchVideoMeta(t,n){let r=this.formatCaptionTrackUrl(n);return Object.values(r).some(a=>a.includes(t))}downloadSubtitle(t,n,r){if(this.config.enableHookDownload)try{this.updateDownloadSubtitle({subtitleItems:this.getSubtitlesByDoc(t),translations:r,lang:n})}catch(a){k.error("download subtitle error",a)}}getSubtitlesByDoc(t){let n=[...t.querySelectorAll("p")];return this.formatToSubtitleItems(n)}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);return i?this.getTranslationMode(n)==="translation"?i:this.mergeSubtitles(t,i,n):null}async translateSubtitle(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=n.map(u=>u.text),s=await this._translateSubtitle(o,r,"
");return this.downloadSubtitle(t,r,s),s.forEach((u,l)=>{i[l].innerHTML=u.displayText}),a}formatCaptionTrackUrl(t){let n={};return t?.timedtexttracks.forEach(r=>{let a=Object.values(r.ttDownloadables).reduce((i,o)=>i.concat(o.urls.map(s=>s.url)),[]);n[re(r.language)]=a}),n}getHumanCaptionTrack(t,n){let r=this.formatCaptionTrackUrl(n);return r[t]?r[t][0]:null}getLangCodeFromSubtitleUrl(t,n){let r=this.formatCaptionTrackUrl(n),a=Object.entries(r).find(([i,o])=>o.includes(t));return k.debug("findLang:",a,r,t,n),a?a[0]:""}async fetchSubtitle(t,n){let r=await fetch(t);if(!r.ok)throw new Error("request subtitle error");let a=await r.text(),i=new DOMParser().parseFromString(a,"text/xml");return n?this.preMergeSubtitles(i):i}mergeSubtitles(t,n,r){let a=t.cloneNode(!0),i=[...a.querySelectorAll("p")],o=[...n.querySelectorAll("p")],s=this.formatToSubtitleItems(i),u=this.formatToSubtitleItems(o),l=vu(s,u,"
");return l.forEach((c,m)=>{i.length<=m||(i[m].innerHTML=c.text)}),this.downloadSubtitle(t,r,l),a}iosFullScreenTimer=0;handleIOSFullScreen(t,n,r=0){try{if(!J()||!this.config.videoSelector||!globalThis.GM||Object.keys(globalThis.GM).length!==8)return;r==0&&clearTimeout(this.iosFullScreenTimer);let a=document.querySelector(this.config.videoSelector);if(!a){r<15&&(this.iosFullScreenTimer=setTimeout(()=>{this.handleIOSFullScreen(t,n,r+1)},2e3));return}let i=this.getSubtitlesByDoc(t).map(o=>({startTime:o.start,endTime:o.end,text:o.text}));hc(a,n,i,this.ctx)}catch(a){k.error("handleIOSFullScreen error",a)}}preMergeSubtitles(t){try{let n=t.cloneNode(!0),r=[...n.querySelectorAll("p")],a=this.parseRegion(n),i=null;return r.forEach(o=>{if(!i){i=o;return}let s=this.formatToSubtitleItem(o),u=this.formatToSubtitleItem(i);if(s.start!==u.start||s.end!==u.end){i=o;return}let l=i.getAttribute("region"),c=o.getAttribute("region");if(!l||!c||l===c){i.innerHTML=`${u.text} ${s.text}`,o.remove();return}let m=a[l],g=a[c];if(!(!m||!g)){if(m.y>g.y){i.innerHTML=`${s.text} ${u.text}`,o.remove();return}i.innerHTML=`${u.text} ${s.text}`,o.remove()}}),n}catch{return t}}parseRegion(t){try{let n={};return t.querySelectorAll("region").forEach(r=>{let a=r.getAttribute("xml:id"),i=r.getAttribute("tts:origin");a&&i&&(n[a]={x:parseFloat(i.split(" ")[0]),y:parseFloat(i.split(" ")[1])})}),n}catch{return{}}}formatToSubtitleItems(t){return t.map(n=>this.formatToSubtitleItem(n))}formatToSubtitleItem(t){let n=(t.getAttribute("begin")||"0").replace("t",""),r=(t.getAttribute("end")||"0").replace("t","");return{start:parseInt(n)/1e7,end:parseInt(r)/1e7,text:t.innerHTML||""}}getVideoId(){let n=new URL(Ie()).pathname.replace("/watch/","");return n?parseInt(n):null}getAppendQuickButtonElement(){let t=this.config;if(!t.quickButtonRule||!t.quickButtonRule.appendSelector)return null;let r=document.querySelector(t.quickButtonRule.appendSelector)?.parentElement?.parentElement;if(!r)return;r.querySelector(`#${this.quickButtonId}`)?.remove();let a=document.createElement("div");if(a.id=this.quickButtonId,t.quickButtonRule.insertBeforeSelector){let i=document.querySelector(t.quickButtonRule.insertBeforeSelector)?.parentElement;i&&r.insertBefore(a,i)}else r.append(a);return a}};var ao=class extends yt{autoShowObserver=null;mutationVideoChange(){let t=this.config;this.autoShowObserver&&this.autoShowObserver.disconnect(),t.videoPlayerSelector&&(this.autoShowObserver=new MutationObserver(()=>{document.querySelectorAll(t.videoPlayerSelector).forEach(n=>{this.updateVideo(n)})}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}updateVideo(t){let n=this.config,r=t?.querySelector("source"),a="";r?a=r.getAttribute("src")||"":a=t?.getAttribute("src")||"",t?.textTracks.length&&(a&&a!==t.orgSrc||!t.isTranslated)&&(t.isTranslated=!0,t.orgSrc=a,!(n.videoADSelector&&document.querySelector(n.videoADSelector))&&this.isEnableSubtitle()&&this.mutationSubtitleChange(t))}mutationSubtitleChange(t){t.removeCueChangeListeners?.forEach(a=>a()),t.removeCueChangeListeners=[],[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)});let r=a=>{this.handleTextTracks(a.track,t)};t.textTracks.addEventListener("addtrack",r),t.removeCueChangeListeners.push(()=>t?.textTracks?.removeEventListener("addtrack",r))}handleTextTracks(t,n){if(ct(re(t.language),this.ctx.targetLanguage))return;let r=a=>{if(k.debug("handEvent",a.target),!t.cues?.length)return;let i=a.target;if(!(i?.isTranslated&&i?.cues?.length)){if(this.config.attachRule?.appendSelector&&i.cues){this.attachSubtitle(this.formatToSubtitleItem([...i.cues]),re(i.language)),i.isTranslated=!0;return}Qe(this.ctx,re(i.language)),this.translateSubtitle([...i.cues||[]],re(i.language)),i.isTranslated=!0}};t.removeEventListener("cuechange",r),t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}formatToSubtitleItem(t){return t.map(n=>({text:n.text,start:n.startTime,end:n.endTime}))}async translateSubtitle(t,n){this.showSubtitleLoading(!0);try{let r=t.map(i=>tq(i.text));return(await this._translateSubtitle(r,n)).forEach((i,o)=>{t[o].text=i.displayText}),t}catch(r){k.error(r)}finally{this.hideSubtitleLoading()}}};function tq(e=""){return e.replace(/\n/g," ").replace(/<\d{2}:\d{2}:\d{2}\.\d{3}>/g,"")}var qa=class extends ao{mutationSubtitleChange(t){if(!t)return;t.removeCueChangeListeners?.forEach(a=>a()),t?.textTracks?.length&&Qe(this.ctx,re(t.textTracks[0].language),`${this.ctx.rule.id}_text_track_dynamic`),[...t.textTracks].forEach(a=>{this.handleTextTracks(a,t)})}handleTextTracks(t,n){if(ct(re(t.language),this.ctx.targetLanguage))return;let r=a=>{k.debug("handEvent",a.target);let i=[...t.cues||[]];if(!i.length)return;let o=i.filter(s=>!s.isTranslated);o.forEach(s=>s.isTranslated=!0),this.translateSubtitle(o,re(t.language))};t.addEventListener("cuechange",r),n.removeCueChangeListeners||(n.removeCueChangeListeners=[]),n.removeCueChangeListeners.push(()=>t.removeEventListener("cuechange",r))}};var Su=class extends qa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=yu(r),i=await ze({text:a.subtitles.map(l=>l.text).join(` +`),pageLangs:[Ht(),"en"]});if(ct(re(i),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=a.subtitles;this.attachSubtitle(l,i);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(i));let o=a.subtitles.map(l=>l.text),s=await this._translateSubtitle(o,i);if(this.config.enableHookDownload)try{let l=JSON.parse(JSON.stringify(a.subtitles));this.updateDownloadSubtitle({subtitleItems:l,translations:s,lang:i})}catch(l){k.error("download subtitle error",l)}return a.subtitles.forEach((l,c)=>{l.text=s[c].displayText}),ro(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}};var og=class extends yt{autoShowObserver=null;videoSrc=null;async loadSubtitleWithFetch(t,n){try{this.showSubtitleLoading(!0);let r=typeof t=="string"?t:t.url,a=this.getLangCodeFromSubtitleUrl(r);if(ct(re(a),this.ctx.targetLanguage))return null;Qe(this.ctx,re(a));let i=await this.fetchSubtitle(t,n);if(!i)return null;let o=await this.translateSubtitle(i,re(a));return JSON.stringify(o)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=JSON.parse(JSON.stringify(t)),a=r.data.subtitles,i=a.map((o,s)=>({text:c1(o.text||""),id:s,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:i},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(o,s,u)=>{if(o||!s){k.debug("translate subtitle:",o,s,u);return}let l=ha(s.text),c=a[u.id];c&&this.getTranslationMode(n)==="translation"?c.text=l:c&&(c.text=`${c1(c.text)} +${l}`)}),r}getLangCodeFromSubtitleUrl(t){return new URL(t).searchParams.get("lang")||""}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");let a=await r.text();return JSON.parse(a)}};var sg=class extends ao{videoSrc=null;loadSubtitleWithFetch(t){return this.loadSubtitle(t)}async loadSubtitle(t){try{let n=this.getVideoId(),r=await this.inject.getVideoMeta(n),a=this.config.humanPreferred&&this.getHumanCaptionTrack(this.ctx.targetLanguage,r);this.showSubtitleLoading(!a);let i=this.getLangCodeFromSubtitleUrl(t,r);if(ct(re(i),this.ctx.targetLanguage))return null;Qe(this.ctx,re(i));let o=await this.fetchSubtitle(t);if(!o)return null;let s=await this.requestHumanSubtitle(o,re(i),r);if(s){let l=this.ctx.rule.subtitleRule.humanTrust;if(!l||s.trust>=l)return s.text}return await this.translateSubtitleByText(o,re(i))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r){if(!this.config.humanPreferred||!r)return null;let a=this.getHumanCaptionTrack(this.ctx.targetLanguage,r);if(!a)return null;let i=await this.fetchSubtitle(a);if(!i)return null;if(this.getTranslationMode(n)==="translation")return{text:i,trust:100};let o=bu(t),s=bu(i),u=vu(o,s);return{text:ro(u),trust:100-Math.abs(o.length-s.length)*100/o.length}}async translateSubtitleByText(t,n){let r=bu(t),a=r.map((i,o)=>({text:i.text,id:o,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:a},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(i,o,s)=>{if(i||!o){k.debug("translate subtitle:",i,o,s);return}let u=ha(o.text),l=r[s.id];l&&this.getTranslationMode(n)==="translation"?l.text=u:l&&(l.text=`${l.text} +${u}`)}),ro(r)}formatCaptionTrackUrl(t){let n={};return t?.captions.forEach(r=>{n[re(r.locale_id.replace("_","-"))]=r.url}),n}getHumanCaptionTrack(t,n){return this.formatCaptionTrackUrl(n)[t]}getLangCodeFromSubtitleUrl(t,n){let r=typeof t=="string"?t:t.url;return(n?.captions.find(i=>r.indexOf(`/${i.locale_id}/`)>=0)?.locale_id||"").replace("_","-")}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.text()}getVideoId(){let n=new URL(Ie()).pathname.split("lecture/")[1];if(!n){let r=document.querySelector("video[id*='playerId']");if(!r)return;n=r.getAttribute("id")?.match(/playerId.+?(\d+)/)?.[1]||""}return n}};var ug=class extends yt{loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=this.config.generalSetting;if(!r)return null;let a=await this.fetchSubtitle(t,n);if(!a)return null;let i=[];if(r.captionsPath){let o=Jw(a,r.captionsPath);o&&(i=o)}else i.push(a);for(let o of i){let s=o;if(r.itemsPath?s=Jw(o,r.itemsPath):s=rq(o,r),!s?.length)continue;let u=await ze({text:s.map(l=>Tc(l,r.textKey)).join(` +`),pageLangs:[Ht(),"en"]});if(ct(re(u),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let l=s.map(c=>({start:c[r.startKey],end:c[r.endKey],text:Tc(c,r.textKey)||""}));this.attachSubtitle(l,u);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(u)),await this.translateSubtitle(s,u)}return JSON.stringify(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n){let r=this.config.generalSetting,a=t.map(o=>Tc(o,r.textKey)?.replace(/\n/g," ")||"");return(await this._translateSubtitle(a,n)).forEach((o,s)=>{let u=t[s];if(!u)return;let l=this.getTranslationMode(n)==="translation";t[s]=nq(u,r.textKey,o.translation,l)}),t}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.json()}};function Jw(e,t){if(Array.isArray(e))return e;let n=t.split("."),r=e;for(let a=0;a{let a=!1;for(let i of r){if(i.type=="characterData"){let o=i.target,s=Ws(t,o.parentElement,n.findParentBlockDepth);if(n.textContentSelector&&!s?.querySelector(n.textContentSelector))return;let u=n.textContentSelector?s?.querySelector(n.textContentSelector):o;if(!s)continue;this.debounceBuildContainers(u,s)}n.textSelectors&&i.addedNodes.length&&(a=!0)}!a||!this.containerElement||this.translateAll(this.containerElement)}),this.findTargetObserver=new MutationObserver(()=>{this.findTargetElement()}),this.findTargetElement(),this.findTargetObserver.observe(document.body,{childList:!0,subtree:!0}))}findTargetElement(){let t=this.config.liveSubtitleRule;if(!t?.containerSelector)return;let n=document.body.querySelector(t?.containerSelector);!n||n.hasMutationText||(this.containerElement=n,n.hasMutationText=!0,this.textChangeObserver.observe(n,{subtree:!0,childList:!0,characterData:!0}),this.translateAll(n),this.report(t,n))}report(t,n){if(!t.reportSelector)return;let r=n.closest(t.reportSelector);r.reported||(r.reported=!0,Qe(this.ctx,this.ctx.sourceLanguage))}clearLiveSubtitle(){this.textChangeObserver?.disconnect(),this.findTargetObserver?.disconnect(),this.containerElement=null;let t=this.config.liveSubtitleRule?.containerSelector;if(!t)return;let n=document.querySelector(t);n&&(n.querySelectorAll("."+Kt).forEach(r=>{r.remove()}),n.hasMutationText=!1)}translateAll(t){this.config.liveSubtitleRule?.textSelectors?.forEach(r=>{t.querySelectorAll(r).forEach(a=>{!a.textContent||a.querySelector("."+Kt)||this.translate(this.ctx,a.textContent||"",a)})})}isSelf(t){return Er(t,["."+Kt])}debounceBuildContainers(t,n){let r=t.nodeType===Node.TEXT_NODE,a=r?t.parentElement:t;if(a&&this.isSelf(a))return;let i=this.config.liveSubtitleRule?.mutationChangeDelay,o=n;if(o.timer){o.latestContentLength=this.getTextNodeLength(t,r);return}clearTimeout(o.timer),this.isEnableSubtitle()&&(o.timer=setTimeout(async()=>{let s=this.getTextNodeLength(t,r);await this.translate(this.ctx,t.textContent||"",n),o.timer=null,o.latestContentLength&&o.latestContentLength!=s&&this.debounceBuildContainers(t,n)},i))}getTextNodeLength(t,n){return n?t.length:t.textContent?.length||0}async translate(t,n,r){let a=r.querySelector("."+Kt);if(!a){let o=document.createElement("font");o.classList.add(Kt),o.classList.add("notranslate");let s=l4(t);o.append(lt.sanitize(s,{RETURN_DOM_FRAGMENT:!0})),a=o,r.appendChild(a)}let i=await this.translateText(t,n||"");!i||!this.isEnableSubtitle()||(a.innerHTML=`
${i}
`)}async translateText(t,n){let r=await ze({text:n,pageLangs:[Dt(),"en"]});return Hs(t,r)?void 0:(await mr({id:0,url:t.url,text:n,from:r,to:t.targetLanguage,fromByClient:r},{...t,translationService:this.ctx.subtitleTranslateService,sourceProgram:"liveSubtitle"})).text}async autoEnableSubtitleChanged(){let t=ot(),n=await at(Ie(),{});this.initConfig(n),!(this.config.disabled||t!=="Original")&&this.applyLiveSubtitle()}async onPageStatusChange(){let t=await at(Ie(),{});this.initConfig(t),!(this.config.disabled||this.config.autoEnableSubtitle)&&this.applyLiveSubtitle()}};var lg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{doc:a,subtitles:i}=aq(r),o=await ze({text:i.map(u=>u.textContent).join(` +`),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=Xw(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=await this.translateSubtitle(a,i,re(o));if(this.config.enableHookDownload)try{let u=Xw(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(a)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async translateSubtitle(t,n,r){let a=await this._translateSubtitle(n.map(i=>i.textContent||""),re(r));return a.forEach(({translation:i},o)=>{let s=n[o],u=ha(i);if(s&&this.getTranslationMode(r)==="translation")s.innerHTML=u;else if(s){let l=s.parentElement;if(!l)return;let c=s?.tagName?.split(":")||[],m="br";c.length>1&&(m=c[0]+":"+m);let g=t.createElementNS(Sc,m),p=s.cloneNode(!0);p.nodeType==Node.TEXT_NODE?p.textContent=u.trim():p.innerHTML=u.trim(),l?.appendChild(g),l?.appendChild(p)}}),a}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}},Sc="http://www.w3.org/ns/ttml";function aq(e){let t=new DOMParser().parseFromString(e,"text/xml"),n=t.getElementsByTagNameNS(Sc,"p"),r=[];return[...n].forEach(a=>{let i=a.textContent||"";try{if(a.childNodes[0].nodeType==Node.TEXT_NODE&&a.childNodes[0].textContent?.trim()){let o=a.childNodes[0];if(i.length<=1)return;o.textContent=i,a.innerHTML=o.textContent,r.push(a.childNodes[0])}else{let s=a.getElementsByTagNameNS(Sc,"span")[0];if(!s||i.length<=1)return;s.innerHTML=i.replace(//g,">"),a.innerHTML=s.outerHTML,s=a.getElementsByTagNameNS(Sc,"span")[0],r.push(s)}}catch{}}),{doc:t,subtitles:r}}function Xw(e){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS(Sc,"p"),r=[];return[...n].forEach(a=>{let i=a.getAttribute("begin"),o=a.getAttribute("end"),s=a.textContent?.trim()||"";i&&o&&s.length>1&&r.push({start:Qw(i),end:Qw(o),text:s})}),r}function Qw(e){let t=e.split(":");if(!t.length)return e;let n=0,r=1;return t.reverse().forEach(a=>{n+=Number(a)*r,r=r*60}),n}var cg=class extends yt{async loadSubtitle(t){try{let n=await this.getVideoMeta(),r=this.config.humanPreferred&&await this.getHumanSubtitleUrls(this.ctx.targetLanguage,n);this.showSubtitleLoading(!r);let a=await this.fetchSubtitle(t);if(!a)return null;let i=yu(a);if(!i.subtitles.length)return null;let o=await this.getLangCodeFromVtt(i.subtitles);if(ct(o,this.ctx.targetLanguage))return null;if(Qe(this.ctx,o),n){let u=await this.requestHumanSubtitle(t,i,n,o);if(u)return u}return await this.translateSubtitle(i,re(o))}catch(n){return k.error(n),null}finally{this.hideSubtitleLoading()}}async requestHumanSubtitle(t,n,r,a){if(!this.config.humanPreferred||!r)return null;let i=await this.getHumanSubtitleUrls(this.ctx.targetLanguage,r);if(!i)return null;let o=t.split("/"),s=i.find(c=>c.endsWith(o[o.length-1]));if(!s)return null;let u=await this.fetchSubtitle(s);if(this.getTranslationMode(a)==="translation")return u;let l=vu(n.subtitles,bu(u));return n.subtitles=l,ro(n)}async translateSubtitle(t,n){let r=t.subtitles.map((a,i)=>({text:(a.text||"").replace(/\n/g," "),id:i,from:n,to:this.ctx.targetLanguage,url:"https://google.com",fromByClient:n,force:!0}));return await hn({sentences:r},{...this.ctx,isRichTranslate:!1,translationService:this.ctx.subtitleTranslateService,sourceProgram:"videoSubtitle"},(a,i,o)=>{if(a||!i){k.debug("translate subtitle:",a,i,o);return}let s=ha(i.text),u=t.subtitles[o.id];u&&this.getTranslationMode(n)==="translation"?u.text=s:u&&(u.text=`${u.text.replace(/\n/g," ")} +${s}`)}),ro(t)}async getHumanSubtitleUrls(t,n){if(!n)return null;let r=n.find(s=>re(s.language)===t&&s.language.toLowerCase()!=="zh-hk");if(!r)return null;if(r.subtitleUrl)return r.subtitleUrl;let i=await(await fetch(r.url)).text(),o=sq(i).map(s=>`${r.baseUrl}/r/${s}`);return o.length?(r.subtitleUrl=o,o):null}getLangCodeFromVtt(t){let n=t.map(r=>r.text).join(` +`);return ze({text:n,pageLangs:["auto"]})}async fetchSubtitle(t){let n=await fetch(t);if(!n.ok)throw new Error("request subtitle error");return await n.text()}getVideoId(){let n=new URL(Ie()).pathname.split("/");return n.length>2&&n[n.length-2]==="video"?n[n.length-1]:null}videoMetaMap={};async getVideoMeta(){let t=this.getVideoId();if(!t)return null;if(this.videoMetaMap[t])return this.videoMetaMap[t];let n=await this.inject.getVideoMeta(t);if(!n)return null;let r=await(await fetch(n)).text(),a=oq(r),i=iq(n),o=a.map(s=>({language:s.language,url:`${i}/${s.uri}`,baseUrl:i}));return o.length?(this.videoMetaMap[t]=o,o):null}};function iq(e){let t=new URL(e),n=t.pathname.split("/");n.pop();let r=n.join("/");return`${t.origin}${r}`}function oq(e){let t=[];for(let n of e.split(` +`)){if(!n.startsWith("#EXT-X-MEDIA:TYPE=SUBTITLES"))continue;let r={};n.substring(13).split(",").forEach(i=>{let[o,s]=i.split("=");r[o.toLowerCase()]=(s||"").replace(/"/g,"")}),r.forced==="NO"&&t.push(r)}return t}function sq(e){let t=[];for(let n of e.split(` +`)){if(n.startsWith('EXT-X-DS-MARKER:ID="INT-END"'))break;n.endsWith(".vtt")&&t.push(n)}return t}var dg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{this.showSubtitleLoading(!0);let r=await this.fetchSubtitle(t,n);if(!r)return null;let a=Zm(r);if(!a)return;let i=[...a.document.querySelectorAll("p")].filter(c=>c.textContent?.trim()),o=i.map(c=>c.textContent||"");if(!o.length)return null;let s=await ze({text:o.join(` +`),pageLangs:[Ht(),"en"]});return ct(re(s),this.ctx.targetLanguage)?null:(Qe(this.ctx,re(s)),(await this._translateSubtitle(o,s,"
")).forEach(({displayText:c},m)=>{i[m]&&(i[m].innerHTML=c)}),Jm(a.arrayBuffer,a.document))}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return await r.arrayBuffer()}};var mg=class extends yt{async requestSubtitle(t){let n=await at(Ie(),{});if(this.initConfig(n),!this.isEnableSubtitle())return;let r=this.config.videoSelector;if(!r)return;let a=document.querySelector(r);if(!a)return;let i=await this.parseVTTUrl(t);if(!i)return;let s=await new Su(this.ctx).loadSubtitle(i.url);if(!s)return;let u=a1(s);if(this.config.attachRule?.appendSelector){this.attachSubtitle(u.map(l=>({start:l.startTime,end:l.endTime,text:l.text})),i.lang);return}sw(a),l1(a,i.lang,i.lang,u,!0)}parseVTTUrl(t){if(t?.webvtt){let[n,r]=Object.entries(t?.webvtt||{})[0];return{url:r,lang:n}}}};var gg=class extends yt{autoShowObserver=null;videoSrc=null;subtitleMap={};reversedLangMap={};currentLang="en";constructor(t){super(t),Object.keys(e7).forEach(n=>{e7[n].forEach(r=>{this.reversedLangMap[r]=n})})}mutationVideoChange(){let t=this.config,n=t.multiSetting;n&&(this.autoShowObserver&&this.autoShowObserver.disconnect(),this.autoShowObserver=new MutationObserver(()=>{if(t.videoSelector){let i=document.querySelector(t.videoSelector),o=i&&i.getAttribute("src");o&&o!=this.videoSrc&&(this.videoSrc=o,this.subtitleMap={})}if(!n.activeLangSelector)return;let r=document.querySelector(n.activeLangSelector);if(!r)return;let a=this.getLangByElement(r,n)||"";a&&a==this.currentLang||(this.currentLang=a,this.attachMultiSubtitle(a))}),this.autoShowObserver.observe(document,{subtree:!0,childList:!0}))}getLangByElement(t,n){let r="";if(n?.langValueSelector){let a=t.parentElement?.querySelector(n.langValueSelector);a&&n?.langValueAttribute?r=a.getAttribute(n.langValueAttribute)||"":r=a?.textContent?.trim()||""}else r=t?.textContent||"";if(r&&n?.langTextRegex){let a=new RegExp(n?.langTextRegex);r=r.match(a)?.[1]||r}return this.formatLanguageWithName(r)}loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitleList(t,n);if(!r)return;let a=this.config.multiSetting,i=this.extractLanguageFromUrl(t,a)||await this.detectSubtitlesLang(r);if(this.updateSubtitleMap(i,r),ct(re(i),this.ctx.targetLanguage))return null;if(i!==this.currentLang)return;this.attachMultiSubtitle(i)}catch(r){return k.error(r),null}}updateSubtitleMap(t,n){if(t=="auto")return;let r=this.subtitleMap[t];if(!r){this.subtitleMap[t]=n;return}if(r[0].text==n[0].text)return;let a=[r,n];a=a.sort((o,s)=>o[0].start>=s[s.length-1].start?1:-1);let i=[...a[0],...a[1]];this.subtitleMap[t]=i}attachMultiSubtitle(t){if(!t||t=="auto"||!this.config.attachRule?.appendSelector)return;let n=this.subtitleMap[t];n&&(Qe(this.ctx,t),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n,ctx:this.ctx,lang:t}))}extractLanguageFromUrl(t,n){let r=n?.urlLangRegex;if(!r)return;let i=dw(t).match(new RegExp(r,"i"));return this.config.multiSetting?.isMapLangFromUrl&&this.formatLanguageWithName(i?.[1])||i?.[1]}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}formatLanguageWithName(t){if(!t)return null;let n=this.config.multiSetting?.bakLangMap||{};return t=t.split(" -")[0].trim(),Object.keys(n).forEach(r=>{Array.isArray(n[r])?n[r].forEach(a=>{this.reversedLangMap[a]=r}):this.reversedLangMap[n[r]]=r}),this.reversedLangMap[t]||t}},e7={af:["Afrikaans","Afrikaans","af-ZA"],am:["Amharic","\u12A0\u121B\u122D\u129B","am-ET"],ar:["Arabic","\u0627\u0644\u0639\u0631\u0628\u064A\u0629","ar-SA"],auto:["Automatic","\u81EA\u52A8","auto"],az:["Azerbaijani","Az\u0259rbaycan","az-AZ"],be:["Belarusian","\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F","be-BY"],bg:["Bulgarian","\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","bg-BG"],bn:["Bengali","\u09AC\u09BE\u0982\u09B2\u09BE","bn-BD"],bs:["Bosnian","Bosanski","bs-BA"],ca:["Catalan","Catal\xE0","ca-ES"],ceb:["Cebuano","Cebuano","ceb-PH"],co:["Corsican","Corsu","co-FR"],cs:["Czech","\u010Ce\u0161tina","cs-CZ"],cy:["Welsh","Cymraeg","cy-GB"],da:["Danish","Dansk","da-DK"],de:["German","Deutsch","de-DE"],el:["Greek","\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","el-GR"],en:["English","English","en-US","en-GB"],eo:["Esperanto","Esperanto","eo"],es:["Spanish","Espa\xF1ol","es-ES","es-MX"],et:["Estonian","Eesti","et-EE"],eu:["Basque","Euskara","eu-ES"],fa:["Persian","\u0641\u0627\u0631\u0633\u06CC","fa-IR"],fi:["Finnish","Suomi","fi-FI"],fil:["Filipino","Filipino","fil-PH"],fj:["Fijian","Vosa Vakaviti","fj-FJ"],fr:["French","Fran\xE7ais","fr-FR","fr-CA"],fy:["Frisian","Frysk","fy-NL"],ga:["Irish","Gaeilge","ga-IE"],gd:["Scots Gaelic","G\xE0idhlig","gd-GB"],gl:["Galician","Galego","gl-ES"],gu:["Gujarati","\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0","gu-IN"],ha:["Hausa","Hausa","ha-NG"],haw:["Hawaiian","\u02BB\u014Clelo Hawai\u02BBi","haw-US"],he:["Hebrew","\u05E2\u05D1\u05E8\u05D9\u05EA","he-IL"],hi:["Hindi","\u0939\u093F\u0928\u094D\u0926\u0940","hi-IN"],hmn:["Hmong","Hmoob","hmn"],hr:["Croatian","Hrvatski","hr-HR"],ht:["Haitian Creole","Krey\xF2l Ayisyen","ht-HT"],hu:["Hungarian","Magyar","hu-HU"],hy:["Armenian","\u0540\u0561\u0575\u0565\u0580\u0565\u0576","hy-AM"],id:["Indonesian","Bahasa Indonesia","id-ID"],ig:["Igbo","As\u1EE5s\u1EE5 Igbo","ig-NG"],is:["Icelandic","\xCDslenska","is-IS"],it:["Italian","Italiano","it-IT"],ja:["Japanese","\u65E5\u672C\u8A9E","ja-JP"],jw:["Javanese","Basa Jawa","jw-ID"],ka:["Georgian","\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8","ka-GE"],kk:["Kazakh","\u049A\u0430\u0437\u0430\u049B","kk-KZ"],km:["Khmer","\u1781\u17D2\u1798\u17C2\u179A","km-KH"],kn:["Kannada","\u0C95\u0CA8\u0CCD\u0CA8\u0CA1","kn-IN"],ko:["Korean","\uD55C\uAD6D\uC5B4","ko-KR"],ku:["Kurdish","Kurd\xEE","ku-TR"],ky:["Kyrgyz","\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430","ky-KG"],la:["Latin","Latina","la"],lb:["Luxembourgish","L\xEBtzebuergesch","lb-LU"],lo:["Lao","\u0EA5\u0EB2\u0EA7","lo-LA"],lt:["Lithuanian","Lietuvi\u0173","lt-LT"],lv:["Latvian","Latvie\u0161u","lv-LV"],mg:["Malagasy","Malagasy","mg-MG"],mi:["Maori","M\u0101ori","mi-NZ"],mk:["Macedonian","\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438","mk-MK"],ml:["Malayalam","\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02","ml-IN"],mn:["Mongolian","\u041C\u043E\u043D\u0433\u043E\u043B","mn-MN"],mr:["Marathi","\u092E\u0930\u093E\u0920\u0940","mr-IN"],ms:["Malay","Bahasa Melayu","ms-MY"],mt:["Maltese","Malti","mt-MT"],mww:["Hmong Daw","Hmong Daw","hmn"],my:["Burmese","\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C","my-MM"],ne:["Nepali","\u0928\u0947\u092A\u093E\u0932\u0940","ne-NP"],nl:["Dutch","Nederlands","nl-NL"],no:["Norwegian","Norsk","no-NO"],ny:["Nyanja (Chichewa)","Chichewa","ny-MW"],otq:["Quer\xE9taro Otomi","H\xF1\xE4h\xF1u"],pa:["Punjabi","\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40","pa-IN"],pl:["Polish","Polski","pl-PL"],ps:["Pashto","\u067E\u069A\u062A\u0648","ps-AF"],pt:["Portuguese","Portugu\xEAs","pt-PT"],"pt-br":["Portuguese (Brazil)","Portugu\xEAs (Brasil)","pt-BR"],ro:["Romanian","Rom\xE2n\u0103","ro-RO"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439","ru-RU"],sd:["Sindhi","\u0633\u0646\u068C\u064A","sd-PK"],si:["Sinhala (Sinhalese)","\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","si-LK"],sk:["Slovak","Sloven\u010Dina","sk-SK"],sl:["Slovenian","Sloven\u0161\u010Dina","sl-SI"],sm:["Samoan","Gagana S\u0101moa","sm-WS"],sn:["Shona","ChiShona","sn-ZW"],so:["Somali","Soomaali","so-SO"],sq:["Albanian","Shqip","sq-AL"],sr:["Serbian","\u0421\u0440\u043F\u0441\u043A\u0438","sr-RS"],"sr-Cyrl":["Serbian (Cyrillic)","\u0421\u0440\u043F\u0441\u043A\u0438 (\u040B\u0438\u0440\u0438\u043B\u0438\u0446\u0430)","sr-Cyrl-RS"],"sr-Latn":["Serbian (Latin)","Srpski (Latinica)","sr-Latn-RS"],st:["Sesotho","Sesotho","st-LS"],su:["Sundanese","Basa Sunda","su-ID"],sv:["Swedish","Svenska","sv-SE"],sw:["Swahili","Kiswahili","sw-KE"],ta:["Tamil","\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD","ta-IN"],te:["Telugu","\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41","te-IN"],tg:["Tajik","\u0422\u043E\u04B7\u0438\u043A\u04E3","tg-TJ"],th:["Thai","\u0E44\u0E17\u0E22","th-TH"],tlh:["Klingon","tlhIngan Hol"],"tlh-Qaak":["Klingon (pIqaD)","tlhIngan Hol (pIqaD)"],to:["Tongan","Lea fakatonga","to-TO"],tr:["Turkish","T\xFCrk\xE7e","tr-TR"],ty:["Tahitian","Reo Tahiti"],ug:["Uyghur","\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5","ug-CN"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","uk-UA"],ur:["Urdu","\u0627\u0631\u062F\u0648","ur-PK"],uz:["Uzbek","O\u02BBzbekcha","uz-UZ"],vi:["Vietnamese","Ti\u1EBFng Vi\u1EC7t","Ti\u1EBFng","vi-VN"],wyw:["Welayta","\u12CC\u120B\u12ED\u1273"],xh:["Xhosa","IsiXhosa","xh-ZA"],yi:["Yiddish","\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"],yo:["Yoruba","\xC8d\xE8 Yor\xF9b\xE1","yo-NG"],yua:["Yucatec Maya","M\xE0aya T'\xE0an"],yue:["Cantonese","\u7CB5\u8A9E","yue-HK"],bo:["Tibetan","\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B","bo-CN"],sa:["Sanskrit","\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D","sa-IN"],kmr:["Sorani Kurdish","\u06A9\u0648\u0631\u062F\u06CC \u0633\u06C6\u0631\u0627\u0646\u06CC"],ckb:["Kurmanji Kurdish","\u06A9\u0648\u0631\u0645\u0627\u0646\u062C\u06CC"],"zh-CN":["Chinese (Simplified)","\u7B80\u4F53\u4E2D\u6587","\u4E2D\u6587\u7B80\u4F53","\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09","zh-CN"],"zh-TW":["Chinese (Traditional)","\u7E41\u9AD4\u4E2D\u6587","\u4E2D\u6587\u6B63\u9AD4","\u4E2D\u6587\uFF08\u7E41\u4F53\uFF09","zh-TW"],zu:["Zulu","IsiZulu","zu-ZA"]};var pg=class extends qa{constructor(t){super(t),new wu(t)}};var fg=class extends qa{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this._fetchSubtitle(t,n);if(!r)return null;let a=Go.parse(r),i=a.filter(c=>c.type==="caption"),o=await ze({text:i.map(c=>c.text).join(` +`),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let c=this.getSubtitleItems(i);this.attachSubtitle(c,o);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=i.map(c=>c.text),u=await this._translateSubtitle(s,o);if(this.config.enableHookDownload)try{let c=this.getSubtitleItems(i);this.updateDownloadSubtitle({subtitleItems:c,translations:u,lang:o})}catch(c){k.error("download subtitle error",c)}return i.forEach((c,m)=>{c.text=u[m].displayText}),Go.build(a,{format:this.config.subsrtFormat||"vtt"})}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}getSubtitleItems(t){return t.map(r=>({start:r.start/1e3,end:r.end/1e3,text:r.text}))}};var hg=class extends yt{autoShowObserver=null;videoSrc=null;loadSubtitleWithFetch(t,n){return this.loadSubtitle(t,n)}async loadSubtitle(t,n){try{let r=await this.fetchSubtitle(t,n);if(!r)return null;let{subtitles:a,doc:i}=this.parseFromXml(r),o=await ze({text:a.map(u=>u.textContent).join(` +`),pageLangs:[Ht(),"en"]});if(ct(re(o),this.ctx.targetLanguage))return null;if(this.config.attachRule?.appendSelector){let u=this.parseXMLSubtitles(r);this.attachSubtitle(u,o);return}this.showSubtitleLoading(!0),Qe(this.ctx,re(o));let s=await this._translateSubtitle(a.map(u=>u.textContent||""),re(o));if(s.forEach((u,l)=>{a[l].textContent=u.displayText}),this.config.enableHookDownload)try{let u=this.parseXMLSubtitles(r);this.updateDownloadSubtitle({subtitleItems:u,translations:s,lang:o})}catch(u){k.error("download subtitle error",u)}return new XMLSerializer().serializeToString(i)}catch(r){return k.error(r),null}finally{this.hideSubtitleLoading()}}async fetchSubtitle(t,n){let r=await fetch(t,n);if(!r.ok)throw new Error("request subtitle error");return(await r.text()||"").replace(/\r\n/g,` +`)}parseFromXml(t){if(!this.config.xmlTextSelector)throw new Error("xml text selector is required");let n=new DOMParser().parseFromString(t,"text/xml"),r=[...n.querySelectorAll(this.config.xmlTextSelector)];return{doc:n,subtitles:r}}parseXMLSubtitles(t){let{startSelector:n,endSelector:r,startAttr:a,endAttr:i,subtitleItemSelector:o,textSelector:s,endOrDuration:u,timeDivisor:l}=this.config.xmlSetting,c=new DOMParser().parseFromString(t,"application/xml"),m=[];return c.querySelectorAll(o).forEach(p=>{let f=this.getTimeStr(n,a,p)||"",b=this.getTimeStr(r,i,p)||"",y=o1(f,l),h=o1(b,l),v=En(y),C=En(h);u==="duration"&&(C=v+C);let T=s?p.querySelector(s)?.textContent:p.textContent;m.push({start:v,end:C,text:(T||"").trim()})}),m}getTimeStr(t,n,r){if(t){let a=r.querySelector(t);return n?a?.getAttribute(n):a?.textContent}else return n?r.getAttribute(n):r.textContent}};var bg=class extends yt{hasSubtitle=!1;async mutationVideoChange(){let t=uq(location.href,document,this.config.avSerial);if(!t)return;let n=this.config.avSerial?.serialAttachIframe;if(n){let a=document.querySelector(n);if(!a)return;let i=new URL(a.getAttribute("src")||"");i.searchParams.set("code",t),a.setAttribute("src",i.toString());return}let r=await this.fetchSubtitle(t);r&&(Qe(this.ctx,"ja","av"),this.hasSubtitle=!0,pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:r,ctx:this.ctx,lang:"ja"}))}isShowQuickButton(){return Promise.resolve(this.hasSubtitle)}async fetchSubtitle(t){try{let n=await ee({url:`https://subhub.weixin.so/missav/${t}`,responseType:"text"});if(!n)throw new Error("request subtitle error");return Go.parse(n,{format:"vtt"}).map(a=>({...a,start:a.start/1e3,end:a.end/1e3}))}catch(n){k.error("fetchSubtitle",n);return}}};function uq(e,t,n){if(!n)return;let r;if(n.type==="url"&&(r=e),n.type=="selector"&&n.selector&&(r=t?.querySelector(n.selector)?.textContent),!!r){if(n.regexStr){let a=r.match(new RegExp(n.regexStr));if(a)return a[1]||a[0]}return r.toLowerCase()}}var yg=class extends yt{list=[];lang="";async requestSubtitle(t){this.list=t,this.list.forEach(async n=>{let r=await this.fetchSubtitleList(n.url);if(!r)return null;n.subs=r,this.lang&&this.changeLang(this.lang)})}async changeLang(t){this.lang=t;let n=this.list.find(r=>r.url.includes(this.lang));n?.subs.length&&(Qe(this.ctx,n.language_code),pi(this.ctx,this.config.attachRule?.appendSelector||"",{videoSelector:this.config.videoSelector||"video",subtitleItems:n.subs,ctx:this.ctx,lang:n.language_code}))}};var lq={youtube:ag,netflix:ig,webvtt:Su,khanacademy:og,udemy:sg,hulu:mg,mubi:yg,text_track:ao,text_track_dynamic:qa,general:ug,live:wu,ebutt:lg,disneyplus:cg,"fmp4.xml":dg,multi_attach_vtt:gg,twitter:pg,subsrt:fg,xml:hg,av:bg},vg;async function Dw(e){try{J()&&await ut(50);let t=e.rule.subtitleRule;if(t.disabled||!t.type)return;let n=lq[t.type];if(!n)return;vg=new n(e)}catch(t){k.error(t)}}async function M1(){vg?.onPageStatusChange()}async function cq(e,t){if(vg?.autoEnableSubtitleChanged(),t&&t.trigger==="popup"&&xt())return;let n={auto_enable_subtitles:e.rule.subtitleRule.autoEnableSubtitle?"1":"0",video_platform:e.rule.id||""};t&&t.trigger&&(n.trigger=t.trigger),Ue("auto_enable_subtitles_changed",[{name:"auto_enable_subtitles_changed",params:n}],e)}async function dq(){vg?.onTranslationModeChanged()}nv({autoEnableSubtitleChanged:cq,reloadSubtitleWithTranslationModeChanged:dq});var fe=null;function yc(){return fe||null}function rg(e){let t=Pn(e);zi(document,e),mq(e),vq(e,t),hq(e),yq(e),fq(fe,t),Xn("Translated"),bq(fe),Wx(Tu),gq(fe),M1(),kq()}function mq(e){let t={...e.rule.initialSelectorGlobalAttributes};if(e.state.translationArea==="main"&&t){let n=Pn(e);if(e.rule.preTranslateLimiter){let r=e.rule.preTranslateLimiter?.keys||[];Object.entries(t).forEach(([a,i])=>{r.forEach(o=>{i[o]&&delete t[a]})})}Fx(document.body,t,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph,n)}mu(e)&&zt(document.documentElement,ie+"_rtl",e.targetLanguage)}function gq(e){let t=e.ctx;i7(t,!0),Vx(e),V5(window.location.href)}function pq(e){let t=e.ctx;i7(t,!1),Kx()}async function fq(e,t){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0,characterData:!0});let{bodyNode:n,articleNode:r,bodyIsRoot:a,preElements:i}=Bx(e.ctx,t);if(k.debug("bodyIsRoot",a,"bodyNode",n,"articleNode",r),n){if(i)for(let s of i||[])await di(s,e);await di(n,e)}if(e.ctx.bodyNode=n,e.ctx.articleNode=r,e.allTextLength=document.body?.innerText?.length,n&&await di(n,e),a)return;let o=[];e.ctx.rule.mainFrameSelector&&(o=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),o.length<=0&&(o=[document.body]);for(let s of o)await di(s,e)}async function hq(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=await Mt(),n=Date.now(),a=new URL(e.url).hostname,i=t.tempTranslationUrlMatches||[],o=i.findIndex(u=>u.match===a&&u.expiredAt>n),s=!1;o>-1||(i.push({match:a,expiredAt:n+e.config.tempTranslateDomainMinutes*60*1e3}),s=!0),s&&await kt({...t,tempTranslationUrlMatches:[...i]})}}function bq(e){e.ctx.rule.isTranslateTitle&&(o3(e.ctx),e.titleDynamicObserver=Ux(e.ctx))}function yq(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function y1(e,t){fe&&(e.isRichTranslate=js(e,e.translationService,e.config.translationServices,e.specialAiAssistant),t||(t=Pn(e)),fe.containerRule={pageHeight:screen.availHeight,selectors:t.selectors,containerSelectors:t.buildContainerSelectors},fe.translationService=e.translationService,fe.urlChangeDelay=e.rule.urlChangeDelay,fe.immediateTranslateCapacity=e.state.immediateTranslationTextCount,fe.translateState=e.rule.translationMode||e.state.translationMode||e.config.translationMode||"dual",La(document.documentElement,fe.translateState),e.config.translationPosition&&document.documentElement.setAttribute("imt-trans-position",e.config.translationPosition))}function vq(e,t){let n=fl();fe&&(n=fe.id),fe=fe||{},fe.ctx=e,fe.id=n,fe.paragraphQueue=fe.paragraphQueue||[],y1(e,t),fe.currentUrl=window.location.href,fe.paragraphEntities=fe.paragraphEntities||{},fe.autoIncreaseParagraphId=fe.autoIncreaseParagraphId||1,fe.interruptEffectDOM=!1,fe.observeContainers=fe.observeContainers||[],fe.observeParagraphs=fe.observeParagraphs||[],fe.dynamicContainerObserver=fe.dynamicContainerObserver||Eq(fe),fe.ignoreResizeObserver=fe.ignoreResizeObserver||Aq(fe),fe.containerVisibleObserver=fe.containerVisibleObserver||Tq(fe),fe.paragraphVisibleObserver=fe.paragraphVisibleObserver||Sq(fe),fe.injectCssToDocument=Cg,fe.walkContainer=ci,e.specialAiAssistant=aa(e,e.translationService,!0),window.onerror=xq(fe,e),window.immersiveTranslateSwitchTranslateState=_1.bind(fe)}function a7(e,t){t.getRootNode()instanceof ShadowRoot?Cg(t.getRootNode(),e):Cg(t.ownerDocument,e),Cq(e)}function Cq(e){fe||(fe={},fe.ctx=e,fe.id=fl(),P1(fe,e))}function P1(e,t){e.paragraphQueue=[],e.injectCssToDocument=Cg,e.translationService=t.mouseHoverTranslationService,e.currentUrl=window.location.href,e.paragraphEntities={},e.autoIncreaseParagraphId=1,e.interruptEffectDOM=!1,e.urlChangeDelay=t.rule.urlChangeDelay,e.translateState=t.rule.translationMode||t.state.translationMode||t.config.translationMode||"dual",e.observeContainers=[],e.observeParagraphs=[],window.switchTranslateState=_1.bind(e);let n=aa(t,e.translationService,!0);return t.specialAiAssistant=n,t.isRichTranslate=js(t,e.translationService,t.config.translationServices,t.specialAiAssistant),e}function Tu(e=!0){fe&&(Xn("Original"),M1(),pq(fe),ac(),fe.interruptEffectDOM=!0,fe.ignoreResizeObserver?.disconnect(),fe.dynamicContainerObserver?.disconnect(),fe.containerVisibleObserver?.disconnect(),fe.paragraphVisibleObserver?.disconnect(),fe.titleDynamicObserver?.disconnect(),jx(fe.ctx),O5(),N5(),e&&_1.call(fe,"original"),Object.values(fe.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),fe=null)}function xq(e,t){e.interruptEffectDOM=!1;let n;return function(r){let a=r.message,i=!1;return a?.indexOf("Minified React error")>=0&&(i=!0),i&&(clearTimeout(n),Tu(),n=setTimeout(()=>{rg(t)},e.urlChangeDelay||2e3)),!0}}function Tq(e){return new IntersectionObserver(async(t,n)=>{if(!e.interruptEffectDOM)for(let r of t)(r.intersectionRatio>0||r.target.slot)&&(await c3(e,r.target),n.unobserve(r.target))})}function Sq(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(r=>{if(r.intersectionRatio>0){let a=r.target;(a.paragraphs||[]).forEach(o=>{d3(e,o)}),n.unobserve(a)}})})}var t7;function wq(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(t7),e.translateState=="original"?!1:(Tu(e.urlChangeDelay>20),t7=setTimeout(()=>{let a=e.ctx;rg(a)},e.urlChangeDelay),!0)):!1}function Eq(e){let t=e.ctx.rule,n=Pn(e.ctx);return new MutationObserver(r=>{if(t.mutationConfig.enableUrlChange&&wq(e)||e.interruptEffectDOM)return;let a=Fd(document.documentElement);for(let i of r)if(i.target.nodeType!=Node.COMMENT_NODE&&!(i.target.formatHtml&&i.addedNodes.length>0&&i.removedNodes.length>0))try{if(t.mutationObserverLimitTargetSelectors.length>0&&!Er(i.target,t.mutationObserverLimitTargetSelectors)||t.mutationExcludeSelectors.length>0&&Er(i.target,t.mutationExcludeSelectors))continue;let o=i.target;try{if(o.translateNum=(o.translateNum||0)+1,t.repeatTranslateNum>0&&o.translateNum>t.repeatTranslateNum)return}catch{}if(i.type=="characterData"){let l=o.parentElement,c=1;for(;l&&!l.recordLength&&c<=5;){if(l.classList?.contains(Yc)){l=null;break}l=l?.parentElement,c++}if(l?.recordLength&&l.recordLength!==l.innerHTML.length){if(i.target.recordLength==i.target.textContent.length)continue;n7(e,n,l)}continue}if(t.mutationConfig.checkSelfUpdate&&h3(i))continue;if(o.recordLength&&!t.skipTrailTextRegex){o.recordLength!==o.innerHTML.length&&a!="translation"&&n7(e,n,o);continue}if((i.addedNodes||[]).length<=0||![Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(i.target.nodeType)||!_t.isSkipMarkEle(i.target)&&!_t.isMarked(i.target,e.id)&&i.target.nodeName!=="BODY"&&!qt(i.target,t.skipDynamicMarkSelectors)&&!i.target.timer)continue;if(!(o.nodeType==Node.DOCUMENT_FRAGMENT_NODE||ka(o,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors,atomicBlockSelectors:n.atomicBlockSelectors},window.getComputedStyle(o)))){let l=Ws(n,o.parentElement);l&&(_t.clearToParentMark(o,l),r7(e,l));continue}[...i.addedNodes].filter(l=>l.nodeType==Node.COMMENT_NODE||l.immersive||qt(l,[...e.ctx.rule.mutationExcludeSelectors,"."+Kt])?!1:o.contains(l)).length&&r7(e,i.target)}catch(o){k.error(o)}})}function n7(e,t,n){let r=e.ctx.rule;for(let o of r.mutationExcludeContainsSelectors)if(n.querySelector(o))return;if(qt(n,r.mutationExcludeContainsSelectors))return;let a=r.mutationConfig.consumeTimeout||100,i=n;clearTimeout(i.timer),i.timer=setTimeout(()=>{f3(n),ci({id:e.id,container:n,filterRule:t,force:!0,onParagraph:o=>{jo(e,o,!0)},onFrame:()=>{},onIgnoreElement:()=>{},isLongHtml:e.allTextLength>50*1e4,engineCtx:e}),i.timer=null},a)}function r7(e,t,n=!0){let a=e.ctx.rule.mutationConfig.buildTimeout||100,i=t;_t.clearMark(i),i.paragraphs=[],clearTimeout(i.timer),i.timer=setTimeout(()=>{di(t,e,n),i.timer=null},a)}function f3(e){e.paragraphs=[],_t.clearMark(e),e.querySelectorAll("."+Kt).forEach(t=>{t.remove()}),e.querySelectorAll(`[data-${P}-walked]`).forEach(t=>{t.paragraphs=void 0,_t.clearMark(t)}),e.recordLength?e.recordLength=e.innerHTML.length:e.recordLength=void 0}function h3(e){return[...e.addedNodes,...e.removedNodes].filter(n=>!(n.immersive||qt(n,["."+Kt]))).length==0}function Aq(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let r of t){if(r.target.nodeType!==Node.ELEMENT_NODE)return;let a=r.target,i=globalThis.getComputedStyle(a);a3(i)||(n.unobserve(r.target),_t.clearMark(a),di(a,e))}})}async function _1(e){if(this.ctx.rule.switchTranslateRestart&&this.translateState=="dual"&&e=="translation"||this.translateState=="translation"&&e=="dual"){await ga(),await ut(50),bn({method:"translatePage"});return}this.translateState=e,La(document.documentElement,e),this.inlineIFrames?.forEach(t=>{La(t.contentWindow?.document?.documentElement||null,e)}),Object.values(this.paragraphEntities).forEach(t=>{rc(this.ctx,t,e)}),e=="original"&&document.querySelectorAll(`.${Kt}`).forEach(t=>t.remove())}function Cg(e,t){if(e instanceof HTMLIFrameElement){zi(e.contentDocument,t);return}zi(e,t)}async function Lw(e){let t=xt(),n="auto";if(J()){let r="";e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"?(r=y4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})):(r=Vs(e.mainFrame).slice(0,1e3),n=await ze({text:r,pageLangs:[Ht(),"en"]}))}else if(t)n=await ze({text:Vs(e.mainFrame).slice(0,1e3),pageLangs:[Ht(),"en"]});else if(e.rule.pageType=="ebookReader"||e.rule.pageType=="ebookBuilder"){let r="";r=y4(e.mainFrame),n=await ze({text:r,pageLangs:["en"]})}else n=await sv();return n==="auto"&&(n=await zx()),Xy(n),n}async function Mw(){if(!fe)return;ac(),document.dispatchEvent(new CustomEvent(en,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=fe.paragraphEntities,t=Object.keys(e);for(let n of t){let r=e[n];if(r.error){fe.paragraphQueue.push(n);let i=r.commonAncestorContainer.querySelector(`[${Kc}='${n}']`);i&&i.remove()}}Dm.call(fe,fe.ctx)}async function G3(e,t){let n={};e&&e.detail?.trigger&&(n.trigger=e.detail.trigger),Ue("share_to_draft",[{name:"share_to_draft",params:n}],{...t,sourceLanguage:Dt()});let r=fe?.ctx||t,a=await Mt();try{a.draft={url:globalThis.location.href,title:document.title,source_lang:r.sourceLanguage,target_lang:r.targetLanguage,content:Hx(r)},await kt(a);let o=Se().SHARE_DRAFT_URL,s=r.rule;if(s.shareConfig?.sharePath){let u=new URL(o);u.pathname=s.shareConfig.sharePath,o=u.toString()}Ea(o)}catch(i){k.error(i)}}async function US(){let e=await Mt();e.draft&&globalThis.document.dispatchEvent(new CustomEvent(m2,{detail:JSON.stringify(e.draft)}))}async function kq(){try{if(await Do("reportActive")||"")return;k.debug("\u672A\u6FC0\u6D3B\u8FC7");let t=await ea();await ee({url:ft+"v1/user/campaign-info-translated/"+t,method:"POST",headers:{"content-type":"application/json"}}),Yr("reportActive","1")}catch(e){k.error(e)}}function i7(e,t){let n=e.config?.generalRule?.subtitleRule?.autoEnableSubtitle,r=e.rule?.subtitleRule?.liveSubtitleRule?.enableTriggerTranslate;!n&&r&&document.dispatchEvent(new CustomEvent(es,{detail:{tempEnableSubtitle:t}}))}var Dq=new AbortController,{signal:Lq}=Dq,Ec=0,Ac=0,$o=!1,io,o7=0,fi=[];function v1(e){Mq(),Wm().forEach(t=>{xg(e,t)})}function xg(e,t=window){let n=e,r=n.config,a=r.generalRule.mouseHoverHoldKey==="Off",i=r.mouseModifierKeyPressTimeout||400;n.state.isTranslateDirectlyOnHover===!0&&(a=!1);let o=n.state.isTranslateDirectlyOnHover===!0||r.generalRule.mouseHoverHoldKey==="Auto";r.generalRule.mouseHoverHoldKey==="MouseHoldKeyPressHold"&&Fq(n,t);function s(){o=!o,o?(k.debug("mouse hover translate on"),n.state.isTranslateDirectlyOnHover=!0,xg(n,t)):(k.debug("mouse hover translate off"),n.state.isTranslateDirectlyOnHover=!1,xg(n,t))}t.document.addEventListener(Lu,s),fi.push(()=>{t.document.removeEventListener(Lu,s)});let u=yr(g=>{if(!(Math.abs(g.clientX-Ec)+Math.abs(g.clientY-Ac)<=3)&&(Ec=g.clientX,Ac=g.clientY,$o&&!io&&F1(n,!1,t),o||$o&&!io)){let p=c7(n.rule,t);if(p){if(I1(p))return;Tg(n,!1,t,p)}}},o?700:300),l=g=>{let p=g.target;I1(p)||(Tg(n,!0,t),F1(n,!0,t,!0))},c=g=>{let p=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=$t.getPressedKeyCodes();if(f.length>1&&$t[p]&&(o7=Date.now(),$o=!1),f.length===1&&$t[p]){let b=Date.now();$o=!0,io&&clearTimeout(io),io=setTimeout(()=>{let y=o7-b;y>0&&y<=i?$o=!1:l(g),io=void 0},i)}};if(fi.push(()=>{io&&clearTimeout(io)}),a)return;wc("mousemove",u,t),fi.push(()=>{t.removeEventListener("mousemove",u)});function m(){o?u.cancel():$o=!1}if(wc("blur",m,t),fi.push(()=>{t.removeEventListener("blur",m)}),!o){let g=r?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=P2;wc("keyup",s7,t),fi.push(()=>{t.removeEventListener("keyup",s7)}),p.includes(g)?$t("*",{scope:"mouseHover",element:t.document},c):$t(r.generalRule.mouseHoverHoldKey,{scope:"mouseHover",element:t.document},l),$t.setScope("mouseHover"),fi.push(()=>{$t.deleteScope("mouseHover")})}}function Mq(){try{fi.forEach(e=>e())}catch{}fi=[],$t.setScope("all")}function s7(e){$o=!1}function wc(e,t,n=window){return n.addEventListener(e,t,{signal:Lq})}function Tg(e,t,n,r){if(r=r||c7(e.rule,n),!r){k.debug("can not find selection part!");return}if(_q(e,r,t))return;if(I1(r)){k.debug("exclude dom");return}a7(e,r);let i=yc();i&&(i.setupMouseHoverListener=xg);let o=Pn(e);o.excludeSelectors=[],o.excludeSelectorsRegexes={},o.selectors=[];let s=!1,u=P1(i,e);ci({id:i.id,container:r,filterRule:o,force:!0,onParagraph:l=>{Fd(n.document.documentElement)!==e.state.translationMode&&La(n.document.documentElement,e.state.translationMode),jo(u,l,!0,"hover").then(m=>{if(m&&!s){s=!0;let g=Date.now();Ze(f2,g);let p={translation_service:u?.translationService||""};Ue("mouse_hover_translate",[{name:"mouse_hover_translate",params:p}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function c7(e,t){return Pq(Ec,Ac,e,t)}function Pq(e,t,n,r){let a=uC(e,t,n,r);if(a==null)return;let i=()=>{let u=r.document.elementFromPoint(e,t);if(!u)return;let l=lC(u,e,t);return l===u?u.nodeName==="BUTTON"?u:void 0:l7(l,n)},o=()=>{try{a.setStartBefore(a.startContainer),a.setEndAfter(a.startContainer)}catch(l){k.debug("get mouse over word fail",l)}let u=a.getBoundingClientRect();if(!(u.left>e||u.rightt||u.bottom{Iq(e,a)}),!0}function Rq(e){let t=[e];if(e.nodeName=="FONT"&&e.classList.contains(P+"-target-wrapper"))t=[e.parentElement];else{let r=[...e.querySelectorAll(`.${P}-target-wrapper`)].map(a=>a.parentElement).filter(a=>!!a);r.length&&(t=r)}return t.filter(n=>n?.paragraphs&&n?.paragraphs.length>0)}function Iq(e,t){let n=yc();n&&(!t.paragraphs||!t.paragraphs.length||(t.paragraphs.forEach(r=>{rc(e,r,r.state==="original"?n.translateState:"original")}),t.paragraphs=[]))}function R1(e){return!!(e.host&&e.mode)}function u7(e,t){let n=e.parentNode;if(n.nodeName==="BODY"||R1(n))return e;for(;n&&n.nodeName!=="BODY"&&!R1(n)&&h4(n,t);){let r=n.parentNode;if(r&&R1(r))break;n=r}return n}function l7(e,t){return e.nodeType===Node.TEXT_NODE||h4(e,t)?u7(e,t):e}function d7(e,t,n){Ec=t.clientX,Ac=t.clientY,Tg(e,!0,n),F1(e,!0,n)}async function F1(e,t,n,r){if(!oi(e))return;let a=cC(Ec,Ac,e.rule,n);if(!a||E4(a.src)||a.translationStatus==="translating")return;let i=U3(a);if(i&&!t||i&&!r)return;if(i){Wo(a);return}if(!await Ts(e)){qm("image_mouse_hover");return}zo(e,a,!0,"image_mouse_hover")}function Fq(e,t){if(!e.config.generalRule.mousePressHoldTranslateDelay)return;let n=e.config.generalRule.mousePressHoldTranslateDelay;typeof n!="number"&&(n=1e3);let r,a=!1,i=s=>{s.button===0&&(a=!0,r=setTimeout(()=>{let u=t.getSelection()?.toString().trim();a&&u===""&&Tg(e,!0,t)},n))},o=()=>{a=!1,r&&clearTimeout(r)};wc("mousedown",i,t),wc("mouseup",o,t),fi.push(()=>{t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",o)})}var kc=[];function B1(e,t){let n=0,r=0,a,i=s=>{let u=new Date().getTime();r++,u-n<300?o(s):r=1,n=u},o=s=>{clearTimeout(a),r===parseInt(e+"")&&(a=setTimeout(()=>{r=0,t(s)},400))};document.addEventListener("click",i),kc.push(()=>{document.removeEventListener("click",i)})}function m7(e,t){let n=0,r=0,a=0,i=s=>{let u=s.changedTouches[0];n=new Date().getTime(),r=u.clientX,a=u.clientY},o=s=>{let u=s.changedTouches[0];n-new Date().getTime()>1e3||Math.abs(a-u.clientY)>50||(e==="left"&&u.clientX-r>50&&t(s.changedTouches[0]),e==="right"&&u.clientX-r<-50&&t(s.changedTouches[0]))};document.addEventListener("touchstart",i,{passive:!0}),document.addEventListener("touchend",o),kc.push(()=>{document.removeEventListener("touchstart",i),document.removeEventListener("touchend",o)})}function Sg(e,t){let n,r=a=>{clearTimeout(n),a.touches.length===parseInt(e+"")&&(n=setTimeout(()=>{t(a.changedTouches[0])},200))};document.addEventListener("touchstart",r,{passive:!0}),kc.push(()=>{document.removeEventListener("touchstart",r)})}var oc={touchShortcutsOff:()=>{},"multipleClick.2":B1,"multipleClick.3":B1,"multipleClick.4":B1,"slide.left":m7,"slide.right":m7,"fingers.2":Sg,"fingers.3":Sg,"fingers.4":Sg,"fingers.5":Sg};async function jS(e,t=window){try{jq();let n=await cn(),r=Zc.find(a=>a.name==="touch");if(!r)return;r.shortcuts.forEach(a=>{if(typeof a=="string")return;let i=O1(e,n,a.command),o=oc[i];if(i==="touchShortcutsOff"||!o)return;let s=i.split(".");if(s.length!==2)return;let u=s[1];u&&o(u,l=>{Uq(a.command,e,t,l)})})}catch(n){k.error(n)}}function O1(e,t,n){if(!t.generalRule)return e.config.generalRule[n];if(t.generalRule[n])return t.generalRule[n];let r={touchShortcutsToggleTranslatePage:"fingerCountToToggleTranslagePageWhenTouching",touchShortcutsToggleTranslationMask:"fingerCountToToggleTranslationMaskWhenTouching",touchShortcutsToggleTranslatePageOnlyTranslation:"fingerCountToToggleTranslagePageOnlyTranslationWhenTouching"};return r[n]&&t.generalRule[r[n]]?`fingers.${t.generalRule[r[n]]}`:e.config.generalRule[n]||""}var Bq=()=>{f1();let e=new CustomEvent(jr,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},Oq=()=>{b1();let e=new CustomEvent(jr,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},Nq=()=>{h1();let e=new CustomEvent(jr,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},g7=0,Uq=(e,t,n,r)=>{if(!(new Date().getTime()-g7<200)){if(g7=new Date().getTime(),e==="touchShortcutsToggleTranslatePage")Bq();else if(e==="touchShortcutsToggleTranslationMask")Nq();else if(e==="touchShortcutsToggleTranslatePageOnlyTranslation")Oq();else if(e==="touchShortcutsToggleTranslateTouchElement")d7(t,r,n);else if(e==="touchShortcutsInputTranslate"){let a=document.activeElement;if(a!==r.target||!a||a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"&&!a.isContentEditable)return;let i=t.config,o={...i.inputLanguageCodeAlias},s={triggerTimes:i.inputTrailingTriggerKeyRepeatTimes,triggerKey:i.inputTrailingTriggerKey,triggerTimeout:i.inputTrailingTriggerKeyTimeout,codePrefix:i.inputStartingTriggerKey,codeAlias:o,flatAlias:Object.values(o).flat(),codePrefixAlias:i.inputStartingTriggerKeyAlias};Q3(r,t,n,s)}}};function jq(){kc.forEach(e=>{e()}),kc=[]}function Dc(e){let{onChange:t,type:n,title:r,command:a,description:i,shortcut:o,disabled:s,service:u,serviceIdList:l}=e,[c,m]=N(!1),{t:g}=O();if(n==="finger")return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("select",{class:"select !w-36",onChange:p=>{p.preventDefault();let f=p.target.value;t(f)},children:Object.keys(oc).map((p,f)=>d("option",{value:p,selected:o===p,children:`${g(p)}`},"finger-"+f))})]});if(n==="mouseHoverHoldKey"){let p=Ga.includes(o);return d("div",{children:[d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d(sa,{className:"select",maxWidth:250,items:Ga.filter(f=>!(p&&f==="OtherCustom"||f==="OtherCustom")).map(f=>{let b=g("mouseHoldKey",{key:_a(f)}),y=Ga.includes(o),h=f===o;return o==="Off"&&f===o&&c&&(h=!1),f==="Auto"?b=g("mouseHoldKeyAuto"):f==="Off"?b=g("mouseHoldKeyOff"):f==="OtherCustom"?b=y?g("mouseHoldKeyOther"):g("mouseHoldKeyCustomKey",{key:o}):f==="Other"?b=g("mouseHoldKeyOther"):f==="MouseHoldKeyPressHold"&&(b=g("mouseHoldKeyPressHold")),y||f==="Other"&&(h=!0),{label:b,value:f,selected:h,onSelected:v=>{v.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(v.value))}}})})]}),(!p||c)&&d("div",{class:"nav",children:[d(ye,{title:g("mouseHoverCustomKeyTitle"),description:g("mouseHoverCustomKeyDescription")||""}),d("input",{type:"text",class:"!w-36",placeholder:g("mouseHoverShortcutPlaceholder"),name:"mouseHoverHoldKey",value:o==="Off"?"":o,onChange:f=>{t(f.target.value)}})]})]})}else if(n?.startsWith("translateWithCustom")&&l?.length)return d("div",{class:"nav flex-wrap",children:[d(ye,{title:r,description:i||""}),d("div",{class:"nav",children:[d(sa,{className:"select",style:{marginBottom:"var(--spacing)",marginRight:"var(--spacing)"},maxWidth:250,items:l.map(({service:p,name:f})=>({label:f||g(`translationServices.${p}`),value:p,selected:u===p,onSelected:h=>{h.value==="Other"?(m(!0),t("Off",!0)):(m(!1),t(h.value))}}))}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(zh,{width:20,height:16})})})})]})]})]});return d("div",{class:"nav",children:[d(ye,{title:r,description:i||""}),d("div",{children:[d("input",{type:"text",class:"!w-36",disabled:s,id:a,name:a,value:o,onChange:p=>{t(p.target.value)}}),s&&d("div",{class:"ml-2 inline-block",children:d(Pt,{width:200,multiple:!0,text:g("shortcutDisableTooltip"),children:d("span",{children:d(zh,{width:20,height:16})})})})]})]})}function N1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let[o,s]=da(),{t:u}=O(),l=pt(t),c=dn(l);return l?d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(ma,{image:an("images/hover_intro.png"),nightImage:an("images/hover_intro_night.png"),title:u("intro.hoverTitle"),description:u("intro.hoverDescription")}),Gr(o)&&d(Dc,{onChange:(m,g)=>{n(p=>{let b={...p.generalRule||{},mouseHoverHoldKey:m||"Off"};return m!=="Off"&&(b.mouseHoverPreferenceKey=m),{...p,generalRule:b}}),g||nt(u("saved"))},type:"mouseHoverHoldKey",title:u("mouseHoverHoldKey"),command:"mouseHoverHoldKey",description:u("desc.mouseHoverHoldKey"),shortcut:l.generalRule.mouseHoverHoldKey,disabled:!1}),d(Hq,{setSettings:n,config:l,localConfig:o}),d(eo,{config:l,ctx:c,serviceType:"mouseHoverTranslationService"})]})}):null}function Hq({setSettings:e,config:t,localConfig:n}){let{t:r}=O();return Gr(n)?null:d(Dc,{onChange:(a,i)=>{e(o=>{let u={...o.generalRule||{},touchShortcutsToggleTranslateTouchElement:a||"touchShortcutsOff"};return a&&a!=="touchShortcutsOff"&&(u.touchShortcutsToggleTranslateTouchElementPreferenceKey=a),{...o,generalRule:u}}),i||nt(r("saved"))},type:"finger",title:r("touchShortcutsToggleTranslateTouchElement"),command:"touchShortcutsToggleTranslateTouchElement",description:r("desc.touchShortcutsToggleTranslateTouchElement"),shortcut:t.generalRule.touchShortcutsToggleTranslateTouchElement,disabled:!1})}function U1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let o=pt(t),s=dn(o),u=le(g=>{s&&n(p=>Ui({...p},g))},[s,n]),l=ii(s,t),{t:c}=O(),m=le((g,p)=>c("floatBallOptions."+g,p),[]);return!s||!l?d("div",{children:"loading"}):d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:c("floatBallOptions")})}),d(ma,{image:an("images/float_ball_intro.png"),nightImage:an("images/float_ball_intro_night.png"),title:c("intro.floatBallTitle"),description:c("intro.floatBallDescription")}),d(qq,{config:s.config,t:m,rawT:c,rule:l,updateFloatBallRule:u}),d(zq,{t:m,rule:l,updateFloatBallRule:u}),d(Wq,{t:m,rule:l,updateFloatBallRule:u}),d(Vq,{t:m,rule:l,updateFloatBallRule:u})]})})}function qq({rule:e,config:t,updateFloatBallRule:n,t:r,rawT:a}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:r("enable"),description:e.isPc?r("enableDescPc"):r("enableDesc",{touch:a("fingers."+t.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:i=>{let o=i.target.checked;e.enable=o,n(e)},checked:e.enable})})]})})}function zq({t:e,rule:t,updateFloatBallRule:n}){let[r,a]=N(!1),[i,o]=N(""),[s,u]=N(-1);z(()=>{$t("esc",()=>{a(!1)})},[]);let l=()=>{a(!r)},c=(p,f,b,y)=>{l(),s==f&&f!=-1?t.blockUrls[f]=p:t.blockUrls=qn(p,t.blockUrls),n(t),u(-1),o("")},m=(p,f)=>{p.forEach(b=>{t.blockUrls=Zt(b,t.blockUrls)}),n(t),u(-1),o("")},g=(p,f,b)=>{a(!r),o(p),u(b)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:e("blockUrls"),description:e("blockUrlDesc")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:p=>{p.preventDefault(),l()},children:e("add")})}),r?d(la,{toggleModal:p=>{p.preventDefault(),l()},onSubmitAddUrl:c,type:"excludeMatches",urlValue:i,index:s}):null]}),d(Ua,{urls:t.blockUrls||[],type:"excludeMatches",onDeleteUrl:m,onEditUrl:g})]})}function Wq({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("clickType"),description:e("clickTypeDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.clickType=r.target.value,n(t)},children:[d("option",{value:"translate",selected:t.clickType=="translate",children:e("clickTranslate")}),d("option",{value:"popup",selected:t.clickType=="popup",children:e("clickPopup")})]})]})})}function Vq({t:e,rule:t,updateFloatBallRule:n}){return d(ce,{children:d("div",{class:"nav",children:[d(ye,{title:e("fixedPosition"),description:e("fixedPositionDesc")}),d("select",{class:"select",onChange:r=>{r.preventDefault(),t.fixedPosition=r.target.value,n(t)},children:[d("option",{value:"left",selected:t.fixedPosition=="left",children:e("fixedPositionLeft")}),d("option",{value:"right",selected:t.fixedPosition=="right",children:e("fixedPositionRight")})]})]})})}function j1(){let e=Oe(),[t,n,r,a,i]=e,[o]=da();Xe(t,n);let[s,u]=N(null),{t:l,lang:c}=O();z(()=>{Je().then(b=>{wn({config:b,url:globalThis.location.href}).then(y=>{u(y)})})},[t]);let m=ne(()=>s?Es(s,"translationService",c).map(y=>y.id):[],[s,c]);if(!s)return d("div",{children:"loading"});let g={...s.config,shortcuts:{...s.config.shortcuts}},p=Zc.filter(b=>{if(b.name==="touch"){let y=Gr(o);return k.debug("isSupportMouseHover",y),!y}else if(b.name==="mouse"){let y=Gr(o);return k.debug("isSupportMouseHover",y),y}else return!0}).map(b=>({name:b.name,shortcuts:b.shortcuts.map(y=>{let h="",v="normal";typeof y=="string"?h=y:(h=y.command,y.type&&(v=y.type));let C="";l(`desc.${h}`)!==`desc.${h}`&&(C=l(`desc.${h}`));let x="";v==="finger"?x=O1(s,t,h):v==="mouseHoverHoldKey"?t?.generalRule&&t?.generalRule[h]!==void 0?x=t.generalRule[h]:x=g.generalRule[h]:t?.shortcuts&&t?.shortcuts[h]!==void 0?x=t.shortcuts[h]:x=g.shortcuts[h];let S=l(`browser.${h}`,{targetLanguage:Ot(g.targetLanguage,g.interfaceLanguage,!1,!0)});(v==="finger"||v==="mouseHoverHoldKey")&&(S=l(`${h}`));let w,A;return v.startsWith("translateWithCustom")&&(w=t?.shortcuts?.translateWithCustomServices?.[h],A=m.map(D=>{let M={service:D,name:null};return D.startsWith("custom-ai")&&(M.name=s.config.translationServices[D].name),M})),{command:h,type:v,shortcut:x,title:S,description:C,service:w,serviceIdList:A,disabled:!(J(!0)||Xo())}})})),f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return J(!0)||(Jn()?f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[l("help"),"?"]})]}):Xo()||(f=()=>d("blockquote",{class:"text-sm",children:[l("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:b=>{b.preventDefault(),j.tabs.create({url:"chrome://extensions/shortcuts"})},children:l("goSettings")})]}))),d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:l("shortcutSettingsTitle")})}),d("div",{children:d(f,{})}),p.map((b,y)=>d("article",{class:"mb-8",children:[d("div",{class:"text-gray-500 text-sm",children:l(`shortcutGroup.${b.name}`)}),b.shortcuts.map((h,v)=>fo(Dc,{...h,key:`shortcut-${v}`,onChange:(C,T)=>{n(x=>{if(h.type==="finger"){let w={...x.generalRule||{},[h.command]:C||"touchShortcutsOff"};return h.command==="touchShortcutsToggleTranslateTouchElement"&&C&&C!=="touchShortcutsOff"&&(w.touchShortcutsToggleTranslateTouchElementPreferenceKey=C),{...x,generalRule:w}}else if(h.type==="mouseHoverHoldKey"){let w={...x.generalRule||{},[h.command]:C||"Off"};return C!=="Off"&&(w.mouseHoverPreferenceKey=C),{...x,generalRule:w}}else if(h.type.startsWith("translateWithCustom")){let S={...x?.shortcuts};if(m.includes(C)){let A=S.translateWithCustomServices||{};return{...x,shortcuts:{...S,translateWithCustomServices:{...A,[h.command]:C}}}}let w={...x,shortcuts:{...S,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}else{let S={...x?.shortcuts},w={...x,shortcuts:{...S,[h.command]:C}};return C||(w.shortcuts[h.command]=""),w}}),T||nt(l("saved"))}}))]},`shortcut-group-${y}`))]})})}function Kq(){let[e,t]=N(null);return z(()=>{Je().then(n=>{t(n)})},[]),e}function H1(){let[e,t,n,r,a]=Oe(),i=Kq(),{t:o,setLang:s}=O(),[u,l]=da();if(!i)return null;return d(rt,{children:d("div",{class:"pb-4",children:d(c,{})})});function c(){return z(()=>{e&&m()},[e]),d(ce,{children:d("div",{style:{width:"100%"},children:d("p",{children:[o("download_started")," ",d("a",{href:"#",class:"secondary",onClick:g=>{g.preventDefault(),m()},children:o("here")})]})})});function m(){let g=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});bo.saveAs(g,P+"-config-"+Os()+".txt")}}}function q1(){let e=_r(),{t,lang:n}=O();return d(ce,{children:[d("header",{className:"header-navbar",children:[d("a",{class:"header-navbar-brand",href:Y,target:"_blank",children:[d(gx,{}),d("h1",{children:t("browser.shortBrandName")})]}),d("span",{style:{cursor:"pointer"},class:"version",onClick:r=>{r.preventDefault(),ur(`${Y}docs/CHANGELOG/#${e.replace(/\./ig,"")}`)},children:e}),d("div",{style:{flex:1}}),d("div",{class:"header-right",children:[d(Gq,{}),d($q,{})]})]}),d("div",{className:"header-navbar-height"})]})}function Gq(){let{t:e}=O();return d("a",{class:"header-navbar-item mobile-hidden",href:O2,target:"_blank",children:[d(px,{}),d("span",{children:e("options.navbar.installApp")})]})}function $q(){let{t:e}=O();return d(Pt,{text:e("translateFileTooltip"),position:"bottom",width:180,multiple:!0,containerClass:"btn-animate",children:d("a",{class:"header-navbar-item ml-8",href:z2,target:"_blank",children:[d(fx,{}),d("span",{children:e("options.navbar.translateFile")})]})})}function z1(){let e=Oe(),[t,n,r,a,i]=e;Xe(t,n);let{t:o}=O(),s=pt(t),u=dn(s);if(!u||!s)return d("div",{children:"loading"});let l=xd(s.supportedMangaSites),c=``,m=[...l.map((p,f)=>` ${p.name} ${f!==l.length-1?", ":""} - `),c].join(""),g=oi(u,!0);return d(rt,{children:d(me.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:o(g?"mangaAndImage":"manga")})}),d(ma,{image:an("images/popup-manga-guide.png"),nightImage:an("images/popup-manga-guide.png"),title:o("intro.mangaTitle"),description:o("intro.mangaDescription",{1:Vg})+m,children:d("div",{class:"px-6",children:d(f7,{config:u.config,ctx:u})})}),d(f7,{config:u.config,ctx:u,className:"manga-enable"}),d("div",{className:"intro-footer",dangerouslySetInnerHTML:{__html:o("intro.mangaDescription",{1:Vg})+"
"+m}}),d(Zq,{ctx:u})]})})}function f7({config:e,ctx:t,className:n}){let[r,a,i,o,s]=we(me),u=ii(t,r),{t:l}=O(),c=le((g,p)=>l("floatBallOptions."+g,p),[]),m=le(g=>{t&&a(p=>Ui({...p},g))},[t,a]);return u?d(ce,{children:d("div",{class:`nav ${n}`,children:[d(ye,{title:c("enable"),description:u.isPc?c("mangaEnableDescPc"):c("enableDesc",{touch:l("fingers."+e.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:g=>{let p=g.target.checked;u.enable=p,m(u)},checked:u.enable})})]})}):null}function Zq({ctx:e}){let{t}=O();return oi(e,!0)?d(ce,{children:[d(ma,{image:an("images/image_tansalte_intro-qkKVLH.png"),nightImage:an("images/image_tansalte_intro-qkKVLH.png"),title:t("image.imageTranslate"),description:t("image.imageTranslateDes",{1:Wg}),children:d("div",{class:"px-6",children:[d(h7,{ctx:e}),d(b7,{ctx:e,styles:{paddingTop:0}})]})}),d(h7,{ctx:e,className:"image-tools-enable"}),d(b7,{ctx:e,className:"image-tools-enable"}),d(Xq,{ctx:e}),d("div",{className:"intro-footer mt-4",dangerouslySetInnerHTML:{__html:t("image.imageTranslateDes",{1:Wg})}})]}):null}function h7({ctx:e,className:t}){let[n,r,a,i,o]=we(me),s=e.rule.imageRule,{t:u}=O();return d(ce,{children:d("div",{class:`nav ${t}`,children:[d(ye,{title:u("image.enableTools")}),d("label",{for:"enable",children:d("input",{type:"checkbox",id:"enable",name:"switch",role:"switch",onChange:l=>{let c=l.target.checked;r(m=>({...m,generalRule:{...m.generalRule,"imageRule.add":{...m.generalRule?.["imageRule.add"],enableTools:c}}}))},checked:s.enableTools})})]})})}function Xq({ctx:e}){let{t}=O(),[n,r]=N(!1),[a,i]=N(""),[o,s]=N(-1),[u,l,c,m,g]=we(me),p=e.config.generalRule.imageRule||{};z(()=>{Yt("esc",()=>{r(!1)})},[]);let f=()=>{r(!n)},b=(v,C,x,S)=>{f(),o==C&&C!=-1?p.blockToolsUrls[C]=v:p.blockToolsUrls=qn(v,p.blockToolsUrls),l(T=>({...T,generalRule:{...T.generalRule,"imageRule.add":{...T.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},y=(v,C)=>{v.forEach(x=>{p.blockToolsUrls=Jt(x,p.blockToolsUrls)}),l(x=>({...x,generalRule:{...x.generalRule,"imageRule.add":{...x.generalRule?.["imageRule.add"],blockToolsUrls:p.blockToolsUrls}}})),s(-1),i("")},h=(v,C,x)=>{r(!n),i(v),s(x)};return d(ce,{children:[d("div",{class:"nav",children:[d(ye,{title:t("image.blockToolsUrls"),description:t("image.blockToolsUrlsDes")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),f()},children:t("add")})}),n?d(la,{toggleModal:v=>{v.preventDefault(),f()},onSubmitAddUrl:b,type:"excludeMatches",urlValue:a,index:o}):null]}),d(Ua,{urls:p.blockToolsUrls||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:h})]})}function b7({ctx:e,className:t,styles:n}){let{t:r}=O(),[a,i,o,s]=we(me);return d("div",{class:`nav ${t}`,style:n,children:[d(ye,{title:r("image.toolsDelayTime"),description:r("image.toolsDelayTimeDes")}),d("label",{for:"count",class:"option-input",children:d("input",{type:"number",id:"count",onChange:u=>{i(l=>({...l,generalRule:{...l.generalRule,"imageRule.add":{...l.generalRule?.["imageRule.add"],toolsDelayTime:parseInt(u.target.value||"0")}}}))},name:"count",value:e.config.generalRule.imageRule.toolsDelayTime,required:!0})})]})}async function y7(){try{if(Z())return;let e=j.runtime.getURL("locales.json"),n=await(await fetch(e)).json();Object.assign(Mi,n)}catch{}}async function v7(){await y7();let e=document.getElementById("mount");e&&(async()=>{vp(IS);let t=await Ze();t.debug&&k.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await wn({url:"http://localhost",config:t});Ue("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),zi(document,n),va(d(Qi,{lang:t.interfaceLanguage,children:d($q,{donateUrl:t.donateUrl,config:t,ctx:n})}),e)})()}function $q(e){let t=Io(),{t:n,lang:r}=O(),a=Pr(),{config:i}=e,{beta:o}=i,s=er(i),u=i.generalRule?.imageRule?.enable,l=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("translationServiceNav"),props:{href:"#services",className:"secondary"}},...o||i.enableAiAssistant?[{name:n("field.assistant"),props:{href:"#ai",className:"secondary"}}]:[],{name:n("subtitle"),props:{href:"#subtitle",className:"secondary"}},...u&&!s?[{name:oi(e.ctx,!0)?n("mangaAndImage"):n("manga"),props:{href:"#manga",className:"secondary"}}]:[],{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("floatBallOptions"),props:{href:"#floating",className:"secondary"}},{name:n("shortcutSettings"),props:{href:"#shortcuts",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];ez(t),r.startsWith("zh")||l.splice(l.length-1,0,{name:n("contact"),props:{href:"#contact",className:"secondary"}}),l.forEach(g=>{if(g.props.href==="#services"){if(!t.startsWith("#services"))return;g.props.className="primary",g.props["aria-current"]="page";return}if(g.props.href==="#ai"){if(!t.startsWith("#ai"))return;g.props.className="primary",g.props["aria-current"]="page";return}t===g.props.href&&(g.props.className="primary",g.props["aria-current"]="page")});let c=!0;je()&&(c=i.generalRule.showSponsorOnSafari);let m={"#general":d(hm,{}),"#services":d(Wh,{}),"#ai":d(Yh,{}),"#mouse_hover":d(U1,{}),"#input":d(Qh,{}),"#shortcuts":d(H1,{}),"#floating":d(j1,{}),"#import_export":d(Mh,{}),"#about":d(Zh,{}),"#advanced":d(Xh,{}),"#developer":d(Jh,{}),"#subtitle":d(n3,{}),"#manga":d(V1,{}),"#contact":d($h,{}),"#download_config":d(q1,{})};return u||delete m["#manga"],d(rt,{children:[d(z1,{}),d(ce,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"menu-nav flex flex-col h-full justify-between ",children:[d("div",{children:d("ul",{class:"flex flex-wrap flex-start min-[992px]:block text-sm min-[992px]:text-base",children:l.map((g,p)=>d("li",{class:"li",children:d("a",{...g.props,children:g.name})},`nav-${p}`))})}),d("div",{class:"m-0 p-0 flex flex-wrap min-[992px]:flex-col max-[992px]:mt-2",children:[c&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:e.donateUrl,onClick:g=>{g.preventDefault(),ur(e.donateUrl)},children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Uu,onClick:g=>{g.preventDefault(),ur(Uu)},children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Q+"docs/CHANGELOG/",onClick:g=>{g.preventDefault(),ur(Q+"docs/CHANGELOG/")},children:n("changelog")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:Kg,onClick:g=>{g.preventDefault(),ur(Kg)},children:n("feedbackAndJoin")}),r!=="zh-CN"&&d("a",{class:"py-3 text-xs no-focus secondary mr-2",target:"_blank",href:`https://weblate.${et}/browse/${P}/extension/${r}/`,children:n("helpToTranslate")}),d("a",{class:"py-3 text-xs no-focus secondary mr-2",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(C4,{value:t,defaultCase:d(hm,{}),cases:m})})]})})]})}function ez(e){let t=Se(0),n=Se(0),r=Se(),a=le(async()=>{if(!r.current){r.current=e,t.current=Date.now();return}t.current&&(n.current+=Date.now()-t.current),await o5({pageTitle:r.current,pageLocation:r.current,time:n.current}),n.current=0,r.current=e,t.current=Date.now()},[t,n,r,e]);z(()=>{let i=()=>{document.hidden?(t.current&&(n.current+=Date.now()-t.current),t.current=0):t.current=Date.now()};return a(),globalThis.addEventListener("visibilitychange",i),()=>{globalThis.removeEventListener("visibilitychange",i)}},[a]),z(()=>{let i=async()=>(await a(),!0);return globalThis.addEventListener("beforeunload",i),()=>{globalThis.removeEventListener("beforeunload",i)}},[a])}globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__=!0;var W1=!1;function tz(){if(W1)return;if(i5(),!document.querySelector(`meta[name=${P}-options]`))throw new Error("Options meta element not found");let t=document.getElementById(P+"-status");if(!t)throw new Error("Status element not found");let n=document.getElementById(P+"-page-ready");if(!n)throw new Error("Page ready input element not found");function r(a){let i=a.target.value;i==="true"?(W1=!0,t.innerText="",n.removeEventListener("change",r),v7()):t.innerText="Page Status: "+i}n.addEventListener("change",r),setTimeout(()=>{W1||(t.innerHTML=`\u65E0\u6CD5\u68C0\u6D4B\u5230 \u6C89\u6D78\u5F0F\u7FFB\u8BD1 \u6269\u5C55. \u8BF7\u786E\u8BA4\u5DF2\u5B89\u88C5\u5E76\u542F\u7528\u6C89\u6D78\u5F0F\u6269\u5C55\uFF0C\u5E76\u6388\u6743\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBF\u95EE\u6240\u6709\u7F51\u7AD9\u7684\u6743\u9650\u3002

\u5982\u679C\u4F60\u4F7F\u7528\u7684\u662FiOS Safari \u6D4F\u89C8\u5668\u6269\u5C55\uFF0C\u53EF\u4EE5\u53C2\u8003\u4EE5\u4E0B\u89C6\u9891\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6269\u5C55\uFF1A
`)},5e3)}Qq();})(); /*! Bundled license information: js-yaml/dist/js-yaml.mjs: